You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/tfchain_client/README.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,26 +32,44 @@ print(farmId);
32
32
await client.disconnect();
33
33
```
34
34
35
+
## Generating Functions
36
+
37
+
To generate functions for the chain, add the following configuration in `pubspec.yaml`:
38
+
39
+
```bash
40
+
polkadart:
41
+
output_dir: lib/generated
42
+
chains:
43
+
dev: chain-url
44
+
```
45
+
46
+
Then run the following command:
47
+
48
+
```bash
49
+
dart run polkadart_cli:generate -v
50
+
```
51
+
35
52
## Run Tests
53
+
36
54
### Prerequisites
37
55
38
56
1- Provide your mnemonic as environment variable.
57
+
39
58
```bash
40
59
export MNEMONIC="your-mnemonic"
41
60
```
61
+
42
62
2- provide chain url and the signing type.
43
63
By default the chain url is set to `wss://tfchain.dev.grid.tf/ws` and the signing type is `sr25519`. Note that signing type can be either `sr25519` or `ed25519`.
0 commit comments