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
## What?
This pull request includes several updates and improvements to the `integration-tests/chopsticks` project. The main changes involve updating dependencies, enhancing test cases, and cleaning up the codebase by removing unnecessary console logs and imports.
### Dependency Updates:
* Updated `@acala-network/chopsticks` to version `1.0.3` and `@polkadot-labs/hdkd` to version `0.0.12` in `package.json`.
* Updated `polkadot-api` dependency to version `^1.9.3` in `package.json`.
### Test Case Enhancements:
* Re-enabled previously commented-out test cases for transferring USDC, USDT, and DOT to the Hub in `polimec.test.ts`.
### Code Cleanup:
* Removed unnecessary console logs from various files, including `PolimecManager.ts`, `BaseTransfer.ts`, `BridgeToPolimec.ts`, `HubToPolimec.ts`, `PolimecToHub.ts`, and `PolkadotToPolimec.ts`. [[1]](diffhunk://#diff-17504b68de01739408ba3271f1474bc42e5e8544b68aab412f359b1345b54fa2L77-R78) [[2]](diffhunk://#diff-5dd414351aca9c6251af3425bc64e3032d2da671fd96d6912c104be8e91a2c36L67) [[3]](diffhunk://#diff-d3f932bd8fa0e6df0cbaf55474b048e8008b43a22b2f502d1ea624fd1d0b9b7eL105-L107) [[4]](diffhunk://#diff-1e5c3625dda1821bb7716a768e632713bb3b4bdaeb8105f0e7fb92761aeec0a1R117) [[5]](diffhunk://#diff-a6b4d0706a66eb8e96a37d085dc9a5b248854854c12d437295efddba2ea5908dL49) [[6]](diffhunk://#diff-31316894b2f94a7e3245783d130ae173feb892061bbe6a5fdcacfb445f999004R124-L125)
* Removed unused import `ETH_ADDRESS` from `polimec.ts`, `BridgeToPolimec.ts`, and `PolimecToHub.ts`. [[1]](diffhunk://#diff-b166cb800d57cb015c4fe852e382234955e8733273ff1d7352aa25bf45c81e79L1-R1) [[2]](diffhunk://#diff-d3f932bd8fa0e6df0cbaf55474b048e8008b43a22b2f502d1ea624fd1d0b9b7eL2-R2) [[3]](diffhunk://#diff-a6b4d0706a66eb8e96a37d085dc9a5b248854854c12d437295efddba2ea5908dL2)
### Documentation Update:
* Added prerequisites and usage instructions to the `README.md` file in the `chopsticks` directory.
# XCM Integration Tests: Polkadot API x Chopsticks
2
+
3
+
## Prerequisites
4
+
5
+
-[Bun](https://bun.sh/docs/installation)
6
+
7
+
## Usage
2
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:
21
-
22
-
```bash
23
-
bun run dev
24
-
```
29
+
> [!NOTE]
30
+
> If you need to regenerate the descriptors. You can delete the `.papi` folder and run:
31
+
>```bash
32
+
> bun papi add polimec --wasm ../../target/release/wbuild/polimec-runtime/polimec_runtime.compact.compressed.wasm
33
+
> bun papi add bridge -w wss://sys.ibp.network/bridgehub-polkadot
34
+
> bun papi add pah -w wss://sys.ibp.network/statemint
35
+
> bun papi add polkadot -w wss://rpc.ibp.network/polkadot
36
+
>```
25
37
26
-
To run the tests:
38
+
To run all the tests:
27
39
28
40
```bash
29
41
bun run test
30
42
```
31
43
44
+
To run a specific test case, e.g Polkadot to Polimec:
32
45
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