Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update deps #139

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions networks/acala.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export type Vars = {
export default {
polkadot: {
name: 'acala' as const,
endpoint: 'wss://acala-rpc-0.aca-api.network',
endpoint: 'wss://acala-rpc.aca-api.network',
relayToken: 'DOT',
relayLiquidToken: 'LDOT',
stableToken: 'AUSD',
},
kusama: {
name: 'karura' as const,
endpoint: 'wss://karura-rpc-0.aca-api.network',
endpoint: 'wss://karura-rpc.aca-api.network',
relayToken: 'KSM',
relayLiquidToken: 'LKSM',
stableToken: 'KUSD',
Expand Down
3 changes: 3 additions & 0 deletions networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@ for (const def of Object.values(networkDefs)) {
...ctx,
})

const runtimeLogLevel = process.env.RUNTIME_LOG_LEVEL ? +process.env.RUNTIME_LOG_LEVEL : 0

const finalOptions: SetupOption = {
timeout: 600000,
wasmOverride: process.env[`${upperName}_WASM`],
blockNumber: toNumber(process.env[`${upperName}_BLOCK_NUMBER`]),
endpoint: process.env[`${upperName}_ENDPOINT`] ?? endpoint,
db: process.env.DB_PATH,
runtimeLogLevel,
...setupConfig.options,
...options,
}
Expand Down
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,30 @@
"@polkadot/api": "^10.9.1"
},
"dependencies": {
"@acala-network/chopsticks": "^0.8.5-2",
"@acala-network/chopsticks-testing": "^0.8.5-2",
"@acala-network/chopsticks": "^0.9.2-4",
"@acala-network/chopsticks-testing": "^0.9.2-4",
"@acala-network/sdk": "^4.1.9-10",
"@acala-network/sdk-core": "^4.1.9-10",
"@polkadot/api": "^10.10.1",
"@polkawallet/bridge": "^0.1.5-16",
"@polkawallet/bridge": "^0.1.5-19",
"dotenv": "^16.3.1",
"typescript": "^5.2.2",
"vitest": "^0.34.4"
"vitest": "^0.34.6"
},
"devDependencies": {
"@types/node": "^20.6.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.0",
"@vitest/ui": "^0.34.4",
"eslint": "^8.50.0",
"@types/lodash": "^4",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vitest/ui": "^0.34.6",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"lint-staged": "^15.0.2",
"lodash": "^4.17.21",
"prettier": "^3.0.3",
"ts-node": "^10.9.1"
},
Expand Down
6 changes: 3 additions & 3 deletions tests/acala/__snapshots__/homa.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ exports[`'karura' homa > with latest block > Homa redeem unbond works > events 2
"eraIndexWhenUnbond": 100,
"liquidAmount": 1000000000000,
"redeemer": "rPizfonc8MPuEsMxufAytHjpRW7a2YrXWHKibaJXe9ZtjKx",
"unbondingStakingAmount": "(rounded 140000000000)",
"unbondingStakingAmount": "(rounded 150000000000)",
},
"method": "RedeemedByUnbond",
"section": "homa",
Expand All @@ -436,7 +436,7 @@ exports[`'karura' homa > with latest block > Homa redeem unbond works > system e
[
{
"data": {
"amount": "(rounded 140000000000)",
"amount": "(rounded 150000000000)",
"stash": "(address)",
},
"method": "Unbonded",
Expand All @@ -452,7 +452,7 @@ exports[`'karura' homa > with latest block > Homa redeem unbond works > system e
},
"success": true,
"weightUsed": {
"proofSize": "(rounded 59000)",
"proofSize": "(rounded 66000)",
"refTime": "(rounded 16000000000)",
},
},
Expand Down
Loading
Loading