Skip to content

Commit

Permalink
Merge pull request #1 from Rakshak1344/dev
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
Rakshak1344 authored Dec 1, 2020
2 parents a455450 + d5e3054 commit 933011a
Show file tree
Hide file tree
Showing 10 changed files with 247 additions and 575 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"request": "launch",
"type": "dart"
}
]
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [1.0.1]

* Dependencies update.

# [1.0.0]

Initial version of library.
Expand Down
1 change: 1 addition & 0 deletions example/android/settings_aar.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':app'
105 changes: 2 additions & 103 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MyApp extends StatefulWidget {
}

class _MyAppState extends State<MyApp> {
example() async {
tezosWalletUtil() async {
//Generate mnemonic
String mnemonic = TezsterDart
.generateMnemonic(); // strength is optional, by default it's 256 ==> Generates 24 words.
Expand Down Expand Up @@ -67,111 +67,10 @@ class _MyAppState extends State<MyApp> {
//Accessing: private key ===> identityFundraiser[0] | public key ===> identityFundraiser[1] | public Key Hash ===> identityFundraiser[2] all of type string.
}

request() async {
String testNetServer = "https://testnet.tezster.tech";

dynamic response = await TezsterDart.performGetRequest(
server: testNetServer,
command: "chains/main/blocks",
);
print("Response ===> $response");

dynamic getBlock = await TezsterDart.getBlock(
server: testNetServer,
hash: "",
chainid: "",
);
print("GET-Block ===> $getBlock");

dynamic blockhead = await TezsterDart.getBlockHead(
server: testNetServer,
);
print("Block-Head ===> $blockhead");

dynamic getAccForBlock = await TezsterDart.getAccountForBlock(
server: testNetServer,
accountHash: "",
blockHash: "",
chainid: "",
);
print("GET-Acc-ForBlock ===> $getAccForBlock");

// dynamic getCounterForAccount = await TezsterDart.getCounterForAccount(
// server: testNetServer,
// accountHash: "",
// chainid: "",
// );
// print("GET-Counter-ForAccount ===> $getCounterForAccount");

// dynamic getSpendableBalanceForAccount =
// await TezsterDart.getSpendableBalanceForAccount(
// server: testNetServer,
// accountHash: "",
// chainid: "",
// );
// print(
// "GET-SpendableBalance-ForAccount ===> $getSpendableBalanceForAccount");

dynamic getAccountManagerForBlock =
await TezsterDart.getAccountManagerForBlock(
server: testNetServer,
chainid: "",
accountHash: "",
block: "",
);
print("GET-Account-Manager-ForBlock ===> $getAccountManagerForBlock");

// dynamic isImplicitAndEmpty = await TezsterDart.isImplicitAndEmpty(
// server: testNetServer,
// accountHash: "",
// );
// print("Is-ImplicitAndEmpty ===> $isImplicitAndEmpty");

dynamic isManagerKeyRevealedForAccount =
await TezsterDart.isManagerKeyRevealedForAccount(
server: testNetServer,
accountHash: "",
);
print(
"Is-ManagerKey-Revealed-ForAccount ===> $isManagerKeyRevealedForAccount");

dynamic getContractStorage = await TezsterDart.getContractStorage(
server: testNetServer,
accountHash: "",
block: "",
chainid: "",
);
print("GET-Contract-Storage ===> $getContractStorage");

dynamic getValueForBigMapKey = await TezsterDart.getValueForBigMapKey(
server: testNetServer,
key: "",
block: "",
chainid: "",
index: 1,
);
print("GET-Value-ForBigMapKey ===> $getValueForBigMapKey");

dynamic getMempoolOperation = await TezsterDart.getMempoolOperation(
server: testNetServer,
chainid: "",
operationGroupId: "",
);
print("GET-MempoolOperation ===> $getMempoolOperation");

dynamic getMempoolOperationsForAccount =
await TezsterDart.getMempoolOperationsForAccount(
server: testNetServer,
chainid: "",
);
print("GET-MempoolOperations-ForAccount ===> $getMempoolOperationsForAccount");
}

@override
void initState() {
super.initState();
// example();
request();
tezosWalletUtil();
}

@override
Expand Down
Loading

0 comments on commit 933011a

Please sign in to comment.