diff --git a/packages/sdk/package.json b/packages/sdk/package.json index bbf5ec390..0320a2b17 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -18,8 +18,7 @@ "lint": "eslint '{src,integration}/**/*.ts'", "lint:fix": "yarn run lint --fix", "run:nodes": "docker-compose -f docker-compose.yml up", - "clean": "rm -rf ./dist", - "runOracle": "ts-node ./src/fee/feeOracleScript.ts" + "clean": "rm -rf ./dist" }, "keywords": [ "sygma", @@ -38,7 +37,6 @@ "eslint-config-prettier": "8.3.0", "eslint-plugin-only-warn": "1.0.3", "eslint-plugin-prettier": "4.0.0", - "ethers": "5.6.2", "hardhat": "2.8.2", "jest": "27.5.1", "jest-extended": "1.2.0", @@ -52,9 +50,8 @@ "dependencies": { "@buildwithsygma/sygma-contracts": "1.0.0", "eth-crypto": "2.3.0", - "ganache": "^7.1.0", "node-fetch": "2.6.1", "react-hook-form": "^7.30.0", - "web3": "^1.7.3" + "ethers": "5.6.2" } } diff --git a/packages/sdk/src/Sygma.ts b/packages/sdk/src/Sygma.ts index 487f4fa68..83c9d259f 100644 --- a/packages/sdk/src/Sygma.ts +++ b/packages/sdk/src/Sygma.ts @@ -5,6 +5,7 @@ import { ERC721MinterBurnerPauser, ERC721MinterBurnerPauser__factory as Erc721Factory, } from '@buildwithsygma/sygma-contracts'; +import { DepositEvent } from '@buildwithsygma/sygma-contracts/dist/ethers/Bridge'; import { Erc20DetailedFactory } from './Contracts/Erc20DetailedFactory'; import { Erc20Detailed } from './Contracts/Erc20Detailed'; @@ -706,7 +707,9 @@ export class Sygma implements SygmaSDK { ); } - public async getDepositEventFromReceipt(depositTx: ethers.ContractReceipt): Promise { + public async getDepositEventFromReceipt( + depositTx: ethers.ContractReceipt, + ): Promise { const bridgeContract = this.bridges!.chain1!; const depositFilter = bridgeContract.filters.Deposit(); const events = await bridgeContract.queryFilter(depositFilter, depositTx.blockHash);