Skip to content

Commit dbfda28

Browse files
authored
Merge branch 'main_signer_workflows_tfchain' into main_rmb_client
2 parents f91f6ea + b7fe839 commit dbfda28

File tree

6 files changed

+47
-173
lines changed

6 files changed

+47
-173
lines changed

.dart_tool/package_config.json

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@
171171
},
172172
{
173173
"name": "file",
174-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/file-6.1.4",
174+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/file-7.0.0",
175175
"packageUri": "lib/",
176-
"languageVersion": "2.12"
176+
"languageVersion": "3.0"
177177
},
178178
{
179179
"name": "fixnum",
@@ -219,9 +219,9 @@
219219
},
220220
{
221221
"name": "http",
222-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/http-1.2.0",
222+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/http-1.2.1",
223223
"packageUri": "lib/",
224-
"languageVersion": "3.2"
224+
"languageVersion": "3.3"
225225
},
226226
{
227227
"name": "http_multi_server",
@@ -285,9 +285,15 @@
285285
},
286286
{
287287
"name": "melos",
288-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/melos-3.4.0",
288+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/melos-4.1.0",
289289
"packageUri": "lib/",
290-
"languageVersion": "2.18"
290+
"languageVersion": "3.0"
291+
},
292+
{
293+
"name": "merlin",
294+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/merlin-1.0.3",
295+
"packageUri": "lib/",
296+
"languageVersion": "3.1"
291297
},
292298
{
293299
"name": "merlin",
@@ -309,7 +315,7 @@
309315
},
310316
{
311317
"name": "moment_dart",
312-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/moment_dart-2.1.0",
318+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/moment_dart-2.0.2",
313319
"packageUri": "lib/",
314320
"languageVersion": "2.19"
315321
},
@@ -381,9 +387,9 @@
381387
},
382388
{
383389
"name": "process",
384-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/process-4.2.4",
390+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/process-5.0.2",
385391
"packageUri": "lib/",
386-
"languageVersion": "2.14"
392+
"languageVersion": "3.0"
387393
},
388394
{
389395
"name": "prompts",
@@ -405,7 +411,7 @@
405411
},
406412
{
407413
"name": "pub_updater",
408-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/pub_updater-0.3.1",
414+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/pub_updater-0.4.0",
409415
"packageUri": "lib/",
410416
"languageVersion": "3.0"
411417
},
@@ -627,15 +633,15 @@
627633
},
628634
{
629635
"name": "web",
630-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/web-0.4.2",
636+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/web-0.5.1",
631637
"packageUri": "lib/",
632-
"languageVersion": "3.2"
638+
"languageVersion": "3.3"
633639
},
634640
{
635641
"name": "web_socket_channel",
636-
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/web_socket_channel-2.4.3",
642+
"rootUri": "file:///home/alaa/.pub-cache/hosted/pub.dev/web_socket_channel-2.4.5",
637643
"packageUri": "lib/",
638-
"languageVersion": "3.2"
644+
"languageVersion": "3.3"
639645
},
640646
{
641647
"name": "webkit_inspection_protocol",
@@ -668,8 +674,7 @@
668674
"languageVersion": "3.2"
669675
}
670676
],
671-
"generated": "2024-06-01T17:42:48.645343Z",
677+
"generated": "2024-04-18T09:13:15.973441Z",
672678
"generator": "pub",
673-
"generatorVersion": "3.4.0",
674-
"pubCache": "file:///home/alaa/.pub-cache"
679+
"generatorVersion": "3.3.3"
675680
}

