diff --git a/web/packages/api/package.json b/web/packages/api/package.json index bb122b1ea9..35945790b6 100644 --- a/web/packages/api/package.json +++ b/web/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@snowbridge/api", - "version": "0.1.22", + "version": "0.1.23", "description": "Snowbridge API client", "license": "Apache-2.0", "repository": { @@ -34,7 +34,7 @@ "@polkadot/util-crypto": "^12.6.2", "@snowbridge/contract-types": "workspace:*", "@typechain/ethers-v6": "^0.5.1", - "ethers": "^6.13.1", + "ethers": "^6.13.3", "rxjs": "^7.8.1" } } diff --git a/web/packages/api/src/subscan.ts b/web/packages/api/src/subscan.ts index d57d247451..30a708a551 100644 --- a/web/packages/api/src/subscan.ts +++ b/web/packages/api/src/subscan.ts @@ -152,6 +152,11 @@ export const fetchEvents = async ( } for (const { event_index, params } of paramsResponse.json.data) { + if (params === undefined) { + console.warn("Event does not have any params", event_index) + continue; + } + const event = map.get(event_index) const transform = await filterMap(event, params) if (transform === null) { diff --git a/web/packages/contract-types/package.json b/web/packages/contract-types/package.json index d85d50afce..f56a922d2c 100644 --- a/web/packages/contract-types/package.json +++ b/web/packages/contract-types/package.json @@ -1,6 +1,6 @@ { "name": "@snowbridge/contract-types", - "version": "0.1.22", + "version": "0.1.23", "description": "Snowbridge contract type bindings", "license": "Apache-2.0", "repository": { @@ -22,6 +22,6 @@ "typescript": "^5.4.5" }, "dependencies": { - "ethers": "^6.13.1" + "ethers": "^6.13.3" } } diff --git a/web/packages/contracts/package.json b/web/packages/contracts/package.json index 64bd99566c..f27a264d84 100644 --- a/web/packages/contracts/package.json +++ b/web/packages/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@snowbridge/contracts", - "version": "0.1.22", + "version": "0.1.23", "description": "Snowbridge contract source and abi.", "license": "Apache-2.0", "repository": { diff --git a/web/packages/operations/package.json b/web/packages/operations/package.json index 124b588eb6..81a2e830e4 100644 --- a/web/packages/operations/package.json +++ b/web/packages/operations/package.json @@ -54,7 +54,7 @@ "axios": "^1.6.8", "bitfield": "^4.2.0", "dotenv": "^16.4.5", - "ethers": "^6.13.1", + "ethers": "^6.13.3", "fastify": "^4.27.0", "keccak": "^3.0.4", "lodash": "^4.17.21", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index f0999d0454..857c8b5563 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -46,10 +46,10 @@ importers: version: link:../contract-types '@typechain/ethers-v6': specifier: ^0.5.1 - version: 0.5.1(ethers@6.13.2)(typechain@8.3.2(typescript@5.5.4))(typescript@5.5.4) + version: 0.5.1(ethers@6.13.3)(typechain@8.3.2(typescript@5.5.4))(typescript@5.5.4) ethers: - specifier: ^6.13.1 - version: 6.13.2 + specifier: ^6.13.3 + version: 6.13.3 rxjs: specifier: ^7.8.1 version: 7.8.1 @@ -85,12 +85,12 @@ importers: packages/contract-types: dependencies: ethers: - specifier: ^6.13.1 - version: 6.13.2 + specifier: ^6.13.3 + version: 6.13.3 devDependencies: '@typechain/ethers-v6': specifier: ^0.5.1 - version: 0.5.1(ethers@6.13.2)(typechain@8.3.2(typescript@5.5.4))(typescript@5.5.4) + version: 0.5.1(ethers@6.13.3)(typechain@8.3.2(typescript@5.5.4))(typescript@5.5.4) '@types/node': specifier: ^18.19.31 version: 18.19.45 @@ -104,8 +104,6 @@ importers: specifier: ^5.4.5 version: 5.5.4 - packages/contracts: {} - packages/operations: dependencies: '@aws-sdk/client-cloudwatch': @@ -178,8 +176,8 @@ importers: specifier: ^16.4.5 version: 16.4.5 ethers: - specifier: ^6.13.1 - version: 6.13.2 + specifier: ^6.13.3 + version: 6.13.3 fastify: specifier: ^4.27.0 version: 4.28.1 @@ -2324,8 +2322,8 @@ packages: ethers@5.7.2: resolution: {integrity: sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==} - ethers@6.13.2: - resolution: {integrity: sha512-9VkriTTed+/27BGuY1s0hf441kqwHJ1wtN2edksEtiRvXx+soxRX3iSXTfFqq2+YwrOqbDoTHjIhQnjJRlzKmg==} + ethers@6.13.3: + resolution: {integrity: sha512-/DzbZOLVtoO4fKvvQwpEucHAQgIwBGWuRvBdwE/lMXgXvvHHTSkn7XqAQ2b+gjJzZDJjWA9OD05bVceVOsBHbg==} engines: {node: '>=14.0.0'} ethjs-unit@0.1.6: @@ -6601,9 +6599,9 @@ snapshots: typechain: 8.3.2(typescript@5.5.4) typescript: 5.5.4 - '@typechain/ethers-v6@0.5.1(ethers@6.13.2)(typechain@8.3.2(typescript@5.5.4))(typescript@5.5.4)': + '@typechain/ethers-v6@0.5.1(ethers@6.13.3)(typechain@8.3.2(typescript@5.5.4))(typescript@5.5.4)': dependencies: - ethers: 6.13.2 + ethers: 6.13.3 lodash: 4.17.21 ts-essentials: 7.0.3(typescript@5.5.4) typechain: 8.3.2(typescript@5.5.4) @@ -7649,7 +7647,7 @@ snapshots: - bufferutil - utf-8-validate - ethers@6.13.2: + ethers@6.13.3: dependencies: '@adraffy/ens-normalize': 1.10.1 '@noble/curves': 1.2.0