Skip to content

Commit

Permalink
fix: Check/update dependencies for packages (#138)
Browse files Browse the repository at this point in the history
* changed Event to DepositEvent

* fix dependencies
  • Loading branch information
enemycnt committed Jan 16, 2023
1 parent b5165d4 commit b4875e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"
}
}
5 changes: 4 additions & 1 deletion packages/sdk/src/Sygma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -719,7 +720,9 @@ export class Sygma implements SygmaSDK {
);
}

public async getDepositEventFromReceipt(depositTx: ethers.ContractReceipt): Promise<Event> {
public async getDepositEventFromReceipt(
depositTx: ethers.ContractReceipt,
): Promise<DepositEvent> {
const bridgeContract = this.bridges!.chain1!;
const depositFilter = bridgeContract.filters.Deposit();
const events = await bridgeContract.queryFilter(depositFilter, depositTx.blockHash);
Expand Down

0 comments on commit b4875e8

Please sign in to comment.