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
A simple CLI tool for interacting with the t3rn circuit.
3
+
4
+
### Setup:
5
+
Before interacting with the t3rn circuit, we need to configure a couple of things. The is done in `config/setup.ts`.
6
+
7
+
#### Circuit Section:
8
+
Here we simply specify the circuit WS endpoint we want to interact with
9
+
```
10
+
circuit: {
11
+
rpc: "ws://127.0.0.1:9944",
12
+
},
13
+
```
14
+
15
+
#### Gateway Section:
16
+
Here we specify the different parameters that describe a gateway. This is important for registrations, but also for handling decimal points, address formats etc. in other transactions
17
+
18
+
The `transferData` section must also be noted. Here we can specify default values for the transfer command. Currently, fee and receiver can be specified.
19
+
20
+
21
+
### Supported Transactions:
22
+
A list of the supported transactions.
23
+
24
+
#### Register Gateway:
25
+
Currently, the registration for relaychains is only supported. The registration can be executed by running: `ts-node index.ts register roco`. Note that `roco` matches the gatewayId as specified in the configs.
26
+
27
+
#### setOperational:
28
+
to use a newly registered gateway, it must be set operations. This can be done with: `ts-node index.ts setOperational roco true`
29
+
30
+
#### Transfer:
31
+
A simple transfer, currently only supporting nativ substrate assets.
32
+
33
+
`ts-node index.ts transfer roco 0.1 receiver (optinal) fee (optional)`
34
+
35
+
If the optional parameters are omitted, the default values specified in the config will be used.
0 commit comments