diff --git a/packages/dodoex-api/package.json b/packages/dodoex-api/package.json index 15e28922..e19d0173 100644 --- a/packages/dodoex-api/package.json +++ b/packages/dodoex-api/package.json @@ -51,10 +51,14 @@ ] }, "peerDependencies": { - "lodash": ">=4", - "bignumber.js": ">=9" + "bignumber.js": ">=9", + "lodash": ">=4" }, "dependencies": { + "@ethersproject/abi": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/providers": "^5.7.2", + "@ethersproject/web": "^5.7.1", "cross-fetch": "^4.0.0", "graphql": "^16.8.1", "graphql-request": "^6.1.0", @@ -89,10 +93,10 @@ "jest-environment-jsdom": "^29.0.3", "np": "^7.6.1", "rollup": "^4.18.0", - "rollup-plugin-typescript2": "^0.36.0", "rollup-plugin-dynamic-import-variables": "^1.1.0", + "rollup-plugin-typescript2": "^0.36.0", "svg-jest": "^1.0.1", "ts-jest": "^29.0.1", "typescript": "^5.6.3" } -} \ No newline at end of file +} diff --git a/packages/dodoex-api/src/helper/ContractRequests/batchProvider.ts b/packages/dodoex-api/src/helper/ContractRequests/batchProvider.ts index 353ee3a5..f65bb257 100644 --- a/packages/dodoex-api/src/helper/ContractRequests/batchProvider.ts +++ b/packages/dodoex-api/src/helper/ContractRequests/batchProvider.ts @@ -43,7 +43,7 @@ const time = 10; const maxCallCount = 800; export class BatchProvider extends StaticJsonRpcProvider { - _pendingBatchAggregator: NodeJS.Timer | null = null; + _pendingBatchAggregator: any | null = null; _pendingBatch: Array<{ request: { method: string; diff --git a/yarn.lock b/yarn.lock index bdf0fcae..4dc0a784 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2214,7 +2214,7 @@ resolved "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz" integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q== -"@ethersproject/abi@5.7.0", "@ethersproject/abi@>=5", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.7.0": +"@ethersproject/abi@5.7.0", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.7.0": version "5.7.0" resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz" integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== @@ -2405,9 +2405,9 @@ dependencies: "@ethersproject/logger" "^5.7.0" -"@ethersproject/providers@5.7.2", "@ethersproject/providers@>=5", "@ethersproject/providers@^5": +"@ethersproject/providers@5.7.2", "@ethersproject/providers@^5", "@ethersproject/providers@^5.7.2": version "5.7.2" - resolved "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.2.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/providers/-/providers-5.7.2.tgz#f8b1a4f275d7ce58cf0a2eec222269a08beb18cb" integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg== dependencies: "@ethersproject/abstract-provider" "^5.7.0" @@ -2534,9 +2534,9 @@ "@ethersproject/transactions" "^5.7.0" "@ethersproject/wordlists" "^5.7.0" -"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0": +"@ethersproject/web@5.7.1", "@ethersproject/web@^5.7.0", "@ethersproject/web@^5.7.1": version "5.7.1" - resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz" + resolved "https://registry.yarnpkg.com/@ethersproject/web/-/web-5.7.1.tgz#de1f285b373149bee5928f4eb7bcb87ee5fbb4ae" integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== dependencies: "@ethersproject/base64" "^5.7.0"