From 7e136f4f1a8ee7b58c023311d861dd00cca6d160 Mon Sep 17 00:00:00 2001 From: zjb0807 Date: Tue, 19 Sep 2023 16:24:15 +0800 Subject: [PATCH] Update rpc e2e tests --- scripts/rpc-e2e-tests/README.md | 6 +++--- scripts/rpc-e2e-tests/configs/acala.yml | 11 ++++++++--- scripts/rpc-e2e-tests/configs/karura.yml | 15 +++++++++++---- scripts/rpc-e2e-tests/configs/storage.json | 1 + 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/scripts/rpc-e2e-tests/README.md b/scripts/rpc-e2e-tests/README.md index 2c1a5cf7b..9e95d4b61 100644 --- a/scripts/rpc-e2e-tests/README.md +++ b/scripts/rpc-e2e-tests/README.md @@ -2,11 +2,11 @@ ## Setup - start a karura/acala fork ``` -npx @acala-network/chopsticks@latest dev \ +npx @acala-network/chopsticks@latest \ --import-storage=configs/storage.json \ --endpoint=wss://karura-rpc-3.aca-api.network/ws -npx @acala-network/chopsticks@latest dev \ +npx @acala-network/chopsticks@latest \ --import-storage=configs/storage.json \ --endpoint=wss://acala-rpc-3.aca-api.network/ws ``` @@ -14,7 +14,7 @@ npx @acala-network/chopsticks@latest dev \ - do a runtime upgrade to the desired version by `sudo.setCode(newRuntimeWasm)` - start a eth rpc adapter ``` -npx @acala-network/eth-rpc-adapter@2.5.9 -l -e ws://localhost:8000 +npx @acala-network/eth-rpc-adapter@2.7.7 -l -e ws://localhost:8000 ``` ## Run Tests diff --git a/scripts/rpc-e2e-tests/configs/acala.yml b/scripts/rpc-e2e-tests/configs/acala.yml index 85d0587a5..d57f7c5cc 100644 --- a/scripts/rpc-e2e-tests/configs/acala.yml +++ b/scripts/rpc-e2e-tests/configs/acala.yml @@ -9,11 +9,16 @@ import-storage: Key: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY # Alice System: Account: - - - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY - - data: + - + - + - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY + - providers: 1 + data: free: 1000000000000000 Tokens: Accounts: - - - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY + - + - + - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY - token: AUSD - free: 1000000000000000 diff --git a/scripts/rpc-e2e-tests/configs/karura.yml b/scripts/rpc-e2e-tests/configs/karura.yml index 9e98e2e65..cdefd3ffa 100644 --- a/scripts/rpc-e2e-tests/configs/karura.yml +++ b/scripts/rpc-e2e-tests/configs/karura.yml @@ -9,14 +9,21 @@ import-storage: Key: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY # Alice System: Account: - - - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY - - data: + - + - + - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY + - providers: 1 + data: free: 1000000000000000 Tokens: Accounts: - - - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY + - + - + - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY - token: KUSD - free: 1000000000000000 - - - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY + - + - + - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY - token: KSM - free: '10000000000000000000' diff --git a/scripts/rpc-e2e-tests/configs/storage.json b/scripts/rpc-e2e-tests/configs/storage.json index 8054535a2..cf5279ea2 100644 --- a/scripts/rpc-e2e-tests/configs/storage.json +++ b/scripts/rpc-e2e-tests/configs/storage.json @@ -7,6 +7,7 @@ [ ["23Z6s3egDsnShpy9jnTe8gGjnW5bm5iBKhrsGtZMjtSP79D6"], { + "providers": 1, "data": { "free": 1000000000000000 } } ]