Skip to content

Commit

Permalink
fix: errors
Browse files Browse the repository at this point in the history
  • Loading branch information
preethamr committed Jul 10, 2024
1 parent 6fa95bf commit e8ac76c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 101 deletions.
2 changes: 1 addition & 1 deletion packages/agents/lighthouse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
103 changes: 6 additions & 97 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit e8ac76c

Please sign in to comment.