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: integration-tests/chopsticks/README.md
+14-12
Original file line number
Diff line number
Diff line change
@@ -1,37 +1,39 @@
1
1
# chopsticks
2
2
3
+
## Prerequisites
4
+
5
+
-[Bun](https://bun.sh/docs/installation)
6
+
7
+
## Usage
8
+
3
9
To install dependencies:
4
10
5
11
```bash
6
12
bun install
7
13
```
8
14
15
+
To generate the Chains descriptors:
16
+
9
17
```bash
10
18
bun papi
11
19
```
12
20
13
21
> [!NOTE]
14
-
> Sometimes you need to regenerate the Polimec descriptors. To do that, run:
22
+
> If you need to regenerate the Polimec descriptors (e.g. you changed something on the Runtime). You can run:
15
23
>
16
24
> ```bash
25
+
> bun papi
17
26
> bun papi add polimec --wasm ../../target/release/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm
18
27
>```
19
28
20
-
To start the chains:
29
+
To run all the tests:
21
30
22
31
```bash
23
-
bun run dev
32
+
bun run test
24
33
```
25
34
26
-
To run the tests:
35
+
To run a specific test case, e.g Polkadot to Polimec:
27
36
28
37
```bash
29
-
bun run test
38
+
bun run test polkadot
30
39
```
31
-
32
-
33
-
> [!IMPORTANT]
34
-
> TODO: Add:
35
-
> -[ ] Polimec SA on AH: Add ETH balance to it in the Chopstick ovveride
36
-
> -[ ] Polimec to Asset Hub: ETH transfer. This is a "normal" transfer_asset call.
37
-
> -[ ] Polimec to Ethereum: ETH transfer. This is a bit more complex, example extrinsic: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fhydration.ibp.network#/extrinsics/decode/0x6b0d04010100a10f040801000007464a69c7e002020907040300c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200130000e8890423c78a0204010002040816040d01000001010088ca48e3e1d0f1c50bd6b504e1312d21f5bd45ed147e3c30c77eb5e4d63bdc6310010102020907040300c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000201090704081300010300c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20004000d010204000103001501c1413e4178c38567ada8945a80351f7b849600
0 commit comments