Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Check/update dependencies for packages #138

Merged
merged 2 commits into from
Jan 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -706,7 +707,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