Skip to content

Instantly share code, notes, and snippets.

View Sameerkash's full-sized avatar
🎯
Fluttering with Dart

Sameer Kashyap Sameerkash

🎯
Fluttering with Dart
View GitHub Profile

Web3 Apps for the Next Billion users

Elevator Pitch

Web3 orgs have raised a ton of capital, built an awesome community of developers, and have grown everything but one, USERS! It's time that web3 apps bring about a paradigm shift by improving product features, focusing on simpler user experience and lowering the barrier to entry with tech abstraction.

@Sameerkash
Sameerkash / SushiSwap - Flutter
Created April 6, 2023 04:08
SushiRouter - Flutter issues
Encourntering following issues while interacting with the SushiRouter contract on polygon
```dart
// Fetch the price of Polygon Matic and NCT tokens
final inputAmount = BigInt.from(10); // Set the input amount
final tokenAddresses = [
EthereumAddress.fromHex(usdcAddress),
EthereumAddress.fromHex(nctAddress),
];
  1. Celo wallet does not connect through RainbowKit, keep getting the error that the handler is not present, tried reinstalling as well.
Failed to launch 'celowallet://wc?uri=wc%3A5c0841e1-cfc8-4a69-bc03-ffd8f5ca9b59%401%3Fbridge%3Dhttps%253A%252F%252Fu.bridge.walletconnect.org%26key%3D51263e55d11186467cf2b11df0470bf1d526e2f258d5d70e4a628a7ceac0a586'
because the scheme does not have a registered handler
  1. Is there any way to interact with contracts using react celo ? could not find the docs for that.
Launching lib/main.dart on SM M405F in debug mode...
getMappingFile(): Cannot query the value of this property because it has no value available.
getMappingFile(): Cannot query the value of this property because it has no value available.
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
getMappingFile(): Cannot query the value of this pr
@Sameerkash
Sameerkash / cloudSettings
Last active June 9, 2022 11:04
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-08-03T12:55:19.989Z","extensionVersion":"v3.4.3"}
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
HomeManager() {
    storiesCommand = Command.createAsyncNoParam<List<Story>>(topStories, []);
    storiesCommand();
    
    commentsCommand = Command.createAsync<Story, List<Comment>>(getComments, []);
   ...

class HomeManager {

  Command<void, List<Story>> storiesCommand;
  Command<Story, List<Comment>> commentsCommand;

...
GetIt getIt = GetIt.instance;

void setUp() {
  getIt.registerLazySingleton<Service>(() => Service());

  getIt.registerSingleton<HomeManager>(HomeManager());
}
├── home
│   ├── manager
│   │   └── home.manager.dart
│   ├── service
│   │   ├── locator.dart
│   │   └── repo.dart
│   └── views
│       └── home.dart
├── main.dart