melos.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: tfgrid_sdk_dart_monorepo
22
packages:
33
- ./packages/rmb_client
4+
- packages/**
45
- ./packages/signer
56
- ./packages/tfchain_client
67

packages/tfchain_client/bin/tfchain_client.dart

Lines changed: 4 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -10,136 +10,11 @@ void main() async {
1010
// final queryClient = QueryClient("wss://tfchain.dev.grid.tf/ws");
1111
// await queryClient.connect();
1212

13-
// QueryBalances Module
14-
final signer = Signer();
15-
await signer.fromMnemonic(
16-
'picnic flip cigar rival risk scatter slide aware trust garlic solution token');
17-
final pair = await signer
18-
.keypairFromAddress("5CoYEiMb2ePY4cAW7f18HM7rozePwtQ8Ny5yKx8qYUGWxdgi");
19-
final balance =
20-
await queryClient.balances.get(publicKey: pair.publicKey.bytes);
21-
print(balance!.toJson());
13+
// final twin = await queryClient.twins.get(QueryTwinsGetOptions(id: 214));
2214

23-
print("==================");
24-
25-
// // QueryContracts Module
26-
// final contract =
27-
// await queryClient.contracts.get(contractId: BigInt.from(49130));
28-
// print(contract!.toJson());
29-
30-
// print("==================");
31-
32-
// final contractId =
33-
// await queryClient.contracts.getContractIdByActiveRentForNode(nodeId: 85);
34-
// print(contractId);
35-
36-
// print("==================");
37-
38-
// final activeContracts =
39-
// await queryClient.contracts.getActiveContracts(nodeId: 85);
40-
// print(activeContracts);
41-
42-
// print("==================");
43-
44-
// final id = await queryClient.contracts
45-
// .getContractIdByNodeIdAndHash(nodeId: 11, hash: [
46-
// 53,
47-
// 50,
48-
// 57,
49-
// 102,
50-
// 53,
51-
// 99,
52-
// 50,
53-
// 55,
54-
// 97,
55-
// 50,
56-
// 99,
57-
// 97,
58-
// 51,
59-
// 50,
60-
// 48,
61-
// 49,
62-
// 48,
63-
// 97,
64-
// 98,
65-
// 102,
66-
// 102,
67-
// 102,
68-
// 49,
69-
// 52,
70-
// 100,
71-
// 56,
72-
// 54,
73-
// 51,
74-
// 52,
75-
// 102,
76-
// 53,
77-
// 51
78-
// ]);
79-
// print(id);
80-
81-
// print("==================");
82-
83-
// final contractLock =
84-
// await queryClient.contracts.contractLock(id: BigInt.from(49130));
85-
// print(contractLock!.toJson());
86-
87-
// print("==================");
88-
89-
// // Farms Module
90-
// final farm = await queryClient.farms.get(id: 115);
91-
// print(farm!.toJson());
92-
93-
// print("==================");
94-
95-
// // Nodes Module
96-
// final node = await queryClient.nodes.get(id: 85);
97-
// print(node!.toJson());
98-
99-
// print("==================");
100-
101-
// // Twins Module
102-
// final twin = await queryClient.twins.get(id: 214);
103-
// print(twin!.toJson());
104-
105-
// print("==================");
106-
107-
final twinId = await queryClient.twins.getTwinIdByAccountId(accountId: [
108-
12,
109-
58,
110-
221,
111-
236,
112-
167,
113-
151,
114-
69,
115-
84,
116-
126,
117-
190,
118-
116,
119-
100,
120-
140,
121-
251,
122-
60,
123-
149,
124-
249,
125-
60,
126-
238,
127-
70,
128-
203,
129-
93,
130-
75,
131-
150,
132-
70,
133-
130,
134-
0,
135-
28,
136-
253,
137-
137,
138-
178,
139-
63
140-
]);
141-
142-
print(twinId);
15+
// final twinId = await queryClient.twins.getTwinIdByAccountId(
16+
// QueryTwinsGetTwinByAccountIdOptions(accountId: twin!.accountId));
17+
// print(twinId);
14318

14419
// await queryClient.disconnect();
14520

packages/tfchain_client/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ dependencies:
1212
polkadart_cli: ^0.4.2
1313
hex: ^0.2.0
1414
bip39: ^1.0.6
15-
convert: ^3.1.1
16-
moment_dart: ^2.1.0
15+
moment_dart: ^2.0.2
1716
signer:
1817
path: ../signer
18+
hashlib: ^1.13.1
1919

2020
dev_dependencies:
2121
lints: ^3.0.0

pubspec.lock

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ packages:
229229
dependency: transitive
230230
description:
231231
name: file
232-
sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d"
232+
sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
233233
url: "https://pub.dev"
234234
source: hosted
235-
version: "6.1.4"
235+
version: "7.0.0"
236236
fixnum:
237237
dependency: transitive
238238
description:
@@ -293,10 +293,10 @@ packages:
293293
dependency: transitive
294294
description:
295295
name: http
296-
sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
296+
sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938"
297297
url: "https://pub.dev"
298298
source: hosted
299-
version: "1.2.0"
299+
version: "1.2.1"
300300
http_multi_server:
301301
dependency: transitive
302302
description:
@@ -381,10 +381,10 @@ packages:
381381
dependency: "direct main"
382382
description:
383383
name: melos
384-
sha256: "96e64bbade5712c3f010137e195bca9f1b351fac34ab1f322af492ae34032067"
384+
sha256: "7266e9fc9fee5f4a0c075e5cec375c00736dfc944358f533b740b93b3d8d681e"
385385
url: "https://pub.dev"
386386
source: hosted
387-
version: "3.4.0"
387+
version: "4.1.0"
388388
merlin:
389389
dependency: transitive
390390
description:
@@ -413,10 +413,10 @@ packages:
413413
dependency: transitive
414414
description:
415415
name: moment_dart
416-
sha256: e8683f46ea80dbe47bb0f9f684253630f6a09faa5f626869e1f31bdcf14f6b91
416+
sha256: "252e06594ad7d1f1815c18a9112b76451fcee05743667c0566e24b83a078b91d"
417417
url: "https://pub.dev"
418418
source: hosted
419-
version: "2.1.0"
419+
version: "2.0.2"
420420
mustache_template:
421421
dependency: transitive
422422
description:
@@ -509,10 +509,10 @@ packages:
509509
dependency: transitive
510510
description:
511511
name: process
512-
sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09"
512+
sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32"
513513
url: "https://pub.dev"
514514
source: hosted
515-
version: "4.2.4"
515+
version: "5.0.2"
516516
prompts:
517517
dependency: transitive
518518
description:
@@ -541,10 +541,10 @@ packages:
541541
dependency: transitive
542542
description:
543543
name: pub_updater
544-
sha256: b06600619c8c219065a548f8f7c192b3e080beff95488ed692780f48f69c0625
544+
sha256: "54e8dc865349059ebe7f163d6acce7c89eb958b8047e6d6e80ce93b13d7c9e60"
545545
url: "https://pub.dev"
546546
source: hosted
547-
version: "0.3.1"
547+
version: "0.4.0"
548548
pubspec:
549549
dependency: transitive
550550
description:
@@ -585,13 +585,6 @@ packages:
585585
url: "https://pub.dev"
586586
source: hosted
587587
version: "1.0.2"
588-
rmb_client:
589-
dependency: "direct main"
590-
description:
591-
path: "packages/rmb_client"
592-
relative: true
593-
source: path
594-
version: "1.0.0"
595588
secp256k1_ecdsa:
596589
dependency: transitive
597590
description:
@@ -834,18 +827,18 @@ packages:
834827
dependency: transitive
835828
description:
836829
name: web
837-
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
830+
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
838831
url: "https://pub.dev"
839832
source: hosted
840-
version: "0.4.2"
833+
version: "0.5.1"
841834
web_socket_channel:
842835
dependency: transitive
843836
description:
844837
name: web_socket_channel
845-
sha256: "939ab60734a4f8fa95feacb55804fa278de28bdeef38e616dc08e44a84adea23"
838+
sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42"
846839
url: "https://pub.dev"
847840
source: hosted
848-
version: "2.4.3"
841+
version: "2.4.5"
849842
webkit_inspection_protocol:
850843
dependency: transitive
851844
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ dev_dependencies:
1212

1313
dependencies:
1414
coverage: ^1.7.1
15-
melos: ^3.2.0
16-
signer:
15+
melos: ^4.1.0
16+
signer:
1717
path: ./packages/signer
1818
substrate_bip39: ^0.4.0
1919
tfchain_client:

0 commit comments

Comments
 (0)