Skip to content

Commit a010701

Browse files
authored
Runtime 2310 (#1072)
* fix ci * runtime 2310 * update * update * fix * fix * fix * fix * fix * fix * fix * update wasm * update docker compose * fix * update * update
1 parent 6d4f823 commit a010701

File tree

17 files changed

+392
-273
lines changed

17 files changed

+392
-273
lines changed

chopsticks/configs/acala.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
endpoint: wss://acala-rpc.dwellir.com
1+
endpoint: wss://acala-rpc.n.dwellir.com
22
mock-signature-host: true
33
runtime-log-level: 5
44
# block: 7000000
5-
wasm-override: ./chopsticks/wasm/acala-2290.wasm
5+
wasm-override: ./chopsticks/wasm/acala-2310.wasm
66

77
import-storage:
88
Sudo:
@@ -15,12 +15,24 @@ import-storage:
1515
- providers: 1
1616
data:
1717
free: 1000000000000000
18+
-
19+
-
20+
- 5GNJqTPyNqANBkUVMN1LPPrxXnFouWXoe2wNSmmEoLctxiZY
21+
- providers: 1
22+
data:
23+
free: 1000000000000000
1824
-
1925
-
2026
- 246gNkjCexYRsCpdjtVhz35sHjcb21jpqipzT9u4uwKV8iEE
2127
- providers: 1
2228
data:
2329
free: 1000000000000000
30+
-
31+
-
32+
- 5HpG9w8EBLe5XCrbczpwq5TSXvedjrBGCwqxK1iQ7qUsSWFc
33+
- providers: 1
34+
data:
35+
free: 1000000000000000
2436
-
2537
-
2638
- 249LSvsEyxS4VpEJGg62yhYA7sHy1KcgGW6KzACBCLW1RsZF

chopsticks/wasm/acala-2310.wasm

1.97 MB
Binary file not shown.

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
node:
53
container_name: node
@@ -11,7 +9,7 @@ services:
119
# TODO: cache does not seem to work
1210
# - ~/.bun/install/cache:/root/.bun/install/cache
1311
command:
14-
bunx @acala-network/chopsticks@0.15.0 -c /app/chopsticks/configs/acala.yml -p 9944
12+
bunx @acala-network/chopsticks@latest -c /app/chopsticks/configs/acala.yml -p 9944
1513
ports:
1614
- 9944:9944
1715
healthcheck:

e2e-tests/e2e-hardhat/test/token.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ describe('Token contract', () => {
121121

122122
const initialBalance = await token.balanceOf(userAddress);
123123

124+
const transfer = await deployer.sendTransaction({
125+
to: userAddress,
126+
value: ethers.parseEther('1.0'), // 1 ETH
127+
});
128+
await transfer.wait();
129+
const userBalance = await ethers.provider.getBalance(userAddress);
130+
console.log(`initialBalance: ${initialBalance}, userBalance: ${userBalance}`);
131+
124132
const tx = await token.connect(user).transferFrom(deployerAddress, userAddress, 50);
125133
await tx.wait();
126134

packages/bodhi/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test:coverage": "vitest --run --coverage"
1212
},
1313
"peerDependencies": {
14-
"@polkadot/api": "^14.3.1"
14+
"@polkadot/api": "^16.4.8"
1515
},
1616
"dependencies": {
1717
"@acala-network/eth-providers": "workspace:*",

packages/bodhi/src/utils.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,19 @@ export const getTestUtils = async (
4343

4444
const wallets: BodhiSigner[] = [];
4545
for (const pair of pairs) {
46-
const wallet = BodhiSigner.fromPair(provider, pair);
46+
try {
47+
const wallet = BodhiSigner.fromPair(provider, pair);
4748

48-
const isClaimed = await wallet.isClaimed();
49-
if (!isClaimed && claimDefault) {
50-
await wallet.claimDefaultAccount();
51-
}
49+
const isClaimed = await wallet.isClaimed();
50+
if (!isClaimed && claimDefault) {
51+
await wallet.claimDefaultAccount();
52+
}
5253

53-
wallets.push(wallet);
54+
wallets.push(wallet);
55+
} catch (error) {
56+
console.error('Error processing pair:', error);
57+
throw error;
58+
}
5459
}
5560

5661
return {

packages/eth-providers/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"test:coverage": "yarn test --run --coverage"
1212
},
1313
"peerDependencies": {
14-
"@acala-network/api": "~6.2.0",
15-
"@polkadot/api": "^14.3.1"
14+
"@acala-network/api": "~6.3.0",
15+
"@polkadot/api": "^16.4.8"
1616
},
1717
"dependencies": {
1818
"@acala-network/contracts": "4.3.4",
@@ -24,8 +24,8 @@
2424
"lru-cache": "~7.8.2"
2525
},
2626
"devDependencies": {
27-
"@acala-network/api": "~6.2.0",
28-
"@polkadot/api": "^14.3.1",
27+
"@acala-network/api": "~6.3.0",
28+
"@polkadot/api": "^16.4.8",
2929
"@types/bn.js": "^5.1.5",
3030
"@types/lru-cache": "~7.6.1",
3131
"dotenv": "~10.0.0",

packages/eth-providers/src/__tests__/evm-rpc-provider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { sleep } from '../utils';
66

77
dotenv.config();
88

9-
const ACALA_NODE_URL = 'wss://acala-rpc.dwellir.com';
9+
const ACALA_NODE_URL = 'wss://acala-rpc.n.dwellir.com';
1010
const ACALA_SUBQL = 'https://subql-query-acala.aca-api.network';
1111
const endpoint = process.env.ENDPOINT_URL || 'ws://127.0.0.1:9944';
1212

packages/eth-providers/src/__tests__/parseBlock.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe.concurrent('getAllReceiptsAtBlock', () => {
4848
beforeAll(async () => {
4949
console.log('connecting to node...');
5050
const KARURA_NODE_URL = 'wss://karura-rpc.aca-api.network';
51-
const ACALA_NODE_URL = 'wss://acala-rpc.dwellir.com';
51+
const ACALA_NODE_URL = 'wss://acala-rpc.n.dwellir.com';
5252

5353
apiK = new ApiPromise(
5454
options({

packages/eth-providers/src/__tests__/provider-cache.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { runWithTiming } from '../utils';
77

88
dotenv.config();
99

10-
const ACALA_NODE_URL = 'wss://acala-rpc.dwellir.com';
10+
const ACALA_NODE_URL = 'wss://acala-rpc.n.dwellir.com';
1111

1212
describe.concurrent('provider cache', async () => {
1313
let provider: EvmRpcProvider;

0 commit comments

Comments
 (0)