From e8ac76c85bbff5d29a045c1a460981c7af2272f7 Mon Sep 17 00:00:00 2001 From: preethamr Date: Tue, 9 Jul 2024 17:44:43 -0700 Subject: [PATCH] fix: errors --- packages/agents/lighthouse/package.json | 2 +- .../tasks/processFromRoot/helpers/linea.ts | 2 +- .../src/tasks/propagate/helpers/linea.ts | 2 +- packages/utils/package.json | 2 +- yarn.lock | 103 +----------------- 5 files changed, 10 insertions(+), 101 deletions(-) diff --git a/packages/agents/lighthouse/package.json b/packages/agents/lighthouse/package.json index d6b498f047..3789e12304 100644 --- a/packages/agents/lighthouse/package.json +++ b/packages/agents/lighthouse/package.json @@ -34,7 +34,7 @@ "@connext/nxtp-txservice": "workspace:*", "@connext/nxtp-utils": "workspace:*", "@connext/smart-contracts": "workspace:*", - "@consensys/linea-sdk": "0.1.6", + "@consensys/linea-sdk": "0.3.0", "@eth-optimism/sdk": "3.3.2", "@mantleio/sdk": "1.0.0", "@sinclair/typebox": "0.25.21", diff --git a/packages/agents/lighthouse/src/tasks/processFromRoot/helpers/linea.ts b/packages/agents/lighthouse/src/tasks/processFromRoot/helpers/linea.ts index 5d1028225a..e1a9a89079 100644 --- a/packages/agents/lighthouse/src/tasks/processFromRoot/helpers/linea.ts +++ b/packages/agents/lighthouse/src/tasks/processFromRoot/helpers/linea.ts @@ -50,7 +50,7 @@ export const getProcessFromLineaRootArgs = async ({ messageStatus, }); } else if (messageStatus === "CLAIMABLE") { - return [messages[0].calldata, messages[0].messageNonce]; + return [messages[0].calldata, BigNumber.from(messages[0].messageNonce)]; } else { throw new NoRootAvailable(spokeChainId, hubChainId, requestContext, methodContext, { error: `Linea Unknown message status`, diff --git a/packages/agents/lighthouse/src/tasks/propagate/helpers/linea.ts b/packages/agents/lighthouse/src/tasks/propagate/helpers/linea.ts index 56960ea547..768314b2db 100644 --- a/packages/agents/lighthouse/src/tasks/propagate/helpers/linea.ts +++ b/packages/agents/lighthouse/src/tasks/propagate/helpers/linea.ts @@ -45,7 +45,7 @@ export const getPropagateParams = async ( const gasLimit = BigNumber.from("120000"); const margin = BigNumber.from(1); - const _fee = gasPrice.mul(gasLimit).mul(margin).toString(); + const _fee = BigNumber.from(gasPrice).mul(gasLimit).mul(margin).toString(); logger.info("Got propagate params for Linea", requestContext, methodContext, { gasPrice: gasPrice.toString(), diff --git a/packages/utils/package.json b/packages/utils/package.json index 3a817bf4c9..67542b86ce 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -22,7 +22,7 @@ "src/**/*" ], "dependencies": { - "@maticnetwork/maticjs": "3.6.6", + "@maticnetwork/maticjs": "3.8.2", "@maticnetwork/maticjs-web3": "1.0.4", "@sinclair/typebox": "0.25.21", "ajv": "8.12.0", diff --git a/yarn.lock b/yarn.lock index 244c656a69..640de27ca7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2442,7 +2442,7 @@ __metadata: "@connext/nxtp-txservice": "workspace:*" "@connext/nxtp-utils": "workspace:*" "@connext/smart-contracts": "workspace:*" - "@consensys/linea-sdk": 0.1.6 + "@consensys/linea-sdk": 0.3.0 "@eth-optimism/sdk": 3.3.2 "@graphql-codegen/cli": 3.0.0 "@mantleio/sdk": 1.0.0 @@ -3004,27 +3004,6 @@ __metadata: languageName: unknown linkType: soft -"@consensys/linea-sdk@npm:0.1.6": - version: 0.1.6 - resolution: "@consensys/linea-sdk@npm:0.1.6" - dependencies: - "@enzoferey/ethers-error-parser": ^0.2.3 - "@ethersproject/address": ^5.7.0 - "@ethersproject/contracts": ^5.7.0 - "@ethersproject/providers": ^5.7.2 - better-sqlite3: ^8.4.0 - class-validator: ^0.14.0 - dotenv: ^16.1.4 - ethers: ^5.7.2 - pg: ^8.11.0 - reflect-metadata: ^0.1.13 - typeorm: ^0.3.16 - typeorm-naming-strategies: ^4.1.0 - winston: ^3.9.0 - checksum: 545bbe2cd2fff6aeb06c04fd6210fdd09da7d1f4c7e7bf11cdaea2b437473c157fe25922239c31a3efc54803a858f88eea390833184ab094d10c01b0b92725a5 - languageName: node - linkType: hard - "@consensys/linea-sdk@npm:0.3.0": version: 0.3.0 resolution: "@consensys/linea-sdk@npm:0.3.0" @@ -3421,15 +3400,6 @@ __metadata: languageName: node linkType: hard -"@enzoferey/ethers-error-parser@npm:^0.2.3": - version: 0.2.3 - resolution: "@enzoferey/ethers-error-parser@npm:0.2.3" - peerDependencies: - ethers: ^5.7.0 - checksum: cae3e284da043b61ce78a3a7a30bc76d6b2096e1e0dd13b793b821d6c4e82e1ce29b368ec679bb7adb55e3d4aaa65309ebd0a9671784ee83b0d1b2c1e7af3fd7 - languageName: node - linkType: hard - "@eslint-community/eslint-utils@npm:^4.2.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0" @@ -11829,17 +11799,6 @@ __metadata: languageName: node linkType: hard -"better-sqlite3@npm:^8.4.0": - version: 8.7.0 - resolution: "better-sqlite3@npm:8.7.0" - dependencies: - bindings: ^1.5.0 - node-gyp: latest - prebuild-install: ^7.1.1 - checksum: f1fa38a9a0e4fcd59ececb67c60371b9638d29c19ce9af034421e8a56c9a77e799bb1411b1c3cb08bb9678e15dfb8985553a9ef4098cf5558e7207a3e019f211 - languageName: node - linkType: hard - "better-sqlite3@npm:^9.4.3": version: 9.6.0 resolution: "better-sqlite3@npm:9.6.0" @@ -13257,7 +13216,7 @@ __metadata: languageName: node linkType: hard -"class-validator@npm:^0.14.0, class-validator@npm:^0.14.1": +"class-validator@npm:^0.14.1": version: 0.14.1 resolution: "class-validator@npm:0.14.1" dependencies: @@ -15207,7 +15166,7 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:^16.0.0, dotenv@npm:^16.0.3, dotenv@npm:^16.1.4, dotenv@npm:^16.4.5": +"dotenv@npm:^16.0.0, dotenv@npm:^16.0.3, dotenv@npm:^16.4.5": version: 16.4.5 resolution: "dotenv@npm:16.4.5" checksum: 301a12c3d44fd49888b74eb9ccf9f07a1f5df43f489e7fcb89647a2edcd84c42d6bc349dc8df099cd18f07c35c7b04685c1a4f3e6a6a9e6b30f8d48c15b7f49c @@ -25678,7 +25637,7 @@ __metadata: languageName: node linkType: hard -"pg-connection-string@npm:^2.5.0, pg-connection-string@npm:^2.6.2": +"pg-connection-string@npm:^2.5.0": version: 2.6.2 resolution: "pg-connection-string@npm:2.6.2" checksum: 22265882c3b6f2320785378d0760b051294a684989163d5a1cde4009e64e84448d7bf67d9a7b9e7f69440c3ee9e2212f9aa10dd17ad6773f6143c6020cebbcb5 @@ -25699,7 +25658,7 @@ __metadata: languageName: node linkType: hard -"pg-pool@npm:^3.5.2, pg-pool@npm:^3.6.1": +"pg-pool@npm:^3.5.2": version: 3.6.1 resolution: "pg-pool@npm:3.6.1" peerDependencies: @@ -25764,30 +25723,6 @@ __metadata: languageName: node linkType: hard -"pg@npm:^8.11.0": - version: 8.11.3 - resolution: "pg@npm:8.11.3" - dependencies: - buffer-writer: 2.0.0 - packet-reader: 1.0.0 - pg-cloudflare: ^1.1.1 - pg-connection-string: ^2.6.2 - pg-pool: ^3.6.1 - pg-protocol: ^1.6.0 - pg-types: ^2.1.0 - pgpass: 1.x - peerDependencies: - pg-native: ">=3.0.1" - dependenciesMeta: - pg-cloudflare: - optional: true - peerDependenciesMeta: - pg-native: - optional: true - checksum: 8af9468b8969fa0d73a6b349216c8cbc953d938fcae5594f2d24043060e9226a072c8085fc4230172b5576fcab4c39c8563c655f271dc2a9209b6ad5370cafe5 - languageName: node - linkType: hard - "pg@npm:^8.11.3": version: 8.12.0 resolution: "pg@npm:8.12.0" @@ -27271,13 +27206,6 @@ __metadata: languageName: node linkType: hard -"reflect-metadata@npm:^0.1.13": - version: 0.1.14 - resolution: "reflect-metadata@npm:0.1.14" - checksum: 155ad339319cec3c2d9d84719f730f8b6a6cd2a074733ec29dbae6c89d48a2914c7d07a2350212594f3aae160fa4da4f903e6512f27ceaf968443a7c692bcad0 - languageName: node - linkType: hard - "reflect-metadata@npm:^0.2.1": version: 0.2.1 resolution: "reflect-metadata@npm:0.2.1" @@ -31107,7 +31035,7 @@ __metadata: languageName: node linkType: hard -"typeorm@npm:^0.3.16, typeorm@npm:^0.3.20": +"typeorm@npm:^0.3.20": version: 0.3.20 resolution: "typeorm@npm:0.3.20" dependencies: @@ -33389,25 +33317,6 @@ __metadata: languageName: node linkType: hard -"winston@npm:^3.9.0": - version: 3.12.0 - resolution: "winston@npm:3.12.0" - dependencies: - "@colors/colors": ^1.6.0 - "@dabh/diagnostics": ^2.0.2 - async: ^3.2.3 - is-stream: ^2.0.0 - logform: ^2.4.0 - one-time: ^1.0.0 - readable-stream: ^3.4.0 - safe-stable-stringify: ^2.3.1 - stack-trace: 0.0.x - triple-beam: ^1.3.0 - winston-transport: ^4.7.0 - checksum: 7549e90d471312f3678c86fc51c86da05717be0390ecc0dc1a312a57f4ab3eb22e4fae1829291a05334376db8caa5f118d1de019d8c67e5f031ed70678363703 - languageName: node - linkType: hard - "word-wrap@npm:~1.2.3": version: 1.2.5 resolution: "word-wrap@npm:1.2.5"