push_restapi_dart 0.1.2-alpha copy "push_restapi_dart: ^0.1.2-alpha" to clipboard
push_restapi_dart: ^0.1.2-alpha copied to clipboard

Push SDK provides an abstraction layer to integrate Push protocol features with your Frontend as well as Backend.

example/lib/main.dart

import 'package:example/functions/space/create_space.dart';

import 'functions/space/update_space.dart';

void main() async {
  // WidgetsFlutterBinding.ensureInitialized();
  // // testFetchP2PChat();
  // testFetchChats();
  // // testCreatPushProfile();
  // testCreateGroup();
  testSend();
  // testApproveIntent();
  // // testFetchChats();
  // // testCreatPushProfile();
  testUpdateSpace();

  // WidgetsFlutterBinding.ensureInitialized();

  // const mnemonic =
  //     'coconut slight random umbrella print verify agent disagree endorse october beyond bracket';
  // final ethersWallet = ether.Wallet.fromMnemonic(mnemonic);
  // final signer = EthersSigner(
  //   ethersWallet: ethersWallet,
  //   address: ethersWallet.address!,
  // );

  // print('walletMnemonic.address: ${ethersWallet.address}');
  // final user = await getUser(address: ethersWallet.address!);

  // if (user == null) {
  //   print('Cannot get user');
  //   return;
  // }

  // String? pgpPrivateKey = null;
  // if (user.encryptedPrivateKey != null) {
  //   pgpPrivateKey = await decryptPGPKey(
  //     encryptedPGPPrivateKey: user.encryptedPrivateKey!,
  //     wallet: getWallet(signer: signer),
  //   );
  // }

  // print('pgpPrivateKey: $pgpPrivateKey');

  // final pushWallet = Wallet(
  //   address: ethersWallet.address,
  //   signer: signer,
  //   pgpPrivateKey: pgpPrivateKey,
  // );

  // await initPush(
  //   wallet: pushWallet,
  //   env: ENV.staging,
  // );

  // testSend();

  // runApp(
  //   MaterialApp(
  //     debugShowCheckedModeBanner: false,
  //     title: 'Push',
  //     theme: ThemeData(
  //       primarySwatch: Colors.purple,
  //     ),
  //     home: HomeScreen(),
  //   ),
  // );
}
4
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Push SDK provides an abstraction layer to integrate Push protocol features with your Frontend as well as Backend.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypto, cryptography, dart_pg, encrypt, flutter, hex, http, openpgp, pointycastle, riverpod, web3lib

More

Packages that depend on push_restapi_dart