From 09b463d6086add080e0a0bfc1c879df321194f21 Mon Sep 17 00:00:00 2001 From: Alexey Churkin Date: Fri, 1 Nov 2024 17:37:07 +0100 Subject: [PATCH 1/3] Use chainId getter to avoid errors after hh.reset() --- src/functions.ts | 13 +++---------- test/project.test.ts | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/functions.ts b/src/functions.ts index 980051c..16c8f2d 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -145,16 +145,9 @@ export function makeDeployGate( await deBridgeGate.setSignatureVerifier(signatureVerifierMock.address); // setup chain support (loopback) - await deBridgeGate.setChainSupport( - hre.ethers.provider.network.chainId, - true, - false - ); - await deBridgeGate.setChainSupport( - hre.ethers.provider.network.chainId, - true, - true - ); + const chainId = await hre.ethers.provider.send("eth_chainId", []); + await deBridgeGate.setChainSupport(chainId, true, false); + await deBridgeGate.setChainSupport(chainId, true, true); // setup global fee // For emulation purposes, we pick a random value from a range so that diff --git a/test/project.test.ts b/test/project.test.ts index 633860e..a3f893c 100644 --- a/test/project.test.ts +++ b/test/project.test.ts @@ -98,7 +98,7 @@ describe("Check emulator functions", function () { expect(lastCall.contract).to.eq("DeBridgeGate"); expect(lastCall.sourceName).to.match( new RegExp( - "https://github.com/debridge-finance/debridge-contracts-v1/blob/[a-z0-9\.]+/contracts/transfers/DeBridgeGate.sol" + "https://github.com/debridge-finance/debridge-contracts-v1/blob/[a-z0-9\\.]+/contracts/transfers/DeBridgeGate.sol" ) ); } From 02d542228ea7b35feba238dd6c7613b3aba28c7b Mon Sep 17 00:00:00 2001 From: Alexey Churkin Date: Fri, 1 Nov 2024 17:38:43 +0100 Subject: [PATCH 2/3] Github Action --- .github/workflows/pipeline.yml | 22 ++++++++++++++++++++++ package.json | 7 +++---- 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml new file mode 100644 index 0000000..2872ccd --- /dev/null +++ b/.github/workflows/pipeline.yml @@ -0,0 +1,22 @@ +name: Lint and tests +on: [push] + +jobs: + build: + name: Test + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + registry-url: 'https://registry.npmjs.org' + cache: 'npm' + - run: npm ci + - run: npm run build + + - name: Linter + run: npm run lint + + - name: Test + run: npm run test diff --git a/package.json b/package.json index 9233a9e..8d5dcd2 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,9 @@ "scripts": { "lint:fix": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json", "lint": "tslint --config tslint.json --project tsconfig.json", - "test": "mocha --exit --recursive 'test/**/*.test.ts'", - "build": "npm-run-all clean build-*", - "build-0-aux": "npx hardhat build", - "build-1-ts": "tsc", + "test": "hardhat test", + "prebuild": "npm run clean", + "build": "hardhat compile && hardhat build && tsc", "clean": "rm -rf ./dist", "prepare": "npm run build" }, From c7fd76d7f82025c1653381c4d3c03ce795eeeeef Mon Sep 17 00:00:00 2001 From: Alexey Churkin Date: Sun, 3 Nov 2024 19:10:41 +0100 Subject: [PATCH 3/3] Remove typechain files --- .gitignore | 2 + .../contracts/CrossChainCounter.sol | 10 +- .../contracts/CrossChainIncrementor.sol | 8 +- .../interfaces/ICrossChainCounter.sol | 0 .../hardhat.config.ts | 2 +- package-lock.json | 181 +- package.json | 12 +- .../contracts/contracts/index.ts | 7 - .../contracts/interfaces/ICallProxy.ts | 265 -- .../contracts/interfaces/IDeBridgeGate.ts | 974 ------ .../contracts/contracts/interfaces/index.ts | 5 - .../contracts/contracts/libraries/Flags.ts | 191 -- .../contracts/contracts/libraries/index.ts | 4 - .../@debridge-finance/contracts/index.ts | 5 - .../typechain/@debridge-finance/index.ts | 5 - .../contracts/access/AccessControl.ts | 398 --- .../contracts/access/IAccessControl.ts | 341 -- .../@openzeppelin/contracts/access/index.ts | 5 - .../@openzeppelin/contracts/index.ts | 7 - .../@openzeppelin/contracts/utils/index.ts | 5 - .../contracts/utils/introspection/ERC165.ts | 103 - .../contracts/utils/introspection/IERC165.ts | 103 - .../contracts/utils/introspection/index.ts | 5 - .../typechain/@openzeppelin/index.ts | 5 - .../typechain/common.ts | 46 - .../CrossChainCounter.ts | 618 ---- .../IDebridgeGateWithCallProxyGetter.ts | 997 ------ .../contracts/CrossChainCounter.sol/index.ts | 5 - .../CrossChainIncrementor.ts | 201 -- .../IDeBridgeGateExtended.ts | 1002 ------ .../CrossChainIncrementor.sol/index.ts | 5 - .../typechain/contracts/index.ts | 9 - .../interfaces/ICrossChainCounter.ts | 189 -- .../typechain/contracts/interfaces/index.ts | 4 - .../contracts/contracts/index.ts | 5 - .../interfaces/ICallProxy__factory.ts | 145 - .../interfaces/IDeBridgeGate__factory.ts | 747 ----- .../contracts/contracts/interfaces/index.ts | 5 - .../contracts/libraries/Flags__factory.ts | 138 - .../contracts/contracts/libraries/index.ts | 4 - .../@debridge-finance/contracts/index.ts | 4 - .../factories/@debridge-finance/index.ts | 4 - .../access/AccessControl__factory.ts | 230 -- .../access/IAccessControl__factory.ts | 198 -- .../@openzeppelin/contracts/access/index.ts | 5 - .../@openzeppelin/contracts/index.ts | 5 - .../@openzeppelin/contracts/utils/index.ts | 4 - .../utils/introspection/ERC165__factory.ts | 42 - .../utils/introspection/IERC165__factory.ts | 45 - .../contracts/utils/introspection/index.ts | 5 - .../factories/@openzeppelin/index.ts | 4 - .../CrossChainCounter__factory.ts | 458 --- ...ebridgeGateWithCallProxyGetter__factory.ts | 766 ----- .../contracts/CrossChainCounter.sol/index.ts | 5 - .../CrossChainIncrementor__factory.ts | 172 - .../IDeBridgeGateExtended__factory.ts | 764 ----- .../CrossChainIncrementor.sol/index.ts | 5 - .../typechain/factories/contracts/index.ts | 6 - .../interfaces/ICrossChainCounter__factory.ts | 144 - .../factories/contracts/interfaces/index.ts | 4 - .../typechain/factories/index.ts | 6 - .../typechain/index.ts | 34 - test/helpers.ts | 4 +- .../contracts/contracts/index.ts | 13 - .../contracts/interfaces/ICallProxy.ts | 265 -- .../contracts/interfaces/IDeBridgeGate.ts | 964 ------ .../contracts/interfaces/IDeBridgeToken.ts | 481 --- .../interfaces/IDeBridgeTokenDeployer.ts | 161 - .../contracts/interfaces/IERC20Permit.ts | 141 - .../contracts/interfaces/IFlashCallback.ts | 111 - .../contracts/interfaces/IOraclesManager.ts | 135 - .../interfaces/ISignatureVerifier.ts | 161 - .../contracts/contracts/interfaces/IWETH.ts | 341 -- .../contracts/interfaces/IWethGate.ts | 108 - .../contracts/contracts/interfaces/index.ts | 13 - .../contracts/contracts/libraries/Flags.ts | 191 -- .../contracts/libraries/SignatureUtil.ts | 56 - .../contracts/contracts/libraries/index.ts | 5 - .../contracts/contracts/mock/MockWeth.ts | 480 --- .../contracts/contracts/mock/index.ts | 4 - .../contracts/periphery/CallProxy.ts | 683 ---- .../contracts/contracts/periphery/index.ts | 4 - .../contracts/transfers/DeBridgeGate.ts | 2949 ----------------- .../contracts/transfers/OraclesManager.ts | 796 ----- .../contracts/transfers/SignatureVerifier.ts | 1140 ------- .../contracts/contracts/transfers/index.ts | 6 - .../@debridge-finance/contracts/index.ts | 5 - typechain/@debridge-finance/index.ts | 5 - .../access/AccessControlUpgradeable.ts | 410 --- .../access/IAccessControlUpgradeable.ts | 341 -- .../contracts-upgradeable/access/index.ts | 5 - .../contracts-upgradeable/index.ts | 13 - .../contracts-upgradeable/proxy/index.ts | 5 - .../proxy/utils/Initializable.ts | 70 - .../proxy/utils/index.ts | 4 - .../security/PausableUpgradeable.ts | 124 - .../security/ReentrancyGuardUpgradeable.ts | 70 - .../contracts-upgradeable/security/index.ts | 5 - .../token/ERC20/IERC20Upgradeable.ts | 342 -- .../extensions/IERC20MetadataUpgradeable.ts | 384 --- .../IERC20PermitUpgradeable.ts | 193 -- .../index.ts | 4 - .../token/ERC20/extensions/index.ts | 6 - .../token/ERC20/index.ts | 6 - .../contracts-upgradeable/token/index.ts | 5 - .../utils/ContextUpgradeable.ts | 70 - .../contracts-upgradeable/utils/index.ts | 6 - .../utils/introspection/ERC165Upgradeable.ts | 121 - .../utils/introspection/IERC165Upgradeable.ts | 103 - .../utils/introspection/index.ts | 5 - typechain/@openzeppelin/contracts/index.ts | 9 - .../draft-IERC1822.sol/IERC1822Proxiable.ts | 88 - .../interfaces/draft-IERC1822.sol/index.ts | 4 - .../contracts/interfaces/index.ts | 5 - .../contracts/proxy/ERC1967/ERC1967Proxy.ts | 115 - .../contracts/proxy/ERC1967/ERC1967Upgrade.ts | 115 - .../contracts/proxy/ERC1967/index.ts | 5 - .../@openzeppelin/contracts/proxy/Proxy.ts | 56 - .../contracts/proxy/beacon/IBeacon.ts | 88 - .../contracts/proxy/beacon/index.ts | 4 - .../@openzeppelin/contracts/proxy/index.ts | 8 - .../contracts/token/ERC20/ERC20.ts | 464 --- .../contracts/token/ERC20/IERC20.ts | 342 -- .../token/ERC20/extensions/IERC20Metadata.ts | 384 --- .../contracts/token/ERC20/extensions/index.ts | 4 - .../contracts/token/ERC20/index.ts | 7 - .../@openzeppelin/contracts/token/index.ts | 5 - typechain/@openzeppelin/index.ts | 7 - typechain/common.ts | 46 - typechain/contracts/MockSignatureVerifier.ts | 161 - typechain/contracts/index.ts | 4 - .../contracts/contracts/index.ts | 8 - .../interfaces/ICallProxy__factory.ts | 145 - .../interfaces/IDeBridgeGate__factory.ts | 740 ----- .../IDeBridgeTokenDeployer__factory.ts | 95 - .../interfaces/IDeBridgeToken__factory.ts | 283 -- .../interfaces/IERC20Permit__factory.ts | 69 - .../interfaces/IFlashCallback__factory.ts | 44 - .../interfaces/IOraclesManager__factory.ts | 96 - .../interfaces/ISignatureVerifier__factory.ts | 87 - .../contracts/interfaces/IWETH__factory.ts | 176 - .../interfaces/IWethGate__factory.ts | 44 - .../contracts/contracts/interfaces/index.ts | 13 - .../contracts/libraries/Flags__factory.ts | 138 - .../libraries/SignatureUtil__factory.ts | 78 - .../contracts/contracts/libraries/index.ts | 5 - .../contracts/mock/MockWeth__factory.ts | 372 --- .../contracts/contracts/mock/index.ts | 4 - .../contracts/periphery/CallProxy__factory.ts | 484 --- .../contracts/contracts/periphery/index.ts | 4 - .../transfers/DeBridgeGate__factory.ts | 2076 ------------ .../transfers/OraclesManager__factory.ts | 539 --- .../transfers/SignatureVerifier__factory.ts | 773 ----- .../contracts/contracts/transfers/index.ts | 6 - .../@debridge-finance/contracts/index.ts | 4 - .../factories/@debridge-finance/index.ts | 4 - .../AccessControlUpgradeable__factory.ts | 247 -- .../IAccessControlUpgradeable__factory.ts | 202 -- .../contracts-upgradeable/access/index.ts | 5 - .../contracts-upgradeable/index.ts | 8 - .../contracts-upgradeable/proxy/index.ts | 4 - .../proxy/utils/Initializable__factory.ts | 39 - .../proxy/utils/index.ts | 4 - .../security/PausableUpgradeable__factory.ts | 78 - .../ReentrancyGuardUpgradeable__factory.ts | 43 - .../contracts-upgradeable/security/index.ts | 5 - .../token/ERC20/IERC20Upgradeable__factory.ts | 209 -- .../IERC20MetadataUpgradeable__factory.ts | 252 -- .../IERC20PermitUpgradeable__factory.ts | 105 - .../index.ts | 4 - .../token/ERC20/extensions/index.ts | 5 - .../token/ERC20/index.ts | 5 - .../contracts-upgradeable/token/index.ts | 4 - .../utils/ContextUpgradeable__factory.ts | 39 - .../contracts-upgradeable/utils/index.ts | 5 - .../ERC165Upgradeable__factory.ts | 58 - .../IERC165Upgradeable__factory.ts | 45 - .../utils/introspection/index.ts | 5 - .../@openzeppelin/contracts/index.ts | 6 - .../IERC1822Proxiable__factory.ts | 39 - .../interfaces/draft-IERC1822.sol/index.ts | 4 - .../contracts/interfaces/index.ts | 4 - .../proxy/ERC1967/ERC1967Proxy__factory.ts | 147 - .../proxy/ERC1967/ERC1967Upgrade__factory.ts | 71 - .../contracts/proxy/ERC1967/index.ts | 5 - .../contracts/proxy/Proxy__factory.ts | 31 - .../proxy/beacon/IBeacon__factory.ts | 39 - .../contracts/proxy/beacon/index.ts | 4 - .../@openzeppelin/contracts/proxy/index.ts | 6 - .../contracts/token/ERC20/ERC20__factory.ts | 350 -- .../contracts/token/ERC20/IERC20__factory.ts | 206 -- .../extensions/IERC20Metadata__factory.ts | 248 -- .../contracts/token/ERC20/extensions/index.ts | 4 - .../contracts/token/ERC20/index.ts | 6 - .../@openzeppelin/contracts/token/index.ts | 4 - typechain/factories/@openzeppelin/index.ts | 5 - .../MockSignatureVerifier__factory.ts | 128 - typechain/factories/contracts/index.ts | 4 - typechain/factories/index.ts | 6 - typechain/hardhat.d.ts | 366 -- typechain/index.ts | 84 - 201 files changed, 37 insertions(+), 32496 deletions(-) rename {test/fixture-projects => fixture-projects}/hardhat-debridge-test-env/contracts/CrossChainCounter.sol (86%) rename {test/fixture-projects => fixture-projects}/hardhat-debridge-test-env/contracts/CrossChainIncrementor.sol (94%) rename {test/fixture-projects => fixture-projects}/hardhat-debridge-test-env/contracts/interfaces/ICrossChainCounter.sol (100%) rename test/fixture-projects/hardhat-debridge-test-env/hardhat.config.js => fixture-projects/hardhat-debridge-test-env/hardhat.config.ts (91%) delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/AccessControl.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/IAccessControl.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/ERC165.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/IERC165.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/common.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/CrossChainCounter.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/CrossChainIncrementor.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/ICrossChainCounter.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/AccessControl__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/CrossChainCounter__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/CrossChainIncrementor__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/ICrossChainCounter__factory.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/factories/index.ts delete mode 100644 test/fixture-projects/hardhat-debridge-test-env/typechain/index.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/index.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IERC20Permit.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IFlashCallback.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IOraclesManager.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IWETH.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/IWethGate.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/interfaces/index.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/libraries/SignatureUtil.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/libraries/index.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/mock/MockWeth.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/mock/index.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/periphery/CallProxy.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/periphery/index.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/transfers/DeBridgeGate.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/transfers/OraclesManager.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/transfers/SignatureVerifier.ts delete mode 100644 typechain/@debridge-finance/contracts/contracts/transfers/index.ts delete mode 100644 typechain/@debridge-finance/contracts/index.ts delete mode 100644 typechain/@debridge-finance/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/access/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/security/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/token/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/utils/index.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.ts delete mode 100644 typechain/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts delete mode 100644 typechain/@openzeppelin/contracts/index.ts delete mode 100644 typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts delete mode 100644 typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts delete mode 100644 typechain/@openzeppelin/contracts/interfaces/index.ts delete mode 100644 typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts delete mode 100644 typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.ts delete mode 100644 typechain/@openzeppelin/contracts/proxy/ERC1967/index.ts delete mode 100644 typechain/@openzeppelin/contracts/proxy/Proxy.ts delete mode 100644 typechain/@openzeppelin/contracts/proxy/beacon/IBeacon.ts delete mode 100644 typechain/@openzeppelin/contracts/proxy/beacon/index.ts delete mode 100644 typechain/@openzeppelin/contracts/proxy/index.ts delete mode 100644 typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts delete mode 100644 typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts delete mode 100644 typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts delete mode 100644 typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts delete mode 100644 typechain/@openzeppelin/contracts/token/ERC20/index.ts delete mode 100644 typechain/@openzeppelin/contracts/token/index.ts delete mode 100644 typechain/@openzeppelin/index.ts delete mode 100644 typechain/common.ts delete mode 100644 typechain/contracts/MockSignatureVerifier.ts delete mode 100644 typechain/contracts/index.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/index.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IERC20Permit__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IFlashCallback__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IOraclesManager__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWETH__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWethGate__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/libraries/SignatureUtil__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/mock/MockWeth__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/mock/index.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/periphery/CallProxy__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/periphery/index.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/transfers/DeBridgeGate__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/transfers/OraclesManager__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/transfers/SignatureVerifier__factory.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/contracts/transfers/index.ts delete mode 100644 typechain/factories/@debridge-finance/contracts/index.ts delete mode 100644 typechain/factories/@debridge-finance/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/security/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/interfaces/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/proxy/beacon/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/proxy/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts delete mode 100644 typechain/factories/@openzeppelin/contracts/token/index.ts delete mode 100644 typechain/factories/@openzeppelin/index.ts delete mode 100644 typechain/factories/contracts/MockSignatureVerifier__factory.ts delete mode 100644 typechain/factories/contracts/index.ts delete mode 100644 typechain/factories/index.ts delete mode 100644 typechain/hardhat.d.ts delete mode 100644 typechain/index.ts diff --git a/.gitignore b/.gitignore index 1550cfe..57d97c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ /dist +/typechain +/fixture-projects/**/typechain # Logs logs diff --git a/test/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainCounter.sol b/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainCounter.sol similarity index 86% rename from test/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainCounter.sol rename to fixture-projects/hardhat-debridge-test-env/contracts/CrossChainCounter.sol index c7e0188..9ccc9f5 100644 --- a/test/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainCounter.sol +++ b/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainCounter.sol @@ -7,15 +7,9 @@ import "@debridge-finance/contracts/contracts/interfaces/ICallProxy.sol"; import "./interfaces/ICrossChainCounter.sol"; -/// @notice IDeBridgeGate interface doesn't contain a getter for the `callProxy` public variable, which is -/// defined in the `DeBridgeGate` contract, so we create a dummy interface solely for this getter -interface IDebridgeGateWithCallProxyGetter is IDeBridgeGate { - function callProxy() external returns (address); -} - contract CrossChainCounter is AccessControl, ICrossChainCounter { /// @dev DeBridgeGate's address on the current chain - IDebridgeGateWithCallProxyGetter public deBridgeGate; + IDeBridgeGate public deBridgeGate; /// @dev chains, where commands are allowed to come from /// @dev chain_id_from => ChainInfo @@ -62,7 +56,7 @@ contract CrossChainCounter is AccessControl, ICrossChainCounter { /* ========== INITIALIZERS ========== */ - constructor(IDebridgeGateWithCallProxyGetter deBridgeGate_) { + constructor(IDeBridgeGate deBridgeGate_) { deBridgeGate = deBridgeGate_; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } diff --git a/test/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainIncrementor.sol b/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainIncrementor.sol similarity index 94% rename from test/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainIncrementor.sol rename to fixture-projects/hardhat-debridge-test-env/contracts/CrossChainIncrementor.sol index 3b5a60f..cd54bc0 100644 --- a/test/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainIncrementor.sol +++ b/fixture-projects/hardhat-debridge-test-env/contracts/CrossChainIncrementor.sol @@ -6,13 +6,9 @@ import "@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.sol"; import "./interfaces/ICrossChainCounter.sol"; -interface IDeBridgeGateExtended is IDeBridgeGate { - function globalFixedNativeFee() external returns (uint); -} - contract CrossChainIncrementor { /// @dev DeBridgeGate's address on the current chain - IDeBridgeGateExtended public deBridgeGate; + IDeBridgeGate public deBridgeGate; /// @dev Chain ID where the cross-chain counter contract has been deployed uint256 crossChainCounterResidenceChainID; @@ -23,7 +19,7 @@ contract CrossChainIncrementor { /* ========== INITIALIZERS ========== */ constructor( - IDeBridgeGateExtended deBridgeGate_, + IDeBridgeGate deBridgeGate_, uint256 crossChainCounterResidenceChainID_, address crossChainCounterResidenceAddress_ ) { diff --git a/test/fixture-projects/hardhat-debridge-test-env/contracts/interfaces/ICrossChainCounter.sol b/fixture-projects/hardhat-debridge-test-env/contracts/interfaces/ICrossChainCounter.sol similarity index 100% rename from test/fixture-projects/hardhat-debridge-test-env/contracts/interfaces/ICrossChainCounter.sol rename to fixture-projects/hardhat-debridge-test-env/contracts/interfaces/ICrossChainCounter.sol diff --git a/test/fixture-projects/hardhat-debridge-test-env/hardhat.config.js b/fixture-projects/hardhat-debridge-test-env/hardhat.config.ts similarity index 91% rename from test/fixture-projects/hardhat-debridge-test-env/hardhat.config.js rename to fixture-projects/hardhat-debridge-test-env/hardhat.config.ts index 45f10e6..e7785ce 100644 --- a/test/fixture-projects/hardhat-debridge-test-env/hardhat.config.js +++ b/fixture-projects/hardhat-debridge-test-env/hardhat.config.ts @@ -1,5 +1,5 @@ require("@typechain/hardhat"); -require("../../../src/index"); +require("../../src/index"); /** * @type import('hardhat/config').HardhatUserConfig diff --git a/package-lock.json b/package-lock.json index 7195ab5..9c47835 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "tslint": "^5.16.0", "tslint-config-prettier": "^1.18.0", "tslint-plugin-prettier": "^2.0.1", - "typescript": "^4.0.3" + "typescript": "^5.6.3" }, "peerDependencies": { "@nomiclabs/hardhat-ethers": "^2.0.6", @@ -6009,6 +6009,7 @@ "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-7.2.0.tgz", "integrity": "sha512-DnhQwcFEaYsvYDnACLZhMmCWd3rkOeEvglpa4q5i/5Jlm3UIsWaxVzuXvDLFCSCWRO3yy2/+V/G7FusFgejnfQ==", "dev": true, + "optional": true, "dependencies": { "buffer": "^6.0.3", "catering": "^2.0.0", @@ -6040,6 +6041,7 @@ "url": "https://feross.org/support" } ], + "optional": true, "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.2.1" @@ -6050,6 +6052,7 @@ "resolved": "https://registry.npmjs.org/level-supports/-/level-supports-2.1.0.tgz", "integrity": "sha512-E486g1NCjW5cF78KGPrMDRBYzPuueMZ6VBXHT6gC7A8UYWGiM14fGgp+s/L1oFfDWSPV/+SFkYCmZ0SiESkRKA==", "dev": true, + "optional": true, "engines": { "node": ">=10" } @@ -8444,6 +8447,7 @@ "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.4.1.tgz", "integrity": "sha512-r4eRSeStEGf6M5SKdrQhhLK5bOwOBxQhIE3YSTnZE3GpKiLfnnhE+tPtrJE79+eDJgm39BM6LSoI8SCx4HbwlQ==", "dev": true, + "optional": true, "engines": { "node": ">=6" } @@ -12048,7 +12052,8 @@ "version": "3.3.0", "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz", "integrity": "sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q==", - "dev": true + "dev": true, + "optional": true }, "node_modules/immutable": { "version": "4.3.0", @@ -12768,6 +12773,7 @@ "resolved": "https://registry.npmjs.org/level-concat-iterator/-/level-concat-iterator-3.1.0.tgz", "integrity": "sha512-BWRCMHBxbIqPxJ8vHOvKUsaO0v1sLYZtjN3K2iZJsRBYtp+ONsY6Jfi6hy9K3+zolgQRryhIn2NRZjZnWJ9NmQ==", "dev": true, + "optional": true, "dependencies": { "catering": "^2.1.0" }, @@ -12932,6 +12938,7 @@ "integrity": "sha512-iB8O/7Db9lPaITU1aA2txU/cBEXAt4vWwKQRrrWuS6XDgbP4QZGj9BL2aNbwb002atoQ/lIotJkfyzz+ygQnUQ==", "dev": true, "hasInstallScript": true, + "optional": true, "dependencies": { "abstract-leveldown": "~6.2.1", "napi-macros": "~2.0.0", @@ -12946,6 +12953,7 @@ "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-6.2.3.tgz", "integrity": "sha512-BsLm5vFMRUrrLeCcRc+G0t2qOaTzpoJQLOubq2XM72eNpjF5UdU5o/5NvlNhx95XHcAvcl8OMXr4mlg/fRgUXQ==", "dev": true, + "optional": true, "dependencies": { "buffer": "^5.5.0", "immediate": "^3.2.3", @@ -12962,6 +12970,7 @@ "resolved": "https://registry.npmjs.org/level-concat-iterator/-/level-concat-iterator-2.0.1.tgz", "integrity": "sha512-OTKKOqeav2QWcERMJR7IS9CUo1sHnke2C0gkSmcR7QuEtFNLLzHQAvnMw8ykvEcv0Qtkg0p7FOwP1v9e5Smdcw==", "dev": true, + "optional": true, "engines": { "node": ">=6" } @@ -12971,6 +12980,7 @@ "resolved": "https://registry.npmjs.org/level-supports/-/level-supports-1.0.1.tgz", "integrity": "sha512-rXM7GYnW8gsl1vedTJIbzOrRv85c/2uCMpiiCzO2fndd06U/kUXEEU9evYn4zFggBOg36IsBW8LzqIpETwwQzg==", "dev": true, + "optional": true, "dependencies": { "xtend": "^4.0.2" }, @@ -12983,6 +12993,7 @@ "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.1.1.tgz", "integrity": "sha512-dSq1xmcPDKPZ2EED2S6zw/b9NKsqzXRE6dVr8TVQnI3FJOTteUMuqF3Qqs6LZg+mLGYJWqQzMbIjMtJqTv87nQ==", "dev": true, + "optional": true, "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", @@ -13492,9 +13503,9 @@ } }, "node_modules/mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.1.0.tgz", + "integrity": "sha512-vUF7IYxEoN7XhQpFLxQAEMtE4W91acW4B6En9l97MwE9stL1A9gusXfoHZCLVHDUJ/7V5+lbCM6yMqzo5vNymg==", "dev": true, "dependencies": { "ansi-colors": "4.1.1", @@ -17000,158 +17011,6 @@ "@truffle/db": "^2.0.20" } }, - "node_modules/truffle/node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/truffle/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/truffle/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/truffle/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/truffle/node_modules/minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/truffle/node_modules/mocha": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.1.0.tgz", - "integrity": "sha512-vUF7IYxEoN7XhQpFLxQAEMtE4W91acW4B6En9l97MwE9stL1A9gusXfoHZCLVHDUJ/7V5+lbCM6yMqzo5vNymg==", - "dev": true, - "dependencies": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "7.2.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "nanoid": "3.3.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" - } - }, - "node_modules/truffle/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/truffle/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/truffle/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/truffle/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/ts-command-line-args": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.4.2.tgz", @@ -17576,16 +17435,16 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", + "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/typescript-compare": { diff --git a/package.json b/package.json index 8d5dcd2..fb85377 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,14 @@ "scripts": { "lint:fix": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}' && tslint --fix --config tslint.json --project tsconfig.json", "lint": "tslint --config tslint.json --project tsconfig.json", + "pretest": "npm run test:build", "test": "hardhat test", "prebuild": "npm run clean", - "build": "hardhat compile && hardhat build && tsc", - "clean": "rm -rf ./dist", + "build": "hardhat compile && hardhat typechain && hardhat build && tsc", + "pretest:build": "npm run test:clean", + "test:build": "cd fixture-projects/hardhat-debridge-test-env && hardhat compile", + "test:clean": "cd fixture-projects/hardhat-debridge-test-env && hardhat clean && rm -rf ./typechain", + "clean": "hardhat clean && rm -rf ./dist ./typechain" , "prepare": "npm run build" }, "files": [ @@ -28,6 +32,7 @@ ], "devDependencies": { "@debridge-finance/contracts": "github:debridge-finance/debridge-contracts-v1#v4.2.1", + "@nomicfoundation/hardhat-chai-matchers": "^1.0.4", "@nomiclabs/hardhat-ethers": "^2.0.6", "@typechain/ethers-v5": "^10.1.0", "@typechain/hardhat": "^6.1.2", @@ -46,8 +51,7 @@ "tslint": "^5.16.0", "tslint-config-prettier": "^1.18.0", "tslint-plugin-prettier": "^2.0.1", - "typescript": "^4.0.3", - "@nomicfoundation/hardhat-chai-matchers": "^1.0.4" + "typescript": "^5.6.3" }, "peerDependencies": { "@nomiclabs/hardhat-ethers": "^2.0.6", diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/index.ts deleted file mode 100644 index dd5456f..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as interfaces from "./interfaces"; -export type { interfaces }; -import type * as libraries from "./libraries"; -export type { libraries }; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts deleted file mode 100644 index 87f9452..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts +++ /dev/null @@ -1,265 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ICallProxyInterface extends utils.Interface { - functions: { - "call(address,address,bytes,uint256,bytes,uint256)": FunctionFragment; - "callERC20(address,address,address,bytes,uint256,bytes,uint256)": FunctionFragment; - "submissionChainIdFrom()": FunctionFragment; - "submissionNativeSender()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "call" - | "callERC20" - | "submissionChainIdFrom" - | "submissionNativeSender" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "call", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "callERC20", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "submissionChainIdFrom", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "submissionNativeSender", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "call", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "callERC20", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "submissionChainIdFrom", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "submissionNativeSender", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ICallProxy extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ICallProxyInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - submissionChainIdFrom(overrides?: CallOverrides): Promise; - - submissionNativeSender(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts deleted file mode 100644 index 01e5016..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts +++ /dev/null @@ -1,974 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export declare namespace IDeBridgeGate { - export type ChainSupportInfoStruct = { - fixedNativeFee: PromiseOrValue; - isSupported: PromiseOrValue; - transferFeeBps: PromiseOrValue; - }; - - export type ChainSupportInfoStructOutput = [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - }; - - export type FeeParamsStruct = { - receivedAmount: PromiseOrValue; - fixFee: PromiseOrValue; - transferFee: PromiseOrValue; - useAssetFee: PromiseOrValue; - isNativeToken: PromiseOrValue; - }; - - export type FeeParamsStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - boolean, - boolean - ] & { - receivedAmount: BigNumber; - fixFee: BigNumber; - transferFee: BigNumber; - useAssetFee: boolean; - isNativeToken: boolean; - }; -} - -export interface IDeBridgeGateInterface extends utils.Interface { - functions: { - "claim(bytes32,uint256,uint256,address,uint256,bytes,bytes)": FunctionFragment; - "flash(address,address,uint256,bytes)": FunctionFragment; - "getDebridgeChainAssetFixedFee(bytes32,uint256)": FunctionFragment; - "getDefiAvaliableReserves(address)": FunctionFragment; - "getNativeInfo(address)": FunctionFragment; - "isSubmissionUsed(bytes32)": FunctionFragment; - "requestReserves(address,uint256)": FunctionFragment; - "returnReserves(address,uint256)": FunctionFragment; - "send(address,uint256,uint256,bytes,bytes,bool,uint32,bytes)": FunctionFragment; - "withdrawFee(bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "claim" - | "flash" - | "getDebridgeChainAssetFixedFee" - | "getDefiAvaliableReserves" - | "getNativeInfo" - | "isSubmissionUsed" - | "requestReserves" - | "returnReserves" - | "send" - | "withdrawFee" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "claim", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "flash", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getDebridgeChainAssetFixedFee", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDefiAvaliableReserves", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getNativeInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "isSubmissionUsed", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "requestReserves", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "returnReserves", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdrawFee", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "flash", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getDebridgeChainAssetFixedFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDefiAvaliableReserves", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getNativeInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "isSubmissionUsed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "requestReserves", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "returnReserves", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "withdrawFee", - data: BytesLike - ): Result; - - events: { - "AutoRequestExecuted(bytes32,bool,address)": EventFragment; - "Blocked(bytes32)": EventFragment; - "CallProxyUpdated(address)": EventFragment; - "ChainSupportUpdated(uint256,bool,bool)": EventFragment; - "ChainsSupportUpdated(uint256,tuple,bool)": EventFragment; - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)": EventFragment; - "FixedNativeFeeAutoUpdated(uint256)": EventFragment; - "FixedNativeFeeUpdated(uint256,uint256)": EventFragment; - "Flash(address,address,address,uint256,uint256)": EventFragment; - "MonitoringClaimEvent(bytes32,uint256,uint256)": EventFragment; - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)": EventFragment; - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)": EventFragment; - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)": EventFragment; - "Unblocked(bytes32)": EventFragment; - "WithdrawnFee(bytes32,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AutoRequestExecuted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Blocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "CallProxyUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainsSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeAutoUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Flash"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringClaimEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringSendEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PairAdded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Sent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unblocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "WithdrawnFee"): EventFragment; -} - -export interface AutoRequestExecutedEventObject { - submissionId: string; - success: boolean; - callProxy: string; -} -export type AutoRequestExecutedEvent = TypedEvent< - [string, boolean, string], - AutoRequestExecutedEventObject ->; - -export type AutoRequestExecutedEventFilter = - TypedEventFilter; - -export interface BlockedEventObject { - submissionId: string; -} -export type BlockedEvent = TypedEvent<[string], BlockedEventObject>; - -export type BlockedEventFilter = TypedEventFilter; - -export interface CallProxyUpdatedEventObject { - callProxy: string; -} -export type CallProxyUpdatedEvent = TypedEvent< - [string], - CallProxyUpdatedEventObject ->; - -export type CallProxyUpdatedEventFilter = - TypedEventFilter; - -export interface ChainSupportUpdatedEventObject { - chainId: BigNumber; - isSupported: boolean; - isChainFrom: boolean; -} -export type ChainSupportUpdatedEvent = TypedEvent< - [BigNumber, boolean, boolean], - ChainSupportUpdatedEventObject ->; - -export type ChainSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ChainsSupportUpdatedEventObject { - chainIds: BigNumber; - chainSupportInfo: IDeBridgeGate.ChainSupportInfoStructOutput; - isChainFrom: boolean; -} -export type ChainsSupportUpdatedEvent = TypedEvent< - [BigNumber, IDeBridgeGate.ChainSupportInfoStructOutput, boolean], - ChainsSupportUpdatedEventObject ->; - -export type ChainsSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ClaimedEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdFrom: BigNumber; - autoParams: string; - isNativeToken: boolean; -} -export type ClaimedEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, boolean], - ClaimedEventObject ->; - -export type ClaimedEventFilter = TypedEventFilter; - -export interface FixedNativeFeeAutoUpdatedEventObject { - globalFixedNativeFee: BigNumber; -} -export type FixedNativeFeeAutoUpdatedEvent = TypedEvent< - [BigNumber], - FixedNativeFeeAutoUpdatedEventObject ->; - -export type FixedNativeFeeAutoUpdatedEventFilter = - TypedEventFilter; - -export interface FixedNativeFeeUpdatedEventObject { - globalFixedNativeFee: BigNumber; - globalTransferFeeBps: BigNumber; -} -export type FixedNativeFeeUpdatedEvent = TypedEvent< - [BigNumber, BigNumber], - FixedNativeFeeUpdatedEventObject ->; - -export type FixedNativeFeeUpdatedEventFilter = - TypedEventFilter; - -export interface FlashEventObject { - sender: string; - tokenAddress: string; - receiver: string; - amount: BigNumber; - paid: BigNumber; -} -export type FlashEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber], - FlashEventObject ->; - -export type FlashEventFilter = TypedEventFilter; - -export interface MonitoringClaimEventEventObject { - submissionId: string; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringClaimEventEvent = TypedEvent< - [string, BigNumber, BigNumber], - MonitoringClaimEventEventObject ->; - -export type MonitoringClaimEventEventFilter = - TypedEventFilter; - -export interface MonitoringSendEventEventObject { - submissionId: string; - nonce: BigNumber; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringSendEventEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber], - MonitoringSendEventEventObject ->; - -export type MonitoringSendEventEventFilter = - TypedEventFilter; - -export interface PairAddedEventObject { - debridgeId: string; - tokenAddress: string; - nativeAddress: string; - nativeChainId: BigNumber; - maxAmount: BigNumber; - minReservesBps: number; -} -export type PairAddedEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber, number], - PairAddedEventObject ->; - -export type PairAddedEventFilter = TypedEventFilter; - -export interface SentEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdTo: BigNumber; - referralCode: number; - feeParams: IDeBridgeGate.FeeParamsStructOutput; - autoParams: string; - nativeSender: string; -} -export type SentEvent = TypedEvent< - [ - string, - string, - BigNumber, - string, - BigNumber, - BigNumber, - number, - IDeBridgeGate.FeeParamsStructOutput, - string, - string - ], - SentEventObject ->; - -export type SentEventFilter = TypedEventFilter; - -export interface UnblockedEventObject { - submissionId: string; -} -export type UnblockedEvent = TypedEvent<[string], UnblockedEventObject>; - -export type UnblockedEventFilter = TypedEventFilter; - -export interface WithdrawnFeeEventObject { - debridgeId: string; - fee: BigNumber; -} -export type WithdrawnFeeEvent = TypedEvent< - [string, BigNumber], - WithdrawnFeeEventObject ->; - -export type WithdrawnFeeEventFilter = TypedEventFilter; - -export interface IDeBridgeGate extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IDeBridgeGateInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, string] & { nativeChainId: BigNumber; nativeAddress: string } - >; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AutoRequestExecuted(bytes32,bool,address)"( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - AutoRequestExecuted( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - - "Blocked(bytes32)"(submissionId?: null): BlockedEventFilter; - Blocked(submissionId?: null): BlockedEventFilter; - - "CallProxyUpdated(address)"(callProxy?: null): CallProxyUpdatedEventFilter; - CallProxyUpdated(callProxy?: null): CallProxyUpdatedEventFilter; - - "ChainSupportUpdated(uint256,bool,bool)"( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - ChainSupportUpdated( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - - "ChainsSupportUpdated(uint256,tuple,bool)"( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - ChainsSupportUpdated( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - Claimed( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - - "FixedNativeFeeAutoUpdated(uint256)"( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - FixedNativeFeeAutoUpdated( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - - "FixedNativeFeeUpdated(uint256,uint256)"( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - FixedNativeFeeUpdated( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - - "Flash(address,address,address,uint256,uint256)"( - sender?: null, - tokenAddress?: PromiseOrValue | null, - receiver?: PromiseOrValue | null, - amount?: null, - paid?: null - ): FlashEventFilter; - Flash( - sender?: null, - tokenAddress?: PromiseOrValue | null, - receiver?: PromiseOrValue | null, - amount?: null, - paid?: null - ): FlashEventFilter; - - "MonitoringClaimEvent(bytes32,uint256,uint256)"( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - MonitoringClaimEvent( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)"( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - MonitoringSendEvent( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)"( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - PairAdded( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - Sent( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - - "Unblocked(bytes32)"(submissionId?: null): UnblockedEventFilter; - Unblocked(submissionId?: null): UnblockedEventFilter; - - "WithdrawnFee(bytes32,uint256)"( - debridgeId?: null, - fee?: null - ): WithdrawnFeeEventFilter; - WithdrawnFee(debridgeId?: null, fee?: null): WithdrawnFeeEventFilter; - }; - - estimateGas: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/index.ts deleted file mode 100644 index a3671d3..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ICallProxy } from "./ICallProxy"; -export type { IDeBridgeGate } from "./IDeBridgeGate"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts deleted file mode 100644 index 9e05aa7..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts +++ /dev/null @@ -1,191 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface FlagsInterface extends utils.Interface { - functions: { - "MULTI_SEND()": FunctionFragment; - "PROXY_WITH_SENDER()": FunctionFragment; - "REVERT_IF_EXTERNAL_FAIL()": FunctionFragment; - "SEND_EXTERNAL_CALL_GAS_LIMIT()": FunctionFragment; - "SEND_HASHED_DATA()": FunctionFragment; - "UNWRAP_ETH()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "MULTI_SEND" - | "PROXY_WITH_SENDER" - | "REVERT_IF_EXTERNAL_FAIL" - | "SEND_EXTERNAL_CALL_GAS_LIMIT" - | "SEND_HASHED_DATA" - | "UNWRAP_ETH" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "MULTI_SEND", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "PROXY_WITH_SENDER", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "REVERT_IF_EXTERNAL_FAIL", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "SEND_EXTERNAL_CALL_GAS_LIMIT", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "SEND_HASHED_DATA", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "UNWRAP_ETH", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "MULTI_SEND", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "PROXY_WITH_SENDER", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "REVERT_IF_EXTERNAL_FAIL", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "SEND_EXTERNAL_CALL_GAS_LIMIT", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "SEND_HASHED_DATA", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "UNWRAP_ETH", data: BytesLike): Result; - - events: {}; -} - -export interface Flags extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: FlagsInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - MULTI_SEND(overrides?: CallOverrides): Promise<[BigNumber]>; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise<[BigNumber]>; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise<[BigNumber]>; - - SEND_EXTERNAL_CALL_GAS_LIMIT( - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise<[BigNumber]>; - - UNWRAP_ETH(overrides?: CallOverrides): Promise<[BigNumber]>; - }; - - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT(overrides?: CallOverrides): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - - callStatic: { - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT(overrides?: CallOverrides): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT(overrides?: CallOverrides): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL( - overrides?: CallOverrides - ): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT( - overrides?: CallOverrides - ): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/index.ts deleted file mode 100644 index 950a188..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/contracts/libraries/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Flags } from "./Flags"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/index.ts deleted file mode 100644 index a11e4ca..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as contracts from "./contracts"; -export type { contracts }; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/index.ts deleted file mode 100644 index a11e4ca..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@debridge-finance/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as contracts from "./contracts"; -export type { contracts }; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/AccessControl.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/AccessControl.ts deleted file mode 100644 index d003a8b..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/AccessControl.ts +++ /dev/null @@ -1,398 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface AccessControlInterface extends utils.Interface { - functions: { - "DEFAULT_ADMIN_ROLE()": FunctionFragment; - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - "supportsInterface(bytes4)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DEFAULT_ADMIN_ROLE" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "renounceRole" - | "revokeRole" - | "supportsInterface" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - - events: { - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; -} - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface AccessControl extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: AccessControlInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - }; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - }; - - estimateGas: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/IAccessControl.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/IAccessControl.ts deleted file mode 100644 index b09e631..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/IAccessControl.ts +++ /dev/null @@ -1,341 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface IAccessControlInterface extends utils.Interface { - functions: { - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "renounceRole" - | "revokeRole" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - - events: { - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; -} - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface IAccessControl extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IAccessControlInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - }; - - estimateGas: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/index.ts deleted file mode 100644 index 8209e49..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { AccessControl } from "./AccessControl"; -export type { IAccessControl } from "./IAccessControl"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/index.ts deleted file mode 100644 index 657a600..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as access from "./access"; -export type { access }; -import type * as utils from "./utils"; -export type { utils }; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/index.ts deleted file mode 100644 index 3aa96c1..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as introspection from "./introspection"; -export type { introspection }; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/ERC165.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/ERC165.ts deleted file mode 100644 index 26c42e0..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/ERC165.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ERC165Interface extends utils.Interface { - functions: { - "supportsInterface(bytes4)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment; - - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ERC165 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC165Interface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - }; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/IERC165.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/IERC165.ts deleted file mode 100644 index 010603d..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/IERC165.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IERC165Interface extends utils.Interface { - functions: { - "supportsInterface(bytes4)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment; - - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IERC165 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC165Interface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - }; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/index.ts deleted file mode 100644 index d7fccec..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/contracts/utils/introspection/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ERC165 } from "./ERC165"; -export type { IERC165 } from "./IERC165"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/index.ts deleted file mode 100644 index a11e4ca..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/@openzeppelin/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as contracts from "./contracts"; -export type { contracts }; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/common.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/common.ts deleted file mode 100644 index 4c90b08..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/common.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from "@ethersproject/providers"; -import type { Event, EventFilter } from "ethers"; - -export interface TypedEvent< - TArgsArray extends Array = any, - TArgsObject = any -> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> - extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - ( - eventFilter: TypedEventFilter, - listener: TypedListener - ): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory< - infer C, - any -> - ? C - : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory - ? Parameters - : never; - -export type PromiseOrValue = T | Promise; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/CrossChainCounter.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/CrossChainCounter.ts deleted file mode 100644 index f8b4c6a..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/CrossChainCounter.ts +++ /dev/null @@ -1,618 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../common"; - -export interface CrossChainCounterInterface extends utils.Interface { - functions: { - "DEFAULT_ADMIN_ROLE()": FunctionFragment; - "addChainSupport(uint256,bytes)": FunctionFragment; - "counter()": FunctionFragment; - "deBridgeGate()": FunctionFragment; - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "receiveIncrementCommand(uint8,address)": FunctionFragment; - "removeChainSupport(uint256)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - "supportsInterface(bytes4)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DEFAULT_ADMIN_ROLE" - | "addChainSupport" - | "counter" - | "deBridgeGate" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "receiveIncrementCommand" - | "removeChainSupport" - | "renounceRole" - | "revokeRole" - | "supportsInterface" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "addChainSupport", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "counter", values?: undefined): string; - encodeFunctionData( - functionFragment: "deBridgeGate", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "receiveIncrementCommand", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "removeChainSupport", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "addChainSupport", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "counter", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "deBridgeGate", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "receiveIncrementCommand", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeChainSupport", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - - events: { - "CounterIncremented(uint256,uint8,uint256,address)": EventFragment; - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - "SupportedChainAdded(uint256,bytes)": EventFragment; - "SupportedChainRemoved(uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "CounterIncremented"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SupportedChainAdded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SupportedChainRemoved"): EventFragment; -} - -export interface CounterIncrementedEventObject { - newCounterValue: BigNumber; - amount: number; - chainFrom: BigNumber; - initiator: string; -} -export type CounterIncrementedEvent = TypedEvent< - [BigNumber, number, BigNumber, string], - CounterIncrementedEventObject ->; - -export type CounterIncrementedEventFilter = - TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface SupportedChainAddedEventObject { - chainId: BigNumber; - incrementorAddress: string; -} -export type SupportedChainAddedEvent = TypedEvent< - [BigNumber, string], - SupportedChainAddedEventObject ->; - -export type SupportedChainAddedEventFilter = - TypedEventFilter; - -export interface SupportedChainRemovedEventObject { - chainId: BigNumber; -} -export type SupportedChainRemovedEvent = TypedEvent< - [BigNumber], - SupportedChainRemovedEventObject ->; - -export type SupportedChainRemovedEventFilter = - TypedEventFilter; - -export interface CrossChainCounter extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: CrossChainCounterInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - addChainSupport( - _chainId: PromiseOrValue, - _crossChainIncrementorAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - counter(overrides?: CallOverrides): Promise<[BigNumber]>; - - deBridgeGate(overrides?: CallOverrides): Promise<[string]>; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeChainSupport( - _chainId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - }; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addChainSupport( - _chainId: PromiseOrValue, - _crossChainIncrementorAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - counter(overrides?: CallOverrides): Promise; - - deBridgeGate(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeChainSupport( - _chainId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addChainSupport( - _chainId: PromiseOrValue, - _crossChainIncrementorAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - counter(overrides?: CallOverrides): Promise; - - deBridgeGate(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeChainSupport( - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "CounterIncremented(uint256,uint8,uint256,address)"( - newCounterValue?: null, - amount?: null, - chainFrom?: null, - initiator?: null - ): CounterIncrementedEventFilter; - CounterIncremented( - newCounterValue?: null, - amount?: null, - chainFrom?: null, - initiator?: null - ): CounterIncrementedEventFilter; - - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - - "SupportedChainAdded(uint256,bytes)"( - chainId?: null, - incrementorAddress?: null - ): SupportedChainAddedEventFilter; - SupportedChainAdded( - chainId?: null, - incrementorAddress?: null - ): SupportedChainAddedEventFilter; - - "SupportedChainRemoved(uint256)"( - chainId?: null - ): SupportedChainRemovedEventFilter; - SupportedChainRemoved(chainId?: null): SupportedChainRemovedEventFilter; - }; - - estimateGas: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addChainSupport( - _chainId: PromiseOrValue, - _crossChainIncrementorAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - counter(overrides?: CallOverrides): Promise; - - deBridgeGate(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeChainSupport( - _chainId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides - ): Promise; - - addChainSupport( - _chainId: PromiseOrValue, - _crossChainIncrementorAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - counter(overrides?: CallOverrides): Promise; - - deBridgeGate(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeChainSupport( - _chainId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter.ts deleted file mode 100644 index c5754c5..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter.ts +++ /dev/null @@ -1,997 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../common"; - -export declare namespace IDeBridgeGate { - export type ChainSupportInfoStruct = { - fixedNativeFee: PromiseOrValue; - isSupported: PromiseOrValue; - transferFeeBps: PromiseOrValue; - }; - - export type ChainSupportInfoStructOutput = [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - }; - - export type FeeParamsStruct = { - receivedAmount: PromiseOrValue; - fixFee: PromiseOrValue; - transferFee: PromiseOrValue; - useAssetFee: PromiseOrValue; - isNativeToken: PromiseOrValue; - }; - - export type FeeParamsStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - boolean, - boolean - ] & { - receivedAmount: BigNumber; - fixFee: BigNumber; - transferFee: BigNumber; - useAssetFee: boolean; - isNativeToken: boolean; - }; -} - -export interface IDebridgeGateWithCallProxyGetterInterface - extends utils.Interface { - functions: { - "callProxy()": FunctionFragment; - "claim(bytes32,uint256,uint256,address,uint256,bytes,bytes)": FunctionFragment; - "flash(address,address,uint256,bytes)": FunctionFragment; - "getDebridgeChainAssetFixedFee(bytes32,uint256)": FunctionFragment; - "getDefiAvaliableReserves(address)": FunctionFragment; - "getNativeInfo(address)": FunctionFragment; - "isSubmissionUsed(bytes32)": FunctionFragment; - "requestReserves(address,uint256)": FunctionFragment; - "returnReserves(address,uint256)": FunctionFragment; - "send(address,uint256,uint256,bytes,bytes,bool,uint32,bytes)": FunctionFragment; - "withdrawFee(bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "callProxy" - | "claim" - | "flash" - | "getDebridgeChainAssetFixedFee" - | "getDefiAvaliableReserves" - | "getNativeInfo" - | "isSubmissionUsed" - | "requestReserves" - | "returnReserves" - | "send" - | "withdrawFee" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "callProxy", values?: undefined): string; - encodeFunctionData( - functionFragment: "claim", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "flash", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getDebridgeChainAssetFixedFee", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDefiAvaliableReserves", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getNativeInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "isSubmissionUsed", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "requestReserves", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "returnReserves", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdrawFee", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "callProxy", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "flash", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getDebridgeChainAssetFixedFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDefiAvaliableReserves", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getNativeInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "isSubmissionUsed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "requestReserves", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "returnReserves", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "withdrawFee", - data: BytesLike - ): Result; - - events: { - "AutoRequestExecuted(bytes32,bool,address)": EventFragment; - "Blocked(bytes32)": EventFragment; - "CallProxyUpdated(address)": EventFragment; - "ChainSupportUpdated(uint256,bool,bool)": EventFragment; - "ChainsSupportUpdated(uint256,tuple,bool)": EventFragment; - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)": EventFragment; - "FixedNativeFeeAutoUpdated(uint256)": EventFragment; - "FixedNativeFeeUpdated(uint256,uint256)": EventFragment; - "Flash(address,address,address,uint256,uint256)": EventFragment; - "MonitoringClaimEvent(bytes32,uint256,uint256)": EventFragment; - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)": EventFragment; - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)": EventFragment; - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)": EventFragment; - "Unblocked(bytes32)": EventFragment; - "WithdrawnFee(bytes32,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AutoRequestExecuted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Blocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "CallProxyUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainsSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeAutoUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Flash"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringClaimEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringSendEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PairAdded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Sent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unblocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "WithdrawnFee"): EventFragment; -} - -export interface AutoRequestExecutedEventObject { - submissionId: string; - success: boolean; - callProxy: string; -} -export type AutoRequestExecutedEvent = TypedEvent< - [string, boolean, string], - AutoRequestExecutedEventObject ->; - -export type AutoRequestExecutedEventFilter = - TypedEventFilter; - -export interface BlockedEventObject { - submissionId: string; -} -export type BlockedEvent = TypedEvent<[string], BlockedEventObject>; - -export type BlockedEventFilter = TypedEventFilter; - -export interface CallProxyUpdatedEventObject { - callProxy: string; -} -export type CallProxyUpdatedEvent = TypedEvent< - [string], - CallProxyUpdatedEventObject ->; - -export type CallProxyUpdatedEventFilter = - TypedEventFilter; - -export interface ChainSupportUpdatedEventObject { - chainId: BigNumber; - isSupported: boolean; - isChainFrom: boolean; -} -export type ChainSupportUpdatedEvent = TypedEvent< - [BigNumber, boolean, boolean], - ChainSupportUpdatedEventObject ->; - -export type ChainSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ChainsSupportUpdatedEventObject { - chainIds: BigNumber; - chainSupportInfo: IDeBridgeGate.ChainSupportInfoStructOutput; - isChainFrom: boolean; -} -export type ChainsSupportUpdatedEvent = TypedEvent< - [BigNumber, IDeBridgeGate.ChainSupportInfoStructOutput, boolean], - ChainsSupportUpdatedEventObject ->; - -export type ChainsSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ClaimedEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdFrom: BigNumber; - autoParams: string; - isNativeToken: boolean; -} -export type ClaimedEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, boolean], - ClaimedEventObject ->; - -export type ClaimedEventFilter = TypedEventFilter; - -export interface FixedNativeFeeAutoUpdatedEventObject { - globalFixedNativeFee: BigNumber; -} -export type FixedNativeFeeAutoUpdatedEvent = TypedEvent< - [BigNumber], - FixedNativeFeeAutoUpdatedEventObject ->; - -export type FixedNativeFeeAutoUpdatedEventFilter = - TypedEventFilter; - -export interface FixedNativeFeeUpdatedEventObject { - globalFixedNativeFee: BigNumber; - globalTransferFeeBps: BigNumber; -} -export type FixedNativeFeeUpdatedEvent = TypedEvent< - [BigNumber, BigNumber], - FixedNativeFeeUpdatedEventObject ->; - -export type FixedNativeFeeUpdatedEventFilter = - TypedEventFilter; - -export interface FlashEventObject { - sender: string; - tokenAddress: string; - receiver: string; - amount: BigNumber; - paid: BigNumber; -} -export type FlashEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber], - FlashEventObject ->; - -export type FlashEventFilter = TypedEventFilter; - -export interface MonitoringClaimEventEventObject { - submissionId: string; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringClaimEventEvent = TypedEvent< - [string, BigNumber, BigNumber], - MonitoringClaimEventEventObject ->; - -export type MonitoringClaimEventEventFilter = - TypedEventFilter; - -export interface MonitoringSendEventEventObject { - submissionId: string; - nonce: BigNumber; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringSendEventEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber], - MonitoringSendEventEventObject ->; - -export type MonitoringSendEventEventFilter = - TypedEventFilter; - -export interface PairAddedEventObject { - debridgeId: string; - tokenAddress: string; - nativeAddress: string; - nativeChainId: BigNumber; - maxAmount: BigNumber; - minReservesBps: number; -} -export type PairAddedEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber, number], - PairAddedEventObject ->; - -export type PairAddedEventFilter = TypedEventFilter; - -export interface SentEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdTo: BigNumber; - referralCode: number; - feeParams: IDeBridgeGate.FeeParamsStructOutput; - autoParams: string; - nativeSender: string; -} -export type SentEvent = TypedEvent< - [ - string, - string, - BigNumber, - string, - BigNumber, - BigNumber, - number, - IDeBridgeGate.FeeParamsStructOutput, - string, - string - ], - SentEventObject ->; - -export type SentEventFilter = TypedEventFilter; - -export interface UnblockedEventObject { - submissionId: string; -} -export type UnblockedEvent = TypedEvent<[string], UnblockedEventObject>; - -export type UnblockedEventFilter = TypedEventFilter; - -export interface WithdrawnFeeEventObject { - debridgeId: string; - fee: BigNumber; -} -export type WithdrawnFeeEvent = TypedEvent< - [string, BigNumber], - WithdrawnFeeEventObject ->; - -export type WithdrawnFeeEventFilter = TypedEventFilter; - -export interface IDebridgeGateWithCallProxyGetter extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IDebridgeGateWithCallProxyGetterInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - callProxy(overrides?: CallOverrides): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, string] & { nativeChainId: BigNumber; nativeAddress: string } - >; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AutoRequestExecuted(bytes32,bool,address)"( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - AutoRequestExecuted( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - - "Blocked(bytes32)"(submissionId?: null): BlockedEventFilter; - Blocked(submissionId?: null): BlockedEventFilter; - - "CallProxyUpdated(address)"(callProxy?: null): CallProxyUpdatedEventFilter; - CallProxyUpdated(callProxy?: null): CallProxyUpdatedEventFilter; - - "ChainSupportUpdated(uint256,bool,bool)"( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - ChainSupportUpdated( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - - "ChainsSupportUpdated(uint256,tuple,bool)"( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - ChainsSupportUpdated( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - Claimed( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - - "FixedNativeFeeAutoUpdated(uint256)"( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - FixedNativeFeeAutoUpdated( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - - "FixedNativeFeeUpdated(uint256,uint256)"( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - FixedNativeFeeUpdated( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - - "Flash(address,address,address,uint256,uint256)"( - sender?: null, - tokenAddress?: PromiseOrValue | null, - receiver?: PromiseOrValue | null, - amount?: null, - paid?: null - ): FlashEventFilter; - Flash( - sender?: null, - tokenAddress?: PromiseOrValue | null, - receiver?: PromiseOrValue | null, - amount?: null, - paid?: null - ): FlashEventFilter; - - "MonitoringClaimEvent(bytes32,uint256,uint256)"( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - MonitoringClaimEvent( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)"( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - MonitoringSendEvent( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)"( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - PairAdded( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - Sent( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - - "Unblocked(bytes32)"(submissionId?: null): UnblockedEventFilter; - Unblocked(submissionId?: null): UnblockedEventFilter; - - "WithdrawnFee(bytes32,uint256)"( - debridgeId?: null, - fee?: null - ): WithdrawnFeeEventFilter; - WithdrawnFee(debridgeId?: null, fee?: null): WithdrawnFeeEventFilter; - }; - - estimateGas: { - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/index.ts deleted file mode 100644 index 675c406..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainCounter.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { CrossChainCounter } from "./CrossChainCounter"; -export type { IDebridgeGateWithCallProxyGetter } from "./IDebridgeGateWithCallProxyGetter"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/CrossChainIncrementor.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/CrossChainIncrementor.ts deleted file mode 100644 index 4eafbc9..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/CrossChainIncrementor.ts +++ /dev/null @@ -1,201 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../common"; - -export interface CrossChainIncrementorInterface extends utils.Interface { - functions: { - "deBridgeGate()": FunctionFragment; - "increment(uint8)": FunctionFragment; - "incrementMulti(uint8[])": FunctionFragment; - "incrementWithIncludedGas(uint8,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "deBridgeGate" - | "increment" - | "incrementMulti" - | "incrementWithIncludedGas" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "deBridgeGate", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "increment", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "incrementMulti", - values: [PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "incrementWithIncludedGas", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "deBridgeGate", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "increment", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "incrementMulti", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "incrementWithIncludedGas", - data: BytesLike - ): Result; - - events: {}; -} - -export interface CrossChainIncrementor extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: CrossChainIncrementorInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - deBridgeGate(overrides?: CallOverrides): Promise<[string]>; - - increment( - _amount: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementMulti( - _amounts: PromiseOrValue[], - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementWithIncludedGas( - _amount: PromiseOrValue, - _executionFee: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - deBridgeGate(overrides?: CallOverrides): Promise; - - increment( - _amount: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementMulti( - _amounts: PromiseOrValue[], - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementWithIncludedGas( - _amount: PromiseOrValue, - _executionFee: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - deBridgeGate(overrides?: CallOverrides): Promise; - - increment( - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - incrementMulti( - _amounts: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - incrementWithIncludedGas( - _amount: PromiseOrValue, - _executionFee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - deBridgeGate(overrides?: CallOverrides): Promise; - - increment( - _amount: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementMulti( - _amounts: PromiseOrValue[], - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementWithIncludedGas( - _amount: PromiseOrValue, - _executionFee: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - deBridgeGate(overrides?: CallOverrides): Promise; - - increment( - _amount: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementMulti( - _amounts: PromiseOrValue[], - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - incrementWithIncludedGas( - _amount: PromiseOrValue, - _executionFee: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended.ts deleted file mode 100644 index 9d631b2..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended.ts +++ /dev/null @@ -1,1002 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../common"; - -export declare namespace IDeBridgeGate { - export type ChainSupportInfoStruct = { - fixedNativeFee: PromiseOrValue; - isSupported: PromiseOrValue; - transferFeeBps: PromiseOrValue; - }; - - export type ChainSupportInfoStructOutput = [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - }; - - export type FeeParamsStruct = { - receivedAmount: PromiseOrValue; - fixFee: PromiseOrValue; - transferFee: PromiseOrValue; - useAssetFee: PromiseOrValue; - isNativeToken: PromiseOrValue; - }; - - export type FeeParamsStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - boolean, - boolean - ] & { - receivedAmount: BigNumber; - fixFee: BigNumber; - transferFee: BigNumber; - useAssetFee: boolean; - isNativeToken: boolean; - }; -} - -export interface IDeBridgeGateExtendedInterface extends utils.Interface { - functions: { - "claim(bytes32,uint256,uint256,address,uint256,bytes,bytes)": FunctionFragment; - "flash(address,address,uint256,bytes)": FunctionFragment; - "getDebridgeChainAssetFixedFee(bytes32,uint256)": FunctionFragment; - "getDefiAvaliableReserves(address)": FunctionFragment; - "getNativeInfo(address)": FunctionFragment; - "globalFixedNativeFee()": FunctionFragment; - "isSubmissionUsed(bytes32)": FunctionFragment; - "requestReserves(address,uint256)": FunctionFragment; - "returnReserves(address,uint256)": FunctionFragment; - "send(address,uint256,uint256,bytes,bytes,bool,uint32,bytes)": FunctionFragment; - "withdrawFee(bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "claim" - | "flash" - | "getDebridgeChainAssetFixedFee" - | "getDefiAvaliableReserves" - | "getNativeInfo" - | "globalFixedNativeFee" - | "isSubmissionUsed" - | "requestReserves" - | "returnReserves" - | "send" - | "withdrawFee" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "claim", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "flash", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getDebridgeChainAssetFixedFee", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDefiAvaliableReserves", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getNativeInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "globalFixedNativeFee", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "isSubmissionUsed", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "requestReserves", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "returnReserves", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdrawFee", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "flash", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getDebridgeChainAssetFixedFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDefiAvaliableReserves", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getNativeInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "globalFixedNativeFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "isSubmissionUsed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "requestReserves", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "returnReserves", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "withdrawFee", - data: BytesLike - ): Result; - - events: { - "AutoRequestExecuted(bytes32,bool,address)": EventFragment; - "Blocked(bytes32)": EventFragment; - "CallProxyUpdated(address)": EventFragment; - "ChainSupportUpdated(uint256,bool,bool)": EventFragment; - "ChainsSupportUpdated(uint256,tuple,bool)": EventFragment; - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)": EventFragment; - "FixedNativeFeeAutoUpdated(uint256)": EventFragment; - "FixedNativeFeeUpdated(uint256,uint256)": EventFragment; - "Flash(address,address,address,uint256,uint256)": EventFragment; - "MonitoringClaimEvent(bytes32,uint256,uint256)": EventFragment; - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)": EventFragment; - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)": EventFragment; - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)": EventFragment; - "Unblocked(bytes32)": EventFragment; - "WithdrawnFee(bytes32,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AutoRequestExecuted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Blocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "CallProxyUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainsSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeAutoUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Flash"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringClaimEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringSendEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PairAdded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Sent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unblocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "WithdrawnFee"): EventFragment; -} - -export interface AutoRequestExecutedEventObject { - submissionId: string; - success: boolean; - callProxy: string; -} -export type AutoRequestExecutedEvent = TypedEvent< - [string, boolean, string], - AutoRequestExecutedEventObject ->; - -export type AutoRequestExecutedEventFilter = - TypedEventFilter; - -export interface BlockedEventObject { - submissionId: string; -} -export type BlockedEvent = TypedEvent<[string], BlockedEventObject>; - -export type BlockedEventFilter = TypedEventFilter; - -export interface CallProxyUpdatedEventObject { - callProxy: string; -} -export type CallProxyUpdatedEvent = TypedEvent< - [string], - CallProxyUpdatedEventObject ->; - -export type CallProxyUpdatedEventFilter = - TypedEventFilter; - -export interface ChainSupportUpdatedEventObject { - chainId: BigNumber; - isSupported: boolean; - isChainFrom: boolean; -} -export type ChainSupportUpdatedEvent = TypedEvent< - [BigNumber, boolean, boolean], - ChainSupportUpdatedEventObject ->; - -export type ChainSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ChainsSupportUpdatedEventObject { - chainIds: BigNumber; - chainSupportInfo: IDeBridgeGate.ChainSupportInfoStructOutput; - isChainFrom: boolean; -} -export type ChainsSupportUpdatedEvent = TypedEvent< - [BigNumber, IDeBridgeGate.ChainSupportInfoStructOutput, boolean], - ChainsSupportUpdatedEventObject ->; - -export type ChainsSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ClaimedEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdFrom: BigNumber; - autoParams: string; - isNativeToken: boolean; -} -export type ClaimedEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, boolean], - ClaimedEventObject ->; - -export type ClaimedEventFilter = TypedEventFilter; - -export interface FixedNativeFeeAutoUpdatedEventObject { - globalFixedNativeFee: BigNumber; -} -export type FixedNativeFeeAutoUpdatedEvent = TypedEvent< - [BigNumber], - FixedNativeFeeAutoUpdatedEventObject ->; - -export type FixedNativeFeeAutoUpdatedEventFilter = - TypedEventFilter; - -export interface FixedNativeFeeUpdatedEventObject { - globalFixedNativeFee: BigNumber; - globalTransferFeeBps: BigNumber; -} -export type FixedNativeFeeUpdatedEvent = TypedEvent< - [BigNumber, BigNumber], - FixedNativeFeeUpdatedEventObject ->; - -export type FixedNativeFeeUpdatedEventFilter = - TypedEventFilter; - -export interface FlashEventObject { - sender: string; - tokenAddress: string; - receiver: string; - amount: BigNumber; - paid: BigNumber; -} -export type FlashEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber], - FlashEventObject ->; - -export type FlashEventFilter = TypedEventFilter; - -export interface MonitoringClaimEventEventObject { - submissionId: string; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringClaimEventEvent = TypedEvent< - [string, BigNumber, BigNumber], - MonitoringClaimEventEventObject ->; - -export type MonitoringClaimEventEventFilter = - TypedEventFilter; - -export interface MonitoringSendEventEventObject { - submissionId: string; - nonce: BigNumber; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringSendEventEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber], - MonitoringSendEventEventObject ->; - -export type MonitoringSendEventEventFilter = - TypedEventFilter; - -export interface PairAddedEventObject { - debridgeId: string; - tokenAddress: string; - nativeAddress: string; - nativeChainId: BigNumber; - maxAmount: BigNumber; - minReservesBps: number; -} -export type PairAddedEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber, number], - PairAddedEventObject ->; - -export type PairAddedEventFilter = TypedEventFilter; - -export interface SentEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdTo: BigNumber; - referralCode: number; - feeParams: IDeBridgeGate.FeeParamsStructOutput; - autoParams: string; - nativeSender: string; -} -export type SentEvent = TypedEvent< - [ - string, - string, - BigNumber, - string, - BigNumber, - BigNumber, - number, - IDeBridgeGate.FeeParamsStructOutput, - string, - string - ], - SentEventObject ->; - -export type SentEventFilter = TypedEventFilter; - -export interface UnblockedEventObject { - submissionId: string; -} -export type UnblockedEvent = TypedEvent<[string], UnblockedEventObject>; - -export type UnblockedEventFilter = TypedEventFilter; - -export interface WithdrawnFeeEventObject { - debridgeId: string; - fee: BigNumber; -} -export type WithdrawnFeeEvent = TypedEvent< - [string, BigNumber], - WithdrawnFeeEventObject ->; - -export type WithdrawnFeeEventFilter = TypedEventFilter; - -export interface IDeBridgeGateExtended extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IDeBridgeGateExtendedInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, string] & { nativeChainId: BigNumber; nativeAddress: string } - >; - - globalFixedNativeFee(overrides?: CallOverrides): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AutoRequestExecuted(bytes32,bool,address)"( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - AutoRequestExecuted( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - - "Blocked(bytes32)"(submissionId?: null): BlockedEventFilter; - Blocked(submissionId?: null): BlockedEventFilter; - - "CallProxyUpdated(address)"(callProxy?: null): CallProxyUpdatedEventFilter; - CallProxyUpdated(callProxy?: null): CallProxyUpdatedEventFilter; - - "ChainSupportUpdated(uint256,bool,bool)"( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - ChainSupportUpdated( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - - "ChainsSupportUpdated(uint256,tuple,bool)"( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - ChainsSupportUpdated( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - Claimed( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - - "FixedNativeFeeAutoUpdated(uint256)"( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - FixedNativeFeeAutoUpdated( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - - "FixedNativeFeeUpdated(uint256,uint256)"( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - FixedNativeFeeUpdated( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - - "Flash(address,address,address,uint256,uint256)"( - sender?: null, - tokenAddress?: PromiseOrValue | null, - receiver?: PromiseOrValue | null, - amount?: null, - paid?: null - ): FlashEventFilter; - Flash( - sender?: null, - tokenAddress?: PromiseOrValue | null, - receiver?: PromiseOrValue | null, - amount?: null, - paid?: null - ): FlashEventFilter; - - "MonitoringClaimEvent(bytes32,uint256,uint256)"( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - MonitoringClaimEvent( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)"( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - MonitoringSendEvent( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)"( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - PairAdded( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - Sent( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - - "Unblocked(bytes32)"(submissionId?: null): UnblockedEventFilter; - Unblocked(submissionId?: null): UnblockedEventFilter; - - "WithdrawnFee(bytes32,uint256)"( - debridgeId?: null, - fee?: null - ): WithdrawnFeeEventFilter; - WithdrawnFee(debridgeId?: null, fee?: null): WithdrawnFeeEventFilter; - }; - - estimateGas: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - _tokenAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - _data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDefiAvaliableReserves( - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requestReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - returnReserves( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permit: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/index.ts deleted file mode 100644 index efbf935..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/CrossChainIncrementor.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { CrossChainIncrementor } from "./CrossChainIncrementor"; -export type { IDeBridgeGateExtended } from "./IDeBridgeGateExtended"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/index.ts deleted file mode 100644 index 49141a5..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as crossChainCounterSol from "./CrossChainCounter.sol"; -export type { crossChainCounterSol }; -import type * as crossChainIncrementorSol from "./CrossChainIncrementor.sol"; -export type { crossChainIncrementorSol }; -import type * as interfaces from "./interfaces"; -export type { interfaces }; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/ICrossChainCounter.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/ICrossChainCounter.ts deleted file mode 100644 index dc38499..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/ICrossChainCounter.ts +++ /dev/null @@ -1,189 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../common"; - -export interface ICrossChainCounterInterface extends utils.Interface { - functions: { - "receiveIncrementCommand(uint8,address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "receiveIncrementCommand" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "receiveIncrementCommand", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "receiveIncrementCommand", - data: BytesLike - ): Result; - - events: { - "CounterIncremented(uint256,uint8,uint256,address)": EventFragment; - "SupportedChainAdded(uint256,bytes)": EventFragment; - "SupportedChainRemoved(uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "CounterIncremented"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SupportedChainAdded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SupportedChainRemoved"): EventFragment; -} - -export interface CounterIncrementedEventObject { - newCounterValue: BigNumber; - amount: number; - chainFrom: BigNumber; - initiator: string; -} -export type CounterIncrementedEvent = TypedEvent< - [BigNumber, number, BigNumber, string], - CounterIncrementedEventObject ->; - -export type CounterIncrementedEventFilter = - TypedEventFilter; - -export interface SupportedChainAddedEventObject { - chainId: BigNumber; - incrementorAddress: string; -} -export type SupportedChainAddedEvent = TypedEvent< - [BigNumber, string], - SupportedChainAddedEventObject ->; - -export type SupportedChainAddedEventFilter = - TypedEventFilter; - -export interface SupportedChainRemovedEventObject { - chainId: BigNumber; -} -export type SupportedChainRemovedEvent = TypedEvent< - [BigNumber], - SupportedChainRemovedEventObject ->; - -export type SupportedChainRemovedEventFilter = - TypedEventFilter; - -export interface ICrossChainCounter extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ICrossChainCounterInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "CounterIncremented(uint256,uint8,uint256,address)"( - newCounterValue?: null, - amount?: null, - chainFrom?: null, - initiator?: null - ): CounterIncrementedEventFilter; - CounterIncremented( - newCounterValue?: null, - amount?: null, - chainFrom?: null, - initiator?: null - ): CounterIncrementedEventFilter; - - "SupportedChainAdded(uint256,bytes)"( - chainId?: null, - incrementorAddress?: null - ): SupportedChainAddedEventFilter; - SupportedChainAdded( - chainId?: null, - incrementorAddress?: null - ): SupportedChainAddedEventFilter; - - "SupportedChainRemoved(uint256)"( - chainId?: null - ): SupportedChainRemovedEventFilter; - SupportedChainRemoved(chainId?: null): SupportedChainRemovedEventFilter; - }; - - estimateGas: { - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - receiveIncrementCommand( - _amount: PromiseOrValue, - _initiator: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/index.ts deleted file mode 100644 index 40c4c3a..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/contracts/interfaces/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ICrossChainCounter } from "./ICrossChainCounter"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/index.ts deleted file mode 100644 index 3c75840..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as interfaces from "./interfaces"; -export * as libraries from "./libraries"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts deleted file mode 100644 index 076671a..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ICallProxy, - ICallProxyInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/ICallProxy"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "_reserveAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "bytes", - name: "_nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - ], - name: "call", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_token", - type: "address", - }, - { - internalType: "address", - name: "_reserveAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "bytes", - name: "_nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - ], - name: "callERC20", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "submissionChainIdFrom", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "submissionNativeSender", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class ICallProxy__factory { - static readonly abi = _abi; - static createInterface(): ICallProxyInterface { - return new utils.Interface(_abi) as ICallProxyInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ICallProxy { - return new Contract(address, _abi, signerOrProvider) as ICallProxy; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts deleted file mode 100644 index b44ee15..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts +++ /dev/null @@ -1,747 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IDeBridgeGate, - IDeBridgeGateInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bool", - name: "success", - type: "bool", - }, - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "AutoRequestExecuted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Blocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "CallProxyUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainIds", - type: "uint256", - }, - { - components: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.ChainSupportInfo", - name: "chainSupportInfo", - type: "tuple", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainsSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdFrom", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - name: "Claimed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - ], - name: "FixedNativeFeeAutoUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "globalTransferFeeBps", - type: "uint256", - }, - ], - name: "FixedNativeFeeUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "paid", - type: "uint256", - }, - ], - name: "Flash", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringClaimEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringSendEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "maxAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint16", - name: "minReservesBps", - type: "uint16", - }, - ], - name: "PairAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "receiver", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdTo", - type: "uint256", - }, - { - indexed: false, - internalType: "uint32", - name: "referralCode", - type: "uint32", - }, - { - components: [ - { - internalType: "uint256", - name: "receivedAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "fixFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "transferFee", - type: "uint256", - }, - { - internalType: "bool", - name: "useAssetFee", - type: "bool", - }, - { - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.FeeParams", - name: "feeParams", - type: "tuple", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "address", - name: "nativeSender", - type: "address", - }, - ], - name: "Sent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Unblocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "fee", - type: "uint256", - }, - ], - name: "WithdrawnFee", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_nonce", - type: "uint256", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "claim", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - ], - name: "flash", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - ], - name: "getDebridgeChainAssetFixedFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - ], - name: "getDefiAvaliableReserves", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - ], - name: "getNativeInfo", - outputs: [ - { - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "isSubmissionUsed", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "requestReserves", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "returnReserves", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdTo", - type: "uint256", - }, - { - internalType: "bytes", - name: "_receiver", - type: "bytes", - }, - { - internalType: "bytes", - name: "_permit", - type: "bytes", - }, - { - internalType: "bool", - name: "_useAssetFee", - type: "bool", - }, - { - internalType: "uint32", - name: "_referralCode", - type: "uint32", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "send", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - ], - name: "withdrawFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IDeBridgeGate__factory { - static readonly abi = _abi; - static createInterface(): IDeBridgeGateInterface { - return new utils.Interface(_abi) as IDeBridgeGateInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IDeBridgeGate { - return new Contract(address, _abi, signerOrProvider) as IDeBridgeGate; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts deleted file mode 100644 index 8e0ee04..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ICallProxy__factory } from "./ICallProxy__factory"; -export { IDeBridgeGate__factory } from "./IDeBridgeGate__factory"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts deleted file mode 100644 index a1838ce..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - Flags, - FlagsInterface, -} from "../../../../../@debridge-finance/contracts/contracts/libraries/Flags"; - -const _abi = [ - { - inputs: [], - name: "MULTI_SEND", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "PROXY_WITH_SENDER", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "REVERT_IF_EXTERNAL_FAIL", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "SEND_EXTERNAL_CALL_GAS_LIMIT", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "SEND_HASHED_DATA", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "UNWRAP_ETH", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -const _bytecode = - "0x6101ad610053600b82828239805160001a607314610046577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361061006c5760003560e01c8063222f8167146100715780633b1805941461008f5780637b8332f9146100ad578063878174a9146100cb578063a8153758146100e9578063f3ff906314610107575b600080fd5b610079610125565b6040516100869190610152565b60405180910390f35b61009761012a565b6040516100a49190610152565b60405180910390f35b6100b561012f565b6040516100c29190610152565b60405180910390f35b6100d3610134565b6040516100e09190610152565b60405180910390f35b6100f1610139565b6040516100fe9190610152565b60405180910390f35b61010f61013e565b60405161011c9190610152565b60405180910390f35b600381565b600081565b600181565b600281565b600581565b600481565b61014c8161016d565b82525050565b60006020820190506101676000830184610143565b92915050565b600081905091905056fea2646970667358221220c4156b5a0a4f9aecfdbf90034a6c6901074d3afeb374698bfa1048f955b8f2cc64736f6c63430008070033"; - -type FlagsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: FlagsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class Flags__factory extends ContractFactory { - constructor(...args: FlagsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): Flags { - return super.attach(address) as Flags; - } - override connect(signer: Signer): Flags__factory { - return super.connect(signer) as Flags__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): FlagsInterface { - return new utils.Interface(_abi) as FlagsInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Flags { - return new Contract(address, _abi, signerOrProvider) as Flags; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts deleted file mode 100644 index a0051ae..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Flags__factory } from "./Flags__factory"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/index.ts deleted file mode 100644 index 6397da0..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/contracts/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as contracts from "./contracts"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/index.ts deleted file mode 100644 index 6397da0..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@debridge-finance/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as contracts from "./contracts"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/AccessControl__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/AccessControl__factory.ts deleted file mode 100644 index 6f9d7e6..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/AccessControl__factory.ts +++ /dev/null @@ -1,230 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - AccessControl, - AccessControlInterface, -} from "../../../../@openzeppelin/contracts/access/AccessControl"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -export class AccessControl__factory { - static readonly abi = _abi; - static createInterface(): AccessControlInterface { - return new utils.Interface(_abi) as AccessControlInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): AccessControl { - return new Contract(address, _abi, signerOrProvider) as AccessControl; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts deleted file mode 100644 index e54fa6a..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +++ /dev/null @@ -1,198 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IAccessControl, - IAccessControlInterface, -} from "../../../../@openzeppelin/contracts/access/IAccessControl"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IAccessControl__factory { - static readonly abi = _abi; - static createInterface(): IAccessControlInterface { - return new utils.Interface(_abi) as IAccessControlInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IAccessControl { - return new Contract(address, _abi, signerOrProvider) as IAccessControl; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/index.ts deleted file mode 100644 index b42435d..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { AccessControl__factory } from "./AccessControl__factory"; -export { IAccessControl__factory } from "./IAccessControl__factory"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/index.ts deleted file mode 100644 index b7db5f9..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as access from "./access"; -export * as utils from "./utils"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/index.ts deleted file mode 100644 index 03cab17..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as introspection from "./introspection"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts deleted file mode 100644 index a0634c0..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/ERC165__factory.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ERC165, - ERC165Interface, -} from "../../../../../@openzeppelin/contracts/utils/introspection/ERC165"; - -const _abi = [ - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -export class ERC165__factory { - static readonly abi = _abi; - static createInterface(): ERC165Interface { - return new utils.Interface(_abi) as ERC165Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): ERC165 { - return new Contract(address, _abi, signerOrProvider) as ERC165; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts deleted file mode 100644 index 2e3b099..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC165, - IERC165Interface, -} from "../../../../../@openzeppelin/contracts/utils/introspection/IERC165"; - -const _abi = [ - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -export class IERC165__factory { - static readonly abi = _abi; - static createInterface(): IERC165Interface { - return new utils.Interface(_abi) as IERC165Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC165 { - return new Contract(address, _abi, signerOrProvider) as IERC165; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/index.ts deleted file mode 100644 index 8523e0a..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/contracts/utils/introspection/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ERC165__factory } from "./ERC165__factory"; -export { IERC165__factory } from "./IERC165__factory"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/index.ts deleted file mode 100644 index 6397da0..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/@openzeppelin/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as contracts from "./contracts"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/CrossChainCounter__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/CrossChainCounter__factory.ts deleted file mode 100644 index 01d522b..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/CrossChainCounter__factory.ts +++ /dev/null @@ -1,458 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../common"; -import type { - CrossChainCounter, - CrossChainCounterInterface, -} from "../../../contracts/CrossChainCounter.sol/CrossChainCounter"; - -const _abi = [ - { - inputs: [ - { - internalType: "contract IDebridgeGateWithCallProxyGetter", - name: "deBridgeGate_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "AdminBadRole", - type: "error", - }, - { - inputs: [], - name: "CallProxyBadRole", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - ], - name: "ChainNotSupported", - type: "error", - }, - { - inputs: [ - { - internalType: "bytes", - name: "nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "chainIdFrom", - type: "uint256", - }, - ], - name: "NativeSenderBadRole", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "newCounterValue", - type: "uint256", - }, - { - indexed: false, - internalType: "uint8", - name: "amount", - type: "uint8", - }, - { - indexed: false, - internalType: "uint256", - name: "chainFrom", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "initiator", - type: "address", - }, - ], - name: "CounterIncremented", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "incrementorAddress", - type: "bytes", - }, - ], - name: "SupportedChainAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - ], - name: "SupportedChainRemoved", - type: "event", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "_crossChainIncrementorAddress", - type: "bytes", - }, - ], - name: "addChainSupport", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "counter", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "deBridgeGate", - outputs: [ - { - internalType: "contract IDebridgeGateWithCallProxyGetter", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_amount", - type: "uint8", - }, - { - internalType: "address", - name: "_initiator", - type: "address", - }, - ], - name: "receiveIncrementCommand", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - ], - name: "removeChainSupport", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -const _bytecode = - "0x60806040523480156200001157600080fd5b5060405162001f6d38038062001f6d833981810160405281019062000037919062000224565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200008d6000801b336200009460201b60201c565b50620002bd565b620000a68282620000aa60201b60201c565b5050565b620000bc82826200019b60201b60201c565b6200019757600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200013c6200020560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b6000815190506200021e81620002a3565b92915050565b6000602082840312156200023d576200023c6200029e565b5b60006200024d848285016200020d565b91505092915050565b600062000263826200027e565b9050919050565b6000620002778262000256565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620002ae816200026a565b8114620002ba57600080fd5b50565b611ca080620002cd6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806391d148541161007157806391d148541461018b578063a217fddf146101bb578063ca777fbf146101d9578063cca5afd4146101f7578063d547741f14610213578063f185edf21461022f576100b4565b806301ffc9a7146100b9578063248a9ca3146100e95780632f2ff15d1461011957806336568abe1461013557806361bc221a14610151578063720c281d1461016f575b600080fd5b6100d360048036038101906100ce919061121b565b61024b565b6040516100e091906115e0565b60405180910390f35b61010360048036038101906100fe91906111ae565b6102c5565b60405161011091906115fb565b60405180910390f35b610133600480360381019061012e91906111db565b6102e4565b005b61014f600480360381019061014a91906111db565b610305565b005b610159610388565b60405161016691906116c3565b60405180910390f35b61018960048036038101906101849190611291565b61038e565b005b6101a560048036038101906101a091906111db565b61043a565b6040516101b291906115e0565b60405180910390f35b6101c36104a4565b6040516101d091906115fb565b60405180910390f35b6101e16104ab565b6040516101ee9190611646565b60405180910390f35b610211600480360381019061020c9190611347565b6104d1565b005b61022d600480360381019061022891906111db565b610950565b005b610249600480360381019061024491906112eb565b610971565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102be57506102bd82610a4b565b5b9050919050565b6000806000838152602001908152602001600020600101549050919050565b6102ed826102c5565b6102f681610ab5565b6103008383610ac9565b505050565b61030d610ba9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461037a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610371906116a3565b60405180910390fd5b6103848282610bb1565b5050565b60035481565b61039b6000801b3361043a565b6103d1576040517fde8e41fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006002600083815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507f1078e641ba4952ca3f912ad516e69b623ae23dfc9eb9040895213a5cb7a9824f8160405161042f91906116c3565b60405180910390a150565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632da688ac6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561053d57600080fd5b505af1158015610551573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105759190611181565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105dc576040517f910e7d9c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663508ab0a06040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561062657600080fd5b505af115801561063a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065e91906112be565b90506000600260008381526020019081526020016000206001018054610683906119e9565b905014156106c857806040517f264e42cf0000000000000000000000000000000000000000000000000000000081526004016106bf91906116c3565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16632eb484916040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561071257600080fd5b505af1158015610726573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061074f9190611248565b905080805190602001206002600084815260200190815260200160002060010160405161077c919061158f565b6040518091039020146107c85780826040517f0f25bbaa0000000000000000000000000000000000000000000000000000000081526004016107bf929190611616565b60405180910390fd5b8460ff16600360008282546107dd919061180c565b925050819055506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632da688ac6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561085057600080fd5b505af1158015610864573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108889190611181565b73ffffffffffffffffffffffffffffffffffffffff1663508ab0a06040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156108cf57600080fd5b505af11580156108e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090791906112be565b90507f2d610d0c1e84a218c3912e1ea49b0f18254d1e6a5a26e702d5f1ba1ddeff791f600354878388604051610940949392919061170e565b60405180910390a1505050505050565b610959826102c5565b61096281610ab5565b61096c8383610bb1565b505050565b61097e6000801b3361043a565b6109b4576040517fde8e41fa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002600084815260200190815260200160002060010190805190602001906109de929190610f6b565b5060016002600084815260200190815260200160002060000160006101000a81548160ff0219169083151502179055507fd25177e555af58dcaf6d1ee9e50fb88465f9708820a35552a0eb3923e65040bb8282604051610a3f9291906116de565b60405180910390a15050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610ac681610ac1610ba9565b610c92565b50565b610ad3828261043a565b610ba557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610b4a610ba9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600033905090565b610bbb828261043a565b15610c8e57600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610c33610ba9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b610c9c828261043a565b610d2b57610cc18173ffffffffffffffffffffffffffffffffffffffff166014610d2f565b610ccf8360001c6020610d2f565b604051602001610ce09291906115a6565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d229190611661565b60405180910390fd5b5050565b606060006002836002610d429190611862565b610d4c919061180c565b67ffffffffffffffff811115610d6557610d64611ad9565b5b6040519080825280601f01601f191660200182016040528015610d975781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610dcf57610dce611aaa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610e3357610e32611aaa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002610e739190611862565b610e7d919061180c565b90505b6001811115610f1d577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110610ebf57610ebe611aaa565b5b1a60f81b828281518110610ed657610ed5611aaa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080610f16906119bf565b9050610e80565b5060008414610f61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5890611683565b60405180910390fd5b8091505092915050565b828054610f77906119e9565b90600052602060002090601f016020900481019282610f995760008555610fe0565b82601f10610fb257805160ff1916838001178555610fe0565b82800160010185558215610fe0579182015b82811115610fdf578251825591602001919060010190610fc4565b5b509050610fed9190610ff1565b5090565b5b8082111561100a576000816000905550600101610ff2565b5090565b600061102161101c84611778565b611753565b90508281526020810184848401111561103d5761103c611b0d565b5b61104884828561197d565b509392505050565b600061106361105e84611778565b611753565b90508281526020810184848401111561107f5761107e611b0d565b5b61108a84828561198c565b509392505050565b6000813590506110a181611bf7565b92915050565b6000815190506110b681611bf7565b92915050565b6000813590506110cb81611c0e565b92915050565b6000813590506110e081611c25565b92915050565b600082601f8301126110fb576110fa611b08565b5b813561110b84826020860161100e565b91505092915050565b600082601f83011261112957611128611b08565b5b8151611139848260208601611050565b91505092915050565b60008135905061115181611c3c565b92915050565b60008151905061116681611c3c565b92915050565b60008135905061117b81611c53565b92915050565b60006020828403121561119757611196611b17565b5b60006111a5848285016110a7565b91505092915050565b6000602082840312156111c4576111c3611b17565b5b60006111d2848285016110bc565b91505092915050565b600080604083850312156111f2576111f1611b17565b5b6000611200858286016110bc565b925050602061121185828601611092565b9150509250929050565b60006020828403121561123157611230611b17565b5b600061123f848285016110d1565b91505092915050565b60006020828403121561125e5761125d611b17565b5b600082015167ffffffffffffffff81111561127c5761127b611b12565b5b61128884828501611114565b91505092915050565b6000602082840312156112a7576112a6611b17565b5b60006112b584828501611142565b91505092915050565b6000602082840312156112d4576112d3611b17565b5b60006112e284828501611157565b91505092915050565b6000806040838503121561130257611301611b17565b5b600061131085828601611142565b925050602083013567ffffffffffffffff81111561133157611330611b12565b5b61133d858286016110e6565b9150509250929050565b6000806040838503121561135e5761135d611b17565b5b600061136c8582860161116c565b925050602061137d85828601611092565b9150509250929050565b611390816118bc565b82525050565b61139f816118ce565b82525050565b6113ae816118da565b82525050565b60006113bf826117be565b6113c981856117d4565b93506113d981856020860161198c565b6113e281611b1c565b840191505092915050565b600081546113fa816119e9565b61140481866117e5565b9450600182166000811461141f576001811461143057611463565b60ff19831686528186019350611463565b611439856117a9565b60005b8381101561145b5781548189015260018201915060208101905061143c565b838801955050505b50505092915050565b61147581611947565b82525050565b6000611486826117c9565b61149081856117f0565b93506114a081856020860161198c565b6114a981611b1c565b840191505092915050565b60006114bf826117c9565b6114c98185611801565b93506114d981856020860161198c565b80840191505092915050565b60006114f26020836117f0565b91506114fd82611b2d565b602082019050919050565b6000611515601783611801565b915061152082611b56565b601782019050919050565b6000611538601183611801565b915061154382611b7f565b601182019050919050565b600061155b602f836117f0565b915061156682611ba8565b604082019050919050565b61157a81611930565b82525050565b6115898161193a565b82525050565b600061159b82846113ed565b915081905092915050565b60006115b182611508565b91506115bd82856114b4565b91506115c88261152b565b91506115d482846114b4565b91508190509392505050565b60006020820190506115f56000830184611396565b92915050565b600060208201905061161060008301846113a5565b92915050565b6000604082019050818103600083015261163081856113b4565b905061163f6020830184611571565b9392505050565b600060208201905061165b600083018461146c565b92915050565b6000602082019050818103600083015261167b818461147b565b905092915050565b6000602082019050818103600083015261169c816114e5565b9050919050565b600060208201905081810360008301526116bc8161154e565b9050919050565b60006020820190506116d86000830184611571565b92915050565b60006040820190506116f36000830185611571565b818103602083015261170581846113b4565b90509392505050565b60006080820190506117236000830187611571565b6117306020830186611580565b61173d6040830185611571565b61174a6060830184611387565b95945050505050565b600061175d61176e565b90506117698282611a1b565b919050565b6000604051905090565b600067ffffffffffffffff82111561179357611792611ad9565b5b61179c82611b1c565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061181782611930565b915061182283611930565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561185757611856611a4c565b5b828201905092915050565b600061186d82611930565b915061187883611930565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156118b1576118b0611a4c565b5b828202905092915050565b60006118c782611910565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600061195282611959565b9050919050565b60006119648261196b565b9050919050565b600061197682611910565b9050919050565b82818337600083830152505050565b60005b838110156119aa57808201518184015260208101905061198f565b838111156119b9576000848401525b50505050565b60006119ca82611930565b915060008214156119de576119dd611a4c565b5b600182039050919050565b60006002820490506001821680611a0157607f821691505b60208210811415611a1557611a14611a7b565b5b50919050565b611a2482611b1c565b810181811067ffffffffffffffff82111715611a4357611a42611ad9565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b611c00816118bc565b8114611c0b57600080fd5b50565b611c17816118da565b8114611c2257600080fd5b50565b611c2e816118e4565b8114611c3957600080fd5b50565b611c4581611930565b8114611c5057600080fd5b50565b611c5c8161193a565b8114611c6757600080fd5b5056fea2646970667358221220b41e1e9f810a717b269e6fd96e04c1a432246bb7107ffaaf2772f4809578334364736f6c63430008070033"; - -type CrossChainCounterConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: CrossChainCounterConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class CrossChainCounter__factory extends ContractFactory { - constructor(...args: CrossChainCounterConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - deBridgeGate_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - deBridgeGate_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - deBridgeGate_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(deBridgeGate_, overrides || {}); - } - override attach(address: string): CrossChainCounter { - return super.attach(address) as CrossChainCounter; - } - override connect(signer: Signer): CrossChainCounter__factory { - return super.connect(signer) as CrossChainCounter__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): CrossChainCounterInterface { - return new utils.Interface(_abi) as CrossChainCounterInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): CrossChainCounter { - return new Contract(address, _abi, signerOrProvider) as CrossChainCounter; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter__factory.ts deleted file mode 100644 index 1de91c0..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter__factory.ts +++ /dev/null @@ -1,766 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IDebridgeGateWithCallProxyGetter, - IDebridgeGateWithCallProxyGetterInterface, -} from "../../../contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bool", - name: "success", - type: "bool", - }, - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "AutoRequestExecuted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Blocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "CallProxyUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainIds", - type: "uint256", - }, - { - components: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.ChainSupportInfo", - name: "chainSupportInfo", - type: "tuple", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainsSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdFrom", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - name: "Claimed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - ], - name: "FixedNativeFeeAutoUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "globalTransferFeeBps", - type: "uint256", - }, - ], - name: "FixedNativeFeeUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "paid", - type: "uint256", - }, - ], - name: "Flash", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringClaimEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringSendEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "maxAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint16", - name: "minReservesBps", - type: "uint16", - }, - ], - name: "PairAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "receiver", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdTo", - type: "uint256", - }, - { - indexed: false, - internalType: "uint32", - name: "referralCode", - type: "uint32", - }, - { - components: [ - { - internalType: "uint256", - name: "receivedAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "fixFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "transferFee", - type: "uint256", - }, - { - internalType: "bool", - name: "useAssetFee", - type: "bool", - }, - { - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.FeeParams", - name: "feeParams", - type: "tuple", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "address", - name: "nativeSender", - type: "address", - }, - ], - name: "Sent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Unblocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "fee", - type: "uint256", - }, - ], - name: "WithdrawnFee", - type: "event", - }, - { - inputs: [], - name: "callProxy", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_nonce", - type: "uint256", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "claim", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - ], - name: "flash", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - ], - name: "getDebridgeChainAssetFixedFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - ], - name: "getDefiAvaliableReserves", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - ], - name: "getNativeInfo", - outputs: [ - { - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "isSubmissionUsed", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "requestReserves", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "returnReserves", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdTo", - type: "uint256", - }, - { - internalType: "bytes", - name: "_receiver", - type: "bytes", - }, - { - internalType: "bytes", - name: "_permit", - type: "bytes", - }, - { - internalType: "bool", - name: "_useAssetFee", - type: "bool", - }, - { - internalType: "uint32", - name: "_referralCode", - type: "uint32", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "send", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - ], - name: "withdrawFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IDebridgeGateWithCallProxyGetter__factory { - static readonly abi = _abi; - static createInterface(): IDebridgeGateWithCallProxyGetterInterface { - return new utils.Interface( - _abi - ) as IDebridgeGateWithCallProxyGetterInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IDebridgeGateWithCallProxyGetter { - return new Contract( - address, - _abi, - signerOrProvider - ) as IDebridgeGateWithCallProxyGetter; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/index.ts deleted file mode 100644 index 16c5702..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainCounter.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { CrossChainCounter__factory } from "./CrossChainCounter__factory"; -export { IDebridgeGateWithCallProxyGetter__factory } from "./IDebridgeGateWithCallProxyGetter__factory"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/CrossChainIncrementor__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/CrossChainIncrementor__factory.ts deleted file mode 100644 index 5a4a330..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/CrossChainIncrementor__factory.ts +++ /dev/null @@ -1,172 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Signer, - utils, - Contract, - ContractFactory, - BigNumberish, - Overrides, -} from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../common"; -import type { - CrossChainIncrementor, - CrossChainIncrementorInterface, -} from "../../../contracts/CrossChainIncrementor.sol/CrossChainIncrementor"; - -const _abi = [ - { - inputs: [ - { - internalType: "contract IDeBridgeGateExtended", - name: "deBridgeGate_", - type: "address", - }, - { - internalType: "uint256", - name: "crossChainCounterResidenceChainID_", - type: "uint256", - }, - { - internalType: "address", - name: "crossChainCounterResidenceAddress_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "deBridgeGate", - outputs: [ - { - internalType: "contract IDeBridgeGateExtended", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_amount", - type: "uint8", - }, - ], - name: "increment", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8[]", - name: "_amounts", - type: "uint8[]", - }, - ], - name: "incrementMulti", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_amount", - type: "uint8", - }, - { - internalType: "uint256", - name: "_executionFee", - type: "uint256", - }, - ], - name: "incrementWithIncludedGas", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -]; - -const _bytecode = - "0x60806040523480156200001157600080fd5b5060405162000e5238038062000e5283398181016040528101906200003791906200010d565b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160018190555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506200020e565b600081519050620000d981620001c0565b92915050565b600081519050620000f081620001da565b92915050565b6000815190506200010781620001f4565b92915050565b600080600060608486031215620001295762000128620001bb565b5b60006200013986828701620000df565b93505060206200014c86828701620000f6565b92505060406200015f86828701620000c8565b9150509250925092565b6000620001768262000191565b9050919050565b60006200018a8262000169565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b620001cb8162000169565b8114620001d757600080fd5b50565b620001e5816200017d565b8114620001f157600080fd5b50565b620001ff81620001b1565b81146200020b57600080fd5b50565b610c34806200021e6000396000f3fe6080604052600436106100435760003560e01c8063973897791461004f578063a78730a51461006b578063ca777fbf14610087578063d6b46330146100b25761004a565b3661004a57005b600080fd5b61006960048036038101906100649190610567565b6100ce565b005b6100856004803603810190610080919061060a565b610131565b005b34801561009357600080fd5b5061009c61014e565b6040516100a99190610875565b60405180910390f35b6100cc60048036038101906100c791906105dd565b610172565b005b60005b81518160ff16101561012d576000828260ff16815181106100f5576100f4610b3d565b5b60200260200101519050600061010b823361018f565b9050610118816000610211565b5050808061012590610ac0565b9150506100d1565b5050565b600061013d833361018f565b90506101498183610211565b505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061017e823361018f565b905061018b816000610211565b5050565b606063cca5afd460e01b83836040516024016101ac9291906108b2565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905092915050565b610219610462565b8181600001818152505061023481602001516002600161043a565b81602001818152505061024d816020015160018061043a565b8160200181815250508281606001819052503360405160200161027091906107c9565b604051602081830303815290604052816040018190525060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166335087f0a6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156102f257600080fd5b505af1158015610306573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061032a91906105b0565b905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663be29747684836103749190610959565b600086600154600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516020016103ad91906107c9565b604051602081830303815290604052600160008a6040516020016103d19190610890565b6040516020818303038152906040526040518963ffffffff1660e01b815260040161040297969594939291906107e4565b6000604051808303818588803b15801561041b57600080fd5b505af115801561042f573d6000803e3d6000fd5b505050505050505050565b6000811561045057826001901b8417905061045b565b826001901b19841690505b9392505050565b6040518060800160405280600081526020016000815260200160608152602001606081525090565b600061049d61049884610900565b6108db565b905080838252602082019050828560208602820111156104c0576104bf610ba0565b5b60005b858110156104f057816104d68882610552565b8452602084019350602083019250506001810190506104c3565b5050509392505050565b600082601f83011261050f5761050e610b9b565b5b813561051f84826020860161048a565b91505092915050565b60008135905061053781610bd0565b92915050565b60008151905061054c81610bd0565b92915050565b60008135905061056181610be7565b92915050565b60006020828403121561057d5761057c610baa565b5b600082013567ffffffffffffffff81111561059b5761059a610ba5565b5b6105a7848285016104fa565b91505092915050565b6000602082840312156105c6576105c5610baa565b5b60006105d48482850161053d565b91505092915050565b6000602082840312156105f3576105f2610baa565b5b600061060184828501610552565b91505092915050565b6000806040838503121561062157610620610baa565b5b600061062f85828601610552565b925050602061064085828601610528565b9150509250929050565b610653816109af565b82525050565b61066a610665826109af565b610aea565b82525050565b610679816109c1565b82525050565b600061068a8261092c565b6106948185610937565b93506106a4818560208601610a5c565b6106ad81610baf565b840191505092915050565b60006106c38261092c565b6106cd8185610948565b93506106dd818560208601610a5c565b6106e681610baf565b840191505092915050565b6106fa81610a14565b82525050565b61070981610a26565b82525050565b600061071c600083610948565b915061072782610bcd565b600082019050919050565b600060808301600083015161074a600086018261079c565b50602083015161075d602086018261079c565b5060408301518482036040860152610775828261067f565b9150506060830151848203606086015261078f828261067f565b9150508091505092915050565b6107a5816109ed565b82525050565b6107b4816109ed565b82525050565b6107c381610a07565b82525050565b60006107d58284610659565b60148201915081905092915050565b6000610100820190506107fa600083018a61064a565b61080760208301896107ab565b61081460408301886107ab565b818103606083015261082681876106b8565b905081810360808301526108398161070f565b905061084860a0830186610670565b61085560c0830185610700565b81810360e083015261086781846106b8565b905098975050505050505050565b600060208201905061088a60008301846106f1565b92915050565b600060208201905081810360008301526108aa8184610732565b905092915050565b60006040820190506108c760008301856107ba565b6108d4602083018461064a565b9392505050565b60006108e56108f6565b90506108f18282610a8f565b919050565b6000604051905090565b600067ffffffffffffffff82111561091b5761091a610b6c565b5b602082029050602081019050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000610964826109ed565b915061096f836109ed565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156109a4576109a3610b0e565b5b828201905092915050565b60006109ba826109cd565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b6000610a1f82610a38565b9050919050565b6000610a31826109f7565b9050919050565b6000610a4382610a4a565b9050919050565b6000610a55826109cd565b9050919050565b60005b83811015610a7a578082015181840152602081019050610a5f565b83811115610a89576000848401525b50505050565b610a9882610baf565b810181811067ffffffffffffffff82111715610ab757610ab6610b6c565b5b80604052505050565b6000610acb82610a07565b915060ff821415610adf57610ade610b0e565b5b600182019050919050565b6000610af582610afc565b9050919050565b6000610b0782610bc0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b50565b610bd9816109ed565b8114610be457600080fd5b50565b610bf081610a07565b8114610bfb57600080fd5b5056fea264697066735822122047a724d077469d0467b1c7e492cbe224c2b9455ff3df64cb41cd15cd69623c9e64736f6c63430008070033"; - -type CrossChainIncrementorConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: CrossChainIncrementorConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class CrossChainIncrementor__factory extends ContractFactory { - constructor(...args: CrossChainIncrementorConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - deBridgeGate_: PromiseOrValue, - crossChainCounterResidenceChainID_: PromiseOrValue, - crossChainCounterResidenceAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - deBridgeGate_, - crossChainCounterResidenceChainID_, - crossChainCounterResidenceAddress_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - deBridgeGate_: PromiseOrValue, - crossChainCounterResidenceChainID_: PromiseOrValue, - crossChainCounterResidenceAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - deBridgeGate_, - crossChainCounterResidenceChainID_, - crossChainCounterResidenceAddress_, - overrides || {} - ); - } - override attach(address: string): CrossChainIncrementor { - return super.attach(address) as CrossChainIncrementor; - } - override connect(signer: Signer): CrossChainIncrementor__factory { - return super.connect(signer) as CrossChainIncrementor__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): CrossChainIncrementorInterface { - return new utils.Interface(_abi) as CrossChainIncrementorInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): CrossChainIncrementor { - return new Contract( - address, - _abi, - signerOrProvider - ) as CrossChainIncrementor; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended__factory.ts deleted file mode 100644 index ce8f88a..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended__factory.ts +++ /dev/null @@ -1,764 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IDeBridgeGateExtended, - IDeBridgeGateExtendedInterface, -} from "../../../contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bool", - name: "success", - type: "bool", - }, - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "AutoRequestExecuted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Blocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "CallProxyUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainIds", - type: "uint256", - }, - { - components: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.ChainSupportInfo", - name: "chainSupportInfo", - type: "tuple", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainsSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdFrom", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - name: "Claimed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - ], - name: "FixedNativeFeeAutoUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "globalTransferFeeBps", - type: "uint256", - }, - ], - name: "FixedNativeFeeUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "paid", - type: "uint256", - }, - ], - name: "Flash", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringClaimEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringSendEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "maxAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint16", - name: "minReservesBps", - type: "uint16", - }, - ], - name: "PairAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "receiver", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdTo", - type: "uint256", - }, - { - indexed: false, - internalType: "uint32", - name: "referralCode", - type: "uint32", - }, - { - components: [ - { - internalType: "uint256", - name: "receivedAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "fixFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "transferFee", - type: "uint256", - }, - { - internalType: "bool", - name: "useAssetFee", - type: "bool", - }, - { - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.FeeParams", - name: "feeParams", - type: "tuple", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "address", - name: "nativeSender", - type: "address", - }, - ], - name: "Sent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Unblocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "fee", - type: "uint256", - }, - ], - name: "WithdrawnFee", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_nonce", - type: "uint256", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "claim", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - ], - name: "flash", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - ], - name: "getDebridgeChainAssetFixedFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - ], - name: "getDefiAvaliableReserves", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - ], - name: "getNativeInfo", - outputs: [ - { - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "globalFixedNativeFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "isSubmissionUsed", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "requestReserves", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "returnReserves", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdTo", - type: "uint256", - }, - { - internalType: "bytes", - name: "_receiver", - type: "bytes", - }, - { - internalType: "bytes", - name: "_permit", - type: "bytes", - }, - { - internalType: "bool", - name: "_useAssetFee", - type: "bool", - }, - { - internalType: "uint32", - name: "_referralCode", - type: "uint32", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "send", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - ], - name: "withdrawFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IDeBridgeGateExtended__factory { - static readonly abi = _abi; - static createInterface(): IDeBridgeGateExtendedInterface { - return new utils.Interface(_abi) as IDeBridgeGateExtendedInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IDeBridgeGateExtended { - return new Contract( - address, - _abi, - signerOrProvider - ) as IDeBridgeGateExtended; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/index.ts deleted file mode 100644 index dcb89d2..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/CrossChainIncrementor.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { CrossChainIncrementor__factory } from "./CrossChainIncrementor__factory"; -export { IDeBridgeGateExtended__factory } from "./IDeBridgeGateExtended__factory"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/index.ts deleted file mode 100644 index 7910dcc..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as crossChainCounterSol from "./CrossChainCounter.sol"; -export * as crossChainIncrementorSol from "./CrossChainIncrementor.sol"; -export * as interfaces from "./interfaces"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/ICrossChainCounter__factory.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/ICrossChainCounter__factory.ts deleted file mode 100644 index e481aa8..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/ICrossChainCounter__factory.ts +++ /dev/null @@ -1,144 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ICrossChainCounter, - ICrossChainCounterInterface, -} from "../../../contracts/interfaces/ICrossChainCounter"; - -const _abi = [ - { - inputs: [], - name: "AdminBadRole", - type: "error", - }, - { - inputs: [], - name: "CallProxyBadRole", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - ], - name: "ChainNotSupported", - type: "error", - }, - { - inputs: [ - { - internalType: "bytes", - name: "nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "chainIdFrom", - type: "uint256", - }, - ], - name: "NativeSenderBadRole", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "newCounterValue", - type: "uint256", - }, - { - indexed: false, - internalType: "uint8", - name: "amount", - type: "uint8", - }, - { - indexed: false, - internalType: "uint256", - name: "chainFrom", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "initiator", - type: "address", - }, - ], - name: "CounterIncremented", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "incrementorAddress", - type: "bytes", - }, - ], - name: "SupportedChainAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - ], - name: "SupportedChainRemoved", - type: "event", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_amount", - type: "uint8", - }, - { - internalType: "address", - name: "_initiator", - type: "address", - }, - ], - name: "receiveIncrementCommand", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class ICrossChainCounter__factory { - static readonly abi = _abi; - static createInterface(): ICrossChainCounterInterface { - return new utils.Interface(_abi) as ICrossChainCounterInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ICrossChainCounter { - return new Contract(address, _abi, signerOrProvider) as ICrossChainCounter; - } -} diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/index.ts deleted file mode 100644 index 984ae22..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/contracts/interfaces/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ICrossChainCounter__factory } from "./ICrossChainCounter__factory"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/index.ts deleted file mode 100644 index 8bd08d0..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/factories/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as debridgeFinance from "./@debridge-finance"; -export * as openzeppelin from "./@openzeppelin"; -export * as contracts from "./contracts"; diff --git a/test/fixture-projects/hardhat-debridge-test-env/typechain/index.ts b/test/fixture-projects/hardhat-debridge-test-env/typechain/index.ts deleted file mode 100644 index 6e5b8c2..0000000 --- a/test/fixture-projects/hardhat-debridge-test-env/typechain/index.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as debridgeFinance from "./@debridge-finance"; -export type { debridgeFinance }; -import type * as openzeppelin from "./@openzeppelin"; -export type { openzeppelin }; -import type * as contracts from "./contracts"; -export type { contracts }; -export * as factories from "./factories"; -export type { ICallProxy } from "./@debridge-finance/contracts/contracts/interfaces/ICallProxy"; -export { ICallProxy__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory"; -export type { IDeBridgeGate } from "./@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate"; -export { IDeBridgeGate__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory"; -export type { Flags } from "./@debridge-finance/contracts/contracts/libraries/Flags"; -export { Flags__factory } from "./factories/@debridge-finance/contracts/contracts/libraries/Flags__factory"; -export type { AccessControl } from "./@openzeppelin/contracts/access/AccessControl"; -export { AccessControl__factory } from "./factories/@openzeppelin/contracts/access/AccessControl__factory"; -export type { IAccessControl } from "./@openzeppelin/contracts/access/IAccessControl"; -export { IAccessControl__factory } from "./factories/@openzeppelin/contracts/access/IAccessControl__factory"; -export type { ERC165 } from "./@openzeppelin/contracts/utils/introspection/ERC165"; -export { ERC165__factory } from "./factories/@openzeppelin/contracts/utils/introspection/ERC165__factory"; -export type { IERC165 } from "./@openzeppelin/contracts/utils/introspection/IERC165"; -export { IERC165__factory } from "./factories/@openzeppelin/contracts/utils/introspection/IERC165__factory"; -export type { CrossChainCounter } from "./contracts/CrossChainCounter.sol/CrossChainCounter"; -export { CrossChainCounter__factory } from "./factories/contracts/CrossChainCounter.sol/CrossChainCounter__factory"; -export type { IDebridgeGateWithCallProxyGetter } from "./contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter"; -export { IDebridgeGateWithCallProxyGetter__factory } from "./factories/contracts/CrossChainCounter.sol/IDebridgeGateWithCallProxyGetter__factory"; -export type { CrossChainIncrementor } from "./contracts/CrossChainIncrementor.sol/CrossChainIncrementor"; -export { CrossChainIncrementor__factory } from "./factories/contracts/CrossChainIncrementor.sol/CrossChainIncrementor__factory"; -export type { IDeBridgeGateExtended } from "./contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended"; -export { IDeBridgeGateExtended__factory } from "./factories/contracts/CrossChainIncrementor.sol/IDeBridgeGateExtended__factory"; -export type { ICrossChainCounter } from "./contracts/interfaces/ICrossChainCounter"; -export { ICrossChainCounter__factory } from "./factories/contracts/interfaces/ICrossChainCounter__factory"; diff --git a/test/helpers.ts b/test/helpers.ts index f33abc3..a7edfee 100644 --- a/test/helpers.ts +++ b/test/helpers.ts @@ -11,7 +11,7 @@ import { CrossChainCounter__factory, CrossChainIncrementor, CrossChainIncrementor__factory, -} from "./fixture-projects/hardhat-debridge-test-env/typechain/index"; +} from "../fixture-projects/hardhat-debridge-test-env/typechain/index"; declare module "mocha" { interface Context { @@ -23,7 +23,7 @@ declare module "mocha" { export function useEnvironment(fixtureProjectName: string) { beforeEach("Loading hardhat environment", function () { - process.chdir(path.join(__dirname, "fixture-projects", fixtureProjectName)); + process.chdir(path.join(__dirname, "..", "fixture-projects", fixtureProjectName)); this.hre = require("hardhat"); }); diff --git a/typechain/@debridge-finance/contracts/contracts/index.ts b/typechain/@debridge-finance/contracts/contracts/index.ts deleted file mode 100644 index 7d3ccd4..0000000 --- a/typechain/@debridge-finance/contracts/contracts/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as interfaces from "./interfaces"; -export type { interfaces }; -import type * as libraries from "./libraries"; -export type { libraries }; -import type * as mock from "./mock"; -export type { mock }; -import type * as periphery from "./periphery"; -export type { periphery }; -import type * as transfers from "./transfers"; -export type { transfers }; diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts deleted file mode 100644 index 87f9452..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/ICallProxy.ts +++ /dev/null @@ -1,265 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ICallProxyInterface extends utils.Interface { - functions: { - "call(address,address,bytes,uint256,bytes,uint256)": FunctionFragment; - "callERC20(address,address,address,bytes,uint256,bytes,uint256)": FunctionFragment; - "submissionChainIdFrom()": FunctionFragment; - "submissionNativeSender()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "call" - | "callERC20" - | "submissionChainIdFrom" - | "submissionNativeSender" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "call", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "callERC20", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "submissionChainIdFrom", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "submissionNativeSender", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "call", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "callERC20", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "submissionChainIdFrom", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "submissionNativeSender", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ICallProxy extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ICallProxyInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - submissionChainIdFrom(overrides?: CallOverrides): Promise; - - submissionNativeSender(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionNativeSender( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts deleted file mode 100644 index d2856f4..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate.ts +++ /dev/null @@ -1,964 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export declare namespace IDeBridgeGate { - export type ChainSupportInfoStruct = { - fixedNativeFee: PromiseOrValue; - isSupported: PromiseOrValue; - transferFeeBps: PromiseOrValue; - }; - - export type ChainSupportInfoStructOutput = [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - }; - - export type FeeParamsStruct = { - receivedAmount: PromiseOrValue; - fixFee: PromiseOrValue; - transferFee: PromiseOrValue; - useAssetFee: PromiseOrValue; - isNativeToken: PromiseOrValue; - }; - - export type FeeParamsStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - boolean, - boolean - ] & { - receivedAmount: BigNumber; - fixFee: BigNumber; - transferFee: BigNumber; - useAssetFee: boolean; - isNativeToken: boolean; - }; -} - -export interface IDeBridgeGateInterface extends utils.Interface { - functions: { - "callProxy()": FunctionFragment; - "claim(bytes32,uint256,uint256,address,uint256,bytes,bytes)": FunctionFragment; - "getDebridgeChainAssetFixedFee(bytes32,uint256)": FunctionFragment; - "getNativeInfo(address)": FunctionFragment; - "globalFixedNativeFee()": FunctionFragment; - "globalTransferFeeBps()": FunctionFragment; - "isSubmissionUsed(bytes32)": FunctionFragment; - "send(address,uint256,uint256,bytes,bytes,bool,uint32,bytes)": FunctionFragment; - "sendMessage(uint256,bytes,bytes,uint256,uint32)": FunctionFragment; - "sendMessage(uint256,bytes,bytes)": FunctionFragment; - "withdrawFee(bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "callProxy" - | "claim" - | "getDebridgeChainAssetFixedFee" - | "getNativeInfo" - | "globalFixedNativeFee" - | "globalTransferFeeBps" - | "isSubmissionUsed" - | "send" - | "sendMessage(uint256,bytes,bytes,uint256,uint32)" - | "sendMessage(uint256,bytes,bytes)" - | "withdrawFee" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "callProxy", values?: undefined): string; - encodeFunctionData( - functionFragment: "claim", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getDebridgeChainAssetFixedFee", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getNativeInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "globalFixedNativeFee", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "globalTransferFeeBps", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "isSubmissionUsed", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "sendMessage(uint256,bytes,bytes,uint256,uint32)", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "sendMessage(uint256,bytes,bytes)", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdrawFee", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "callProxy", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getDebridgeChainAssetFixedFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getNativeInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "globalFixedNativeFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "globalTransferFeeBps", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "isSubmissionUsed", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "sendMessage(uint256,bytes,bytes,uint256,uint32)", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "sendMessage(uint256,bytes,bytes)", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "withdrawFee", - data: BytesLike - ): Result; - - events: { - "AutoRequestExecuted(bytes32,bool,address)": EventFragment; - "Blocked(bytes32)": EventFragment; - "CallProxyUpdated(address)": EventFragment; - "ChainSupportUpdated(uint256,bool,bool)": EventFragment; - "ChainsSupportUpdated(uint256,tuple,bool)": EventFragment; - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)": EventFragment; - "FixedNativeFeeAutoUpdated(uint256)": EventFragment; - "FixedNativeFeeUpdated(uint256,uint256)": EventFragment; - "MonitoringClaimEvent(bytes32,uint256,uint256)": EventFragment; - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)": EventFragment; - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)": EventFragment; - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)": EventFragment; - "Unblocked(bytes32)": EventFragment; - "WithdrawnFee(bytes32,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AutoRequestExecuted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Blocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "CallProxyUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainsSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeAutoUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringClaimEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringSendEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PairAdded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Sent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unblocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "WithdrawnFee"): EventFragment; -} - -export interface AutoRequestExecutedEventObject { - submissionId: string; - success: boolean; - callProxy: string; -} -export type AutoRequestExecutedEvent = TypedEvent< - [string, boolean, string], - AutoRequestExecutedEventObject ->; - -export type AutoRequestExecutedEventFilter = - TypedEventFilter; - -export interface BlockedEventObject { - submissionId: string; -} -export type BlockedEvent = TypedEvent<[string], BlockedEventObject>; - -export type BlockedEventFilter = TypedEventFilter; - -export interface CallProxyUpdatedEventObject { - callProxy: string; -} -export type CallProxyUpdatedEvent = TypedEvent< - [string], - CallProxyUpdatedEventObject ->; - -export type CallProxyUpdatedEventFilter = - TypedEventFilter; - -export interface ChainSupportUpdatedEventObject { - chainId: BigNumber; - isSupported: boolean; - isChainFrom: boolean; -} -export type ChainSupportUpdatedEvent = TypedEvent< - [BigNumber, boolean, boolean], - ChainSupportUpdatedEventObject ->; - -export type ChainSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ChainsSupportUpdatedEventObject { - chainIds: BigNumber; - chainSupportInfo: IDeBridgeGate.ChainSupportInfoStructOutput; - isChainFrom: boolean; -} -export type ChainsSupportUpdatedEvent = TypedEvent< - [BigNumber, IDeBridgeGate.ChainSupportInfoStructOutput, boolean], - ChainsSupportUpdatedEventObject ->; - -export type ChainsSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ClaimedEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdFrom: BigNumber; - autoParams: string; - isNativeToken: boolean; -} -export type ClaimedEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, boolean], - ClaimedEventObject ->; - -export type ClaimedEventFilter = TypedEventFilter; - -export interface FixedNativeFeeAutoUpdatedEventObject { - globalFixedNativeFee: BigNumber; -} -export type FixedNativeFeeAutoUpdatedEvent = TypedEvent< - [BigNumber], - FixedNativeFeeAutoUpdatedEventObject ->; - -export type FixedNativeFeeAutoUpdatedEventFilter = - TypedEventFilter; - -export interface FixedNativeFeeUpdatedEventObject { - globalFixedNativeFee: BigNumber; - globalTransferFeeBps: BigNumber; -} -export type FixedNativeFeeUpdatedEvent = TypedEvent< - [BigNumber, BigNumber], - FixedNativeFeeUpdatedEventObject ->; - -export type FixedNativeFeeUpdatedEventFilter = - TypedEventFilter; - -export interface MonitoringClaimEventEventObject { - submissionId: string; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringClaimEventEvent = TypedEvent< - [string, BigNumber, BigNumber], - MonitoringClaimEventEventObject ->; - -export type MonitoringClaimEventEventFilter = - TypedEventFilter; - -export interface MonitoringSendEventEventObject { - submissionId: string; - nonce: BigNumber; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringSendEventEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber], - MonitoringSendEventEventObject ->; - -export type MonitoringSendEventEventFilter = - TypedEventFilter; - -export interface PairAddedEventObject { - debridgeId: string; - tokenAddress: string; - nativeAddress: string; - nativeChainId: BigNumber; - maxAmount: BigNumber; - minReservesBps: number; -} -export type PairAddedEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber, number], - PairAddedEventObject ->; - -export type PairAddedEventFilter = TypedEventFilter; - -export interface SentEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdTo: BigNumber; - referralCode: number; - feeParams: IDeBridgeGate.FeeParamsStructOutput; - autoParams: string; - nativeSender: string; -} -export type SentEvent = TypedEvent< - [ - string, - string, - BigNumber, - string, - BigNumber, - BigNumber, - number, - IDeBridgeGate.FeeParamsStructOutput, - string, - string - ], - SentEventObject ->; - -export type SentEventFilter = TypedEventFilter; - -export interface UnblockedEventObject { - submissionId: string; -} -export type UnblockedEvent = TypedEvent<[string], UnblockedEventObject>; - -export type UnblockedEventFilter = TypedEventFilter; - -export interface WithdrawnFeeEventObject { - debridgeId: string; - fee: BigNumber; -} -export type WithdrawnFeeEvent = TypedEvent< - [string, BigNumber], - WithdrawnFeeEventObject ->; - -export type WithdrawnFeeEventFilter = TypedEventFilter; - -export interface IDeBridgeGate extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IDeBridgeGateInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalTransferFeeBps( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalTransferFeeBps( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - callProxy(overrides?: CallOverrides): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, string] & { nativeChainId: BigNumber; nativeAddress: string } - >; - - globalFixedNativeFee(overrides?: CallOverrides): Promise; - - globalTransferFeeBps(overrides?: CallOverrides): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AutoRequestExecuted(bytes32,bool,address)"( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - AutoRequestExecuted( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - - "Blocked(bytes32)"(submissionId?: null): BlockedEventFilter; - Blocked(submissionId?: null): BlockedEventFilter; - - "CallProxyUpdated(address)"(callProxy?: null): CallProxyUpdatedEventFilter; - CallProxyUpdated(callProxy?: null): CallProxyUpdatedEventFilter; - - "ChainSupportUpdated(uint256,bool,bool)"( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - ChainSupportUpdated( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - - "ChainsSupportUpdated(uint256,tuple,bool)"( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - ChainsSupportUpdated( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - Claimed( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - - "FixedNativeFeeAutoUpdated(uint256)"( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - FixedNativeFeeAutoUpdated( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - - "FixedNativeFeeUpdated(uint256,uint256)"( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - FixedNativeFeeUpdated( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - - "MonitoringClaimEvent(bytes32,uint256,uint256)"( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - MonitoringClaimEvent( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)"( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - MonitoringSendEvent( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)"( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - PairAdded( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - Sent( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - - "Unblocked(bytes32)"(submissionId?: null): UnblockedEventFilter; - Unblocked(submissionId?: null): UnblockedEventFilter; - - "WithdrawnFee(bytes32,uint256)"( - debridgeId?: null, - fee?: null - ): WithdrawnFeeEventFilter; - WithdrawnFee(debridgeId?: null, fee?: null): WithdrawnFeeEventFilter; - }; - - estimateGas: { - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalTransferFeeBps( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - callProxy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - token: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalFixedNativeFee( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - globalTransferFeeBps( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isSubmissionUsed( - submissionId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _dstChainId: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken.ts deleted file mode 100644 index 44a592a..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken.ts +++ /dev/null @@ -1,481 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IDeBridgeTokenInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(uint256)": FunctionFragment; - "mint(address,uint256)": FunctionFragment; - "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "mint" - | "permit" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "burn", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "permit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface IDeBridgeToken extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IDeBridgeTokenInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - burn( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - mint( - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - _receiver: PromiseOrValue, - _amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer.ts deleted file mode 100644 index 29db16a..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer.ts +++ /dev/null @@ -1,161 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IDeBridgeTokenDeployerInterface extends utils.Interface { - functions: { - "deployAsset(bytes32,string,string,uint8)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "deployAsset"): FunctionFragment; - - encodeFunctionData( - functionFragment: "deployAsset", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "deployAsset", - data: BytesLike - ): Result; - - events: { - "DeBridgeTokenDeployed(address,string,string,uint8)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "DeBridgeTokenDeployed"): EventFragment; -} - -export interface DeBridgeTokenDeployedEventObject { - asset: string; - name: string; - symbol: string; - decimals: number; -} -export type DeBridgeTokenDeployedEvent = TypedEvent< - [string, string, string, number], - DeBridgeTokenDeployedEventObject ->; - -export type DeBridgeTokenDeployedEventFilter = - TypedEventFilter; - -export interface IDeBridgeTokenDeployer extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IDeBridgeTokenDeployerInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - deployAsset( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - deployAsset( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - deployAsset( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "DeBridgeTokenDeployed(address,string,string,uint8)"( - asset?: null, - name?: null, - symbol?: null, - decimals?: null - ): DeBridgeTokenDeployedEventFilter; - DeBridgeTokenDeployed( - asset?: null, - name?: null, - symbol?: null, - decimals?: null - ): DeBridgeTokenDeployedEventFilter; - }; - - estimateGas: { - deployAsset( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - deployAsset( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IERC20Permit.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IERC20Permit.ts deleted file mode 100644 index 567914c..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IERC20Permit.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IERC20PermitInterface extends utils.Interface { - functions: { - "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "permit"): FunctionFragment; - - encodeFunctionData( - functionFragment: "permit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; - - events: {}; -} - -export interface IERC20Permit extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC20PermitInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IFlashCallback.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IFlashCallback.ts deleted file mode 100644 index 29b1517..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IFlashCallback.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IFlashCallbackInterface extends utils.Interface { - functions: { - "flashCallback(uint256,bytes)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "flashCallback"): FunctionFragment; - - encodeFunctionData( - functionFragment: "flashCallback", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "flashCallback", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IFlashCallback extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IFlashCallbackInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - flashCallback( - fee: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - flashCallback( - fee: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - flashCallback( - fee: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - flashCallback( - fee: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - flashCallback( - fee: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IOraclesManager.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IOraclesManager.ts deleted file mode 100644 index 1f6e3f8..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IOraclesManager.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; -import type { EventFragment } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IOraclesManagerInterface extends utils.Interface { - functions: {}; - - events: { - "AddOracle(address,bool)": EventFragment; - "DeployApproved(bytes32)": EventFragment; - "SubmissionApproved(bytes32)": EventFragment; - "UpdateOracle(address,bool,bool)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AddOracle"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DeployApproved"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SubmissionApproved"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdateOracle"): EventFragment; -} - -export interface AddOracleEventObject { - oracle: string; - required: boolean; -} -export type AddOracleEvent = TypedEvent< - [string, boolean], - AddOracleEventObject ->; - -export type AddOracleEventFilter = TypedEventFilter; - -export interface DeployApprovedEventObject { - deployId: string; -} -export type DeployApprovedEvent = TypedEvent< - [string], - DeployApprovedEventObject ->; - -export type DeployApprovedEventFilter = TypedEventFilter; - -export interface SubmissionApprovedEventObject { - submissionId: string; -} -export type SubmissionApprovedEvent = TypedEvent< - [string], - SubmissionApprovedEventObject ->; - -export type SubmissionApprovedEventFilter = - TypedEventFilter; - -export interface UpdateOracleEventObject { - oracle: string; - required: boolean; - isValid: boolean; -} -export type UpdateOracleEvent = TypedEvent< - [string, boolean, boolean], - UpdateOracleEventObject ->; - -export type UpdateOracleEventFilter = TypedEventFilter; - -export interface IOraclesManager extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IOraclesManagerInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: { - "AddOracle(address,bool)"( - oracle?: null, - required?: null - ): AddOracleEventFilter; - AddOracle(oracle?: null, required?: null): AddOracleEventFilter; - - "DeployApproved(bytes32)"(deployId?: null): DeployApprovedEventFilter; - DeployApproved(deployId?: null): DeployApprovedEventFilter; - - "SubmissionApproved(bytes32)"( - submissionId?: null - ): SubmissionApprovedEventFilter; - SubmissionApproved(submissionId?: null): SubmissionApprovedEventFilter; - - "UpdateOracle(address,bool,bool)"( - oracle?: null, - required?: null, - isValid?: null - ): UpdateOracleEventFilter; - UpdateOracle( - oracle?: null, - required?: null, - isValid?: null - ): UpdateOracleEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier.ts deleted file mode 100644 index 0f0eecb..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier.ts +++ /dev/null @@ -1,161 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ISignatureVerifierInterface extends utils.Interface { - functions: { - "submit(bytes32,bytes,uint8)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "submit"): FunctionFragment; - - encodeFunctionData( - functionFragment: "submit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "submit", data: BytesLike): Result; - - events: { - "Confirmed(bytes32,address)": EventFragment; - "DeployConfirmed(bytes32,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Confirmed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DeployConfirmed"): EventFragment; -} - -export interface ConfirmedEventObject { - submissionId: string; - operator: string; -} -export type ConfirmedEvent = TypedEvent<[string, string], ConfirmedEventObject>; - -export type ConfirmedEventFilter = TypedEventFilter; - -export interface DeployConfirmedEventObject { - deployId: string; - operator: string; -} -export type DeployConfirmedEvent = TypedEvent< - [string, string], - DeployConfirmedEventObject ->; - -export type DeployConfirmedEventFilter = TypedEventFilter; - -export interface ISignatureVerifier extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ISignatureVerifierInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Confirmed(bytes32,address)"( - submissionId?: null, - operator?: null - ): ConfirmedEventFilter; - Confirmed(submissionId?: null, operator?: null): ConfirmedEventFilter; - - "DeployConfirmed(bytes32,address)"( - deployId?: null, - operator?: null - ): DeployConfirmedEventFilter; - DeployConfirmed( - deployId?: null, - operator?: null - ): DeployConfirmedEventFilter; - }; - - estimateGas: { - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IWETH.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IWETH.ts deleted file mode 100644 index 14fec89..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IWETH.ts +++ /dev/null @@ -1,341 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IWETHInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "deposit()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "deposit" - | "totalSupply" - | "transfer" - | "transferFrom" - | "withdraw" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "deposit", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - - events: {}; -} - -export interface IWETH extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IWETHInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - sender: PromiseOrValue, - recipient: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/IWethGate.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/IWethGate.ts deleted file mode 100644 index 1ed77a6..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/IWethGate.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IWethGateInterface extends utils.Interface { - functions: { - "withdraw(address,uint256)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "withdraw"): FunctionFragment; - - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - - events: {}; -} - -export interface IWethGate extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IWethGateInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - withdraw( - receiver: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - withdraw( - receiver: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - withdraw( - receiver: PromiseOrValue, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - withdraw( - receiver: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - withdraw( - receiver: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/interfaces/index.ts b/typechain/@debridge-finance/contracts/contracts/interfaces/index.ts deleted file mode 100644 index c35b078..0000000 --- a/typechain/@debridge-finance/contracts/contracts/interfaces/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ICallProxy } from "./ICallProxy"; -export type { IDeBridgeGate } from "./IDeBridgeGate"; -export type { IDeBridgeToken } from "./IDeBridgeToken"; -export type { IDeBridgeTokenDeployer } from "./IDeBridgeTokenDeployer"; -export type { IERC20Permit } from "./IERC20Permit"; -export type { IFlashCallback } from "./IFlashCallback"; -export type { IOraclesManager } from "./IOraclesManager"; -export type { ISignatureVerifier } from "./ISignatureVerifier"; -export type { IWETH } from "./IWETH"; -export type { IWethGate } from "./IWethGate"; diff --git a/typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts b/typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts deleted file mode 100644 index 9e05aa7..0000000 --- a/typechain/@debridge-finance/contracts/contracts/libraries/Flags.ts +++ /dev/null @@ -1,191 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface FlagsInterface extends utils.Interface { - functions: { - "MULTI_SEND()": FunctionFragment; - "PROXY_WITH_SENDER()": FunctionFragment; - "REVERT_IF_EXTERNAL_FAIL()": FunctionFragment; - "SEND_EXTERNAL_CALL_GAS_LIMIT()": FunctionFragment; - "SEND_HASHED_DATA()": FunctionFragment; - "UNWRAP_ETH()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "MULTI_SEND" - | "PROXY_WITH_SENDER" - | "REVERT_IF_EXTERNAL_FAIL" - | "SEND_EXTERNAL_CALL_GAS_LIMIT" - | "SEND_HASHED_DATA" - | "UNWRAP_ETH" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "MULTI_SEND", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "PROXY_WITH_SENDER", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "REVERT_IF_EXTERNAL_FAIL", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "SEND_EXTERNAL_CALL_GAS_LIMIT", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "SEND_HASHED_DATA", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "UNWRAP_ETH", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "MULTI_SEND", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "PROXY_WITH_SENDER", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "REVERT_IF_EXTERNAL_FAIL", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "SEND_EXTERNAL_CALL_GAS_LIMIT", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "SEND_HASHED_DATA", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "UNWRAP_ETH", data: BytesLike): Result; - - events: {}; -} - -export interface Flags extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: FlagsInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - MULTI_SEND(overrides?: CallOverrides): Promise<[BigNumber]>; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise<[BigNumber]>; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise<[BigNumber]>; - - SEND_EXTERNAL_CALL_GAS_LIMIT( - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise<[BigNumber]>; - - UNWRAP_ETH(overrides?: CallOverrides): Promise<[BigNumber]>; - }; - - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT(overrides?: CallOverrides): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - - callStatic: { - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT(overrides?: CallOverrides): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL(overrides?: CallOverrides): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT(overrides?: CallOverrides): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - MULTI_SEND(overrides?: CallOverrides): Promise; - - PROXY_WITH_SENDER(overrides?: CallOverrides): Promise; - - REVERT_IF_EXTERNAL_FAIL( - overrides?: CallOverrides - ): Promise; - - SEND_EXTERNAL_CALL_GAS_LIMIT( - overrides?: CallOverrides - ): Promise; - - SEND_HASHED_DATA(overrides?: CallOverrides): Promise; - - UNWRAP_ETH(overrides?: CallOverrides): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/libraries/SignatureUtil.ts b/typechain/@debridge-finance/contracts/contracts/libraries/SignatureUtil.ts deleted file mode 100644 index 9489b88..0000000 --- a/typechain/@debridge-finance/contracts/contracts/libraries/SignatureUtil.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; - -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface SignatureUtilInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface SignatureUtil extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: SignatureUtilInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: {}; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@debridge-finance/contracts/contracts/libraries/index.ts b/typechain/@debridge-finance/contracts/contracts/libraries/index.ts deleted file mode 100644 index 8854069..0000000 --- a/typechain/@debridge-finance/contracts/contracts/libraries/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Flags } from "./Flags"; -export type { SignatureUtil } from "./SignatureUtil"; diff --git a/typechain/@debridge-finance/contracts/contracts/mock/MockWeth.ts b/typechain/@debridge-finance/contracts/contracts/mock/MockWeth.ts deleted file mode 100644 index 75374ee..0000000 --- a/typechain/@debridge-finance/contracts/contracts/mock/MockWeth.ts +++ /dev/null @@ -1,480 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface MockWethInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "decimals()": FunctionFragment; - "deposit()": FunctionFragment; - "name()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "deposit" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - | "withdraw" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData(functionFragment: "deposit", values?: undefined): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Deposit(address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - "Withdrawal(address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; -} - -export interface ApprovalEventObject { - src: string; - guy: string; - wad: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface DepositEventObject { - dst: string; - wad: BigNumber; -} -export type DepositEvent = TypedEvent<[string, BigNumber], DepositEventObject>; - -export type DepositEventFilter = TypedEventFilter; - -export interface TransferEventObject { - src: string; - dst: string; - wad: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface WithdrawalEventObject { - src: string; - wad: BigNumber; -} -export type WithdrawalEvent = TypedEvent< - [string, BigNumber], - WithdrawalEventObject ->; - -export type WithdrawalEventFilter = TypedEventFilter; - -export interface MockWeth extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: MockWethInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - guy: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - guy: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - guy: PromiseOrValue, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - deposit(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Approval(address,address,uint256)"( - src?: PromiseOrValue | null, - guy?: PromiseOrValue | null, - wad?: null - ): ApprovalEventFilter; - Approval( - src?: PromiseOrValue | null, - guy?: PromiseOrValue | null, - wad?: null - ): ApprovalEventFilter; - - "Deposit(address,uint256)"( - dst?: PromiseOrValue | null, - wad?: null - ): DepositEventFilter; - Deposit( - dst?: PromiseOrValue | null, - wad?: null - ): DepositEventFilter; - - "Transfer(address,address,uint256)"( - src?: PromiseOrValue | null, - dst?: PromiseOrValue | null, - wad?: null - ): TransferEventFilter; - Transfer( - src?: PromiseOrValue | null, - dst?: PromiseOrValue | null, - wad?: null - ): TransferEventFilter; - - "Withdrawal(address,uint256)"( - src?: PromiseOrValue | null, - wad?: null - ): WithdrawalEventFilter; - Withdrawal( - src?: PromiseOrValue | null, - wad?: null - ): WithdrawalEventFilter; - }; - - estimateGas: { - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - guy: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - guy: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/mock/index.ts b/typechain/@debridge-finance/contracts/contracts/mock/index.ts deleted file mode 100644 index 8796ae5..0000000 --- a/typechain/@debridge-finance/contracts/contracts/mock/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { MockWeth } from "./MockWeth"; diff --git a/typechain/@debridge-finance/contracts/contracts/periphery/CallProxy.ts b/typechain/@debridge-finance/contracts/contracts/periphery/CallProxy.ts deleted file mode 100644 index dd88377..0000000 --- a/typechain/@debridge-finance/contracts/contracts/periphery/CallProxy.ts +++ /dev/null @@ -1,683 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface CallProxyInterface extends utils.Interface { - functions: { - "DEBRIDGE_GATE_ROLE()": FunctionFragment; - "DEFAULT_ADMIN_ROLE()": FunctionFragment; - "call(address,address,bytes,uint256,bytes,uint256)": FunctionFragment; - "callERC20(address,address,address,bytes,uint256,bytes,uint256)": FunctionFragment; - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "initialize()": FunctionFragment; - "multiSend(bytes)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - "submissionChainIdFrom()": FunctionFragment; - "submissionNativeSender()": FunctionFragment; - "supportsInterface(bytes4)": FunctionFragment; - "version()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DEBRIDGE_GATE_ROLE" - | "DEFAULT_ADMIN_ROLE" - | "call" - | "callERC20" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "initialize" - | "multiSend" - | "renounceRole" - | "revokeRole" - | "submissionChainIdFrom" - | "submissionNativeSender" - | "supportsInterface" - | "version" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DEBRIDGE_GATE_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "call", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "callERC20", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "initialize", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "multiSend", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "submissionChainIdFrom", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "submissionNativeSender", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "version", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "DEBRIDGE_GATE_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "call", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "callERC20", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "multiSend", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "submissionChainIdFrom", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "submissionNativeSender", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "version", data: BytesLike): Result; - - events: { - "Initialized(uint8)": EventFragment; - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface CallProxy extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: CallProxyInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DEBRIDGE_GATE_ROLE(overrides?: CallOverrides): Promise<[string]>; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - initialize( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - multiSend( - transactions: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom(overrides?: CallOverrides): Promise<[BigNumber]>; - - submissionNativeSender(overrides?: CallOverrides): Promise<[string]>; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - version(overrides?: CallOverrides): Promise<[BigNumber]>; - }; - - DEBRIDGE_GATE_ROLE(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - multiSend( - transactions: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom(overrides?: CallOverrides): Promise; - - submissionNativeSender(overrides?: CallOverrides): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - version(overrides?: CallOverrides): Promise; - - callStatic: { - DEBRIDGE_GATE_ROLE(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize(overrides?: CallOverrides): Promise; - - multiSend( - transactions: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - submissionChainIdFrom(overrides?: CallOverrides): Promise; - - submissionNativeSender(overrides?: CallOverrides): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - version(overrides?: CallOverrides): Promise; - }; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - }; - - estimateGas: { - DEBRIDGE_GATE_ROLE(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - multiSend( - transactions: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom(overrides?: CallOverrides): Promise; - - submissionNativeSender(overrides?: CallOverrides): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - version(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - DEBRIDGE_GATE_ROLE( - overrides?: CallOverrides - ): Promise; - - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides - ): Promise; - - call( - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callERC20( - _token: PromiseOrValue, - _reserveAddress: PromiseOrValue, - _receiver: PromiseOrValue, - _data: PromiseOrValue, - _flags: PromiseOrValue, - _nativeSender: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - multiSend( - transactions: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionChainIdFrom( - overrides?: CallOverrides - ): Promise; - - submissionNativeSender( - overrides?: CallOverrides - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - version(overrides?: CallOverrides): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/periphery/index.ts b/typechain/@debridge-finance/contracts/contracts/periphery/index.ts deleted file mode 100644 index 0da5c2b..0000000 --- a/typechain/@debridge-finance/contracts/contracts/periphery/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { CallProxy } from "./CallProxy"; diff --git a/typechain/@debridge-finance/contracts/contracts/transfers/DeBridgeGate.ts b/typechain/@debridge-finance/contracts/contracts/transfers/DeBridgeGate.ts deleted file mode 100644 index 1f949dc..0000000 --- a/typechain/@debridge-finance/contracts/contracts/transfers/DeBridgeGate.ts +++ /dev/null @@ -1,2949 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PayableOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export declare namespace IDeBridgeGate { - export type ChainSupportInfoStruct = { - fixedNativeFee: PromiseOrValue; - isSupported: PromiseOrValue; - transferFeeBps: PromiseOrValue; - }; - - export type ChainSupportInfoStructOutput = [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - }; - - export type FeeParamsStruct = { - receivedAmount: PromiseOrValue; - fixFee: PromiseOrValue; - transferFee: PromiseOrValue; - useAssetFee: PromiseOrValue; - isNativeToken: PromiseOrValue; - }; - - export type FeeParamsStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - boolean, - boolean - ] & { - receivedAmount: BigNumber; - fixFee: BigNumber; - transferFee: BigNumber; - useAssetFee: boolean; - isNativeToken: boolean; - }; - - export type SubmissionAutoParamsFromStruct = { - executionFee: PromiseOrValue; - flags: PromiseOrValue; - fallbackAddress: PromiseOrValue; - data: PromiseOrValue; - nativeSender: PromiseOrValue; - }; - - export type SubmissionAutoParamsFromStructOutput = [ - BigNumber, - BigNumber, - string, - string, - string - ] & { - executionFee: BigNumber; - flags: BigNumber; - fallbackAddress: string; - data: string; - nativeSender: string; - }; -} - -export interface DeBridgeGateInterface extends utils.Interface { - functions: { - "BPS_DENOMINATOR()": FunctionFragment; - "DEFAULT_ADMIN_ROLE()": FunctionFragment; - "DEPLOY_PREFIX()": FunctionFragment; - "GOVMONITORING_ROLE()": FunctionFragment; - "SUBMISSION_PREFIX()": FunctionFragment; - "autoUpdateFixedNativeFee(uint256)": FunctionFragment; - "blockSubmission(bytes32[],bool)": FunctionFragment; - "callProxy()": FunctionFragment; - "claim(bytes32,uint256,uint256,address,uint256,bytes,bytes)": FunctionFragment; - "deBridgeTokenDeployer()": FunctionFragment; - "deployNewAsset(bytes,uint256,string,string,uint8,bytes)": FunctionFragment; - "excessConfirmations()": FunctionFragment; - "feeContractUpdater()": FunctionFragment; - "feeDiscount(address)": FunctionFragment; - "feeProxy()": FunctionFragment; - "gap0()": FunctionFragment; - "gap1()": FunctionFragment; - "getAmountThreshold(bytes32)": FunctionFragment; - "getChainFromConfig(uint256)": FunctionFragment; - "getChainId()": FunctionFragment; - "getChainToConfig(uint256)": FunctionFragment; - "getDebridge(bytes32)": FunctionFragment; - "getDebridgeChainAssetFixedFee(bytes32,uint256)": FunctionFragment; - "getDebridgeFeeInfo(bytes32)": FunctionFragment; - "getDebridgeId(uint256,address)": FunctionFragment; - "getDeployId(bytes32,string,string,uint8)": FunctionFragment; - "getNativeInfo(address)": FunctionFragment; - "getRoleAdmin(bytes32)": FunctionFragment; - "getSubmissionIdFrom(bytes32,uint256,uint256,address,uint256,(uint256,uint256,address,bytes,bytes),bool,address)": FunctionFragment; - "getbDebridgeId(uint256,bytes)": FunctionFragment; - "globalFixedNativeFee()": FunctionFragment; - "globalTransferFeeBps()": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "initialize(uint8,address)": FunctionFragment; - "isBlockedSubmission(bytes32)": FunctionFragment; - "isSubmissionUsed(bytes32)": FunctionFragment; - "lockedClaim()": FunctionFragment; - "nonce()": FunctionFragment; - "pause()": FunctionFragment; - "paused()": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - "send(address,uint256,uint256,bytes,bytes,bool,uint32,bytes)": FunctionFragment; - "sendMessage(uint256,bytes,bytes,uint256,uint32)": FunctionFragment; - "sendMessage(uint256,bytes,bytes)": FunctionFragment; - "setCallProxy(address)": FunctionFragment; - "setChainSupport(uint256,bool,bool)": FunctionFragment; - "setDeBridgeTokenDeployer(address)": FunctionFragment; - "setFeeContractUpdater(address)": FunctionFragment; - "setFeeProxy(address)": FunctionFragment; - "setSignatureVerifier(address)": FunctionFragment; - "setWethGate(address)": FunctionFragment; - "signatureVerifier()": FunctionFragment; - "supportsInterface(bytes4)": FunctionFragment; - "unpause()": FunctionFragment; - "updateAsset(bytes32,uint256,uint16,uint256)": FunctionFragment; - "updateAssetFixedFees(bytes32,uint256[],uint256[])": FunctionFragment; - "updateChainSupport(uint256[],(uint256,bool,uint16)[],bool)": FunctionFragment; - "updateExcessConfirmations(uint8)": FunctionFragment; - "updateFeeDiscount(address,uint16,uint16)": FunctionFragment; - "updateGlobalFee(uint256,uint16)": FunctionFragment; - "version()": FunctionFragment; - "weth()": FunctionFragment; - "wethGate()": FunctionFragment; - "withdrawFee(bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "BPS_DENOMINATOR" - | "DEFAULT_ADMIN_ROLE" - | "DEPLOY_PREFIX" - | "GOVMONITORING_ROLE" - | "SUBMISSION_PREFIX" - | "autoUpdateFixedNativeFee" - | "blockSubmission" - | "callProxy" - | "claim" - | "deBridgeTokenDeployer" - | "deployNewAsset" - | "excessConfirmations" - | "feeContractUpdater" - | "feeDiscount" - | "feeProxy" - | "gap0" - | "gap1" - | "getAmountThreshold" - | "getChainFromConfig" - | "getChainId" - | "getChainToConfig" - | "getDebridge" - | "getDebridgeChainAssetFixedFee" - | "getDebridgeFeeInfo" - | "getDebridgeId" - | "getDeployId" - | "getNativeInfo" - | "getRoleAdmin" - | "getSubmissionIdFrom" - | "getbDebridgeId" - | "globalFixedNativeFee" - | "globalTransferFeeBps" - | "grantRole" - | "hasRole" - | "initialize" - | "isBlockedSubmission" - | "isSubmissionUsed" - | "lockedClaim" - | "nonce" - | "pause" - | "paused" - | "renounceRole" - | "revokeRole" - | "send" - | "sendMessage(uint256,bytes,bytes,uint256,uint32)" - | "sendMessage(uint256,bytes,bytes)" - | "setCallProxy" - | "setChainSupport" - | "setDeBridgeTokenDeployer" - | "setFeeContractUpdater" - | "setFeeProxy" - | "setSignatureVerifier" - | "setWethGate" - | "signatureVerifier" - | "supportsInterface" - | "unpause" - | "updateAsset" - | "updateAssetFixedFees" - | "updateChainSupport" - | "updateExcessConfirmations" - | "updateFeeDiscount" - | "updateGlobalFee" - | "version" - | "weth" - | "wethGate" - | "withdrawFee" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "BPS_DENOMINATOR", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "DEPLOY_PREFIX", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "GOVMONITORING_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "SUBMISSION_PREFIX", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "autoUpdateFixedNativeFee", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "blockSubmission", - values: [PromiseOrValue[], PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "callProxy", values?: undefined): string; - encodeFunctionData( - functionFragment: "claim", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "deBridgeTokenDeployer", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "deployNewAsset", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "excessConfirmations", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "feeContractUpdater", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "feeDiscount", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "feeProxy", values?: undefined): string; - encodeFunctionData(functionFragment: "gap0", values?: undefined): string; - encodeFunctionData(functionFragment: "gap1", values?: undefined): string; - encodeFunctionData( - functionFragment: "getAmountThreshold", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getChainFromConfig", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getChainId", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getChainToConfig", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDebridge", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDebridgeChainAssetFixedFee", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDebridgeFeeInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDebridgeId", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getDeployId", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getNativeInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getSubmissionIdFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - IDeBridgeGate.SubmissionAutoParamsFromStruct, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getbDebridgeId", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "globalFixedNativeFee", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "globalTransferFeeBps", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "isBlockedSubmission", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "isSubmissionUsed", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "lockedClaim", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "nonce", values?: undefined): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "sendMessage(uint256,bytes,bytes,uint256,uint32)", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "sendMessage(uint256,bytes,bytes)", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "setCallProxy", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setChainSupport", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "setDeBridgeTokenDeployer", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setFeeContractUpdater", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setFeeProxy", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setSignatureVerifier", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setWethGate", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "signatureVerifier", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - encodeFunctionData( - functionFragment: "updateAsset", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "updateAssetFixedFees", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue[] - ] - ): string; - encodeFunctionData( - functionFragment: "updateChainSupport", - values: [ - PromiseOrValue[], - IDeBridgeGate.ChainSupportInfoStruct[], - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "updateExcessConfirmations", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateFeeDiscount", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "updateGlobalFee", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "version", values?: undefined): string; - encodeFunctionData(functionFragment: "weth", values?: undefined): string; - encodeFunctionData(functionFragment: "wethGate", values?: undefined): string; - encodeFunctionData( - functionFragment: "withdrawFee", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "BPS_DENOMINATOR", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "DEPLOY_PREFIX", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "GOVMONITORING_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "SUBMISSION_PREFIX", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "autoUpdateFixedNativeFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "blockSubmission", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "callProxy", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "claim", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "deBridgeTokenDeployer", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "deployNewAsset", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "excessConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "feeContractUpdater", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "feeDiscount", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "feeProxy", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "gap0", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "gap1", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getAmountThreshold", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getChainFromConfig", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getChainId", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getChainToConfig", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDebridge", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDebridgeChainAssetFixedFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDebridgeFeeInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDebridgeId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getDeployId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getNativeInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getSubmissionIdFrom", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getbDebridgeId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "globalFixedNativeFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "globalTransferFeeBps", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "isBlockedSubmission", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "isSubmissionUsed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "lockedClaim", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "nonce", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "sendMessage(uint256,bytes,bytes,uint256,uint32)", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "sendMessage(uint256,bytes,bytes)", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setCallProxy", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setChainSupport", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setDeBridgeTokenDeployer", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setFeeContractUpdater", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setFeeProxy", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setSignatureVerifier", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setWethGate", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "signatureVerifier", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "updateAsset", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateAssetFixedFees", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateChainSupport", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateExcessConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateFeeDiscount", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateGlobalFee", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "version", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "weth", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "wethGate", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "withdrawFee", - data: BytesLike - ): Result; - - events: { - "AutoRequestExecuted(bytes32,bool,address)": EventFragment; - "Blocked(bytes32)": EventFragment; - "CallProxyUpdated(address)": EventFragment; - "ChainSupportUpdated(uint256,bool,bool)": EventFragment; - "ChainsSupportUpdated(uint256,tuple,bool)": EventFragment; - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)": EventFragment; - "FixedNativeFeeAutoUpdated(uint256)": EventFragment; - "FixedNativeFeeUpdated(uint256,uint256)": EventFragment; - "Initialized(uint8)": EventFragment; - "MonitoringClaimEvent(bytes32,uint256,uint256)": EventFragment; - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)": EventFragment; - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)": EventFragment; - "Paused(address)": EventFragment; - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)": EventFragment; - "Unblocked(bytes32)": EventFragment; - "Unpaused(address)": EventFragment; - "WithdrawnFee(bytes32,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AutoRequestExecuted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Blocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "CallProxyUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ChainsSupportUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Claimed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeAutoUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "FixedNativeFeeUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringClaimEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MonitoringSendEvent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PairAdded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Sent"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unblocked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "WithdrawnFee"): EventFragment; -} - -export interface AutoRequestExecutedEventObject { - submissionId: string; - success: boolean; - callProxy: string; -} -export type AutoRequestExecutedEvent = TypedEvent< - [string, boolean, string], - AutoRequestExecutedEventObject ->; - -export type AutoRequestExecutedEventFilter = - TypedEventFilter; - -export interface BlockedEventObject { - submissionId: string; -} -export type BlockedEvent = TypedEvent<[string], BlockedEventObject>; - -export type BlockedEventFilter = TypedEventFilter; - -export interface CallProxyUpdatedEventObject { - callProxy: string; -} -export type CallProxyUpdatedEvent = TypedEvent< - [string], - CallProxyUpdatedEventObject ->; - -export type CallProxyUpdatedEventFilter = - TypedEventFilter; - -export interface ChainSupportUpdatedEventObject { - chainId: BigNumber; - isSupported: boolean; - isChainFrom: boolean; -} -export type ChainSupportUpdatedEvent = TypedEvent< - [BigNumber, boolean, boolean], - ChainSupportUpdatedEventObject ->; - -export type ChainSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ChainsSupportUpdatedEventObject { - chainIds: BigNumber; - chainSupportInfo: IDeBridgeGate.ChainSupportInfoStructOutput; - isChainFrom: boolean; -} -export type ChainsSupportUpdatedEvent = TypedEvent< - [BigNumber, IDeBridgeGate.ChainSupportInfoStructOutput, boolean], - ChainsSupportUpdatedEventObject ->; - -export type ChainsSupportUpdatedEventFilter = - TypedEventFilter; - -export interface ClaimedEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdFrom: BigNumber; - autoParams: string; - isNativeToken: boolean; -} -export type ClaimedEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, boolean], - ClaimedEventObject ->; - -export type ClaimedEventFilter = TypedEventFilter; - -export interface FixedNativeFeeAutoUpdatedEventObject { - globalFixedNativeFee: BigNumber; -} -export type FixedNativeFeeAutoUpdatedEvent = TypedEvent< - [BigNumber], - FixedNativeFeeAutoUpdatedEventObject ->; - -export type FixedNativeFeeAutoUpdatedEventFilter = - TypedEventFilter; - -export interface FixedNativeFeeUpdatedEventObject { - globalFixedNativeFee: BigNumber; - globalTransferFeeBps: BigNumber; -} -export type FixedNativeFeeUpdatedEvent = TypedEvent< - [BigNumber, BigNumber], - FixedNativeFeeUpdatedEventObject ->; - -export type FixedNativeFeeUpdatedEventFilter = - TypedEventFilter; - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface MonitoringClaimEventEventObject { - submissionId: string; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringClaimEventEvent = TypedEvent< - [string, BigNumber, BigNumber], - MonitoringClaimEventEventObject ->; - -export type MonitoringClaimEventEventFilter = - TypedEventFilter; - -export interface MonitoringSendEventEventObject { - submissionId: string; - nonce: BigNumber; - lockedOrMintedAmount: BigNumber; - totalSupply: BigNumber; -} -export type MonitoringSendEventEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber], - MonitoringSendEventEventObject ->; - -export type MonitoringSendEventEventFilter = - TypedEventFilter; - -export interface PairAddedEventObject { - debridgeId: string; - tokenAddress: string; - nativeAddress: string; - nativeChainId: BigNumber; - maxAmount: BigNumber; - minReservesBps: number; -} -export type PairAddedEvent = TypedEvent< - [string, string, string, BigNumber, BigNumber, number], - PairAddedEventObject ->; - -export type PairAddedEventFilter = TypedEventFilter; - -export interface PausedEventObject { - account: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface SentEventObject { - submissionId: string; - debridgeId: string; - amount: BigNumber; - receiver: string; - nonce: BigNumber; - chainIdTo: BigNumber; - referralCode: number; - feeParams: IDeBridgeGate.FeeParamsStructOutput; - autoParams: string; - nativeSender: string; -} -export type SentEvent = TypedEvent< - [ - string, - string, - BigNumber, - string, - BigNumber, - BigNumber, - number, - IDeBridgeGate.FeeParamsStructOutput, - string, - string - ], - SentEventObject ->; - -export type SentEventFilter = TypedEventFilter; - -export interface UnblockedEventObject { - submissionId: string; -} -export type UnblockedEvent = TypedEvent<[string], UnblockedEventObject>; - -export type UnblockedEventFilter = TypedEventFilter; - -export interface UnpausedEventObject { - account: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface WithdrawnFeeEventObject { - debridgeId: string; - fee: BigNumber; -} -export type WithdrawnFeeEvent = TypedEvent< - [string, BigNumber], - WithdrawnFeeEventObject ->; - -export type WithdrawnFeeEventFilter = TypedEventFilter; - -export interface DeBridgeGate extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: DeBridgeGateInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - BPS_DENOMINATOR(overrides?: CallOverrides): Promise<[BigNumber]>; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - DEPLOY_PREFIX(overrides?: CallOverrides): Promise<[BigNumber]>; - - GOVMONITORING_ROLE(overrides?: CallOverrides): Promise<[string]>; - - SUBMISSION_PREFIX(overrides?: CallOverrides): Promise<[BigNumber]>; - - autoUpdateFixedNativeFee( - _globalFixedNativeFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - blockSubmission( - _submissionIds: PromiseOrValue[], - isBlocked: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callProxy(overrides?: CallOverrides): Promise<[string]>; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deBridgeTokenDeployer(overrides?: CallOverrides): Promise<[string]>; - - deployNewAsset( - _nativeTokenAddress: PromiseOrValue, - _nativeChainId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - _signatures: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise<[number]>; - - feeContractUpdater(overrides?: CallOverrides): Promise<[string]>; - - feeDiscount( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, number] & { discountFixBps: number; discountTransferBps: number } - >; - - feeProxy(overrides?: CallOverrides): Promise<[string]>; - - gap0(overrides?: CallOverrides): Promise<[BigNumber]>; - - gap1(overrides?: CallOverrides): Promise<[string]>; - - getAmountThreshold( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getChainFromConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - } - >; - - getChainId( - overrides?: CallOverrides - ): Promise<[BigNumber] & { cid: BigNumber }>; - - getChainToConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - } - >; - - getDebridge( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, string, number, boolean] & { - chainId: BigNumber; - maxAmount: BigNumber; - balance: BigNumber; - lockedInStrategies: BigNumber; - tokenAddress: string; - minReservesBps: number; - exist: boolean; - } - >; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - getDebridgeFeeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { - collectedFees: BigNumber; - withdrawnFees: BigNumber; - } - >; - - getDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - getDeployId( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - getNativeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, string] & { nativeChainId: BigNumber; nativeAddress: string } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - getSubmissionIdFrom( - _debridgeId: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _amount: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _autoParams: IDeBridgeGate.SubmissionAutoParamsFromStruct, - _hasAutoParams: PromiseOrValue, - _sender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - getbDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - globalFixedNativeFee(overrides?: CallOverrides): Promise<[BigNumber]>; - - globalTransferFeeBps(overrides?: CallOverrides): Promise<[number]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - initialize( - _excessConfirmations: PromiseOrValue, - _weth: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isBlockedSubmission( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - isSubmissionUsed( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - lockedClaim(overrides?: CallOverrides): Promise<[BigNumber]>; - - nonce(overrides?: CallOverrides): Promise<[BigNumber]>; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - setCallProxy( - _callProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setChainSupport( - _chainId: PromiseOrValue, - _isSupported: PromiseOrValue, - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDeBridgeTokenDeployer( - _deBridgeTokenDeployer: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeContractUpdater( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProxy( - _feeProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setSignatureVerifier( - _verifier: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWethGate( - _wethGate: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - signatureVerifier(overrides?: CallOverrides): Promise<[string]>; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAsset( - _debridgeId: PromiseOrValue, - _maxAmount: PromiseOrValue, - _minReservesBps: PromiseOrValue, - _amountThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAssetFixedFees( - _debridgeId: PromiseOrValue, - _supportedChainIds: PromiseOrValue[], - _assetFeesInfo: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateChainSupport( - _chainIds: PromiseOrValue[], - _chainSupportInfo: IDeBridgeGate.ChainSupportInfoStruct[], - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateFeeDiscount( - _address: PromiseOrValue, - _discountFixBps: PromiseOrValue, - _discountTransferBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateGlobalFee( - _globalFixedNativeFee: PromiseOrValue, - _globalTransferFeeBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise<[BigNumber]>; - - weth(overrides?: CallOverrides): Promise<[string]>; - - wethGate(overrides?: CallOverrides): Promise<[string]>; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - BPS_DENOMINATOR(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - DEPLOY_PREFIX(overrides?: CallOverrides): Promise; - - GOVMONITORING_ROLE(overrides?: CallOverrides): Promise; - - SUBMISSION_PREFIX(overrides?: CallOverrides): Promise; - - autoUpdateFixedNativeFee( - _globalFixedNativeFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - blockSubmission( - _submissionIds: PromiseOrValue[], - isBlocked: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callProxy(overrides?: CallOverrides): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deBridgeTokenDeployer(overrides?: CallOverrides): Promise; - - deployNewAsset( - _nativeTokenAddress: PromiseOrValue, - _nativeChainId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - _signatures: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - feeContractUpdater(overrides?: CallOverrides): Promise; - - feeDiscount( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, number] & { discountFixBps: number; discountTransferBps: number } - >; - - feeProxy(overrides?: CallOverrides): Promise; - - gap0(overrides?: CallOverrides): Promise; - - gap1(overrides?: CallOverrides): Promise; - - getAmountThreshold( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getChainFromConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - } - >; - - getChainId(overrides?: CallOverrides): Promise; - - getChainToConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - } - >; - - getDebridge( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, string, number, boolean] & { - chainId: BigNumber; - maxAmount: BigNumber; - balance: BigNumber; - lockedInStrategies: BigNumber; - tokenAddress: string; - minReservesBps: number; - exist: boolean; - } - >; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeFeeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { - collectedFees: BigNumber; - withdrawnFees: BigNumber; - } - >; - - getDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDeployId( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, string] & { nativeChainId: BigNumber; nativeAddress: string } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getSubmissionIdFrom( - _debridgeId: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _amount: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _autoParams: IDeBridgeGate.SubmissionAutoParamsFromStruct, - _hasAutoParams: PromiseOrValue, - _sender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getbDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - globalFixedNativeFee(overrides?: CallOverrides): Promise; - - globalTransferFeeBps(overrides?: CallOverrides): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _excessConfirmations: PromiseOrValue, - _weth: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isBlockedSubmission( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - isSubmissionUsed( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - lockedClaim(overrides?: CallOverrides): Promise; - - nonce(overrides?: CallOverrides): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - setCallProxy( - _callProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setChainSupport( - _chainId: PromiseOrValue, - _isSupported: PromiseOrValue, - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDeBridgeTokenDeployer( - _deBridgeTokenDeployer: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeContractUpdater( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProxy( - _feeProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setSignatureVerifier( - _verifier: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWethGate( - _wethGate: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - signatureVerifier(overrides?: CallOverrides): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAsset( - _debridgeId: PromiseOrValue, - _maxAmount: PromiseOrValue, - _minReservesBps: PromiseOrValue, - _amountThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAssetFixedFees( - _debridgeId: PromiseOrValue, - _supportedChainIds: PromiseOrValue[], - _assetFeesInfo: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateChainSupport( - _chainIds: PromiseOrValue[], - _chainSupportInfo: IDeBridgeGate.ChainSupportInfoStruct[], - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateFeeDiscount( - _address: PromiseOrValue, - _discountFixBps: PromiseOrValue, - _discountTransferBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateGlobalFee( - _globalFixedNativeFee: PromiseOrValue, - _globalTransferFeeBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise; - - weth(overrides?: CallOverrides): Promise; - - wethGate(overrides?: CallOverrides): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - BPS_DENOMINATOR(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - DEPLOY_PREFIX(overrides?: CallOverrides): Promise; - - GOVMONITORING_ROLE(overrides?: CallOverrides): Promise; - - SUBMISSION_PREFIX(overrides?: CallOverrides): Promise; - - autoUpdateFixedNativeFee( - _globalFixedNativeFee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - blockSubmission( - _submissionIds: PromiseOrValue[], - isBlocked: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callProxy(overrides?: CallOverrides): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deBridgeTokenDeployer(overrides?: CallOverrides): Promise; - - deployNewAsset( - _nativeTokenAddress: PromiseOrValue, - _nativeChainId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - _signatures: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - feeContractUpdater(overrides?: CallOverrides): Promise; - - feeDiscount( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, number] & { discountFixBps: number; discountTransferBps: number } - >; - - feeProxy(overrides?: CallOverrides): Promise; - - gap0(overrides?: CallOverrides): Promise; - - gap1(overrides?: CallOverrides): Promise; - - getAmountThreshold( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getChainFromConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - } - >; - - getChainId(overrides?: CallOverrides): Promise; - - getChainToConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, boolean, number] & { - fixedNativeFee: BigNumber; - isSupported: boolean; - transferFeeBps: number; - } - >; - - getDebridge( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, string, number, boolean] & { - chainId: BigNumber; - maxAmount: BigNumber; - balance: BigNumber; - lockedInStrategies: BigNumber; - tokenAddress: string; - minReservesBps: number; - exist: boolean; - } - >; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeFeeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { - collectedFees: BigNumber; - withdrawnFees: BigNumber; - } - >; - - getDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDeployId( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, string] & { nativeChainId: BigNumber; nativeAddress: string } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getSubmissionIdFrom( - _debridgeId: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _amount: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _autoParams: IDeBridgeGate.SubmissionAutoParamsFromStruct, - _hasAutoParams: PromiseOrValue, - _sender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getbDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - globalFixedNativeFee(overrides?: CallOverrides): Promise; - - globalTransferFeeBps(overrides?: CallOverrides): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _excessConfirmations: PromiseOrValue, - _weth: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - isBlockedSubmission( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - isSubmissionUsed( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - lockedClaim(overrides?: CallOverrides): Promise; - - nonce(overrides?: CallOverrides): Promise; - - pause(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setCallProxy( - _callProxy: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setChainSupport( - _chainId: PromiseOrValue, - _isSupported: PromiseOrValue, - _isChainFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setDeBridgeTokenDeployer( - _deBridgeTokenDeployer: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeContractUpdater( - _value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeProxy( - _feeProxy: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setSignatureVerifier( - _verifier: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setWethGate( - _wethGate: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - signatureVerifier(overrides?: CallOverrides): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - unpause(overrides?: CallOverrides): Promise; - - updateAsset( - _debridgeId: PromiseOrValue, - _maxAmount: PromiseOrValue, - _minReservesBps: PromiseOrValue, - _amountThreshold: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateAssetFixedFees( - _debridgeId: PromiseOrValue, - _supportedChainIds: PromiseOrValue[], - _assetFeesInfo: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - updateChainSupport( - _chainIds: PromiseOrValue[], - _chainSupportInfo: IDeBridgeGate.ChainSupportInfoStruct[], - _isChainFrom: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateFeeDiscount( - _address: PromiseOrValue, - _discountFixBps: PromiseOrValue, - _discountTransferBps: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateGlobalFee( - _globalFixedNativeFee: PromiseOrValue, - _globalTransferFeeBps: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - version(overrides?: CallOverrides): Promise; - - weth(overrides?: CallOverrides): Promise; - - wethGate(overrides?: CallOverrides): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AutoRequestExecuted(bytes32,bool,address)"( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - AutoRequestExecuted( - submissionId?: null, - success?: PromiseOrValue | null, - callProxy?: null - ): AutoRequestExecutedEventFilter; - - "Blocked(bytes32)"(submissionId?: null): BlockedEventFilter; - Blocked(submissionId?: null): BlockedEventFilter; - - "CallProxyUpdated(address)"(callProxy?: null): CallProxyUpdatedEventFilter; - CallProxyUpdated(callProxy?: null): CallProxyUpdatedEventFilter; - - "ChainSupportUpdated(uint256,bool,bool)"( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - ChainSupportUpdated( - chainId?: null, - isSupported?: null, - isChainFrom?: null - ): ChainSupportUpdatedEventFilter; - - "ChainsSupportUpdated(uint256,tuple,bool)"( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - ChainsSupportUpdated( - chainIds?: null, - chainSupportInfo?: null, - isChainFrom?: null - ): ChainsSupportUpdatedEventFilter; - - "Claimed(bytes32,bytes32,uint256,address,uint256,uint256,bytes,bool)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - Claimed( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: PromiseOrValue | null, - nonce?: null, - chainIdFrom?: PromiseOrValue | null, - autoParams?: null, - isNativeToken?: null - ): ClaimedEventFilter; - - "FixedNativeFeeAutoUpdated(uint256)"( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - FixedNativeFeeAutoUpdated( - globalFixedNativeFee?: null - ): FixedNativeFeeAutoUpdatedEventFilter; - - "FixedNativeFeeUpdated(uint256,uint256)"( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - FixedNativeFeeUpdated( - globalFixedNativeFee?: null, - globalTransferFeeBps?: null - ): FixedNativeFeeUpdatedEventFilter; - - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "MonitoringClaimEvent(bytes32,uint256,uint256)"( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - MonitoringClaimEvent( - submissionId?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringClaimEventEventFilter; - - "MonitoringSendEvent(bytes32,uint256,uint256,uint256)"( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - MonitoringSendEvent( - submissionId?: null, - nonce?: null, - lockedOrMintedAmount?: null, - totalSupply?: null - ): MonitoringSendEventEventFilter; - - "PairAdded(bytes32,address,bytes,uint256,uint256,uint16)"( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - PairAdded( - debridgeId?: null, - tokenAddress?: null, - nativeAddress?: null, - nativeChainId?: PromiseOrValue | null, - maxAmount?: null, - minReservesBps?: null - ): PairAddedEventFilter; - - "Paused(address)"(account?: null): PausedEventFilter; - Paused(account?: null): PausedEventFilter; - - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - - "Sent(bytes32,bytes32,uint256,bytes,uint256,uint256,uint32,tuple,bytes,address)"( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - Sent( - submissionId?: null, - debridgeId?: PromiseOrValue | null, - amount?: null, - receiver?: null, - nonce?: null, - chainIdTo?: PromiseOrValue | null, - referralCode?: null, - feeParams?: null, - autoParams?: null, - nativeSender?: null - ): SentEventFilter; - - "Unblocked(bytes32)"(submissionId?: null): UnblockedEventFilter; - Unblocked(submissionId?: null): UnblockedEventFilter; - - "Unpaused(address)"(account?: null): UnpausedEventFilter; - Unpaused(account?: null): UnpausedEventFilter; - - "WithdrawnFee(bytes32,uint256)"( - debridgeId?: null, - fee?: null - ): WithdrawnFeeEventFilter; - WithdrawnFee(debridgeId?: null, fee?: null): WithdrawnFeeEventFilter; - }; - - estimateGas: { - BPS_DENOMINATOR(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - DEPLOY_PREFIX(overrides?: CallOverrides): Promise; - - GOVMONITORING_ROLE(overrides?: CallOverrides): Promise; - - SUBMISSION_PREFIX(overrides?: CallOverrides): Promise; - - autoUpdateFixedNativeFee( - _globalFixedNativeFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - blockSubmission( - _submissionIds: PromiseOrValue[], - isBlocked: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callProxy(overrides?: CallOverrides): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deBridgeTokenDeployer(overrides?: CallOverrides): Promise; - - deployNewAsset( - _nativeTokenAddress: PromiseOrValue, - _nativeChainId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - _signatures: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - feeContractUpdater(overrides?: CallOverrides): Promise; - - feeDiscount( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - feeProxy(overrides?: CallOverrides): Promise; - - gap0(overrides?: CallOverrides): Promise; - - gap1(overrides?: CallOverrides): Promise; - - getAmountThreshold( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getChainFromConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getChainId(overrides?: CallOverrides): Promise; - - getChainToConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridge( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeFeeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDeployId( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getSubmissionIdFrom( - _debridgeId: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _amount: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _autoParams: IDeBridgeGate.SubmissionAutoParamsFromStruct, - _hasAutoParams: PromiseOrValue, - _sender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getbDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - globalFixedNativeFee(overrides?: CallOverrides): Promise; - - globalTransferFeeBps(overrides?: CallOverrides): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _excessConfirmations: PromiseOrValue, - _weth: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isBlockedSubmission( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - isSubmissionUsed( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - lockedClaim(overrides?: CallOverrides): Promise; - - nonce(overrides?: CallOverrides): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - setCallProxy( - _callProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setChainSupport( - _chainId: PromiseOrValue, - _isSupported: PromiseOrValue, - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDeBridgeTokenDeployer( - _deBridgeTokenDeployer: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeContractUpdater( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProxy( - _feeProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setSignatureVerifier( - _verifier: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWethGate( - _wethGate: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - signatureVerifier(overrides?: CallOverrides): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAsset( - _debridgeId: PromiseOrValue, - _maxAmount: PromiseOrValue, - _minReservesBps: PromiseOrValue, - _amountThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAssetFixedFees( - _debridgeId: PromiseOrValue, - _supportedChainIds: PromiseOrValue[], - _assetFeesInfo: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateChainSupport( - _chainIds: PromiseOrValue[], - _chainSupportInfo: IDeBridgeGate.ChainSupportInfoStruct[], - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateFeeDiscount( - _address: PromiseOrValue, - _discountFixBps: PromiseOrValue, - _discountTransferBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateGlobalFee( - _globalFixedNativeFee: PromiseOrValue, - _globalTransferFeeBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise; - - weth(overrides?: CallOverrides): Promise; - - wethGate(overrides?: CallOverrides): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - BPS_DENOMINATOR(overrides?: CallOverrides): Promise; - - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides - ): Promise; - - DEPLOY_PREFIX(overrides?: CallOverrides): Promise; - - GOVMONITORING_ROLE( - overrides?: CallOverrides - ): Promise; - - SUBMISSION_PREFIX(overrides?: CallOverrides): Promise; - - autoUpdateFixedNativeFee( - _globalFixedNativeFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - blockSubmission( - _submissionIds: PromiseOrValue[], - isBlocked: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callProxy(overrides?: CallOverrides): Promise; - - claim( - _debridgeId: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _signatures: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deBridgeTokenDeployer( - overrides?: CallOverrides - ): Promise; - - deployNewAsset( - _nativeTokenAddress: PromiseOrValue, - _nativeChainId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - _signatures: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations( - overrides?: CallOverrides - ): Promise; - - feeContractUpdater( - overrides?: CallOverrides - ): Promise; - - feeDiscount( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - feeProxy(overrides?: CallOverrides): Promise; - - gap0(overrides?: CallOverrides): Promise; - - gap1(overrides?: CallOverrides): Promise; - - getAmountThreshold( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getChainFromConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getChainId(overrides?: CallOverrides): Promise; - - getChainToConfig( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridge( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeChainAssetFixedFee( - _debridgeId: PromiseOrValue, - _chainId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeFeeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getDeployId( - _debridgeId: PromiseOrValue, - _name: PromiseOrValue, - _symbol: PromiseOrValue, - _decimals: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getNativeInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getSubmissionIdFrom( - _debridgeId: PromiseOrValue, - _chainIdFrom: PromiseOrValue, - _amount: PromiseOrValue, - _receiver: PromiseOrValue, - _nonce: PromiseOrValue, - _autoParams: IDeBridgeGate.SubmissionAutoParamsFromStruct, - _hasAutoParams: PromiseOrValue, - _sender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getbDebridgeId( - _chainId: PromiseOrValue, - _tokenAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - globalFixedNativeFee( - overrides?: CallOverrides - ): Promise; - - globalTransferFeeBps( - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _excessConfirmations: PromiseOrValue, - _weth: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isBlockedSubmission( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - isSubmissionUsed( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - lockedClaim(overrides?: CallOverrides): Promise; - - nonce(overrides?: CallOverrides): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - _tokenAddress: PromiseOrValue, - _amount: PromiseOrValue, - _chainIdTo: PromiseOrValue, - _receiver: PromiseOrValue, - _permitEnvelope: PromiseOrValue, - _useAssetFee: PromiseOrValue, - _referralCode: PromiseOrValue, - _autoParams: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes,uint256,uint32)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - _flags: PromiseOrValue, - _referralCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - "sendMessage(uint256,bytes,bytes)"( - _chainIdTo: PromiseOrValue, - _targetContractAddress: PromiseOrValue, - _targetContractCalldata: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - setCallProxy( - _callProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setChainSupport( - _chainId: PromiseOrValue, - _isSupported: PromiseOrValue, - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDeBridgeTokenDeployer( - _deBridgeTokenDeployer: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeContractUpdater( - _value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProxy( - _feeProxy: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setSignatureVerifier( - _verifier: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWethGate( - _wethGate: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - signatureVerifier(overrides?: CallOverrides): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAsset( - _debridgeId: PromiseOrValue, - _maxAmount: PromiseOrValue, - _minReservesBps: PromiseOrValue, - _amountThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateAssetFixedFees( - _debridgeId: PromiseOrValue, - _supportedChainIds: PromiseOrValue[], - _assetFeesInfo: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateChainSupport( - _chainIds: PromiseOrValue[], - _chainSupportInfo: IDeBridgeGate.ChainSupportInfoStruct[], - _isChainFrom: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateFeeDiscount( - _address: PromiseOrValue, - _discountFixBps: PromiseOrValue, - _discountTransferBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateGlobalFee( - _globalFixedNativeFee: PromiseOrValue, - _globalTransferFeeBps: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise; - - weth(overrides?: CallOverrides): Promise; - - wethGate(overrides?: CallOverrides): Promise; - - withdrawFee( - _debridgeId: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/transfers/OraclesManager.ts b/typechain/@debridge-finance/contracts/contracts/transfers/OraclesManager.ts deleted file mode 100644 index a0ad4b0..0000000 --- a/typechain/@debridge-finance/contracts/contracts/transfers/OraclesManager.ts +++ /dev/null @@ -1,796 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface OraclesManagerInterface extends utils.Interface { - functions: { - "DEFAULT_ADMIN_ROLE()": FunctionFragment; - "addOracles(address[],bool[])": FunctionFragment; - "excessConfirmations()": FunctionFragment; - "getOracleInfo(address)": FunctionFragment; - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "minConfirmations()": FunctionFragment; - "oracleAddresses(uint256)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "requiredOraclesCount()": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - "setExcessConfirmations(uint8)": FunctionFragment; - "setMinConfirmations(uint8)": FunctionFragment; - "supportsInterface(bytes4)": FunctionFragment; - "updateOracle(address,bool,bool)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DEFAULT_ADMIN_ROLE" - | "addOracles" - | "excessConfirmations" - | "getOracleInfo" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "minConfirmations" - | "oracleAddresses" - | "renounceRole" - | "requiredOraclesCount" - | "revokeRole" - | "setExcessConfirmations" - | "setMinConfirmations" - | "supportsInterface" - | "updateOracle" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "addOracles", - values: [PromiseOrValue[], PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "excessConfirmations", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getOracleInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "minConfirmations", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "oracleAddresses", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "requiredOraclesCount", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setExcessConfirmations", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setMinConfirmations", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateOracle", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "addOracles", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "excessConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getOracleInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "minConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "oracleAddresses", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "requiredOraclesCount", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setExcessConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setMinConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateOracle", - data: BytesLike - ): Result; - - events: { - "AddOracle(address,bool)": EventFragment; - "DeployApproved(bytes32)": EventFragment; - "Initialized(uint8)": EventFragment; - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - "SubmissionApproved(bytes32)": EventFragment; - "UpdateOracle(address,bool,bool)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AddOracle"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DeployApproved"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SubmissionApproved"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdateOracle"): EventFragment; -} - -export interface AddOracleEventObject { - oracle: string; - required: boolean; -} -export type AddOracleEvent = TypedEvent< - [string, boolean], - AddOracleEventObject ->; - -export type AddOracleEventFilter = TypedEventFilter; - -export interface DeployApprovedEventObject { - deployId: string; -} -export type DeployApprovedEvent = TypedEvent< - [string], - DeployApprovedEventObject ->; - -export type DeployApprovedEventFilter = TypedEventFilter; - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface SubmissionApprovedEventObject { - submissionId: string; -} -export type SubmissionApprovedEvent = TypedEvent< - [string], - SubmissionApprovedEventObject ->; - -export type SubmissionApprovedEventFilter = - TypedEventFilter; - -export interface UpdateOracleEventObject { - oracle: string; - required: boolean; - isValid: boolean; -} -export type UpdateOracleEvent = TypedEvent< - [string, boolean, boolean], - UpdateOracleEventObject ->; - -export type UpdateOracleEventFilter = TypedEventFilter; - -export interface OraclesManager extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: OraclesManagerInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise<[number]>; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [boolean, boolean, boolean] & { - exist: boolean; - isValid: boolean; - required: boolean; - } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - minConfirmations(overrides?: CallOverrides): Promise<[number]>; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise<[number]>; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [boolean, boolean, boolean] & { - exist: boolean; - isValid: boolean; - required: boolean; - } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [boolean, boolean, boolean] & { - exist: boolean; - isValid: boolean; - required: boolean; - } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "AddOracle(address,bool)"( - oracle?: null, - required?: null - ): AddOracleEventFilter; - AddOracle(oracle?: null, required?: null): AddOracleEventFilter; - - "DeployApproved(bytes32)"(deployId?: null): DeployApprovedEventFilter; - DeployApproved(deployId?: null): DeployApprovedEventFilter; - - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - - "SubmissionApproved(bytes32)"( - submissionId?: null - ): SubmissionApprovedEventFilter; - SubmissionApproved(submissionId?: null): SubmissionApprovedEventFilter; - - "UpdateOracle(address,bool,bool)"( - oracle?: null, - required?: null, - isValid?: null - ): UpdateOracleEventFilter; - UpdateOracle( - oracle?: null, - required?: null, - isValid?: null - ): UpdateOracleEventFilter; - }; - - estimateGas: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides - ): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - excessConfirmations( - overrides?: CallOverrides - ): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount( - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/transfers/SignatureVerifier.ts b/typechain/@debridge-finance/contracts/contracts/transfers/SignatureVerifier.ts deleted file mode 100644 index e4705a4..0000000 --- a/typechain/@debridge-finance/contracts/contracts/transfers/SignatureVerifier.ts +++ /dev/null @@ -1,1140 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface SignatureVerifierInterface extends utils.Interface { - functions: { - "DEFAULT_ADMIN_ROLE()": FunctionFragment; - "addOracles(address[],bool[])": FunctionFragment; - "confirmationThreshold()": FunctionFragment; - "currentBlock()": FunctionFragment; - "debridgeAddress()": FunctionFragment; - "excessConfirmations()": FunctionFragment; - "getOracleInfo(address)": FunctionFragment; - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "initialize(uint8,uint8,uint8,address)": FunctionFragment; - "isValidSignature(bytes32,bytes)": FunctionFragment; - "minConfirmations()": FunctionFragment; - "oracleAddresses(uint256)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "requiredOraclesCount()": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - "setDebridgeAddress(address)": FunctionFragment; - "setExcessConfirmations(uint8)": FunctionFragment; - "setMinConfirmations(uint8)": FunctionFragment; - "setThreshold(uint8)": FunctionFragment; - "submissionsInBlock()": FunctionFragment; - "submit(bytes32,bytes,uint8)": FunctionFragment; - "supportsInterface(bytes4)": FunctionFragment; - "updateOracle(address,bool,bool)": FunctionFragment; - "version()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DEFAULT_ADMIN_ROLE" - | "addOracles" - | "confirmationThreshold" - | "currentBlock" - | "debridgeAddress" - | "excessConfirmations" - | "getOracleInfo" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "initialize" - | "isValidSignature" - | "minConfirmations" - | "oracleAddresses" - | "renounceRole" - | "requiredOraclesCount" - | "revokeRole" - | "setDebridgeAddress" - | "setExcessConfirmations" - | "setMinConfirmations" - | "setThreshold" - | "submissionsInBlock" - | "submit" - | "supportsInterface" - | "updateOracle" - | "version" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "addOracles", - values: [PromiseOrValue[], PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "confirmationThreshold", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "currentBlock", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "debridgeAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "excessConfirmations", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getOracleInfo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "isValidSignature", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "minConfirmations", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "oracleAddresses", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "requiredOraclesCount", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setDebridgeAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setExcessConfirmations", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setMinConfirmations", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setThreshold", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "submissionsInBlock", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "submit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateOracle", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "version", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "addOracles", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "confirmationThreshold", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "currentBlock", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "debridgeAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "excessConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getOracleInfo", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "isValidSignature", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "minConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "oracleAddresses", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "requiredOraclesCount", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setDebridgeAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setExcessConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setMinConfirmations", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setThreshold", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "submissionsInBlock", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "submit", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateOracle", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "version", data: BytesLike): Result; - - events: { - "AddOracle(address,bool)": EventFragment; - "Confirmed(bytes32,address)": EventFragment; - "DeployApproved(bytes32)": EventFragment; - "DeployConfirmed(bytes32,address)": EventFragment; - "Initialized(uint8)": EventFragment; - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - "SubmissionApproved(bytes32)": EventFragment; - "UpdateOracle(address,bool,bool)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AddOracle"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Confirmed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DeployApproved"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DeployConfirmed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SubmissionApproved"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdateOracle"): EventFragment; -} - -export interface AddOracleEventObject { - oracle: string; - required: boolean; -} -export type AddOracleEvent = TypedEvent< - [string, boolean], - AddOracleEventObject ->; - -export type AddOracleEventFilter = TypedEventFilter; - -export interface ConfirmedEventObject { - submissionId: string; - operator: string; -} -export type ConfirmedEvent = TypedEvent<[string, string], ConfirmedEventObject>; - -export type ConfirmedEventFilter = TypedEventFilter; - -export interface DeployApprovedEventObject { - deployId: string; -} -export type DeployApprovedEvent = TypedEvent< - [string], - DeployApprovedEventObject ->; - -export type DeployApprovedEventFilter = TypedEventFilter; - -export interface DeployConfirmedEventObject { - deployId: string; - operator: string; -} -export type DeployConfirmedEvent = TypedEvent< - [string, string], - DeployConfirmedEventObject ->; - -export type DeployConfirmedEventFilter = TypedEventFilter; - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface SubmissionApprovedEventObject { - submissionId: string; -} -export type SubmissionApprovedEvent = TypedEvent< - [string], - SubmissionApprovedEventObject ->; - -export type SubmissionApprovedEventFilter = - TypedEventFilter; - -export interface UpdateOracleEventObject { - oracle: string; - required: boolean; - isValid: boolean; -} -export type UpdateOracleEvent = TypedEvent< - [string, boolean, boolean], - UpdateOracleEventObject ->; - -export type UpdateOracleEventFilter = TypedEventFilter; - -export interface SignatureVerifier extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: SignatureVerifierInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - confirmationThreshold(overrides?: CallOverrides): Promise<[number]>; - - currentBlock(overrides?: CallOverrides): Promise<[number]>; - - debridgeAddress(overrides?: CallOverrides): Promise<[string]>; - - excessConfirmations(overrides?: CallOverrides): Promise<[number]>; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [boolean, boolean, boolean] & { - exist: boolean; - isValid: boolean; - required: boolean; - } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - initialize( - _minConfirmations: PromiseOrValue, - _confirmationThreshold: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isValidSignature( - _submissionId: PromiseOrValue, - _signature: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - minConfirmations(overrides?: CallOverrides): Promise<[number]>; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise<[number]>; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDebridgeAddress( - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setThreshold( - _confirmationThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionsInBlock(overrides?: CallOverrides): Promise<[number]>; - - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise<[BigNumber]>; - }; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - confirmationThreshold(overrides?: CallOverrides): Promise; - - currentBlock(overrides?: CallOverrides): Promise; - - debridgeAddress(overrides?: CallOverrides): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [boolean, boolean, boolean] & { - exist: boolean; - isValid: boolean; - required: boolean; - } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _minConfirmations: PromiseOrValue, - _confirmationThreshold: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isValidSignature( - _submissionId: PromiseOrValue, - _signature: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDebridgeAddress( - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setThreshold( - _confirmationThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionsInBlock(overrides?: CallOverrides): Promise; - - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise; - - callStatic: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - confirmationThreshold(overrides?: CallOverrides): Promise; - - currentBlock(overrides?: CallOverrides): Promise; - - debridgeAddress(overrides?: CallOverrides): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [boolean, boolean, boolean] & { - exist: boolean; - isValid: boolean; - required: boolean; - } - >; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _minConfirmations: PromiseOrValue, - _confirmationThreshold: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - _debridgeAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - isValidSignature( - _submissionId: PromiseOrValue, - _signature: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setDebridgeAddress( - _debridgeAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setThreshold( - _confirmationThreshold: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - submissionsInBlock(overrides?: CallOverrides): Promise; - - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - version(overrides?: CallOverrides): Promise; - }; - - filters: { - "AddOracle(address,bool)"( - oracle?: null, - required?: null - ): AddOracleEventFilter; - AddOracle(oracle?: null, required?: null): AddOracleEventFilter; - - "Confirmed(bytes32,address)"( - submissionId?: null, - operator?: null - ): ConfirmedEventFilter; - Confirmed(submissionId?: null, operator?: null): ConfirmedEventFilter; - - "DeployApproved(bytes32)"(deployId?: null): DeployApprovedEventFilter; - DeployApproved(deployId?: null): DeployApprovedEventFilter; - - "DeployConfirmed(bytes32,address)"( - deployId?: null, - operator?: null - ): DeployConfirmedEventFilter; - DeployConfirmed( - deployId?: null, - operator?: null - ): DeployConfirmedEventFilter; - - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - - "SubmissionApproved(bytes32)"( - submissionId?: null - ): SubmissionApprovedEventFilter; - SubmissionApproved(submissionId?: null): SubmissionApprovedEventFilter; - - "UpdateOracle(address,bool,bool)"( - oracle?: null, - required?: null, - isValid?: null - ): UpdateOracleEventFilter; - UpdateOracle( - oracle?: null, - required?: null, - isValid?: null - ): UpdateOracleEventFilter; - }; - - estimateGas: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - confirmationThreshold(overrides?: CallOverrides): Promise; - - currentBlock(overrides?: CallOverrides): Promise; - - debridgeAddress(overrides?: CallOverrides): Promise; - - excessConfirmations(overrides?: CallOverrides): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _minConfirmations: PromiseOrValue, - _confirmationThreshold: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isValidSignature( - _submissionId: PromiseOrValue, - _signature: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount(overrides?: CallOverrides): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDebridgeAddress( - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setThreshold( - _confirmationThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionsInBlock(overrides?: CallOverrides): Promise; - - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides - ): Promise; - - addOracles( - _oracles: PromiseOrValue[], - _required: PromiseOrValue[], - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - confirmationThreshold( - overrides?: CallOverrides - ): Promise; - - currentBlock(overrides?: CallOverrides): Promise; - - debridgeAddress(overrides?: CallOverrides): Promise; - - excessConfirmations( - overrides?: CallOverrides - ): Promise; - - getOracleInfo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - _minConfirmations: PromiseOrValue, - _confirmationThreshold: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - isValidSignature( - _submissionId: PromiseOrValue, - _signature: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - minConfirmations(overrides?: CallOverrides): Promise; - - oracleAddresses( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - requiredOraclesCount( - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setDebridgeAddress( - _debridgeAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setExcessConfirmations( - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMinConfirmations( - _minConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setThreshold( - _confirmationThreshold: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - submissionsInBlock( - overrides?: CallOverrides - ): Promise; - - submit( - _submissionId: PromiseOrValue, - _signatures: PromiseOrValue, - _excessConfirmations: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateOracle( - _oracle: PromiseOrValue, - _isValid: PromiseOrValue, - _required: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - version(overrides?: CallOverrides): Promise; - }; -} diff --git a/typechain/@debridge-finance/contracts/contracts/transfers/index.ts b/typechain/@debridge-finance/contracts/contracts/transfers/index.ts deleted file mode 100644 index 2fbd49c..0000000 --- a/typechain/@debridge-finance/contracts/contracts/transfers/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { DeBridgeGate } from "./DeBridgeGate"; -export type { OraclesManager } from "./OraclesManager"; -export type { SignatureVerifier } from "./SignatureVerifier"; diff --git a/typechain/@debridge-finance/contracts/index.ts b/typechain/@debridge-finance/contracts/index.ts deleted file mode 100644 index a11e4ca..0000000 --- a/typechain/@debridge-finance/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as contracts from "./contracts"; -export type { contracts }; diff --git a/typechain/@debridge-finance/index.ts b/typechain/@debridge-finance/index.ts deleted file mode 100644 index a11e4ca..0000000 --- a/typechain/@debridge-finance/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as contracts from "./contracts"; -export type { contracts }; diff --git a/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.ts deleted file mode 100644 index 74b5818..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.ts +++ /dev/null @@ -1,410 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface AccessControlUpgradeableInterface extends utils.Interface { - functions: { - "DEFAULT_ADMIN_ROLE()": FunctionFragment; - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - "supportsInterface(bytes4)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DEFAULT_ADMIN_ROLE" - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "renounceRole" - | "revokeRole" - | "supportsInterface" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DEFAULT_ADMIN_ROLE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "DEFAULT_ADMIN_ROLE", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - - events: { - "Initialized(uint8)": EventFragment; - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface AccessControlUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: AccessControlUpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - }; - - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - }; - - estimateGas: { - DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - DEFAULT_ADMIN_ROLE( - overrides?: CallOverrides - ): Promise; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.ts deleted file mode 100644 index 8b6107c..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.ts +++ /dev/null @@ -1,341 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface IAccessControlUpgradeableInterface extends utils.Interface { - functions: { - "getRoleAdmin(bytes32)": FunctionFragment; - "grantRole(bytes32,address)": FunctionFragment; - "hasRole(bytes32,address)": FunctionFragment; - "renounceRole(bytes32,address)": FunctionFragment; - "revokeRole(bytes32,address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "getRoleAdmin" - | "grantRole" - | "hasRole" - | "renounceRole" - | "revokeRole" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getRoleAdmin", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "grantRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "hasRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "renounceRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "revokeRole", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "getRoleAdmin", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceRole", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; - - events: { - "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; - "RoleGranted(bytes32,address,address)": EventFragment; - "RoleRevoked(bytes32,address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; -} - -export interface RoleAdminChangedEventObject { - role: string; - previousAdminRole: string; - newAdminRole: string; -} -export type RoleAdminChangedEvent = TypedEvent< - [string, string, string], - RoleAdminChangedEventObject ->; - -export type RoleAdminChangedEventFilter = - TypedEventFilter; - -export interface RoleGrantedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleGrantedEvent = TypedEvent< - [string, string, string], - RoleGrantedEventObject ->; - -export type RoleGrantedEventFilter = TypedEventFilter; - -export interface RoleRevokedEventObject { - role: string; - account: string; - sender: string; -} -export type RoleRevokedEvent = TypedEvent< - [string, string, string], - RoleRevokedEventObject ->; - -export type RoleRevokedEventFilter = TypedEventFilter; - -export interface IAccessControlUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IAccessControlUpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "RoleAdminChanged(bytes32,bytes32,bytes32)"( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - RoleAdminChanged( - role?: PromiseOrValue | null, - previousAdminRole?: PromiseOrValue | null, - newAdminRole?: PromiseOrValue | null - ): RoleAdminChangedEventFilter; - - "RoleGranted(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - RoleGranted( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleGrantedEventFilter; - - "RoleRevoked(bytes32,address,address)"( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - RoleRevoked( - role?: PromiseOrValue | null, - account?: PromiseOrValue | null, - sender?: PromiseOrValue | null - ): RoleRevokedEventFilter; - }; - - estimateGas: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - getRoleAdmin( - role: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - grantRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - renounceRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - revokeRole( - role: PromiseOrValue, - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/access/index.ts b/typechain/@openzeppelin/contracts-upgradeable/access/index.ts deleted file mode 100644 index c5a5622..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { AccessControlUpgradeable } from "./AccessControlUpgradeable"; -export type { IAccessControlUpgradeable } from "./IAccessControlUpgradeable"; diff --git a/typechain/@openzeppelin/contracts-upgradeable/index.ts b/typechain/@openzeppelin/contracts-upgradeable/index.ts deleted file mode 100644 index 01da8f2..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as access from "./access"; -export type { access }; -import type * as proxy from "./proxy"; -export type { proxy }; -import type * as security from "./security"; -export type { security }; -import type * as token from "./token"; -export type { token }; -import type * as utils from "./utils"; -export type { utils }; diff --git a/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts b/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts deleted file mode 100644 index 74cdc5f..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as utils from "./utils"; -export type { utils }; diff --git a/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts b/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts deleted file mode 100644 index a97ca26..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; -import type { EventFragment } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface InitializableInterface extends utils.Interface { - functions: {}; - - events: { - "Initialized(uint8)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface Initializable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: InitializableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts b/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts deleted file mode 100644 index 5da73d0..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Initializable } from "./Initializable"; diff --git a/typechain/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.ts deleted file mode 100644 index 3300bbe..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface PausableUpgradeableInterface extends utils.Interface { - functions: { - "paused()": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "paused"): FunctionFragment; - - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - - events: { - "Initialized(uint8)": EventFragment; - "Paused(address)": EventFragment; - "Unpaused(address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface PausedEventObject { - account: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface UnpausedEventObject { - account: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface PausableUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: PausableUpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - paused(overrides?: CallOverrides): Promise<[boolean]>; - }; - - paused(overrides?: CallOverrides): Promise; - - callStatic: { - paused(overrides?: CallOverrides): Promise; - }; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "Paused(address)"(account?: null): PausedEventFilter; - Paused(account?: null): PausedEventFilter; - - "Unpaused(address)"(account?: null): UnpausedEventFilter; - Unpaused(account?: null): UnpausedEventFilter; - }; - - estimateGas: { - paused(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - paused(overrides?: CallOverrides): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts deleted file mode 100644 index f0681bd..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; -import type { EventFragment } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface ReentrancyGuardUpgradeableInterface extends utils.Interface { - functions: {}; - - events: { - "Initialized(uint8)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface ReentrancyGuardUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ReentrancyGuardUpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/security/index.ts b/typechain/@openzeppelin/contracts-upgradeable/security/index.ts deleted file mode 100644 index 6302d1c..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/security/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { PausableUpgradeable } from "./PausableUpgradeable"; -export type { ReentrancyGuardUpgradeable } from "./ReentrancyGuardUpgradeable"; diff --git a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts deleted file mode 100644 index cb084e6..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +++ /dev/null @@ -1,342 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IERC20UpgradeableInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface IERC20Upgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC20UpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.ts deleted file mode 100644 index e5f9524..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.ts +++ /dev/null @@ -1,384 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../../common"; - -export interface IERC20MetadataUpgradeableInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "decimals()": FunctionFragment; - "name()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface IERC20MetadataUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC20MetadataUpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts deleted file mode 100644 index 947f1e2..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +++ /dev/null @@ -1,193 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../../../common"; - -export interface IERC20PermitUpgradeableInterface extends utils.Interface { - functions: { - "DOMAIN_SEPARATOR()": FunctionFragment; - "nonces(address)": FunctionFragment; - "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "DOMAIN_SEPARATOR" | "nonces" | "permit" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DOMAIN_SEPARATOR", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "nonces", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "permit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "DOMAIN_SEPARATOR", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; - - events: {}; -} - -export interface IERC20PermitUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC20PermitUpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<[string]>; - - nonces( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - nonces( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - nonces( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - nonces( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - nonces( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts b/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts deleted file mode 100644 index fcc667f..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC20PermitUpgradeable } from "./IERC20PermitUpgradeable"; diff --git a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts b/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts deleted file mode 100644 index 092dffd..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as draftIerc20PermitUpgradeableSol from "./draft-IERC20PermitUpgradeable.sol"; -export type { draftIerc20PermitUpgradeableSol }; -export type { IERC20MetadataUpgradeable } from "./IERC20MetadataUpgradeable"; diff --git a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts b/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts deleted file mode 100644 index 3eac8f8..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as extensions from "./extensions"; -export type { extensions }; -export type { IERC20Upgradeable } from "./IERC20Upgradeable"; diff --git a/typechain/@openzeppelin/contracts-upgradeable/token/index.ts b/typechain/@openzeppelin/contracts-upgradeable/token/index.ts deleted file mode 100644 index 5c4062a..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/token/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as erc20 from "./ERC20"; -export type { erc20 }; diff --git a/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts deleted file mode 100644 index 6886700..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; -import type { EventFragment } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface ContextUpgradeableInterface extends utils.Interface { - functions: {}; - - events: { - "Initialized(uint8)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface ContextUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ContextUpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts b/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts deleted file mode 100644 index 19e2d8c..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as introspection from "./introspection"; -export type { introspection }; -export type { ContextUpgradeable } from "./ContextUpgradeable"; diff --git a/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.ts deleted file mode 100644 index 0935519..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ERC165UpgradeableInterface extends utils.Interface { - functions: { - "supportsInterface(bytes4)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment; - - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - - events: { - "Initialized(uint8)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface ERC165Upgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC165UpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - }; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - }; - - estimateGas: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.ts b/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.ts deleted file mode 100644 index c48ee64..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.ts +++ /dev/null @@ -1,103 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IERC165UpgradeableInterface extends utils.Interface { - functions: { - "supportsInterface(bytes4)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment; - - encodeFunctionData( - functionFragment: "supportsInterface", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "supportsInterface", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IERC165Upgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC165UpgradeableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - }; - - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - supportsInterface( - interfaceId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts b/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts deleted file mode 100644 index a379eff..0000000 --- a/typechain/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ERC165Upgradeable } from "./ERC165Upgradeable"; -export type { IERC165Upgradeable } from "./IERC165Upgradeable"; diff --git a/typechain/@openzeppelin/contracts/index.ts b/typechain/@openzeppelin/contracts/index.ts deleted file mode 100644 index cfca6bb..0000000 --- a/typechain/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as interfaces from "./interfaces"; -export type { interfaces }; -import type * as proxy from "./proxy"; -export type { proxy }; -import type * as token from "./token"; -export type { token }; diff --git a/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts b/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts deleted file mode 100644 index e1f9bed..0000000 --- a/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IERC1822ProxiableInterface extends utils.Interface { - functions: { - "proxiableUUID()": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "proxiableUUID"): FunctionFragment; - - encodeFunctionData( - functionFragment: "proxiableUUID", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "proxiableUUID", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IERC1822Proxiable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC1822ProxiableInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - proxiableUUID(overrides?: CallOverrides): Promise<[string]>; - }; - - proxiableUUID(overrides?: CallOverrides): Promise; - - callStatic: { - proxiableUUID(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - proxiableUUID(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - proxiableUUID(overrides?: CallOverrides): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts b/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts deleted file mode 100644 index daec45b..0000000 --- a/typechain/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC1822Proxiable } from "./IERC1822Proxiable"; diff --git a/typechain/@openzeppelin/contracts/interfaces/index.ts b/typechain/@openzeppelin/contracts/interfaces/index.ts deleted file mode 100644 index 996dbb9..0000000 --- a/typechain/@openzeppelin/contracts/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as draftIerc1822Sol from "./draft-IERC1822.sol"; -export type { draftIerc1822Sol }; diff --git a/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts b/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts deleted file mode 100644 index 8cbea34..0000000 --- a/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; -import type { EventFragment } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ERC1967ProxyInterface extends utils.Interface { - functions: {}; - - events: { - "AdminChanged(address,address)": EventFragment; - "BeaconUpgraded(address)": EventFragment; - "Upgraded(address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment; -} - -export interface AdminChangedEventObject { - previousAdmin: string; - newAdmin: string; -} -export type AdminChangedEvent = TypedEvent< - [string, string], - AdminChangedEventObject ->; - -export type AdminChangedEventFilter = TypedEventFilter; - -export interface BeaconUpgradedEventObject { - beacon: string; -} -export type BeaconUpgradedEvent = TypedEvent< - [string], - BeaconUpgradedEventObject ->; - -export type BeaconUpgradedEventFilter = TypedEventFilter; - -export interface UpgradedEventObject { - implementation: string; -} -export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>; - -export type UpgradedEventFilter = TypedEventFilter; - -export interface ERC1967Proxy extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC1967ProxyInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: { - "AdminChanged(address,address)"( - previousAdmin?: null, - newAdmin?: null - ): AdminChangedEventFilter; - AdminChanged( - previousAdmin?: null, - newAdmin?: null - ): AdminChangedEventFilter; - - "BeaconUpgraded(address)"( - beacon?: PromiseOrValue | null - ): BeaconUpgradedEventFilter; - BeaconUpgraded( - beacon?: PromiseOrValue | null - ): BeaconUpgradedEventFilter; - - "Upgraded(address)"( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - Upgraded( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.ts b/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.ts deleted file mode 100644 index 81ce155..0000000 --- a/typechain/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; -import type { EventFragment } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ERC1967UpgradeInterface extends utils.Interface { - functions: {}; - - events: { - "AdminChanged(address,address)": EventFragment; - "BeaconUpgraded(address)": EventFragment; - "Upgraded(address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment; -} - -export interface AdminChangedEventObject { - previousAdmin: string; - newAdmin: string; -} -export type AdminChangedEvent = TypedEvent< - [string, string], - AdminChangedEventObject ->; - -export type AdminChangedEventFilter = TypedEventFilter; - -export interface BeaconUpgradedEventObject { - beacon: string; -} -export type BeaconUpgradedEvent = TypedEvent< - [string], - BeaconUpgradedEventObject ->; - -export type BeaconUpgradedEventFilter = TypedEventFilter; - -export interface UpgradedEventObject { - implementation: string; -} -export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>; - -export type UpgradedEventFilter = TypedEventFilter; - -export interface ERC1967Upgrade extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC1967UpgradeInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: { - "AdminChanged(address,address)"( - previousAdmin?: null, - newAdmin?: null - ): AdminChangedEventFilter; - AdminChanged( - previousAdmin?: null, - newAdmin?: null - ): AdminChangedEventFilter; - - "BeaconUpgraded(address)"( - beacon?: PromiseOrValue | null - ): BeaconUpgradedEventFilter; - BeaconUpgraded( - beacon?: PromiseOrValue | null - ): BeaconUpgradedEventFilter; - - "Upgraded(address)"( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - Upgraded( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@openzeppelin/contracts/proxy/ERC1967/index.ts b/typechain/@openzeppelin/contracts/proxy/ERC1967/index.ts deleted file mode 100644 index ffa8bbb..0000000 --- a/typechain/@openzeppelin/contracts/proxy/ERC1967/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ERC1967Proxy } from "./ERC1967Proxy"; -export type { ERC1967Upgrade } from "./ERC1967Upgrade"; diff --git a/typechain/@openzeppelin/contracts/proxy/Proxy.ts b/typechain/@openzeppelin/contracts/proxy/Proxy.ts deleted file mode 100644 index 7dfcf23..0000000 --- a/typechain/@openzeppelin/contracts/proxy/Proxy.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, Signer, utils } from "ethers"; - -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../common"; - -export interface ProxyInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface Proxy extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ProxyInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: {}; - - callStatic: {}; - - filters: {}; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/typechain/@openzeppelin/contracts/proxy/beacon/IBeacon.ts b/typechain/@openzeppelin/contracts/proxy/beacon/IBeacon.ts deleted file mode 100644 index fb83fd9..0000000 --- a/typechain/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BytesLike, - CallOverrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { FunctionFragment, Result } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IBeaconInterface extends utils.Interface { - functions: { - "implementation()": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "implementation"): FunctionFragment; - - encodeFunctionData( - functionFragment: "implementation", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "implementation", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IBeacon extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IBeaconInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - implementation(overrides?: CallOverrides): Promise<[string]>; - }; - - implementation(overrides?: CallOverrides): Promise; - - callStatic: { - implementation(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - implementation(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - implementation(overrides?: CallOverrides): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts/proxy/beacon/index.ts b/typechain/@openzeppelin/contracts/proxy/beacon/index.ts deleted file mode 100644 index 9224b1e..0000000 --- a/typechain/@openzeppelin/contracts/proxy/beacon/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IBeacon } from "./IBeacon"; diff --git a/typechain/@openzeppelin/contracts/proxy/index.ts b/typechain/@openzeppelin/contracts/proxy/index.ts deleted file mode 100644 index a6b7130..0000000 --- a/typechain/@openzeppelin/contracts/proxy/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as erc1967 from "./ERC1967"; -export type { erc1967 }; -import type * as beacon from "./beacon"; -export type { beacon }; -export type { Proxy } from "./Proxy"; diff --git a/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts b/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts deleted file mode 100644 index 682e3cf..0000000 --- a/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts +++ /dev/null @@ -1,464 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface ERC20Interface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "decimals()": FunctionFragment; - "decreaseAllowance(address,uint256)": FunctionFragment; - "increaseAllowance(address,uint256)": FunctionFragment; - "name()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "decreaseAllowance" - | "increaseAllowance" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData( - functionFragment: "decreaseAllowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "increaseAllowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "decreaseAllowance", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "increaseAllowance", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface ERC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC20Interface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts b/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts deleted file mode 100644 index e99e80b..0000000 --- a/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts +++ /dev/null @@ -1,342 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface IERC20Interface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface IERC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC20Interface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts b/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts deleted file mode 100644 index 7a94b72..0000000 --- a/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +++ /dev/null @@ -1,384 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../../common"; - -export interface IERC20MetadataInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "decimals()": FunctionFragment; - "name()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "approve", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData( - functionFragment: "totalSupply", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "totalSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface IERC20Metadata extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC20MetadataInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts b/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts deleted file mode 100644 index 6044cde..0000000 --- a/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC20Metadata } from "./IERC20Metadata"; diff --git a/typechain/@openzeppelin/contracts/token/ERC20/index.ts b/typechain/@openzeppelin/contracts/token/ERC20/index.ts deleted file mode 100644 index cc19697..0000000 --- a/typechain/@openzeppelin/contracts/token/ERC20/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as extensions from "./extensions"; -export type { extensions }; -export type { ERC20 } from "./ERC20"; -export type { IERC20 } from "./IERC20"; diff --git a/typechain/@openzeppelin/contracts/token/index.ts b/typechain/@openzeppelin/contracts/token/index.ts deleted file mode 100644 index 5c4062a..0000000 --- a/typechain/@openzeppelin/contracts/token/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as erc20 from "./ERC20"; -export type { erc20 }; diff --git a/typechain/@openzeppelin/index.ts b/typechain/@openzeppelin/index.ts deleted file mode 100644 index f34b877..0000000 --- a/typechain/@openzeppelin/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as contracts from "./contracts"; -export type { contracts }; -import type * as contractsUpgradeable from "./contracts-upgradeable"; -export type { contractsUpgradeable }; diff --git a/typechain/common.ts b/typechain/common.ts deleted file mode 100644 index 4c90b08..0000000 --- a/typechain/common.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { Listener } from "@ethersproject/providers"; -import type { Event, EventFilter } from "ethers"; - -export interface TypedEvent< - TArgsArray extends Array = any, - TArgsObject = any -> extends Event { - args: TArgsArray & TArgsObject; -} - -export interface TypedEventFilter<_TEvent extends TypedEvent> - extends EventFilter {} - -export interface TypedListener { - (...listenerArg: [...__TypechainArgsArray, TEvent]): void; -} - -type __TypechainArgsArray = T extends TypedEvent ? U : never; - -export interface OnEvent { - ( - eventFilter: TypedEventFilter, - listener: TypedListener - ): TRes; - (eventName: string, listener: Listener): TRes; -} - -export type MinEthersFactory = { - deploy(...a: ARGS[]): Promise; -}; - -export type GetContractTypeFromFactory = F extends MinEthersFactory< - infer C, - any -> - ? C - : never; - -export type GetARGsTypeFromFactory = F extends MinEthersFactory - ? Parameters - : never; - -export type PromiseOrValue = T | Promise; diff --git a/typechain/contracts/MockSignatureVerifier.ts b/typechain/contracts/MockSignatureVerifier.ts deleted file mode 100644 index 46c85ff..0000000 --- a/typechain/contracts/MockSignatureVerifier.ts +++ /dev/null @@ -1,161 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - BytesLike, - CallOverrides, - ContractTransaction, - Overrides, - PopulatedTransaction, - Signer, - utils, -} from "ethers"; -import type { - FunctionFragment, - Result, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../common"; - -export interface MockSignatureVerifierInterface extends utils.Interface { - functions: { - "submit(bytes32,bytes,uint8)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "submit"): FunctionFragment; - - encodeFunctionData( - functionFragment: "submit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "submit", data: BytesLike): Result; - - events: { - "Confirmed(bytes32,address)": EventFragment; - "DeployConfirmed(bytes32,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Confirmed"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DeployConfirmed"): EventFragment; -} - -export interface ConfirmedEventObject { - submissionId: string; - operator: string; -} -export type ConfirmedEvent = TypedEvent<[string, string], ConfirmedEventObject>; - -export type ConfirmedEventFilter = TypedEventFilter; - -export interface DeployConfirmedEventObject { - deployId: string; - operator: string; -} -export type DeployConfirmedEvent = TypedEvent< - [string, string], - DeployConfirmedEventObject ->; - -export type DeployConfirmedEventFilter = TypedEventFilter; - -export interface MockSignatureVerifier extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: MockSignatureVerifierInterface; - - queryFilter( - event: TypedEventFilter, - fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined - ): Promise>; - - listeners( - eventFilter?: TypedEventFilter - ): Array>; - listeners(eventName?: string): Array; - removeAllListeners( - eventFilter: TypedEventFilter - ): this; - removeAllListeners(eventName?: string): this; - off: OnEvent; - on: OnEvent; - once: OnEvent; - removeListener: OnEvent; - - functions: { - submit( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - submit( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - submit( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Confirmed(bytes32,address)"( - submissionId?: null, - operator?: null - ): ConfirmedEventFilter; - Confirmed(submissionId?: null, operator?: null): ConfirmedEventFilter; - - "DeployConfirmed(bytes32,address)"( - deployId?: null, - operator?: null - ): DeployConfirmedEventFilter; - DeployConfirmed( - deployId?: null, - operator?: null - ): DeployConfirmedEventFilter; - }; - - estimateGas: { - submit( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - submit( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - arg2: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/typechain/contracts/index.ts b/typechain/contracts/index.ts deleted file mode 100644 index f2d1414..0000000 --- a/typechain/contracts/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { MockSignatureVerifier } from "./MockSignatureVerifier"; diff --git a/typechain/factories/@debridge-finance/contracts/contracts/index.ts b/typechain/factories/@debridge-finance/contracts/contracts/index.ts deleted file mode 100644 index 6cdde4b..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as interfaces from "./interfaces"; -export * as libraries from "./libraries"; -export * as mock from "./mock"; -export * as periphery from "./periphery"; -export * as transfers from "./transfers"; diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts deleted file mode 100644 index 6e318f9..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ICallProxy, - ICallProxyInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/ICallProxy"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "_reserveAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "bytes", - name: "_nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - ], - name: "call", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_token", - type: "address", - }, - { - internalType: "address", - name: "_reserveAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "bytes", - name: "_nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - ], - name: "callERC20", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "submissionChainIdFrom", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "submissionNativeSender", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ICallProxy__factory { - static readonly abi = _abi; - static createInterface(): ICallProxyInterface { - return new utils.Interface(_abi) as ICallProxyInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ICallProxy { - return new Contract(address, _abi, signerOrProvider) as ICallProxy; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts deleted file mode 100644 index 926a85c..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory.ts +++ /dev/null @@ -1,740 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IDeBridgeGate, - IDeBridgeGateInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bool", - name: "success", - type: "bool", - }, - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "AutoRequestExecuted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Blocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "CallProxyUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainIds", - type: "uint256", - }, - { - components: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.ChainSupportInfo", - name: "chainSupportInfo", - type: "tuple", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainsSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdFrom", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - name: "Claimed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - ], - name: "FixedNativeFeeAutoUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "globalTransferFeeBps", - type: "uint256", - }, - ], - name: "FixedNativeFeeUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringClaimEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringSendEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "maxAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint16", - name: "minReservesBps", - type: "uint16", - }, - ], - name: "PairAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "receiver", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdTo", - type: "uint256", - }, - { - indexed: false, - internalType: "uint32", - name: "referralCode", - type: "uint32", - }, - { - components: [ - { - internalType: "uint256", - name: "receivedAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "fixFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "transferFee", - type: "uint256", - }, - { - internalType: "bool", - name: "useAssetFee", - type: "bool", - }, - { - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.FeeParams", - name: "feeParams", - type: "tuple", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "address", - name: "nativeSender", - type: "address", - }, - ], - name: "Sent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Unblocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "fee", - type: "uint256", - }, - ], - name: "WithdrawnFee", - type: "event", - }, - { - inputs: [], - name: "callProxy", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_nonce", - type: "uint256", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "claim", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - ], - name: "getDebridgeChainAssetFixedFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - ], - name: "getNativeInfo", - outputs: [ - { - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "globalFixedNativeFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "globalTransferFeeBps", - outputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "isSubmissionUsed", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdTo", - type: "uint256", - }, - { - internalType: "bytes", - name: "_receiver", - type: "bytes", - }, - { - internalType: "bytes", - name: "_permitEnvelope", - type: "bytes", - }, - { - internalType: "bool", - name: "_useAssetFee", - type: "bool", - }, - { - internalType: "uint32", - name: "_referralCode", - type: "uint32", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "send", - outputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_dstChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "_targetContractAddress", - type: "bytes", - }, - { - internalType: "bytes", - name: "_targetContractCalldata", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "uint32", - name: "_referralCode", - type: "uint32", - }, - ], - name: "sendMessage", - outputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_dstChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "_targetContractAddress", - type: "bytes", - }, - { - internalType: "bytes", - name: "_targetContractCalldata", - type: "bytes", - }, - ], - name: "sendMessage", - outputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - ], - name: "withdrawFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IDeBridgeGate__factory { - static readonly abi = _abi; - static createInterface(): IDeBridgeGateInterface { - return new utils.Interface(_abi) as IDeBridgeGateInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IDeBridgeGate { - return new Contract(address, _abi, signerOrProvider) as IDeBridgeGate; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer__factory.ts deleted file mode 100644 index 62496e5..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer__factory.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IDeBridgeTokenDeployer, - IDeBridgeTokenDeployerInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "asset", - type: "address", - }, - { - indexed: false, - internalType: "string", - name: "name", - type: "string", - }, - { - indexed: false, - internalType: "string", - name: "symbol", - type: "string", - }, - { - indexed: false, - internalType: "uint8", - name: "decimals", - type: "uint8", - }, - ], - name: "DeBridgeTokenDeployed", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "string", - name: "_name", - type: "string", - }, - { - internalType: "string", - name: "_symbol", - type: "string", - }, - { - internalType: "uint8", - name: "_decimals", - type: "uint8", - }, - ], - name: "deployAsset", - outputs: [ - { - internalType: "address", - name: "deTokenAddress", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IDeBridgeTokenDeployer__factory { - static readonly abi = _abi; - static createInterface(): IDeBridgeTokenDeployerInterface { - return new utils.Interface(_abi) as IDeBridgeTokenDeployerInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IDeBridgeTokenDeployer { - return new Contract( - address, - _abi, - signerOrProvider - ) as IDeBridgeTokenDeployer; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken__factory.ts deleted file mode 100644 index 2217314..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken__factory.ts +++ /dev/null @@ -1,283 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IDeBridgeToken, - IDeBridgeTokenInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "burn", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "mint", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "permit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IDeBridgeToken__factory { - static readonly abi = _abi; - static createInterface(): IDeBridgeTokenInterface { - return new utils.Interface(_abi) as IDeBridgeTokenInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IDeBridgeToken { - return new Contract(address, _abi, signerOrProvider) as IDeBridgeToken; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IERC20Permit__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IERC20Permit__factory.ts deleted file mode 100644 index 4728f60..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IERC20Permit__factory.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC20Permit, - IERC20PermitInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IERC20Permit"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "permit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IERC20Permit__factory { - static readonly abi = _abi; - static createInterface(): IERC20PermitInterface { - return new utils.Interface(_abi) as IERC20PermitInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC20Permit { - return new Contract(address, _abi, signerOrProvider) as IERC20Permit; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IFlashCallback__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IFlashCallback__factory.ts deleted file mode 100644 index 85195b2..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IFlashCallback__factory.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IFlashCallback, - IFlashCallbackInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IFlashCallback"; - -const _abi = [ - { - inputs: [ - { - internalType: "uint256", - name: "fee", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "flashCallback", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IFlashCallback__factory { - static readonly abi = _abi; - static createInterface(): IFlashCallbackInterface { - return new utils.Interface(_abi) as IFlashCallbackInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IFlashCallback { - return new Contract(address, _abi, signerOrProvider) as IFlashCallback; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IOraclesManager__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IOraclesManager__factory.ts deleted file mode 100644 index 0657a2b..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IOraclesManager__factory.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IOraclesManager, - IOraclesManagerInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IOraclesManager"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "oracle", - type: "address", - }, - { - indexed: false, - internalType: "bool", - name: "required", - type: "bool", - }, - ], - name: "AddOracle", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "deployId", - type: "bytes32", - }, - ], - name: "DeployApproved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "SubmissionApproved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "oracle", - type: "address", - }, - { - indexed: false, - internalType: "bool", - name: "required", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isValid", - type: "bool", - }, - ], - name: "UpdateOracle", - type: "event", - }, -] as const; - -export class IOraclesManager__factory { - static readonly abi = _abi; - static createInterface(): IOraclesManagerInterface { - return new utils.Interface(_abi) as IOraclesManagerInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IOraclesManager { - return new Contract(address, _abi, signerOrProvider) as IOraclesManager; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier__factory.ts deleted file mode 100644 index ca31f3d..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier__factory.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ISignatureVerifier, - ISignatureVerifierInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "Confirmed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "deployId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "DeployConfirmed", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_submissionId", - type: "bytes32", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - { - internalType: "uint8", - name: "_excessConfirmations", - type: "uint8", - }, - ], - name: "submit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ISignatureVerifier__factory { - static readonly abi = _abi; - static createInterface(): ISignatureVerifierInterface { - return new utils.Interface(_abi) as ISignatureVerifierInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ISignatureVerifier { - return new Contract(address, _abi, signerOrProvider) as ISignatureVerifier; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWETH__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWETH__factory.ts deleted file mode 100644 index d3fca20..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWETH__factory.ts +++ /dev/null @@ -1,176 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IWETH, - IWETHInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IWETH"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "deposit", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IWETH__factory { - static readonly abi = _abi; - static createInterface(): IWETHInterface { - return new utils.Interface(_abi) as IWETHInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IWETH { - return new Contract(address, _abi, signerOrProvider) as IWETH; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWethGate__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWethGate__factory.ts deleted file mode 100644 index b0ce585..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/IWethGate__factory.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IWethGate, - IWethGateInterface, -} from "../../../../../@debridge-finance/contracts/contracts/interfaces/IWethGate"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IWethGate__factory { - static readonly abi = _abi; - static createInterface(): IWethGateInterface { - return new utils.Interface(_abi) as IWethGateInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IWethGate { - return new Contract(address, _abi, signerOrProvider) as IWethGate; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts b/typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts deleted file mode 100644 index affe07c..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/interfaces/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ICallProxy__factory } from "./ICallProxy__factory"; -export { IDeBridgeGate__factory } from "./IDeBridgeGate__factory"; -export { IDeBridgeToken__factory } from "./IDeBridgeToken__factory"; -export { IDeBridgeTokenDeployer__factory } from "./IDeBridgeTokenDeployer__factory"; -export { IERC20Permit__factory } from "./IERC20Permit__factory"; -export { IFlashCallback__factory } from "./IFlashCallback__factory"; -export { IOraclesManager__factory } from "./IOraclesManager__factory"; -export { ISignatureVerifier__factory } from "./ISignatureVerifier__factory"; -export { IWETH__factory } from "./IWETH__factory"; -export { IWethGate__factory } from "./IWethGate__factory"; diff --git a/typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts deleted file mode 100644 index 8a518b4..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/libraries/Flags__factory.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - Flags, - FlagsInterface, -} from "../../../../../@debridge-finance/contracts/contracts/libraries/Flags"; - -const _abi = [ - { - inputs: [], - name: "MULTI_SEND", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "PROXY_WITH_SENDER", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "REVERT_IF_EXTERNAL_FAIL", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "SEND_EXTERNAL_CALL_GAS_LIMIT", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "SEND_HASHED_DATA", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "UNWRAP_ETH", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60dc610039600b82828239805160001a60731461002c57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe730000000000000000000000000000000000000000301460806040526004361060655760003560e01c8063222f816714606a5780633b1805941460835780637b8332f914608a578063878174a9146091578063a8153758146098578063f3ff906314609f575b600080fd5b6071600381565b60405190815260200160405180910390f35b6071600081565b6071600181565b6071600281565b6071600581565b607160048156fea2646970667358221220ade98deb5fd3106d4e637b98a30ecfd2e2463fc4b483435d33371aa0c0d041f864736f6c63430008070033"; - -type FlagsConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: FlagsConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class Flags__factory extends ContractFactory { - constructor(...args: FlagsConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): Flags { - return super.attach(address) as Flags; - } - override connect(signer: Signer): Flags__factory { - return super.connect(signer) as Flags__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): FlagsInterface { - return new utils.Interface(_abi) as FlagsInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Flags { - return new Contract(address, _abi, signerOrProvider) as Flags; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/libraries/SignatureUtil__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/libraries/SignatureUtil__factory.ts deleted file mode 100644 index 6e2aee5..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/libraries/SignatureUtil__factory.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - SignatureUtil, - SignatureUtilInterface, -} from "../../../../../@debridge-finance/contracts/contracts/libraries/SignatureUtil"; - -const _abi = [ - { - inputs: [], - name: "SignatureInvalidLength", - type: "error", - }, - { - inputs: [], - name: "SignatureInvalidV", - type: "error", - }, - { - inputs: [], - name: "WrongArgumentLength", - type: "error", - }, -] as const; - -const _bytecode = - "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a9cb726e0acbc6cce921c23409ae39ddae76b2accd256f6b6028c56000b8328e64736f6c63430008070033"; - -type SignatureUtilConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: SignatureUtilConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class SignatureUtil__factory extends ContractFactory { - constructor(...args: SignatureUtilConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): SignatureUtil { - return super.attach(address) as SignatureUtil; - } - override connect(signer: Signer): SignatureUtil__factory { - return super.connect(signer) as SignatureUtil__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): SignatureUtilInterface { - return new utils.Interface(_abi) as SignatureUtilInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): SignatureUtil { - return new Contract(address, _abi, signerOrProvider) as SignatureUtil; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts b/typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts deleted file mode 100644 index d379282..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/libraries/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Flags__factory } from "./Flags__factory"; -export { SignatureUtil__factory } from "./SignatureUtil__factory"; diff --git a/typechain/factories/@debridge-finance/contracts/contracts/mock/MockWeth__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/mock/MockWeth__factory.ts deleted file mode 100644 index 28b7faf..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/mock/MockWeth__factory.ts +++ /dev/null @@ -1,372 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - MockWeth, - MockWethInterface, -} from "../../../../../@debridge-finance/contracts/contracts/mock/MockWeth"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "_name", - type: "string", - }, - { - internalType: "string", - name: "_symbol", - type: "string", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "EthTransferFailed", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "src", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "guy", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "dst", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "Deposit", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "src", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "dst", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "src", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "Withdrawal", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "guy", - type: "address", - }, - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "deposit", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "dst", - type: "address", - }, - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "src", - type: "address", - }, - { - internalType: "address", - name: "dst", - type: "address", - }, - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60806040526002805460ff191660121790553480156200001e57600080fd5b5060405162000b0738038062000b078339810160408190526200004191620001d2565b81516200005690600090602085019062000075565b5080516200006c90600190602084019062000075565b5050506200028f565b82805462000083906200023c565b90600052602060002090601f016020900481019282620000a75760008555620000f2565b82601f10620000c257805160ff1916838001178555620000f2565b82800160010185558215620000f2579182015b82811115620000f2578251825591602001919060010190620000d5565b506200010092915062000104565b5090565b5b8082111562000100576000815560010162000105565b600082601f8301126200012d57600080fd5b81516001600160401b03808211156200014a576200014a62000279565b604051601f8301601f19908116603f0116810190828211818310171562000175576200017562000279565b816040528381526020925086838588010111156200019257600080fd5b600091505b83821015620001b6578582018301518183018401529082019062000197565b83821115620001c85760008385830101525b9695505050505050565b60008060408385031215620001e657600080fd5b82516001600160401b0380821115620001fe57600080fd5b6200020c868387016200011b565b935060208501519150808211156200022357600080fd5b5062000232858286016200011b565b9150509250929050565b600181811c908216806200025157607f821691505b602082108114156200027357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b610868806200029f6000396000f3fe6080604052600436106100a05760003560e01c8063313ce56711610064578063313ce5671461016c57806370a082311461019857806395d89b41146101c5578063a9059cbb146101da578063d0e30db0146101fa578063dd62ed3e1461020257600080fd5b806306fdde03146100b4578063095ea7b3146100df57806318160ddd1461010f57806323b872dd1461012c5780632e1a7d4d1461014c57600080fd5b366100af576100ad61023a565b005b600080fd5b3480156100c057600080fd5b506100c9610295565b6040516100d6919061074f565b60405180910390f35b3480156100eb57600080fd5b506100ff6100fa3660046106f0565b610323565b60405190151581526020016100d6565b34801561011b57600080fd5b50475b6040519081526020016100d6565b34801561013857600080fd5b506100ff6101473660046106b4565b61038f565b34801561015857600080fd5b506100ad61016736600461071a565b610513565b34801561017857600080fd5b506002546101869060ff1681565b60405160ff90911681526020016100d6565b3480156101a457600080fd5b5061011e6101b3366004610666565b60036020526000908152604090205481565b3480156101d157600080fd5b506100c9610596565b3480156101e657600080fd5b506100ff6101f53660046106f0565b6105a3565b6100ad61023a565b34801561020e57600080fd5b5061011e61021d366004610681565b600460209081526000928352604080842090915290825290205481565b3360009081526003602052604081208054349290610259908490610782565b909155505060405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2565b600080546102a2906107e1565b80601f01602080910402602001604051908101604052809291908181526020018280546102ce906107e1565b801561031b5780601f106102f05761010080835404028352916020019161031b565b820191906000526020600020905b8154815290600101906020018083116102fe57829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061037e9086815260200190565b60405180910390a350600192915050565b6001600160a01b0383166000908152600360205260408120548211156103b457600080fd5b6001600160a01b03841633148015906103f257506001600160a01b038416600090815260046020908152604080832033845290915290205460001914155b15610460576001600160a01b038416600090815260046020908152604080832033845290915290205482111561042757600080fd5b6001600160a01b03841660009081526004602090815260408083203384529091528120805484929061045a90849061079a565b90915550505b6001600160a01b0384166000908152600360205260408120805484929061048890849061079a565b90915550506001600160a01b038316600090815260036020526040812080548492906104b5908490610782565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161050191815260200190565b60405180910390a35060019392505050565b3360009081526003602052604090205481111561052f57600080fd5b336000908152600360205260408120805483929061054e90849061079a565b9091555061055e905033826105b7565b60405181815233907f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b659060200160405180910390a250565b600180546102a2906107e1565b60006105b033848461038f565b9392505050565b604080516000808252602082019092526001600160a01b0384169083906040516105e19190610733565b60006040518083038185875af1925050503d806000811461061e576040519150601f19603f3d011682016040523d82523d6000602084013e610623565b606091505b505090508061064557604051630db2c7f160e31b815260040160405180910390fd5b505050565b80356001600160a01b038116811461066157600080fd5b919050565b60006020828403121561067857600080fd5b6105b08261064a565b6000806040838503121561069457600080fd5b61069d8361064a565b91506106ab6020840161064a565b90509250929050565b6000806000606084860312156106c957600080fd5b6106d28461064a565b92506106e06020850161064a565b9150604084013590509250925092565b6000806040838503121561070357600080fd5b61070c8361064a565b946020939093013593505050565b60006020828403121561072c57600080fd5b5035919050565b600082516107458184602087016107b1565b9190910192915050565b602081526000825180602084015261076e8160408501602087016107b1565b601f01601f19169190910160400192915050565b600082198211156107955761079561081c565b500190565b6000828210156107ac576107ac61081c565b500390565b60005b838110156107cc5781810151838201526020016107b4565b838111156107db576000848401525b50505050565b600181811c908216806107f557607f821691505b6020821081141561081657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea264697066735822122076bc76d53d3be9df62e03a1a496e2ca3a5fae105597af292afec950546b36a5464736f6c63430008070033"; - -type MockWethConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: MockWethConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class MockWeth__factory extends ContractFactory { - constructor(...args: MockWethConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - _name: PromiseOrValue, - _symbol: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(_name, _symbol, overrides || {}) as Promise; - } - override getDeployTransaction( - _name: PromiseOrValue, - _symbol: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(_name, _symbol, overrides || {}); - } - override attach(address: string): MockWeth { - return super.attach(address) as MockWeth; - } - override connect(signer: Signer): MockWeth__factory { - return super.connect(signer) as MockWeth__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): MockWethInterface { - return new utils.Interface(_abi) as MockWethInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): MockWeth { - return new Contract(address, _abi, signerOrProvider) as MockWeth; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/mock/index.ts b/typechain/factories/@debridge-finance/contracts/contracts/mock/index.ts deleted file mode 100644 index b6b327f..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/mock/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { MockWeth__factory } from "./MockWeth__factory"; diff --git a/typechain/factories/@debridge-finance/contracts/contracts/periphery/CallProxy__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/periphery/CallProxy__factory.ts deleted file mode 100644 index bcd2487..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/periphery/CallProxy__factory.ts +++ /dev/null @@ -1,484 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - CallProxy, - CallProxyInterface, -} from "../../../../../@debridge-finance/contracts/contracts/periphery/CallProxy"; - -const _abi = [ - { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "CallFailed", - type: "error", - }, - { - inputs: [], - name: "CallProxyBadRole", - type: "error", - }, - { - inputs: [], - name: "DeBridgeGateBadRole", - type: "error", - }, - { - inputs: [], - name: "ExternalCallFailed", - type: "error", - }, - { - inputs: [], - name: "Locked", - type: "error", - }, - { - inputs: [], - name: "NotEnoughSafeTxGas", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - inputs: [], - name: "DEBRIDGE_GATE_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_reserveAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "bytes", - name: "_nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - ], - name: "call", - outputs: [ - { - internalType: "bool", - name: "_result", - type: "bool", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_token", - type: "address", - }, - { - internalType: "address", - name: "_reserveAddress", - type: "address", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "bytes", - name: "_nativeSender", - type: "bytes", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - ], - name: "callERC20", - outputs: [ - { - internalType: "bool", - name: "_result", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "transactions", - type: "bytes", - }, - ], - name: "multiSend", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "submissionChainIdFrom", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "submissionNativeSender", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "version", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620009411760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b6118c2806200015c6000396000f3fe6080604052600436106100ec5760003560e01c806354fd4d501161008a57806391d148541161005957806391d1485414610269578063a217fddf14610289578063b88c998b1461029e578063d547741f146102be57600080fd5b806354fd4d50146101f85780636515e2571461020d5780638129fc1c146102415780638d80ff0a1461025657600080fd5b80632eb48491116100c65780632eb484911461017e5780632f2ff15d146101a057806336568abe146101c2578063508ab0a0146101e257600080fd5b806301ffc9a7146100f8578063248a9ca31461012d57806329e164db1461016b57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b50610118610113366004611614565b6102de565b60405190151581526020015b60405180910390f35b34801561013957600080fd5b5061015d6101483660046115cf565b60009081526065602052604090206001015490565b604051908152602001610124565b610118610179366004611516565b610315565b34801561018a57600080fd5b50610193610470565b6040516101249190611749565b3480156101ac57600080fd5b506101c06101bb3660046115e8565b6104fe565b005b3480156101ce57600080fd5b506101c06101dd3660046115e8565b610528565b3480156101ee57600080fd5b5061015d60975481565b34801561020457600080fd5b506101a861015d565b34801561021957600080fd5b5061015d7fd5a6101e940ba33e226d2395b16238ab3063d7ee83d7b3ff59cb92988b39543781565b34801561024d57600080fd5b506101c06105ab565b6101c061026436600461163e565b6106bf565b34801561027557600080fd5b506101186102843660046115e8565b6106e8565b34801561029557600080fd5b5061015d600081565b3480156102aa57600080fd5b506101186102b936600461146d565b610713565b3480156102ca57600080fd5b506101c06102d93660046115e8565b61091c565b60006001600160e01b03198216637965db0b60e01b148061030f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60006103417fd5a6101e940ba33e226d2395b16238ab3063d7ee83d7b3ff59cb92988b395437336106e8565b61035e576040516388a38fa160e01b815260040160405180910390fd5b60026099541415610382576040516303cb96db60e21b815260040160405180910390fd5b60026099554761039687828887878a610950565b9150811580156103aa5750600185811c8116145b156103c85760405163350c20f160e01b815260040160405180910390fd5b5047801561046057604080516000808252602082019092526001600160a01b038a169083906040516103fa91906116b8565b60006040518083038185875af1925050503d8060008114610437576040519150601f19603f3d011682016040523d82523d6000602084013e61043c565b606091505b505090508061045e57604051633204506f60e01b815260040160405180910390fd5b505b5060016099559695505050505050565b6098805461047d9061180f565b80601f01602080910402602001604051908101604052809291908181526020018280546104a99061180f565b80156104f65780601f106104cb576101008083540402835291602001916104f6565b820191906000526020600020905b8154815290600101906020018083116104d957829003601f168201915b505050505081565b60008281526065602052604090206001015461051981610a9c565b6105238383610aa6565b505050565b6001600160a01b038116331461059d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6105a78282610b2c565b5050565b600054610100900460ff16158080156105cb5750600054600160ff909116105b806105e55750303b1580156105e5575060005460ff166001145b6106485760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610594565b6000805460ff19166001179055801561066b576000805461ff0019166101001790555b610676600033610b93565b80156106bc576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b3033146106df576040516324439f6760e21b815260040160405180910390fd5b6106bc81610b9d565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061073f7fd5a6101e940ba33e226d2395b16238ab3063d7ee83d7b3ff59cb92988b395437336106e8565b61075c576040516388a38fa160e01b815260040160405180910390fd5b60026099541415610780576040516303cb96db60e21b815260040160405180910390fd5b60026099556040516370a0823160e01b81523060048201526000906001600160a01b038a16906370a082319060240160206040518083038186803b1580156107c757600080fd5b505afa1580156107db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ff9190611673565b90506001600160a01b0387161561081b5761081b898883610c11565b61082a8760008887878a610950565b6040516370a0823160e01b81523060048201529092506001600160a01b038a16906370a082319060240160206040518083038186803b15801561086c57600080fd5b505afa158015610880573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a49190611673565b9050811580156108b85750600185811c8116145b156108d65760405163350c20f160e01b815260040160405180910390fd5b80156108f0576108f06001600160a01b038a168983610d02565b6001600160a01b0387161561090b5761090b89886000610c11565b506001609955979650505050505050565b60008281526065602052604090206001015461093781610a9c565b6105238383610b2c565b6001600160a01b03163b151590565b60006001600283901c8116811490600484901c8116811490600585901c8116148215610990576097869055865161098e9060989060208a019061132b565b505b60008280156109a0575060048951115b156109d3576109b0896000610d54565b63ffffffff1690506109d0896004808c516109cb91906117b5565b610db1565b98505b603f6109e0826040611796565b6109ea9190611774565b6109f690613c8c61175c565b5a1015610a1657604051632508799b60e01b815260040160405180910390fd5b8015610a225780610a24565b5a5b90508115610a4357309a506000808a5160208c018d8f86f19450610a63565b6001600160a01b038b163b15610a63576000808a5160208c018d8f86f194505b8315610a8e5760006097819055604080516020810191829052829052610a8c916098919061132b565b505b505050509695505050505050565b6106bc8133610ebe565b610ab082826106e8565b6105a75760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610ae83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610b3682826106e8565b156105a75760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6105a78282610aa6565b805160205b81811015610523578083015160f81c6001820184015160601c601583018501516035840186015160558501870160008560008114610be757600181146100f357610bf3565b6000808585888a5af191505b5080610bfe57600080fd5b5050806055018501945050505050610ba2565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180516001600160e01b031663095ea7b360e01b17905283518085019094526014845273115490cc8c08185c1c1c9bdd994819985a5b195960621b90840152600092610c92929187169190610f17565b805190915015610cfc5780806020019051810190610cb091906115ad565b610cfc5760405162461bcd60e51b815260206004820152601f60248201527f4552433230206f7065726174696f6e20646964206e6f742073756363656564006044820152606401610594565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610523908490610f2e565b6000610d6182600461175c565b83511015610da85760405162461bcd60e51b8152602060048201526014602482015273746f55696e7433325f6f75744f66426f756e647360601b6044820152606401610594565b50016004015190565b606081610dbf81601f61175c565b1015610dfe5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b6044820152606401610594565b610e08828461175c565b84511015610e4c5760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b6044820152606401610594565b606082158015610e6b5760405191506000825260208201604052610eb5565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015610ea4578051835260209283019201610e8c565b5050858452601f01601f1916604052505b50949350505050565b610ec882826106e8565b6105a757610ed581611000565b610ee0836020611012565b604051602001610ef19291906116d4565b60408051601f198184030181529082905262461bcd60e51b825261059491600401611749565b6060610f2684846000856111b5565b949350505050565b6000610f83826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610f179092919063ffffffff16565b8051909150156105235780806020019051810190610fa191906115ad565b6105235760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610594565b606061030f6001600160a01b03831660145b60606000611021836002611796565b61102c90600261175c565b67ffffffffffffffff81111561104457611044611876565b6040519080825280601f01601f19166020018201604052801561106e576020820181803683370190505b509050600360fc1b8160008151811061108957611089611860565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106110b8576110b8611860565b60200101906001600160f81b031916908160001a90535060006110dc846002611796565b6110e790600161175c565b90505b600181111561115f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061111b5761111b611860565b1a60f81b82828151811061113157611131611860565b60200101906001600160f81b031916908160001a90535060049490941c93611158816117f8565b90506110ea565b5083156111ae5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610594565b9392505050565b6060824710156112165760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610594565b600080866001600160a01b0316858760405161123291906116b8565b60006040518083038185875af1925050503d806000811461126f576040519150601f19603f3d011682016040523d82523d6000602084013e611274565b606091505b509150915061128587838387611290565b979650505050505050565b606083156112fc5782516112f5576001600160a01b0385163b6112f55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610594565b5081610f26565b610f2683838151156113115781518083602001fd5b8060405162461bcd60e51b81526004016105949190611749565b8280546113379061180f565b90600052602060002090601f016020900481019282611359576000855561139f565b82601f1061137257805160ff191683800117855561139f565b8280016001018555821561139f579182015b8281111561139f578251825591602001919060010190611384565b506113ab9291506113af565b5090565b5b808211156113ab57600081556001016113b0565b80356001600160a01b03811681146113db57600080fd5b919050565b600082601f8301126113f157600080fd5b813567ffffffffffffffff8082111561140c5761140c611876565b604051601f8301601f19908116603f0116810190828211818310171561143457611434611876565b8160405283815286602085880101111561144d57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060e0888a03121561148857600080fd5b611491886113c4565b965061149f602089016113c4565b95506114ad604089016113c4565b9450606088013567ffffffffffffffff808211156114ca57600080fd5b6114d68b838c016113e0565b955060808a0135945060a08a01359150808211156114f357600080fd5b506115008a828b016113e0565b92505060c0880135905092959891949750929550565b60008060008060008060c0878903121561152f57600080fd5b611538876113c4565b9550611546602088016113c4565b9450604087013567ffffffffffffffff8082111561156357600080fd5b61156f8a838b016113e0565b955060608901359450608089013591508082111561158c57600080fd5b5061159989828a016113e0565b92505060a087013590509295509295509295565b6000602082840312156115bf57600080fd5b815180151581146111ae57600080fd5b6000602082840312156115e157600080fd5b5035919050565b600080604083850312156115fb57600080fd5b8235915061160b602084016113c4565b90509250929050565b60006020828403121561162657600080fd5b81356001600160e01b0319811681146111ae57600080fd5b60006020828403121561165057600080fd5b813567ffffffffffffffff81111561166757600080fd5b610f26848285016113e0565b60006020828403121561168557600080fd5b5051919050565b600081518084526116a48160208601602086016117cc565b601f01601f19169290920160200192915050565b600082516116ca8184602087016117cc565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161170c8160178501602088016117cc565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161173d8160288401602088016117cc565b01602801949350505050565b6020815260006111ae602083018461168c565b6000821982111561176f5761176f61184a565b500190565b60008261179157634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156117b0576117b061184a565b500290565b6000828210156117c7576117c761184a565b500390565b60005b838110156117e75781810151838201526020016117cf565b83811115610cfc5750506000910152565b6000816118075761180761184a565b506000190190565b600181811c9082168061182357607f821691505b6020821081141561184457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212202f2ea0ce0fca02e4bcee1876e5e0853ef349fb3267ccc0e3e1c4f4b3afd635fc64736f6c63430008070033"; - -type CallProxyConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: CallProxyConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class CallProxy__factory extends ContractFactory { - constructor(...args: CallProxyConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): CallProxy { - return super.attach(address) as CallProxy; - } - override connect(signer: Signer): CallProxy__factory { - return super.connect(signer) as CallProxy__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): CallProxyInterface { - return new utils.Interface(_abi) as CallProxyInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): CallProxy { - return new Contract(address, _abi, signerOrProvider) as CallProxy; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/periphery/index.ts b/typechain/factories/@debridge-finance/contracts/contracts/periphery/index.ts deleted file mode 100644 index 9e11ab2..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/periphery/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { CallProxy__factory } from "./CallProxy__factory"; diff --git a/typechain/factories/@debridge-finance/contracts/contracts/transfers/DeBridgeGate__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/transfers/DeBridgeGate__factory.ts deleted file mode 100644 index 1990dd5..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/transfers/DeBridgeGate__factory.ts +++ /dev/null @@ -1,2076 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - DeBridgeGate, - DeBridgeGateInterface, -} from "../../../../../@debridge-finance/contracts/contracts/transfers/DeBridgeGate"; - -const _abi = [ - { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "AdminBadRole", - type: "error", - }, - { - inputs: [], - name: "AssetAlreadyExist", - type: "error", - }, - { - inputs: [], - name: "DebridgeNotFound", - type: "error", - }, - { - inputs: [], - name: "EthTransferFailed", - type: "error", - }, - { - inputs: [], - name: "FeeContractUpdaterBadRole", - type: "error", - }, - { - inputs: [], - name: "FeeProxyBadRole", - type: "error", - }, - { - inputs: [], - name: "GovMonitoringBadRole", - type: "error", - }, - { - inputs: [], - name: "InvalidTokenToSend", - type: "error", - }, - { - inputs: [], - name: "NotEnoughReserves", - type: "error", - }, - { - inputs: [], - name: "NotSupportedFixedFee", - type: "error", - }, - { - inputs: [], - name: "ProposedFeeTooHigh", - type: "error", - }, - { - inputs: [], - name: "SignatureInvalidV", - type: "error", - }, - { - inputs: [], - name: "SubmissionBlocked", - type: "error", - }, - { - inputs: [], - name: "SubmissionUsed", - type: "error", - }, - { - inputs: [], - name: "TransferAmountNotCoverFees", - type: "error", - }, - { - inputs: [], - name: "TransferAmountTooHigh", - type: "error", - }, - { - inputs: [], - name: "WrongArgument", - type: "error", - }, - { - inputs: [], - name: "WrongArgumentLength", - type: "error", - }, - { - inputs: [], - name: "WrongAutoArgument", - type: "error", - }, - { - inputs: [], - name: "WrongChainFrom", - type: "error", - }, - { - inputs: [], - name: "WrongChainTo", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bool", - name: "success", - type: "bool", - }, - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "AutoRequestExecuted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Blocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callProxy", - type: "address", - }, - ], - name: "CallProxyUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "chainIds", - type: "uint256", - }, - { - components: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.ChainSupportInfo", - name: "chainSupportInfo", - type: "tuple", - }, - { - indexed: false, - internalType: "bool", - name: "isChainFrom", - type: "bool", - }, - ], - name: "ChainsSupportUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "receiver", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdFrom", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - name: "Claimed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - ], - name: "FixedNativeFeeAutoUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "globalFixedNativeFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "globalTransferFeeBps", - type: "uint256", - }, - ], - name: "FixedNativeFeeUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringClaimEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "lockedOrMintedAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "totalSupply", - type: "uint256", - }, - ], - name: "MonitoringSendEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "maxAmount", - type: "uint256", - }, - { - indexed: false, - internalType: "uint16", - name: "minReservesBps", - type: "uint16", - }, - ], - name: "PairAdded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "receiver", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "nonce", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "chainIdTo", - type: "uint256", - }, - { - indexed: false, - internalType: "uint32", - name: "referralCode", - type: "uint32", - }, - { - components: [ - { - internalType: "uint256", - name: "receivedAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "fixFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "transferFee", - type: "uint256", - }, - { - internalType: "bool", - name: "useAssetFee", - type: "bool", - }, - { - internalType: "bool", - name: "isNativeToken", - type: "bool", - }, - ], - indexed: false, - internalType: "struct IDeBridgeGate.FeeParams", - name: "feeParams", - type: "tuple", - }, - { - indexed: false, - internalType: "bytes", - name: "autoParams", - type: "bytes", - }, - { - indexed: false, - internalType: "address", - name: "nativeSender", - type: "address", - }, - ], - name: "Sent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "Unblocked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "debridgeId", - type: "bytes32", - }, - { - indexed: false, - internalType: "uint256", - name: "fee", - type: "uint256", - }, - ], - name: "WithdrawnFee", - type: "event", - }, - { - inputs: [], - name: "BPS_DENOMINATOR", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "DEPLOY_PREFIX", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "GOVMONITORING_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "SUBMISSION_PREFIX", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_globalFixedNativeFee", - type: "uint256", - }, - ], - name: "autoUpdateFixedNativeFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32[]", - name: "_submissionIds", - type: "bytes32[]", - }, - { - internalType: "bool", - name: "isBlocked", - type: "bool", - }, - ], - name: "blockSubmission", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "callProxy", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_nonce", - type: "uint256", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "claim", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "deBridgeTokenDeployer", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "_nativeTokenAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "_nativeChainId", - type: "uint256", - }, - { - internalType: "string", - name: "_name", - type: "string", - }, - { - internalType: "string", - name: "_symbol", - type: "string", - }, - { - internalType: "uint8", - name: "_decimals", - type: "uint8", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - ], - name: "deployNewAsset", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "excessConfirmations", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "feeContractUpdater", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "feeDiscount", - outputs: [ - { - internalType: "uint16", - name: "discountFixBps", - type: "uint16", - }, - { - internalType: "uint16", - name: "discountTransferBps", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "feeProxy", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "gap0", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "gap1", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "getAmountThreshold", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "getChainFromConfig", - outputs: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getChainId", - outputs: [ - { - internalType: "uint256", - name: "cid", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "getChainToConfig", - outputs: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "getDebridge", - outputs: [ - { - internalType: "uint256", - name: "chainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "maxAmount", - type: "uint256", - }, - { - internalType: "uint256", - name: "balance", - type: "uint256", - }, - { - internalType: "uint256", - name: "lockedInStrategies", - type: "uint256", - }, - { - internalType: "address", - name: "tokenAddress", - type: "address", - }, - { - internalType: "uint16", - name: "minReservesBps", - type: "uint16", - }, - { - internalType: "bool", - name: "exist", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - ], - name: "getDebridgeChainAssetFixedFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "getDebridgeFeeInfo", - outputs: [ - { - internalType: "uint256", - name: "collectedFees", - type: "uint256", - }, - { - internalType: "uint256", - name: "withdrawnFees", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - ], - name: "getDebridgeId", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "string", - name: "_name", - type: "string", - }, - { - internalType: "string", - name: "_symbol", - type: "string", - }, - { - internalType: "uint8", - name: "_decimals", - type: "uint8", - }, - ], - name: "getDeployId", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "getNativeInfo", - outputs: [ - { - internalType: "uint256", - name: "nativeChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "nativeAddress", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_chainIdFrom", - type: "uint256", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "address", - name: "_receiver", - type: "address", - }, - { - internalType: "uint256", - name: "_nonce", - type: "uint256", - }, - { - components: [ - { - internalType: "uint256", - name: "executionFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "flags", - type: "uint256", - }, - { - internalType: "address", - name: "fallbackAddress", - type: "address", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - { - internalType: "bytes", - name: "nativeSender", - type: "bytes", - }, - ], - internalType: "struct IDeBridgeGate.SubmissionAutoParamsFrom", - name: "_autoParams", - type: "tuple", - }, - { - internalType: "bool", - name: "_hasAutoParams", - type: "bool", - }, - { - internalType: "address", - name: "_sender", - type: "address", - }, - ], - name: "getSubmissionIdFrom", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "_tokenAddress", - type: "bytes", - }, - ], - name: "getbDebridgeId", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "globalFixedNativeFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "globalTransferFeeBps", - outputs: [ - { - internalType: "uint16", - name: "", - type: "uint16", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_excessConfirmations", - type: "uint8", - }, - { - internalType: "contract IWETH", - name: "_weth", - type: "address", - }, - ], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "isBlockedSubmission", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "isSubmissionUsed", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "lockedClaim", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "nonce", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_tokenAddress", - type: "address", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "_chainIdTo", - type: "uint256", - }, - { - internalType: "bytes", - name: "_receiver", - type: "bytes", - }, - { - internalType: "bytes", - name: "_permitEnvelope", - type: "bytes", - }, - { - internalType: "bool", - name: "_useAssetFee", - type: "bool", - }, - { - internalType: "uint32", - name: "_referralCode", - type: "uint32", - }, - { - internalType: "bytes", - name: "_autoParams", - type: "bytes", - }, - ], - name: "send", - outputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_chainIdTo", - type: "uint256", - }, - { - internalType: "bytes", - name: "_targetContractAddress", - type: "bytes", - }, - { - internalType: "bytes", - name: "_targetContractCalldata", - type: "bytes", - }, - { - internalType: "uint256", - name: "_flags", - type: "uint256", - }, - { - internalType: "uint32", - name: "_referralCode", - type: "uint32", - }, - ], - name: "sendMessage", - outputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_chainIdTo", - type: "uint256", - }, - { - internalType: "bytes", - name: "_targetContractAddress", - type: "bytes", - }, - { - internalType: "bytes", - name: "_targetContractCalldata", - type: "bytes", - }, - ], - name: "sendMessage", - outputs: [ - { - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_callProxy", - type: "address", - }, - ], - name: "setCallProxy", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_chainId", - type: "uint256", - }, - { - internalType: "bool", - name: "_isSupported", - type: "bool", - }, - { - internalType: "bool", - name: "_isChainFrom", - type: "bool", - }, - ], - name: "setChainSupport", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_deBridgeTokenDeployer", - type: "address", - }, - ], - name: "setDeBridgeTokenDeployer", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_value", - type: "address", - }, - ], - name: "setFeeContractUpdater", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_feeProxy", - type: "address", - }, - ], - name: "setFeeProxy", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_verifier", - type: "address", - }, - ], - name: "setSignatureVerifier", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IWethGate", - name: "_wethGate", - type: "address", - }, - ], - name: "setWethGate", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "signatureVerifier", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256", - name: "_maxAmount", - type: "uint256", - }, - { - internalType: "uint16", - name: "_minReservesBps", - type: "uint16", - }, - { - internalType: "uint256", - name: "_amountThreshold", - type: "uint256", - }, - ], - name: "updateAsset", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - { - internalType: "uint256[]", - name: "_supportedChainIds", - type: "uint256[]", - }, - { - internalType: "uint256[]", - name: "_assetFeesInfo", - type: "uint256[]", - }, - ], - name: "updateAssetFixedFees", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256[]", - name: "_chainIds", - type: "uint256[]", - }, - { - components: [ - { - internalType: "uint256", - name: "fixedNativeFee", - type: "uint256", - }, - { - internalType: "bool", - name: "isSupported", - type: "bool", - }, - { - internalType: "uint16", - name: "transferFeeBps", - type: "uint16", - }, - ], - internalType: "struct IDeBridgeGate.ChainSupportInfo[]", - name: "_chainSupportInfo", - type: "tuple[]", - }, - { - internalType: "bool", - name: "_isChainFrom", - type: "bool", - }, - ], - name: "updateChainSupport", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_excessConfirmations", - type: "uint8", - }, - ], - name: "updateExcessConfirmations", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_address", - type: "address", - }, - { - internalType: "uint16", - name: "_discountFixBps", - type: "uint16", - }, - { - internalType: "uint16", - name: "_discountTransferBps", - type: "uint16", - }, - ], - name: "updateFeeDiscount", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_globalFixedNativeFee", - type: "uint256", - }, - { - internalType: "uint16", - name: "_globalTransferFeeBps", - type: "uint16", - }, - ], - name: "updateGlobalFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "version", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "weth", - outputs: [ - { - internalType: "contract IWETH", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "wethGate", - outputs: [ - { - internalType: "contract IWethGate", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_debridgeId", - type: "bytes32", - }, - ], - name: "withdrawFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620023a81760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b615610806200015c6000396000f3fe6080604052600436106103dd5760003560e01c8063932fb34b116101fd578063c41449eb11610118578063da615052116100ab578063e1a452181161007a578063e1a4521814610d22578063e836a7a914610d38578063ee81fb9714610d66578063f449063314610d7d578063fde919f614610d9d57600080fd5b8063da61505214610c80578063dc1995e914610cb4578063e08a660514610ce2578063e0d3f02914610d0257600080fd5b8063d19c3dd8116100e7578063d19c3dd814610c00578063d547741f14610c20578063d6b531aa14610c40578063d7457c0314610c6057600080fd5b8063c41449eb14610b62578063c432e3ff14610b82578063c93f974014610ba2578063cb33764a14610bc357600080fd5b8063b242e7cf11610190578063bd2608fa1161015f578063bd2608fa14610acc578063be29747614610aec578063c1efe77d14610aff578063c280c90514610b4257600080fd5b8063b242e7cf14610a01578063b3b25f9514610a58578063b9b5565214610a78578063ba9f777614610aab57600080fd5b8063970a117c116101cc578063970a117c1461096b5780639a8c3a0f1461098c578063a217fddf146109d6578063affed0e0146109eb57600080fd5b8063932fb34b146108e5578063960396ae1461091657806396341ea71461092b5780639682b9091461094b57600080fd5b80634665a2f4116102f857806365ac9f781161028b5780637f4de21c1161025a5780637f4de21c146108495780638456cb5914610870578063889d71a214610885578063895f0c6a146108a557806391d14854146108c557600080fd5b806365ac9f78146107835780636ea9cec9146107b4578063760112ff146107c75780637796656c146107e757600080fd5b8063551156d6116102c7578063551156d61461066a57806357cf07ca1461068a5780635c8371981461073c5780635c975abb1461076b57600080fd5b80634665a2f4146106005780634a77d3b6146106205780635187599d1461063557806354fd4d501461065557600080fd5b80632da688ac1161037057806335087f0a1161033f57806335087f0a1461059357806336568abe146105aa5780633f4ba83a146105ca5780633fc8cef3146105df57600080fd5b80632da688ac146105075780632f2ff15d1461054057806331bf10c1146105605780633408e4701461058057600080fd5b806325ff97a0116103ac57806325ff97a01461049e57806326c09e94146104b15780632b0d0a8b146104d15780632d716a3f146104f157600080fd5b806301ffc9a7146103e957806315a4587a1461041e578063248a9ca31461044057806325be0be11461047e57600080fd5b366103e457005b600080fd5b3480156103f557600080fd5b506104096104043660046149f9565b610dbd565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b5061043e610439366004614625565b610df4565b005b34801561044c57600080fd5b5061047061045b366004614743565b60009081526065602052604090206001015490565b604051908152602001610415565b34801561048a57600080fd5b5061043e610499366004614427565b611006565b6104706104ac366004614cc3565b611051565b3480156104bd57600080fd5b5061043e6104cc366004614743565b61112f565b3480156104dd57600080fd5b5061043e6104ec366004614427565b611264565b3480156104fd57600080fd5b5061047060fd5481565b34801561051357600080fd5b5061010a54610528906001600160a01b031681565b6040516001600160a01b039091168152602001610415565b34801561054c57600080fd5b5061043e61055b36600461475c565b6112e2565b34801561056c57600080fd5b5061043e61057b366004614bd9565b61130c565b34801561058c57600080fd5b5046610470565b34801561059f57600080fd5b5061047061010d5481565b3480156105b657600080fd5b5061043e6105c536600461475c565b6113c8565b3480156105d657600080fd5b5061043e61144b565b3480156105eb57600080fd5b5061010b54610528906001600160a01b031681565b34801561060c57600080fd5b5061043e61061b366004614d76565b61147d565b34801561062c57600080fd5b50610470600281565b34801561064157600080fd5b5061043e610650366004614db0565b6114e6565b34801561066157600080fd5b506101a5610470565b34801561067657600080fd5b5061043e610685366004614899565b61162f565b34801561069657600080fd5b506106f86106a5366004614743565b60ff602081905260009182526040909120805460018201546002830154600384015460049094015492949193909290916001600160a01b0382169161ffff600160a01b82041691600160b01b9091041687565b6040805197885260208801969096529486019390935260608501919091526001600160a01b0316608084015261ffff1660a0830152151560c082015260e001610415565b34801561074857600080fd5b5061010e546107589061ffff1681565b60405161ffff9091168152602001610415565b34801561077757600080fd5b5060975460ff16610409565b34801561078f57600080fd5b5061040961079e366004614743565b6101016020526000908152604090205460ff1681565b6104706107c2366004614c61565b6116c6565b3480156107d357600080fd5b506104706107e236600461495c565b6116fd565b3480156107f357600080fd5b5061082a610802366004614743565b610104602052600090815260409020805460019091015460ff811690610100900461ffff1683565b60408051938452911515602084015261ffff1690820152606001610415565b34801561085557600080fd5b5061010e54610528906201000090046001600160a01b031681565b34801561087c57600080fd5b5061043e611878565b34801561089157600080fd5b5061043e6108a0366004614427565b6118c7565b3480156108b157600080fd5b5061043e6108c036600461478c565b611911565b3480156108d157600080fd5b506104096108e036600461475c565b6119db565b3480156108f157600080fd5b50610409610900366004614743565b6101026020526000908152604090205460ff1681565b34801561092257600080fd5b50610470600181565b34801561093757600080fd5b5061043e61094636600461457c565b611a06565b34801561095757600080fd5b5061047061096636600461475c565b611b41565b34801561097757600080fd5b5061010c54610528906001600160a01b031681565b34801561099857600080fd5b506109c16109a7366004614743565b610100602052600090815260409020805460019091015482565b60408051928352602083019190915201610415565b3480156109e257600080fd5b50610470600081565b3480156109f757600080fd5b5061047060fe5481565b348015610a0d57600080fd5b50610a3d610a1c366004614427565b6101066020526000908152604090205461ffff808216916201000090041682565b6040805161ffff938416815292909116602083015201610415565b348015610a6457600080fd5b5061043e610a73366004614461565b611b8a565b348015610a8457600080fd5b5060fc54610a9990600160a01b900460ff1681565b60405160ff9091168152602001610415565b348015610ab757600080fd5b5061010954610528906001600160a01b031681565b348015610ad857600080fd5b5061043e610ae7366004614a23565b611c38565b610470610afa3660046144a6565b611dc1565b348015610b0b57600080fd5b5061082a610b1a366004614743565b610105602052600090815260409020805460019091015460ff811690610100900461ffff1683565b348015610b4e57600080fd5b5061043e610b5d3660046148d6565b611eef565b348015610b6e57600080fd5b5061043e610b7d366004614d4a565b612056565b348015610b8e57600080fd5b5061043e610b9d366004614427565b6120d7565b348015610bae57600080fd5b5061010854610528906001600160a01b031681565b348015610bcf57600080fd5b50610470610bde366004614877565b6000918252610100602090815260408084209284526002909201905290205490565b348015610c0c57600080fd5b50610470610c1b3660046147f8565b61212a565b348015610c2c57600080fd5b5061043e610c3b36600461475c565b6121d1565b348015610c4c57600080fd5b5061043e610c5b366004614743565b6121f6565b348015610c6c57600080fd5b5060fb54610528906001600160a01b031681565b348015610c8c57600080fd5b506104707f2b36fa99e118fa8485d488becf749a974743fbeb6a7aa57e663893bf5d69a3c181565b348015610cc057600080fd5b50610cd4610ccf366004614427565b612258565b604051610415929190615297565b348015610cee57600080fd5b5061043e610cfd366004614427565b6122fe565b348015610d0e57600080fd5b5061043e610d1d366004614427565b612348565b348015610d2e57600080fd5b5061047061271081565b348015610d4457600080fd5b50610470610d53366004614743565b6101036020526000908152604090205481565b348015610d7257600080fd5b5061047061010f5481565b348015610d8957600080fd5b50610470610d98366004614c1b565b612393565b348015610da957600080fd5b5060fc54610528906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b1480610dee57506301ffc9a760e01b6001600160e01b03198316145b92915050565b610dff6000336119db565b610e1c57604051636f4720fd60e11b815260040160405180910390fd5b8151835114610e3e57604051634668624160e01b815260040160405180910390fd5b60005b8351811015611000578115610eda57828181518110610e6257610e6261557c565b60200260200101516101056000868481518110610e8157610e8161557c565b6020908102919091018101518252818101929092526040908101600020835181559183015160019092018054939091015161ffff166101000262ffff00199215159290921662ffffff1990931692909217179055610f60565b828181518110610eec57610eec61557c565b60200260200101516101046000868481518110610f0b57610f0b61557c565b6020908102919091018101518252818101929092526040908101600020835181559183015160019092018054939091015161ffff166101000262ffff00199215159290921662ffffff19909316929092171790555b7f753df979edb610900dbec05f67411d26a90a78013a0e3a028f2fd9d3c6fd214f848281518110610f9357610f9361557c565b6020026020010151848381518110610fad57610fad61557c565b6020908102919091018101516040805193845281518484015291810151151583830152015161ffff166060820152831515608082015260a00160405180910390a180610ff88161554b565b915050610e41565b50505050565b6110116000336119db565b61102e57604051636f4720fd60e11b815260040160405180910390fd5b61010980546001600160a01b0319166001600160a01b0392909216919091179055565b600061105b6123b7565b611063612411565b8451158061107057508351155b1561108e576040516315c1f47560e31b815260040160405180910390fd5b60008060006110b1604051806020016040528060008152506000808c6000612457565b9250925092506110e26040518060800160405280600081526020016000815260200160608152602001606081525090565b6110ed600085612c54565b8152602081018790526040810189905260608101889052611116838b60008c868b876001612d29565b945050505050611126600160c955565b95945050505050565b6111376123b7565b610109546001600160a01b031633146111635760405163dd518cdb60e01b815260040160405180910390fd5b6000818152610100602052604081206001810154815491929161118691906154b6565b9050806111a65760405163c6c13aa760e01b815260040160405180910390fd5b808260010160008282546111ba919061534d565b909155506111cc9050465b6000611b41565b8314156111ef57610109546111ea906001600160a01b031682612fea565b61121c565b61010954600084815260ff602052604090206004015461121c916001600160a01b03918216911683613078565b60408051848152602081018390527fb4006a5a0c03fd761a319df109910cdb56253d60a54ffc647c070b8bad0a8ae3910160405180910390a15050611261600160c955565b50565b61126f6000336119db565b61128c57604051636f4720fd60e11b815260040160405180910390fd5b61010a80546001600160a01b0319166001600160a01b0383169081179091556040519081527fa9543b36462a5e2c2259a14d72a8bd4e2342eaf9d7c828e9fb86921b3aa3eb5f906020015b60405180910390a150565b6000828152606560205260409020600101546112fd816130db565b61130783836130e5565b505050565b6113176000336119db565b61133457604051636f4720fd60e11b815260040160405180910390fd5b801561135d57600083815261010560205260409020600101805460ff191683151517905561137c565b600083815261010460205260409020600101805460ff19168315151790555b604080518481528315156020820152821515918101919091527f522cc1aea4e8d667320894993cf2dc17feb624e400eb812c41a8efbcefc3d340906060015b60405180910390a1505050565b6001600160a01b038116331461143d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b611447828261316b565b5050565b6114566000336119db565b61147357604051636f4720fd60e11b815260040160405180910390fd5b61147b6131d2565b565b6114886000336119db565b6114a557604051636f4720fd60e11b815260040160405180910390fd5b60ff81166114c657604051634668624160e01b815260040160405180910390fd5b60fc805460ff909216600160a01b0260ff60a01b19909216919091179055565b600054610100900460ff16158080156115065750600054600160ff909116105b806115205750303b158015611520575060005460ff166001145b6115835760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401611434565b6000805460ff1916600117905580156115a6576000805461ff0019166101001790555b60fc805460ff60a01b1916600160a01b60ff86160217905561010b80546001600160a01b0319166001600160a01b0384161790556115e5600033613224565b6115ed61322e565b8015611307576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020016113bb565b61163a6000336119db565b61165757604051636f4720fd60e11b815260040160405180910390fd5b6127108261ffff16111561167e57604051634668624160e01b815260040160405180910390fd5b600093845260ff6020908152604080862060018101959095556004909401805461ffff909416600160a01b0261ffff60a01b1990941693909317909255610103909152912055565b6000806116e2600260016116db84828061325d565b919061325d565b90506116f2858585846000611051565b9150505b9392505050565b60408051600160208201528082018a905260608082018a905246608083015260a0820189905287901b6001600160601b03191660c082015260d48082018790528251808303909101815260f4909101909152600090831561186157602085015160009060031c600190811614801561178a575085604001516001600160a01b0316846001600160a01b0316145b801561179b57508560600151516020145b9050818660000151876020015188604001516040516020016117d0919060609190911b6001600160601b031916815260140190565b604051602081830303815290604052805190602001208461181d5760608a01518051602091820120604051611809920190815260200190565b604051602081830303815290604052611823565b89606001515b60808b0151805160209182012060405161184297969594939201614e4f565b604051602081830303815290604052805190602001209250505061186c565b805160209091012090505b98975050505050505050565b6118a27f2b36fa99e118fa8485d488becf749a974743fbeb6a7aa57e663893bf5d69a3c1336119db565b6118bf57604051636053780560e01b815260040160405180910390fd5b61147b61327e565b6118d26000336119db565b6118ef57604051636f4720fd60e11b815260040160405180910390fd5b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b61191c6000336119db565b61193957604051636f4720fd60e11b815260040160405180910390fd5b805182511461195b57604051634668624160e01b815260040160405180910390fd5b600083815261010060205260408120905b83518110156119d4578281815181106119875761198761557c565b60200260200101518260020160008684815181106119a7576119a761557c565b602002602001015181526020019081526020016000208190555080806119cc9061554b565b91505061196c565b5050505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b611a116000336119db565b611a2e57604051636f4720fd60e11b815260040160405180910390fd5b60005b825181101561130757816101026000858481518110611a5257611a5261557c565b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055508115611adc577f7f2b4c099f4c970e6d3b8677f8c32755ce38018a03dad58ed015c68a7e9bc791838281518110611ab857611ab861557c565b6020026020010151604051611acf91815260200190565b60405180910390a1611b2f565b7f598eac83c515ef525efc37796beda3b069e752328e8325fb446f84e6cc7d2242838281518110611b0f57611b0f61557c565b6020026020010151604051611b2691815260200190565b60405180910390a15b80611b398161554b565b915050611a31565b60008282604051602001611b6c92919091825260601b6001600160601b031916602082015260340190565b60405160208183030381529060405280519060200120905092915050565b611b956000336119db565b611bb257604051636f4720fd60e11b815260040160405180910390fd5b6001600160a01b0383161580611bcd57506127108261ffff16115b80611bdd57506127108161ffff16115b15611bfb57604051634668624160e01b815260040160405180910390fd5b6001600160a01b03909216600090815261010660205260409020805461ffff938416620100000263ffffffff199091169390921692909217179055565b611c406123b7565b611c48612411565b6000611c548688612393565b600081815260ff6020819052604090912060040154919250600160b01b9091041615611c935760405163f0faeff560e01b815260040160405180910390fd5b6000611ca18287878761212a565b60fc54604051632597429960e21b81529192506001600160a01b0381169163965d0a6491611ce19185918891600160a01b90910460ff16906004016150b0565b600060405180830381600087803b158015611cfb57600080fd5b505af1158015611d0f573d6000803e3d6000fd5b505060fb54604051630743550560e01b8152600093506001600160a01b039091169150630743550590611d4c9086908b908b908b906004016150dc565b602060405180830381600087803b158015611d6657600080fd5b505af1158015611d7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9e9190614444565b9050611dac83828b8b6132bb565b505050611db9600160c955565b505050505050565b6000611dcb6123b7565b611dd3612411565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290526000611e0c898e8e8e8c612457565b604080516080810182526000808252602082015260609181018290528181019190915291955093509091508515611ea657611e4986880188614b1c565b9050611e598e8260000151612c54565b808252821015611e7057611e6d8e83612c54565b81525b6000816060015151118015611e885750604081015151155b15611ea6576040516315c1f47560e31b815260040160405180910390fd5b8051611eb290836154b6565b9150611ebe8e83612c54565b9150611ed2848d848e878d878d1515612d29565b945050505050611ee2600160c955565b9998505050505050505050565b611ef7612411565b6000878152610105602052604090206001015460ff16611f2a57604051633b5bbdf960e11b815260040160405180910390fd5b611f656040518060a00160405280600081526020016000815260200160006001600160a01b0316815260200160608152602001606081525090565b8115611f7a57611f7782840184614ae8565b90505b6000611f8e8b8a8c8b8b87891515336116fd565b6000818152610101602052604090205490915060ff1615611fc25760405163e4e5e97560e01b815260040160405180910390fd5b600081815261010160205260409020805460ff19166001179055611fe9818c8c8989613430565b6000611ff9828d8b8e8e88613500565b905089896001600160a01b03168d7ffee5cae6d86f128037e90fc8d24296e73ad402bd6f6f09098589d528c2e14ad2858f8d8b8b89604051612040969594939291906151b1565b60405180910390a4505050505050505050505050565b6120616000336119db565b61207e57604051636f4720fd60e11b815260040160405180910390fd5b61010d82905561010e805461ffff191661ffff83169081179091556040805184815260208101929092527f850cd955704b99a3588cb377341a321bc53b01073abba0af4616b0c70eb77943910160405180910390a15050565b6120e26000336119db565b6120ff57604051636f4720fd60e11b815260040160405180910390fd5b61010e80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000600285856040516020016121409190614e33565b60405160208183030381529060405280519060200120856040516020016121679190614e33565b60408051601f19818403018152828252805160209182012090830195909552810192909252606082015260808101919091526001600160f81b031960f884901b1660a082015260a1016040516020818303038152906040528051906020012090505b949350505050565b6000828152606560205260409020600101546121ec816130db565b611307838361316b565b61010c546001600160a01b03163314612222576040516341c83f5f60e11b815260040160405180910390fd5b61010d8190556040518181527f6af65247cf743b7cb486dac49457e290bf672f3d89f71ed05d3f56d7b69c014b906020016112d7565b610107602052600090815260409020805460018201805491929161227b90615510565b80601f01602080910402602001604051908101604052809291908181526020018280546122a790615510565b80156122f45780601f106122c9576101008083540402835291602001916122f4565b820191906000526020600020905b8154815290600101906020018083116122d757829003601f168201915b5050505050905082565b6123096000336119db565b61232657604051636f4720fd60e11b815260040160405180910390fd5b60fc80546001600160a01b0319166001600160a01b0392909216919091179055565b6123536000336119db565b61237057604051636f4720fd60e11b815260040160405180910390fd5b61010c80546001600160a01b0319166001600160a01b0392909216919091179055565b60008282604051602001611b6c929190614f5d565b6001600160a01b03163b151590565b600260c954141561240a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611434565b600260c955565b60975460ff161561147b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401611434565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101829052819061248c8761389e565b87511561255157600061249f89826139f9565b905060006124ae8a60206139f9565b9050600080806124bf8d6040613a30565b60405163d505accf60e01b8152336004820152306024820152604481018990526064810188905260ff8216608482015260a4810184905260c4810183905292955090935091506001600160a01b038d169063d505accf9060e401600060405180830381600087803b15801561253357600080fd5b505af1158015612547573d6000803e3d6000fd5b5050505050505050505b60006101076000896001600160a01b03166001600160a01b031681526020019081526020016000206040518060400160405290816000820154815260200160018201805461259e90615510565b80601f01602080910402602001604051908101604052809291908181526020018280546125ca90615510565b80156126175780601f106125ec57610100808354040283529160200191612617565b820191906000526020600020905b8154815290600101906020018083116125fa57829003601f168201915b505050505081525050905060008160000151600014612639574682511461263c565b60015b905080156126765761266f466001600160a01b038b161561265d578a611b41565b61010b546001600160a01b0316611b41565b935061268b565b61268882600001518360200151612393565b93505b600084815260ff6020819052604090912060048101549091600160b01b9091041661273a5781156127215760006001600160a01b038b16156126cd578a6126db565b61010b546001600160a01b03165b6040516001600160601b0319606083901b16602082015290915061271b90879083906034016040516020818303038152906040526127164690565b6132bb565b5061273a565b604051631433b3cd60e01b815260040160405180910390fd5b6000888152610104602090815260409182902082516060810184528154815260019091015460ff81161515928201839052610100900461ffff1692810192909252612798576040516357fca4cf60e11b815260040160405180910390fd5b6001600160a01b038b1661281c5734995061010b60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db08b6040518263ffffffff1660e01b81526004016000604051808303818588803b1580156127fa57600080fd5b505af115801561280e573d6000803e3d6000fd5b505050505060019750612937565b6040516370a0823160e01b81523060048201528b906000906001600160a01b038316906370a082319060240160206040518083038186803b15801561286057600080fd5b505afa158015612874573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128989190614bc0565b90506128af6001600160a01b03831633308f613a9d565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a082319060240160206040518083038186803b1580156128f057600080fd5b505afa158015612904573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129289190614bc0565b61293291906154b6565b9b5050505b81600101548a111561295c57604051635a20217760e11b815260040160405180910390fd5b3360009081526101066020908152604080832081518083018352905461ffff8082168352620100009091041681840152898452610100909252822090918a15612a34576001600160a01b038e166129c7578351156129bb5783516129c0565b61010d545b90506129f7565b5060008b8152600282016020526040902054806129f75760405163156321fb60e11b815260040160405180910390fd5b612a05818460000151613ad5565b9050808d1015612a2857604051630a44071360e01b815260040160405180910390fd5b60208801819052612ad3565b835160009015612a45578451612a4a565b61010d545b9050612a5a818560000151613ad5565b905080341015612a7d57604051630a44071360e01b815260040160405180910390fd5b80341115612a9857612a9833612a9383346154b6565b612fea565b6000612aa3466111c5565b60008181526101006020526040812080549293508492909190612ac790849061534d565b90915550505060208901525b6000612710828f612ae491906154b6565b604087015161ffff1615612afc578660400151612b05565b61010e5461ffff165b61ffff16612b139190615497565b612b1d919061538a565b9050612b2d818560200151613ad5565b90506000612b3b838361534d565b9050808f1015612b5e57604051630a44071360e01b815260040160405180910390fd5b80846000016000828254612b72919061534d565b92505081905550808f612b8591906154b6565b60408b0192909252508b151560608a01528d89528615801560808b0152909a509250612bcd9150505786826002016000828254612bc2919061534d565b90915550612c459050565b86826002016000828254612be191906154b6565b9091555050600482810154604051630852cd8d60e31b81529182018990526001600160a01b0316906342966c6890602401600060405180830381600087803b158015612c2c57600080fd5b505af1158015612c40573d6000803e3d6000fd5b505050505b50505050955095509592505050565b6000806001600160a01b03841615612cdc57836001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612c9f57600080fd5b505afa158015612cb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cd79190614d93565b612cdf565b60125b60ff169050600880821115612d20576000612cfa82846154b6565b612d0590600a6153ef565b905080612d12818761538a565b612d1c9190615497565b9450505b50919392505050565b60008060018a4660fe54604051612d4b949392918e918e918e91602001614f14565b60405160208183030381529060405290508215612e5757602084015160031c600190811614808015612d835750846060015151602014155b15612da1576040516315c1f47560e31b815260040160405180910390fd5b818560000151866020015187604001518051906020012084612def5760608901518051602091820120604051612ddb920190815260200190565b604051602081830303815290604052612df5565b88606001515b6040516001600160601b03193360601b16602082015260340160405160208183030381529060405280519060200120604051602001612e3996959493929190614e4f565b60405160208183030381529060405280519060200120925050612e61565b8051602082012091505b888a7fe315721819a1f353fe56de404206bdd896ab5edc7822f1804a8c4c2c4788174c848b8b60fe548b8d8b612ea65760405180602001604052806000815250612ec7565b8c604051602001612eb7919061524a565b6040516020818303038152906040525b33604051612edc98979695949392919061511c565b60405180910390a360fe5460008b815260ff6020908152604091829020600281015460049182015484516318160ddd60e01b815294517f6bc83b8dd1a15f3a247f8f99d37e3bb8ae7074ea13ee1f509e045723fafe0b55968996909593946001600160a01b03909316936318160ddd93828101939192829003018186803b158015612f6657600080fd5b505afa158015612f7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f9e9190614bc0565b60408051948552602085019390935291830152606082015260800160405180910390a160fe8054906000612fd18361554b565b91905055505098975050505050505050565b600160c955565b604080516000808252602082019092526001600160a01b0384169083906040516130149190614e33565b60006040518083038185875af1925050503d8060008114613051576040519150601f19603f3d011682016040523d82523d6000602084013e613056565b606091505b505090508061130757604051630db2c7f160e31b815260040160405180910390fd5b6040516001600160a01b03831660248201526044810182905261130790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613afc565b6112618133613bce565b6130ef82826119db565b6114475760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556131273390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61317582826119db565b156114475760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6131da613c27565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61144782826130e5565b600054610100900460ff166132555760405162461bcd60e51b8152600401611434906151ff565b61147b613c70565b6000811561327157506001821b83176116f6565b506001821b1983166116f6565b613286612411565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132073390565b600084815260ff6020819052604090912060048101549091600160b01b90910416156132fa5760405163f0faeff560e01b815260040160405180910390fd5b6001600160a01b0384166133215760405163d92e233d60e01b815260040160405180910390fd5b6004810180546001600160a01b038616600162ff000160a01b031990911617600160b01b179055818155600181015461335d5760001960018201555b60048101805461ffff60a01b191661027160a41b1790556000858152610103602052604090205461339d5760008581526101036020526040902060001990555b6001600160a01b038416600090815261010760209081526040909120838155845190916133d1916001840191870190614166565b50827f2fe256b895c7737f17df53e47f93d864727942c40cbfeb0098fb10b2b57da51487878786600101548760040160149054906101000a900461ffff1660405161342095949392919061503c565b60405180910390a2505050505050565b6000858152610102602052604090205460ff16156134615760405163d49624bf60e01b815260040160405180910390fd5b60fc54600085815261010360205260409020546001600160a01b039091169063965d0a649087908590859088101561349a5760006134a8565b60fc54600160a01b900460ff165b6040518563ffffffff1660e01b81526004016134c79493929190615082565b600060405180830381600087803b1580156134e157600080fd5b505af11580156134f5573d6000803e3d6000fd5b505050505050505050565b600085815260ff60208190526040822060048101549091600160b01b9091041661353d57604051631433b3cd60e01b815260040160405180910390fd5b4681541491508115613573578251613555908661534d565b81600201600082825461356891906154b6565b909155506135989050565b825161357f908661534d565b816002016000828254613592919061534d565b90915550505b60048101546001600160a01b031660008380156135bc575060208501516001908116145b80156135d6575061010b546001600160a01b038381169116145b8551909150156135f0576135f08233876000015187613c97565b606085015151156137ae5761010a546001600160a01b0316600082156136b95761361a828a613d24565b816001600160a01b03166329e164db88604001518c8a606001518b602001518c608001518e6040518763ffffffff1660e01b815260040161366096959493929190614fe4565b602060405180830381600087803b15801561367a57600080fd5b505af115801561368e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136b29190614726565b9050613762565b6136c584838b89613c97565b816001600160a01b031663b88c998b8589604001518d8b606001518c602001518d608001518f6040518863ffffffff1660e01b815260040161370d9796959493929190614f83565b602060405180830381600087803b15801561372757600080fd5b505af115801561373b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061375f9190614726565b90505b604080518d81526001600160a01b0384166020820152821515917fb5fadd70c6860131059f49f37dff63a2b25d1df54e62d75c8327d896c0f7a0ad910160405180910390a250506137cf565b80156137c3576137be8888613d24565b6137cf565b6137cf82898987613c97565b6002830154600480850154604080516318160ddd60e01b815290517fe16b3d616e66789124fb71bf745a9a969a79906489c299e52e09686696152ef1948f9490936001600160a01b0316926318160ddd9281830192602092829003018186803b15801561383b57600080fd5b505afa15801561384f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138739190614bc0565b6040805193845260208401929092529082015260600160405180910390a15050509695505050505050565b6001600160a01b0381166138af5750565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000916001600160a01b038416916138f19190614e33565b6000604051808303816000865af19150503d806000811461392e576040519150601f19603f3d011682016040523d82523d6000602084013e613933565b606091505b505090508061395557604051636d737eeb60e01b815260040160405180910390fd5b60408051600481526024810182526020810180516001600160e01b03166395d89b4160e01b17905290516001600160a01b0384169161399391614e33565b6000604051808303816000865af19150503d80600081146139d0576040519150601f19603f3d011682016040523d82523d6000602084013e6139d5565b606091505b5050809150508061144757604051636d737eeb60e01b815260040160405180910390fd5b6000613a0682602061534d565b83511015613a27576040516340f0f32960e01b815260040160405180910390fd5b50016020015190565b8181016020810151604082015160419092015190919060ff16601b811015613a6057613a5d601b82615365565b90505b8060ff16601b14158015613a7857508060ff16601c14155b15613a9657604051630633a0a560e21b815260040160405180910390fd5b9250925092565b6040516001600160a01b03808516602483015283166044820152606481018290526110009085906323b872dd60e01b906084016130a4565b6000612710613ae861ffff841685615497565b613af2919061538a565b6116f690846154b6565b6000613b51826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613e349092919063ffffffff16565b8051909150156113075780806020019051810190613b6f9190614726565b6113075760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401611434565b613bd882826119db565b61144757613be581613e43565b613bf0836020613e55565b604051602001613c01929190614e9f565b60408051601f198184030181529082905262461bcd60e51b8252611434916004016151ec565b60975460ff1661147b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401611434565b600054610100900460ff16612fe35760405162461bcd60e51b8152600401611434906151ff565b8115611000578015613cbc57613cb76001600160a01b0385168484613078565b611000565b6040516340c10f1960e01b81526001600160a01b038481166004830152602482018490528516906340c10f1990604401600060405180830381600087803b158015613d0657600080fd5b505af1158015613d1a573d6000803e3d6000fd5b5050505050505050565b61010e546201000090046001600160a01b0316613da45761010b54604051632e1a7d4d60e01b8152600481018390526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015613d8257600080fd5b505af1158015613d96573d6000803e3d6000fd5b505050506114478282612fea565b61010e5461010b54613dca916001600160a01b0391821691620100009091041683613078565b61010e5460405163f3fef3a360e01b81526001600160a01b03848116600483015260248201849052620100009092049091169063f3fef3a390604401600060405180830381600087803b158015613e2057600080fd5b505af1158015611db9573d6000803e3d6000fd5b60606121c98484600085613ff0565b6060610dee6001600160a01b03831660145b60606000613e64836002615497565b613e6f90600261534d565b6001600160401b03811115613e8657613e86615592565b6040519080825280601f01601f191660200182016040528015613eb0576020820181803683370190505b509050600360fc1b81600081518110613ecb57613ecb61557c565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613efa57613efa61557c565b60200101906001600160f81b031916908160001a9053506000613f1e846002615497565b613f2990600161534d565b90505b6001811115613fa1576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613f5d57613f5d61557c565b1a60f81b828281518110613f7357613f7361557c565b60200101906001600160f81b031916908160001a90535060049490941c93613f9a816154f9565b9050613f2c565b5083156116f65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401611434565b6060824710156140515760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401611434565b600080866001600160a01b0316858760405161406d9190614e33565b60006040518083038185875af1925050503d80600081146140aa576040519150601f19603f3d011682016040523d82523d6000602084013e6140af565b606091505b50915091506140c0878383876140cb565b979650505050505050565b60608315614137578251614130576001600160a01b0385163b6141305760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401611434565b50816121c9565b6121c9838381511561414c5781518083602001fd5b8060405162461bcd60e51b815260040161143491906151ec565b82805461417290615510565b90600052602060002090601f01602090048101928261419457600085556141da565b82601f106141ad57805160ff19168380011785556141da565b828001600101855582156141da579182015b828111156141da5782518255916020019190600101906141bf565b506141e69291506141ea565b5090565b5b808211156141e657600081556001016141eb565b803561420a816155a8565b919050565b600082601f83011261422057600080fd5b813560206142356142308361532a565b6152fa565b80838252828201915082860187848660051b890101111561425557600080fd5b60005b8581101561427457813584529284019290840190600101614258565b5090979650505050505050565b803561420a816155bd565b60008083601f84011261429e57600080fd5b5081356001600160401b038111156142b557600080fd5b6020830191508360208285010111156142cd57600080fd5b9250929050565b600082601f8301126142e557600080fd5b81356001600160401b038111156142fe576142fe615592565b614311601f8201601f19166020016152fa565b81815284602083860101111561432657600080fd5b816020850160208301376000918101602001919091529392505050565b600060a0828403121561435557600080fd5b60405160a081016001600160401b03828210818311171561437857614378615592565b8160405282935084358352602085013560208401526040850135915061439d826155a8565b81604084015260608501359150808211156143b757600080fd5b6143c3868387016142d4565b606084015260808501359150808211156143dc57600080fd5b506143e9858286016142d4565b6080830152505092915050565b803561ffff8116811461420a57600080fd5b803563ffffffff8116811461420a57600080fd5b803561420a816155cb565b60006020828403121561443957600080fd5b81356116f6816155a8565b60006020828403121561445657600080fd5b81516116f6816155a8565b60008060006060848603121561447657600080fd5b8335614481816155a8565b925061448f602085016143f6565b915061449d604085016143f6565b90509250925092565b60008060008060008060008060006101008a8c0312156144c557600080fd5b6144ce8a6141ff565b985060208a0135975060408a0135965060608a01356001600160401b03808211156144f857600080fd5b6145048d838e016142d4565b975060808c013591508082111561451a57600080fd5b6145268d838e016142d4565b965061453460a08d01614281565b955061454260c08d01614408565b945060e08c013591508082111561455857600080fd5b506145658c828d0161428c565b915080935050809150509295985092959850929598565b6000806040838503121561458f57600080fd5b82356001600160401b038111156145a557600080fd5b8301601f810185136145b657600080fd5b803560206145c66142308361532a565b80838252828201915082850189848660051b88010111156145e657600080fd5b600095505b848610156146095780358352600195909501949183019183016145eb565b5095506146199050868201614281565b93505050509250929050565b6000806000606080858703121561463b57600080fd5b84356001600160401b038082111561465257600080fd5b61465e8883890161420f565b955060209150818701358181111561467557600080fd5b87019050601f8101881361468857600080fd5b80356146966142308261532a565b81815283810190838501868402850186018c10156146b357600080fd5b60009450845b8481101561470f5787828e0312156146cf578586fd5b6146d76152b0565b82358152878301356146e8816155bd565b8189015260406146f98482016143f6565b90820152845292860192908701906001016146b9565b505080975050505050505061449d60408501614281565b60006020828403121561473857600080fd5b81516116f6816155bd565b60006020828403121561475557600080fd5b5035919050565b6000806040838503121561476f57600080fd5b823591506020830135614781816155a8565b809150509250929050565b6000806000606084860312156147a157600080fd5b8335925060208401356001600160401b03808211156147bf57600080fd5b6147cb8783880161420f565b935060408601359150808211156147e157600080fd5b506147ee8682870161420f565b9150509250925092565b6000806000806080858703121561480e57600080fd5b8435935060208501356001600160401b038082111561482c57600080fd5b614838888389016142d4565b9450604087013591508082111561484e57600080fd5b5061485b878288016142d4565b925050606085013561486c816155cb565b939692955090935050565b6000806040838503121561488a57600080fd5b50508035926020909101359150565b600080600080608085870312156148af57600080fd5b84359350602085013592506148c6604086016143f6565b9396929550929360600135925050565b600080600080600080600080600060e08a8c0312156148f457600080fd5b8935985060208a0135975060408a0135965060608a0135614914816155a8565b955060808a0135945060a08a01356001600160401b038082111561493757600080fd5b6149438d838e0161428c565b909650945060c08c013591508082111561455857600080fd5b600080600080600080600080610100898b03121561497957600080fd5b8835975060208901359650604089013595506060890135614999816155a8565b94506080890135935060a08901356001600160401b038111156149bb57600080fd5b6149c78b828c01614343565b93505060c08901356149d8816155bd565b915060e08901356149e8816155a8565b809150509295985092959890939650565b600060208284031215614a0b57600080fd5b81356001600160e01b0319811681146116f657600080fd5b60008060008060008060c08789031215614a3c57600080fd5b86356001600160401b0380821115614a5357600080fd5b614a5f8a838b016142d4565b9750602089013596506040890135915080821115614a7c57600080fd5b614a888a838b016142d4565b95506060890135915080821115614a9e57600080fd5b614aaa8a838b016142d4565b9450614ab860808a0161441c565b935060a0890135915080821115614ace57600080fd5b50614adb89828a016142d4565b9150509295509295509295565b600060208284031215614afa57600080fd5b81356001600160401b03811115614b1057600080fd5b6121c984828501614343565b600060208284031215614b2e57600080fd5b81356001600160401b0380821115614b4557600080fd5b9083019060808286031215614b5957600080fd5b614b616152d8565b8235815260208301356020820152604083013582811115614b8157600080fd5b614b8d878286016142d4565b604083015250606083013582811115614ba557600080fd5b614bb1878286016142d4565b60608301525095945050505050565b600060208284031215614bd257600080fd5b5051919050565b600080600060608486031215614bee57600080fd5b833592506020840135614c00816155bd565b91506040840135614c10816155bd565b809150509250925092565b60008060408385031215614c2e57600080fd5b8235915060208301356001600160401b03811115614c4b57600080fd5b614c57858286016142d4565b9150509250929050565b600080600060608486031215614c7657600080fd5b8335925060208401356001600160401b0380821115614c9457600080fd5b614ca0878388016142d4565b93506040860135915080821115614cb657600080fd5b506147ee868287016142d4565b600080600080600060a08688031215614cdb57600080fd5b8535945060208601356001600160401b0380821115614cf957600080fd5b614d0589838a016142d4565b95506040880135915080821115614d1b57600080fd5b50614d28888289016142d4565b93505060608601359150614d3e60808701614408565b90509295509295909350565b60008060408385031215614d5d57600080fd5b82359150614d6d602084016143f6565b90509250929050565b600060208284031215614d8857600080fd5b81356116f6816155cb565b600060208284031215614da557600080fd5b81516116f6816155cb565b60008060408385031215614dc357600080fd5b8235614dce816155cb565b91506020830135614781816155a8565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60008151808452614e1f8160208601602086016154cd565b601f01601f19169290920160200192915050565b60008251614e458184602087016154cd565b9190910192915050565b60008751614e61818460208c016154cd565b80830190508781528660208201528560408201528451614e888160608401602089016154cd565b016060810193909352505060800195945050505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351614ed78160178501602088016154cd565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614f088160288401602088016154cd565b01602801949350505050565b87815286602082015285604082015284606082015283608082015260008351614f448160a08501602088016154cd565b60a092019182019290925260c001979650505050505050565b82815260008251614f758160208501602087016154cd565b919091016020019392505050565b6001600160a01b03888116825287811660208301528616604082015260e060608201819052600090614fb790830187614e07565b85608084015282810360a0840152614fcf8186614e07565b9150508260c083015298975050505050505050565b6001600160a01b0387811682528616602082015260c06040820181905260009061501090830187614e07565b85606084015282810360808401526150288186614e07565b9150508260a0830152979650505050505050565b8581526001600160a01b038516602082015260a06040820181905260009061506690830186614e07565b905083606083015261ffff831660808301529695505050505050565b84815260606020820152600061509c606083018587614dde565b905060ff8316604083015295945050505050565b8381526060602082015260006150c96060830185614e07565b905060ff83166040830152949350505050565b8481526080602082015260006150f56080830186614e07565b82810360408401526151078186614e07565b91505060ff8316606083015295945050505050565b60006101808a835289602084015280604084015261513c8184018a614e07565b905087606084015263ffffffff87166080840152855160a0840152602086015160c0840152604086015160e084015260608601511515610100840152608086015115156101208401528281036101408401526151988186614e07565b915050611ee26101608301846001600160a01b03169052565b86815285602082015284604082015260a0606082015260006151d760a083018587614dde565b90508215156080830152979650505050505050565b6020815260006116f66020830184614e07565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b602081528151602082015260208201516040820152600060408301516080606084015261527a60a0840182614e07565b90506060840151601f198483030160808501526111268282614e07565b8281526040602082015260006121c96040830184614e07565b604051606081016001600160401b03811182821017156152d2576152d2615592565b60405290565b604051608081016001600160401b03811182821017156152d2576152d2615592565b604051601f8201601f191681016001600160401b038111828210171561532257615322615592565b604052919050565b60006001600160401b0382111561534357615343615592565b5060051b60200190565b6000821982111561536057615360615566565b500190565b600060ff821660ff84168060ff0382111561538257615382615566565b019392505050565b6000826153a757634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156153e75781600019048211156153cd576153cd615566565b808516156153da57918102915b93841c93908002906153b1565b509250929050565b60006116f6838360008261540557506001610dee565b8161541257506000610dee565b816001811461542857600281146154325761544e565b6001915050610dee565b60ff84111561544357615443615566565b50506001821b610dee565b5060208310610133831016604e8410600b8410161715615471575081810a610dee565b61547b83836153ac565b806000190482111561548f5761548f615566565b029392505050565b60008160001904831182151516156154b1576154b1615566565b500290565b6000828210156154c8576154c8615566565b500390565b60005b838110156154e85781810151838201526020016154d0565b838111156110005750506000910152565b60008161550857615508615566565b506000190190565b600181811c9082168061552457607f821691505b6020821081141561554557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561555f5761555f615566565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461126157600080fd5b801515811461126157600080fd5b60ff8116811461126157600080fdfea264697066735822122044db793f1fa297a46e05c42aaa528a2c41de2d15fdfdc8f3945aef09e7ae360b64736f6c63430008070033"; - -type DeBridgeGateConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: DeBridgeGateConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class DeBridgeGate__factory extends ContractFactory { - constructor(...args: DeBridgeGateConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): DeBridgeGate { - return super.attach(address) as DeBridgeGate; - } - override connect(signer: Signer): DeBridgeGate__factory { - return super.connect(signer) as DeBridgeGate__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): DeBridgeGateInterface { - return new utils.Interface(_abi) as DeBridgeGateInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): DeBridgeGate { - return new Contract(address, _abi, signerOrProvider) as DeBridgeGate; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/transfers/OraclesManager__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/transfers/OraclesManager__factory.ts deleted file mode 100644 index 369ece2..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/transfers/OraclesManager__factory.ts +++ /dev/null @@ -1,539 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - OraclesManager, - OraclesManagerInterface, -} from "../../../../../@debridge-finance/contracts/contracts/transfers/OraclesManager"; - -const _abi = [ - { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "AdminBadRole", - type: "error", - }, - { - inputs: [], - name: "LowMinConfirmations", - type: "error", - }, - { - inputs: [], - name: "OracleAlreadyExist", - type: "error", - }, - { - inputs: [], - name: "OracleBadRole", - type: "error", - }, - { - inputs: [], - name: "OracleNotFound", - type: "error", - }, - { - inputs: [], - name: "WrongArgument", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "oracle", - type: "address", - }, - { - indexed: false, - internalType: "bool", - name: "required", - type: "bool", - }, - ], - name: "AddOracle", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "deployId", - type: "bytes32", - }, - ], - name: "DeployApproved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "SubmissionApproved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "oracle", - type: "address", - }, - { - indexed: false, - internalType: "bool", - name: "required", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isValid", - type: "bool", - }, - ], - name: "UpdateOracle", - type: "event", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address[]", - name: "_oracles", - type: "address[]", - }, - { - internalType: "bool[]", - name: "_required", - type: "bool[]", - }, - ], - name: "addOracles", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "excessConfirmations", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "getOracleInfo", - outputs: [ - { - internalType: "bool", - name: "exist", - type: "bool", - }, - { - internalType: "bool", - name: "isValid", - type: "bool", - }, - { - internalType: "bool", - name: "required", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "minConfirmations", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "oracleAddresses", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "requiredOraclesCount", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_excessConfirmations", - type: "uint8", - }, - ], - name: "setExcessConfirmations", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_minConfirmations", - type: "uint8", - }, - ], - name: "setMinConfirmations", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_oracle", - type: "address", - }, - { - internalType: "bool", - name: "_isValid", - type: "bool", - }, - { - internalType: "bool", - name: "_required", - type: "bool", - }, - ], - name: "updateOracle", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b50600054610100900460ff16158080156100315750600054600160ff909116105b8061005c575061004a3061013260201b610b141760201c565b15801561005c575060005460ff166001145b6100c35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff1916600117905580156100e6576000805461ff0019166101001790555b801561012c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50610141565b6001600160a01b03163b151590565b61132c806101506000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80637c533fd311610097578063bfdb6b0411610066578063bfdb6b0414610224578063d547741f14610279578063dc4bfb851461028c578063e7c4393e146102b757600080fd5b80637c533fd3146101d257806391d14854146101f7578063a217fddf1461020a578063b9b556521461021257600080fd5b806332ea039a116100d357806332ea039a1461018657806336568abe146101995780634425bd9a146101ac578063794a9c29146101bf57600080fd5b806301ffc9a714610105578063140c0b1e1461012d578063248a9ca3146101425780632f2ff15d14610173575b600080fd5b61011861011336600461103a565b6102c4565b60405190151581526020015b60405180910390f35b61014061013b366004611064565b6102fb565b005b610165610150366004610ff5565b60009081526065602052604090206001015490565b604051908152602001610124565b61014061018136600461100e565b610369565b610140610194366004611064565b610393565b6101406101a736600461100e565b61040e565b6101406101ba366004610f2e565b610491565b6101406101cd366004610eeb565b610713565b6097546101e59062010000900460ff1681565b60405160ff9091168152602001610124565b61011861020536600461100e565b610a9a565b610165600081565b6097546101e590610100900460ff1681565b61025a610232366004610ed0565b60996020526000908152604090205460ff808216916101008104821691620100009091041683565b6040805193151584529115156020840152151590820152606001610124565b61014061028736600461100e565b610ac5565b61029f61029a366004610ff5565b610aea565b6040516001600160a01b039091168152602001610124565b6097546101e59060ff1681565b60006001600160e01b03198216637965db0b60e01b14806102f557506301ffc9a760e01b6001600160e01b03198316145b92915050565b610306600033610a9a565b61032357604051636f4720fd60e11b815260040160405180910390fd5b60975460ff908116908216101561034d5760405163412f84c160e11b815260040160405180910390fd5b6097805460ff9092166101000261ff0019909216919091179055565b60008281526065602052604090206001015461038481610b23565b61038e8383610b30565b505050565b61039e600033610a9a565b6103bb57604051636f4720fd60e11b815260040160405180910390fd5b6098546103ca906002906111c1565b6103d5906001611184565b8160ff1610156103f85760405163412f84c160e11b815260040160405180910390fd5b6097805460ff191660ff92909216919091179055565b6001600160a01b03811633146104835760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61048d8282610bb6565b5050565b61049c600033610a9a565b6104b957604051636f4720fd60e11b815260040160405180910390fd5b80518251146104db57604051634668624160e01b815260040160405180910390fd5b81516098546002916104ec91611184565b6104f691906111c1565b610501906001611184565b60975460ff1610156105265760405163412f84c160e11b815260040160405180910390fd5b60005b825181101561038e5760006099600085848151811061054a5761054a6112ca565b6020908102919091018101516001600160a01b03168252810191909152604001600020805490915060ff161561059357604051633ad24c0760e11b815260040160405180910390fd5b60988483815181106105a7576105a76112ca565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b0390921691909117905582518390839081106105f6576105f66112ca565b60200260200101511561063b576001609760028282829054906101000a900460ff16610622919061119c565b92506101000a81548160ff021916908360ff1602179055505b805461ffff1916610101178155825183908390811061065c5761065c6112ca565b60209081029190910101518154901515620100000262ff00001990911617815583517fe755f450de2082b1e2a5be83219122e863839acc705c368b6e119432edfc360e908590849081106106b2576106b26112ca565b60200260200101518484815181106106cc576106cc6112ca565b60200260200101516040516106f89291906001600160a01b039290921682521515602082015260400190565b60405180910390a1508061070b81611283565b915050610529565b61071e600033610a9a565b61073b57604051636f4720fd60e11b815260040160405180910390fd5b811580156107465750805b1561076457604051634668624160e01b815260040160405180910390fd5b6001600160a01b0383166000908152609960205260409020805460ff1661079e57604051630b0a0e0d60e21b815260040160405180910390fd5b805462010000900460ff1680156107b3575081155b156107f4576001609760028282829054906101000a900460ff166107d79190611219565b92506101000a81548160ff021916908360ff160217905550610846565b805462010000900460ff161580156108095750815b15610846576001609760028282829054906101000a900460ff1661082d919061119c565b92506101000a81548160ff021916908360ff1602179055505b8054610100900460ff16801561085a575082155b1561096e5760005b60985481101561096857846001600160a01b031660988281548110610889576108896112ca565b6000918252602090912001546001600160a01b0316141561095657609880546108b490600190611202565b815481106108c4576108c46112ca565b600091825260209091200154609880546001600160a01b0390921691839081106108f0576108f06112ca565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550609880548061092f5761092f6112b4565b600082815260209020810160001990810180546001600160a01b0319169055019055610968565b8061096081611283565b915050610862565b50610a1e565b8054610100900460ff161580156109825750825b15610a1e57609854600290610998906001611184565b6109a291906111c1565b6109ad906001611184565b60975460ff1610156109d25760405163412f84c160e11b815260040160405180910390fd5b609880546001810182556000919091527f2237a976fa961f5921fd19f2b03c925c725d77b20ce8f790c19709c03de4d8140180546001600160a01b0319166001600160a01b0386161790555b805462ffff00191661010084151590810262ff000019169190911762010000841515908102919091178355604080516001600160a01b038816815260208101929092528101919091527fd0a47d00eff59bee6da649bbe44f1e639db18f184bb4a80783cf8afd2a41e4609060600160405180910390a150505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600082815260656020526040902060010154610ae081610b23565b61038e8383610bb6565b60988181548110610afa57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b03163b151590565b610b2d8133610c1d565b50565b610b3a8282610a9a565b61048d5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610b723390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610bc08282610a9a565b1561048d5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610c278282610a9a565b61048d57610c3481610c76565b610c3f836020610c88565b604051602001610c50929190611087565b60408051601f198184030181529082905262461bcd60e51b825261047a916004016110fc565b60606102f56001600160a01b03831660145b60606000610c978360026111e3565b610ca2906002611184565b67ffffffffffffffff811115610cba57610cba6112e0565b6040519080825280601f01601f191660200182016040528015610ce4576020820181803683370190505b509050600360fc1b81600081518110610cff57610cff6112ca565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610d2e57610d2e6112ca565b60200101906001600160f81b031916908160001a9053506000610d528460026111e3565b610d5d906001611184565b90505b6001811115610dd5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110610d9157610d916112ca565b1a60f81b828281518110610da757610da76112ca565b60200101906001600160f81b031916908160001a90535060049490941c93610dce8161126c565b9050610d60565b508315610e245760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161047a565b9392505050565b80356001600160a01b0381168114610e4257600080fd5b919050565b600082601f830112610e5857600080fd5b81356020610e6d610e6883611160565b61112f565b80838252828201915082860187848660051b8901011115610e8d57600080fd5b60005b85811015610eb357610ea182610ec0565b84529284019290840190600101610e90565b5090979650505050505050565b80358015158114610e4257600080fd5b600060208284031215610ee257600080fd5b610e2482610e2b565b600080600060608486031215610f0057600080fd5b610f0984610e2b565b9250610f1760208501610ec0565b9150610f2560408501610ec0565b90509250925092565b60008060408385031215610f4157600080fd5b823567ffffffffffffffff80821115610f5957600080fd5b818501915085601f830112610f6d57600080fd5b81356020610f7d610e6883611160565b8083825282820191508286018a848660051b8901011115610f9d57600080fd5b600096505b84871015610fc757610fb381610e2b565b835260019690960195918301918301610fa2565b5096505086013592505080821115610fde57600080fd5b50610feb85828601610e47565b9150509250929050565b60006020828403121561100757600080fd5b5035919050565b6000806040838503121561102157600080fd5b8235915061103160208401610e2b565b90509250929050565b60006020828403121561104c57600080fd5b81356001600160e01b031981168114610e2457600080fd5b60006020828403121561107657600080fd5b813560ff81168114610e2457600080fd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516110bf81601785016020880161123c565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516110f081602884016020880161123c565b01602801949350505050565b602081526000825180602084015261111b81604085016020870161123c565b601f01601f19169190910160400192915050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611158576111586112e0565b604052919050565b600067ffffffffffffffff82111561117a5761117a6112e0565b5060051b60200190565b600082198211156111975761119761129e565b500190565b600060ff821660ff84168060ff038211156111b9576111b961129e565b019392505050565b6000826111de57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156111fd576111fd61129e565b500290565b6000828210156112145761121461129e565b500390565b600060ff821660ff8416808210156112335761123361129e565b90039392505050565b60005b8381101561125757818101518382015260200161123f565b83811115611266576000848401525b50505050565b60008161127b5761127b61129e565b506000190190565b60006000198214156112975761129761129e565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea264697066735822122091aa14a6411ca5410a6901534c16de2ae9771481d583dcc61fc259128673de9464736f6c63430008070033"; - -type OraclesManagerConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: OraclesManagerConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class OraclesManager__factory extends ContractFactory { - constructor(...args: OraclesManagerConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): OraclesManager { - return super.attach(address) as OraclesManager; - } - override connect(signer: Signer): OraclesManager__factory { - return super.connect(signer) as OraclesManager__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): OraclesManagerInterface { - return new utils.Interface(_abi) as OraclesManagerInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): OraclesManager { - return new Contract(address, _abi, signerOrProvider) as OraclesManager; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/transfers/SignatureVerifier__factory.ts b/typechain/factories/@debridge-finance/contracts/contracts/transfers/SignatureVerifier__factory.ts deleted file mode 100644 index 30d7531..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/transfers/SignatureVerifier__factory.ts +++ /dev/null @@ -1,773 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - SignatureVerifier, - SignatureVerifierInterface, -} from "../../../../../@debridge-finance/contracts/contracts/transfers/SignatureVerifier"; - -const _abi = [ - { - inputs: [], - name: "AdminBadRole", - type: "error", - }, - { - inputs: [], - name: "DeBridgeGateBadRole", - type: "error", - }, - { - inputs: [], - name: "DuplicateSignatures", - type: "error", - }, - { - inputs: [], - name: "LowMinConfirmations", - type: "error", - }, - { - inputs: [], - name: "NotConfirmedByRequiredOracles", - type: "error", - }, - { - inputs: [], - name: "NotConfirmedThreshold", - type: "error", - }, - { - inputs: [], - name: "OracleAlreadyExist", - type: "error", - }, - { - inputs: [], - name: "OracleBadRole", - type: "error", - }, - { - inputs: [], - name: "OracleNotFound", - type: "error", - }, - { - inputs: [], - name: "SignatureInvalidLength", - type: "error", - }, - { - inputs: [], - name: "SignatureInvalidV", - type: "error", - }, - { - inputs: [], - name: "SubmissionNotConfirmed", - type: "error", - }, - { - inputs: [], - name: "WrongArgument", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "oracle", - type: "address", - }, - { - indexed: false, - internalType: "bool", - name: "required", - type: "bool", - }, - ], - name: "AddOracle", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "Confirmed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "deployId", - type: "bytes32", - }, - ], - name: "DeployApproved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "deployId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "DeployConfirmed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - ], - name: "SubmissionApproved", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "oracle", - type: "address", - }, - { - indexed: false, - internalType: "bool", - name: "required", - type: "bool", - }, - { - indexed: false, - internalType: "bool", - name: "isValid", - type: "bool", - }, - ], - name: "UpdateOracle", - type: "event", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address[]", - name: "_oracles", - type: "address[]", - }, - { - internalType: "bool[]", - name: "_required", - type: "bool[]", - }, - ], - name: "addOracles", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "confirmationThreshold", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "currentBlock", - outputs: [ - { - internalType: "uint40", - name: "", - type: "uint40", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "debridgeAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "excessConfirmations", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "getOracleInfo", - outputs: [ - { - internalType: "bool", - name: "exist", - type: "bool", - }, - { - internalType: "bool", - name: "isValid", - type: "bool", - }, - { - internalType: "bool", - name: "required", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_minConfirmations", - type: "uint8", - }, - { - internalType: "uint8", - name: "_confirmationThreshold", - type: "uint8", - }, - { - internalType: "uint8", - name: "_excessConfirmations", - type: "uint8", - }, - { - internalType: "address", - name: "_debridgeAddress", - type: "address", - }, - ], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_submissionId", - type: "bytes32", - }, - { - internalType: "bytes", - name: "_signature", - type: "bytes", - }, - ], - name: "isValidSignature", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "minConfirmations", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "oracleAddresses", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "requiredOraclesCount", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_debridgeAddress", - type: "address", - }, - ], - name: "setDebridgeAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_excessConfirmations", - type: "uint8", - }, - ], - name: "setExcessConfirmations", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_minConfirmations", - type: "uint8", - }, - ], - name: "setMinConfirmations", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "_confirmationThreshold", - type: "uint8", - }, - ], - name: "setThreshold", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "submissionsInBlock", - outputs: [ - { - internalType: "uint40", - name: "", - type: "uint40", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_submissionId", - type: "bytes32", - }, - { - internalType: "bytes", - name: "_signatures", - type: "bytes", - }, - { - internalType: "uint8", - name: "_excessConfirmations", - type: "uint8", - }, - ], - name: "submit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_oracle", - type: "address", - }, - { - internalType: "bool", - name: "_isValid", - type: "bool", - }, - { - internalType: "bool", - name: "_required", - type: "bool", - }, - ], - name: "updateOracle", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "version", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b6200137c1760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b611ebd806200015c6000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806391d14854116100de578063c4e7337711610097578063e12ed13c11610071578063e12ed13c146103de578063e5a98603146103f6578063e7c4393e14610409578063fceb17eb1461041657600080fd5b8063c4e7337714610386578063d547741f146103b8578063dc4bfb85146103cb57600080fd5b806391d14854146102de578063965d0a64146102f1578063a217fddf14610304578063b50492261461030c578063b9b556521461031f578063bfdb6b041461033157600080fd5b806332ea039a1161014b57806354fd4d501161012557806354fd4d501461028c578063698efb9514610293578063794a9c29146102a65780637c533fd3146102b957600080fd5b806332ea039a1461025357806336568abe146102665780634425bd9a1461027957600080fd5b806301ffc9a714610193578063140c0b1e146101bb5780631626ba7e146101d0578063248a9ca3146101e35780632f2ff15d146102145780632fa3ab6314610227575b600080fd5b6101a66101a1366004611b3a565b610423565b60405190151581526020015b60405180910390f35b6101ce6101c9366004611b64565b61045a565b005b6101a66101de366004611aaf565b6104c8565b6102066101f1366004611a6a565b60009081526065602052604090206001015490565b6040519081526020016101b2565b6101ce610222366004611a83565b61056c565b609a5461023d90610100900464ffffffffff1681565b60405164ffffffffff90911681526020016101b2565b6101ce610261366004611b64565b610596565b6101ce610274366004611a83565b610611565b6101ce6102873660046119a3565b610694565b60ca610206565b6101ce6102a1366004611b7f565b610916565b6101ce6102b4366004611960565b610a6d565b6097546102cc9062010000900460ff1681565b60405160ff90911681526020016101b2565b6101a66102ec366004611a83565b610df4565b6101ce6102ff366004611aec565b610e1f565b610206600081565b6101ce61031a366004611945565b611265565b6097546102cc90610100900460ff1681565b61036761033f366004611945565b60996020526000908152604090205460ff808216916101008104821691620100009091041683565b60408051931515845291151560208401521515908201526060016101b2565b609a546103a090600160581b90046001600160a01b031681565b6040516001600160a01b0390911681526020016101b2565b6101ce6103c6366004611a83565b6112ce565b6103a06103d9366004611a6a565b6112f3565b609a5461023d90600160301b900464ffffffffff1681565b6101ce610404366004611b64565b61131d565b6097546102cc9060ff1681565b609a546102cc9060ff1681565b60006001600160e01b03198216637965db0b60e01b148061045457506301ffc9a760e01b6001600160e01b03198316145b92915050565b610465600033610df4565b61048257604051636f4720fd60e11b815260040160405180910390fd5b60975460ff90811690821610156104ac5760405163412f84c160e11b815260040160405180910390fd5b6097805460ff9092166101000261ff0019909216919091179055565b6000806000806104d78561138b565b925092509250600060016104ea886113ca565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015610538573d6000803e3d6000fd5b505060408051601f1901516001600160a01b0316600090815260996020522054610100900460ff1698975050505050505050565b6000828152606560205260409020600101546105878161141d565b610591838361142a565b505050565b6105a1600033610df4565b6105be57604051636f4720fd60e11b815260040160405180910390fd5b6098546105cd90600290611d36565b6105d8906001611cd0565b8160ff1610156105fb5760405163412f84c160e11b815260040160405180910390fd5b6097805460ff191660ff92909216919091179055565b6001600160a01b03811633146106865760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61069082826114b0565b5050565b61069f600033610df4565b6106bc57604051636f4720fd60e11b815260040160405180910390fd5b80518251146106de57604051634668624160e01b815260040160405180910390fd5b81516098546002916106ef91611cd0565b6106f99190611d36565b610704906001611cd0565b60975460ff1610156107295760405163412f84c160e11b815260040160405180910390fd5b60005b82518110156105915760006099600085848151811061074d5761074d611e5b565b6020908102919091018101516001600160a01b03168252810191909152604001600020805490915060ff161561079657604051633ad24c0760e11b815260040160405180910390fd5b60988483815181106107aa576107aa611e5b565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b0390921691909117905582518390839081106107f9576107f9611e5b565b60200260200101511561083e576001609760028282829054906101000a900460ff166108259190611d11565b92506101000a81548160ff021916908360ff1602179055505b805461ffff1916610101178155825183908390811061085f5761085f611e5b565b60209081029190910101518154901515620100000262ff00001990911617815583517fe755f450de2082b1e2a5be83219122e863839acc705c368b6e119432edfc360e908590849081106108b5576108b5611e5b565b60200260200101518484815181106108cf576108cf611e5b565b60200260200101516040516108fb9291906001600160a01b039290921682521515602082015260400190565b60405180910390a1508061090e81611dea565b91505061072c565b600054610100900460ff16158080156109365750600054600160ff909116105b806109505750303b158015610950575060005460ff166001145b6109b35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161067d565b6000805460ff1916600117905580156109d6576000805461ff0019166101001790555b6109e08584611517565b609a80546001600160a01b038416600160581b027fff0000000000000000000000000000000000000000ffffffffffffffffffff0090911660ff8716171790558015610a66576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b610a78600033610df4565b610a9557604051636f4720fd60e11b815260040160405180910390fd5b81158015610aa05750805b15610abe57604051634668624160e01b815260040160405180910390fd5b6001600160a01b0383166000908152609960205260409020805460ff16610af857604051630b0a0e0d60e21b815260040160405180910390fd5b805462010000900460ff168015610b0d575081155b15610b4e576001609760028282829054906101000a900460ff16610b319190611d80565b92506101000a81548160ff021916908360ff160217905550610ba0565b805462010000900460ff16158015610b635750815b15610ba0576001609760028282829054906101000a900460ff16610b879190611d11565b92506101000a81548160ff021916908360ff1602179055505b8054610100900460ff168015610bb4575082155b15610cc85760005b609854811015610cc257846001600160a01b031660988281548110610be357610be3611e5b565b6000918252602090912001546001600160a01b03161415610cb05760988054610c0e90600190611d69565b81548110610c1e57610c1e611e5b565b600091825260209091200154609880546001600160a01b039092169183908110610c4a57610c4a611e5b565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506098805480610c8957610c89611e45565b600082815260209020810160001990810180546001600160a01b0319169055019055610cc2565b80610cba81611dea565b915050610bbc565b50610d78565b8054610100900460ff16158015610cdc5750825b15610d7857609854600290610cf2906001611cd0565b610cfc9190611d36565b610d07906001611cd0565b60975460ff161015610d2c5760405163412f84c160e11b815260040160405180910390fd5b609880546001810182556000919091527f2237a976fa961f5921fd19f2b03c925c725d77b20ce8f790c19709c03de4d8140180546001600160a01b0319166001600160a01b0386161790555b805462ffff00191661010084151590810262ff000019169190911762010000841515908102919091178355604080516001600160a01b038816815260208101929092528101919091527fd0a47d00eff59bee6da649bbe44f1e639db18f184bb4a80783cf8afd2a41e4609060600160405180910390a150505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b609a54600160581b90046001600160a01b03163314610e51576040516388a38fa160e01b815260040160405180910390fd5b60975460009060ff90811690831611610e6f5760975460ff16610e71565b815b90506000806000610e8186611570565b905060008167ffffffffffffffff811115610e9e57610e9e611e71565b604051908082528060200260200182016040528015610ec7578160200160208202803683370190505b50905060005b828110156110e45760008080610eee610ee7856041611d4a565b8c9061159a565b92509250925060006001610f018e6113ca565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015610f4f573d6000803e3d6000fd5b505060408051601f1901516001600160a01b038116600090815260996020529190912054909250610100900460ff161590506110cd5760005b85811015610fee57816001600160a01b0316878281518110610fac57610fac611e5b565b60200260200101516001600160a01b03161415610fdc576040516317ab4f2360e11b815260040160405180910390fd5b80610fe681611dea565b915050610f88565b508086868151811061100257611002611e5b565b6001600160a01b0390921660209283029190910190910152611025600189611d11565b604080518f81526001600160a01b03841660208201529199507fd4964a7cd99f5c1fa8f2420fb5e1d3bd26eadf16e2658cf2e29a67dfda38601e910160405180910390a16001600160a01b03811660009081526099602052604090205462010000900460ff161561109e5761109b60018a611cd0565b98505b8960ff168860ff16101580156110bf575060975462010000900460ff168910155b156110cd57505050506110e4565b5050505080806110dc90611dea565b915050610ecd565b5060975462010000900460ff168414611110576040516382635e4d60e01b815260040160405180910390fd5b60975460ff908116908416106111eb57609a544364ffffffffff908116600160301b909204161415611184576001609a60018282829054906101000a900464ffffffffff1661115f9190611ce8565b92506101000a81548164ffffffffff021916908364ffffffffff1602179055506111b7565b609a805465ffffffffff001964ffffffffff4316600160301b02166affffffffffffffffffff0019909116176101001790555b6040518881527f2a6b4960c287d4d53a338f9c9a9f830f37e7b66e67a0a958f68be89a4eeb939d9060200160405180910390a15b609a5460ff811661010090910464ffffffffff1611156112345760975460ff61010090910481169084161015611234576040516323d8dc8760e01b815260040160405180910390fd5b8460ff168360ff16101561125b576040516374bb49d560e01b815260040160405180910390fd5b5050505050505050565b611270600033610df4565b61128d57604051636f4720fd60e11b815260040160405180910390fd5b609a80546001600160a01b03909216600160581b027fff0000000000000000000000000000000000000000ffffffffffffffffffffff909216919091179055565b6000828152606560205260409020600101546112e98161141d565b61059183836114b0565b6098818154811061130357600080fd5b6000918252602090912001546001600160a01b0316905081565b611328600033610df4565b61134557604051636f4720fd60e11b815260040160405180910390fd5b60ff811661136657604051634668624160e01b815260040160405180910390fd5b609a805460ff191660ff92909216919091179055565b6001600160a01b03163b151590565b600080600083516041146113b25760405163bb5ee95b60e01b815260040160405180910390fd5b6113bd84600061159a565b9250925092509193909250565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6114278133611607565b50565b6114348282610df4565b6106905760008281526065602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561146c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6114ba8282610df4565b156106905760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60ff8216158061152c57508160ff168160ff16105b1561154a5760405163412f84c160e11b815260040160405180910390fd5b6097805460ff8381166101000261ffff1990921690851617179055610690600033611660565b6000604182516115809190611e05565b1561158c576000610454565b604182516104549190611d36565b8181016020810151604082015160419092015190919060ff16601b8110156115ca576115c7601b82611d11565b90505b8060ff16601b141580156115e257508060ff16601c14155b1561160057604051630633a0a560e21b815260040160405180910390fd5b9250925092565b6116118282610df4565b6106905761161e8161166a565b61162983602061167c565b60405160200161163a929190611bd3565b60408051601f198184030181529082905262461bcd60e51b825261067d91600401611c48565b610690828261142a565b60606104546001600160a01b03831660145b6060600061168b836002611d4a565b611696906002611cd0565b67ffffffffffffffff8111156116ae576116ae611e71565b6040519080825280601f01601f1916602001820160405280156116d8576020820181803683370190505b509050600360fc1b816000815181106116f3576116f3611e5b565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061172257611722611e5b565b60200101906001600160f81b031916908160001a9053506000611746846002611d4a565b611751906001611cd0565b90505b60018111156117c9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061178557611785611e5b565b1a60f81b82828151811061179b5761179b611e5b565b60200101906001600160f81b031916908160001a90535060049490941c936117c281611dd3565b9050611754565b5083156118185760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161067d565b9392505050565b80356001600160a01b038116811461183657600080fd5b919050565b600082601f83011261184c57600080fd5b8135602061186161185c83611cac565b611c7b565b80838252828201915082860187848660051b890101111561188157600080fd5b60005b858110156118a757611895826118b4565b84529284019290840190600101611884565b5090979650505050505050565b8035801515811461183657600080fd5b600082601f8301126118d557600080fd5b813567ffffffffffffffff8111156118ef576118ef611e71565b611902601f8201601f1916602001611c7b565b81815284602083860101111561191757600080fd5b816020850160208301376000918101602001919091529392505050565b803560ff8116811461183657600080fd5b60006020828403121561195757600080fd5b6118188261181f565b60008060006060848603121561197557600080fd5b61197e8461181f565b925061198c602085016118b4565b915061199a604085016118b4565b90509250925092565b600080604083850312156119b657600080fd5b823567ffffffffffffffff808211156119ce57600080fd5b818501915085601f8301126119e257600080fd5b813560206119f261185c83611cac565b8083825282820191508286018a848660051b8901011115611a1257600080fd5b600096505b84871015611a3c57611a288161181f565b835260019690960195918301918301611a17565b5096505086013592505080821115611a5357600080fd5b50611a608582860161183b565b9150509250929050565b600060208284031215611a7c57600080fd5b5035919050565b60008060408385031215611a9657600080fd5b82359150611aa66020840161181f565b90509250929050565b60008060408385031215611ac257600080fd5b82359150602083013567ffffffffffffffff811115611ae057600080fd5b611a60858286016118c4565b600080600060608486031215611b0157600080fd5b83359250602084013567ffffffffffffffff811115611b1f57600080fd5b611b2b868287016118c4565b92505061199a60408501611934565b600060208284031215611b4c57600080fd5b81356001600160e01b03198116811461181857600080fd5b600060208284031215611b7657600080fd5b61181882611934565b60008060008060808587031215611b9557600080fd5b611b9e85611934565b9350611bac60208601611934565b9250611bba60408601611934565b9150611bc86060860161181f565b905092959194509250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611c0b816017850160208801611da3565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611c3c816028840160208801611da3565b01602801949350505050565b6020815260008251806020840152611c67816040850160208701611da3565b601f01601f19169190910160400192915050565b604051601f8201601f1916810167ffffffffffffffff81118282101715611ca457611ca4611e71565b604052919050565b600067ffffffffffffffff821115611cc657611cc6611e71565b5060051b60200190565b60008219821115611ce357611ce3611e19565b500190565b600064ffffffffff808316818516808303821115611d0857611d08611e19565b01949350505050565b600060ff821660ff84168060ff03821115611d2e57611d2e611e19565b019392505050565b600082611d4557611d45611e2f565b500490565b6000816000190483118215151615611d6457611d64611e19565b500290565b600082821015611d7b57611d7b611e19565b500390565b600060ff821660ff841680821015611d9a57611d9a611e19565b90039392505050565b60005b83811015611dbe578181015183820152602001611da6565b83811115611dcd576000848401525b50505050565b600081611de257611de2611e19565b506000190190565b6000600019821415611dfe57611dfe611e19565b5060010190565b600082611e1457611e14611e2f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220d5f19fdc81ec6f5d196424101ae044ada842f6dd73eb4e277868ea6f26b24f9064736f6c63430008070033"; - -type SignatureVerifierConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: SignatureVerifierConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class SignatureVerifier__factory extends ContractFactory { - constructor(...args: SignatureVerifierConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): SignatureVerifier { - return super.attach(address) as SignatureVerifier; - } - override connect(signer: Signer): SignatureVerifier__factory { - return super.connect(signer) as SignatureVerifier__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): SignatureVerifierInterface { - return new utils.Interface(_abi) as SignatureVerifierInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): SignatureVerifier { - return new Contract(address, _abi, signerOrProvider) as SignatureVerifier; - } -} diff --git a/typechain/factories/@debridge-finance/contracts/contracts/transfers/index.ts b/typechain/factories/@debridge-finance/contracts/contracts/transfers/index.ts deleted file mode 100644 index a206f95..0000000 --- a/typechain/factories/@debridge-finance/contracts/contracts/transfers/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { DeBridgeGate__factory } from "./DeBridgeGate__factory"; -export { OraclesManager__factory } from "./OraclesManager__factory"; -export { SignatureVerifier__factory } from "./SignatureVerifier__factory"; diff --git a/typechain/factories/@debridge-finance/contracts/index.ts b/typechain/factories/@debridge-finance/contracts/index.ts deleted file mode 100644 index 6397da0..0000000 --- a/typechain/factories/@debridge-finance/contracts/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as contracts from "./contracts"; diff --git a/typechain/factories/@debridge-finance/index.ts b/typechain/factories/@debridge-finance/index.ts deleted file mode 100644 index 6397da0..0000000 --- a/typechain/factories/@debridge-finance/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as contracts from "./contracts"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.ts deleted file mode 100644 index 69e5dff..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory.ts +++ /dev/null @@ -1,247 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - AccessControlUpgradeable, - AccessControlUpgradeableInterface, -} from "../../../../@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - inputs: [], - name: "DEFAULT_ADMIN_ROLE", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class AccessControlUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): AccessControlUpgradeableInterface { - return new utils.Interface(_abi) as AccessControlUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): AccessControlUpgradeable { - return new Contract( - address, - _abi, - signerOrProvider - ) as AccessControlUpgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.ts deleted file mode 100644 index f631255..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory.ts +++ /dev/null @@ -1,202 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IAccessControlUpgradeable, - IAccessControlUpgradeableInterface, -} from "../../../../@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "previousAdminRole", - type: "bytes32", - }, - { - indexed: true, - internalType: "bytes32", - name: "newAdminRole", - type: "bytes32", - }, - ], - name: "RoleAdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleGranted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "account", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "RoleRevoked", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - ], - name: "getRoleAdmin", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "grantRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "hasRole", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "renounceRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "role", - type: "bytes32", - }, - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "revokeRole", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IAccessControlUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): IAccessControlUpgradeableInterface { - return new utils.Interface(_abi) as IAccessControlUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IAccessControlUpgradeable { - return new Contract( - address, - _abi, - signerOrProvider - ) as IAccessControlUpgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts deleted file mode 100644 index ecbbc21..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { AccessControlUpgradeable__factory } from "./AccessControlUpgradeable__factory"; -export { IAccessControlUpgradeable__factory } from "./IAccessControlUpgradeable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts deleted file mode 100644 index 7157852..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as access from "./access"; -export * as proxy from "./proxy"; -export * as security from "./security"; -export * as token from "./token"; -export * as utils from "./utils"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts deleted file mode 100644 index 56778f8..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as utils from "./utils"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts deleted file mode 100644 index 2f22527..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - Initializable, - InitializableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, -] as const; - -export class Initializable__factory { - static readonly abi = _abi; - static createInterface(): InitializableInterface { - return new utils.Interface(_abi) as InitializableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): Initializable { - return new Contract(address, _abi, signerOrProvider) as Initializable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts deleted file mode 100644 index 4baae4a..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Initializable__factory } from "./Initializable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.ts deleted file mode 100644 index 28cfbb1..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - PausableUpgradeable, - PausableUpgradeableInterface, -} from "../../../../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class PausableUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): PausableUpgradeableInterface { - return new utils.Interface(_abi) as PausableUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): PausableUpgradeable { - return new Contract(address, _abi, signerOrProvider) as PausableUpgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts deleted file mode 100644 index 5eef346..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ReentrancyGuardUpgradeable, - ReentrancyGuardUpgradeableInterface, -} from "../../../../@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, -] as const; - -export class ReentrancyGuardUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): ReentrancyGuardUpgradeableInterface { - return new utils.Interface(_abi) as ReentrancyGuardUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ReentrancyGuardUpgradeable { - return new Contract( - address, - _abi, - signerOrProvider - ) as ReentrancyGuardUpgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.ts deleted file mode 100644 index c446268..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { PausableUpgradeable__factory } from "./PausableUpgradeable__factory"; -export { ReentrancyGuardUpgradeable__factory } from "./ReentrancyGuardUpgradeable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts deleted file mode 100644 index d334da0..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +++ /dev/null @@ -1,209 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC20Upgradeable, - IERC20UpgradeableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IERC20Upgradeable__factory { - static readonly abi = _abi; - static createInterface(): IERC20UpgradeableInterface { - return new utils.Interface(_abi) as IERC20UpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC20Upgradeable { - return new Contract(address, _abi, signerOrProvider) as IERC20Upgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.ts deleted file mode 100644 index e871bbd..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory.ts +++ /dev/null @@ -1,252 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC20MetadataUpgradeable, - IERC20MetadataUpgradeableInterface, -} from "../../../../../../@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IERC20MetadataUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): IERC20MetadataUpgradeableInterface { - return new utils.Interface(_abi) as IERC20MetadataUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC20MetadataUpgradeable { - return new Contract( - address, - _abi, - signerOrProvider - ) as IERC20MetadataUpgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts deleted file mode 100644 index 4049ca8..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC20PermitUpgradeable, - IERC20PermitUpgradeableInterface, -} from "../../../../../../../@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable"; - -const _abi = [ - { - inputs: [], - name: "DOMAIN_SEPARATOR", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "nonces", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "permit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IERC20PermitUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): IERC20PermitUpgradeableInterface { - return new utils.Interface(_abi) as IERC20PermitUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC20PermitUpgradeable { - return new Contract( - address, - _abi, - signerOrProvider - ) as IERC20PermitUpgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts deleted file mode 100644 index 6371b8e..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC20PermitUpgradeable__factory } from "./IERC20PermitUpgradeable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts deleted file mode 100644 index e5236d8..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as draftIerc20PermitUpgradeableSol from "./draft-IERC20PermitUpgradeable.sol"; -export { IERC20MetadataUpgradeable__factory } from "./IERC20MetadataUpgradeable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts deleted file mode 100644 index ca858cd..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as extensions from "./extensions"; -export { IERC20Upgradeable__factory } from "./IERC20Upgradeable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts deleted file mode 100644 index da1e061..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as erc20 from "./ERC20"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts deleted file mode 100644 index 6b02b4d..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ContextUpgradeable, - ContextUpgradeableInterface, -} from "../../../../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, -] as const; - -export class ContextUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): ContextUpgradeableInterface { - return new utils.Interface(_abi) as ContextUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ContextUpgradeable { - return new Contract(address, _abi, signerOrProvider) as ContextUpgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts deleted file mode 100644 index 1dc9875..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as introspection from "./introspection"; -export { ContextUpgradeable__factory } from "./ContextUpgradeable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.ts deleted file mode 100644 index 79b5394..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ERC165Upgradeable, - ERC165UpgradeableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class ERC165Upgradeable__factory { - static readonly abi = _abi; - static createInterface(): ERC165UpgradeableInterface { - return new utils.Interface(_abi) as ERC165UpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ERC165Upgradeable { - return new Contract(address, _abi, signerOrProvider) as ERC165Upgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.ts deleted file mode 100644 index 14979ea..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC165Upgradeable, - IERC165UpgradeableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable"; - -const _abi = [ - { - inputs: [ - { - internalType: "bytes4", - name: "interfaceId", - type: "bytes4", - }, - ], - name: "supportsInterface", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -export class IERC165Upgradeable__factory { - static readonly abi = _abi; - static createInterface(): IERC165UpgradeableInterface { - return new utils.Interface(_abi) as IERC165UpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC165Upgradeable { - return new Contract(address, _abi, signerOrProvider) as IERC165Upgradeable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts b/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts deleted file mode 100644 index 0dcb285..0000000 --- a/typechain/factories/@openzeppelin/contracts-upgradeable/utils/introspection/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ERC165Upgradeable__factory } from "./ERC165Upgradeable__factory"; -export { IERC165Upgradeable__factory } from "./IERC165Upgradeable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts/index.ts b/typechain/factories/@openzeppelin/contracts/index.ts deleted file mode 100644 index 9762486..0000000 --- a/typechain/factories/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as interfaces from "./interfaces"; -export * as proxy from "./proxy"; -export * as token from "./token"; diff --git a/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts b/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts deleted file mode 100644 index 6f4dfde..0000000 --- a/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC1822Proxiable, - IERC1822ProxiableInterface, -} from "../../../../../@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable"; - -const _abi = [ - { - inputs: [], - name: "proxiableUUID", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -export class IERC1822Proxiable__factory { - static readonly abi = _abi; - static createInterface(): IERC1822ProxiableInterface { - return new utils.Interface(_abi) as IERC1822ProxiableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC1822Proxiable { - return new Contract(address, _abi, signerOrProvider) as IERC1822Proxiable; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts b/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts deleted file mode 100644 index ecca133..0000000 --- a/typechain/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC1822Proxiable__factory } from "./IERC1822Proxiable__factory"; diff --git a/typechain/factories/@openzeppelin/contracts/interfaces/index.ts b/typechain/factories/@openzeppelin/contracts/interfaces/index.ts deleted file mode 100644 index 45e4ba1..0000000 --- a/typechain/factories/@openzeppelin/contracts/interfaces/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as draftIerc1822Sol from "./draft-IERC1822.sol"; diff --git a/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts b/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts deleted file mode 100644 index 99b7f5f..0000000 --- a/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +++ /dev/null @@ -1,147 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Signer, - utils, - Contract, - ContractFactory, - PayableOverrides, - BytesLike, -} from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - ERC1967Proxy, - ERC1967ProxyInterface, -} from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "_logic", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - ], - stateMutability: "payable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "previousAdmin", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newAdmin", - type: "address", - }, - ], - name: "AdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "beacon", - type: "address", - }, - ], - name: "BeaconUpgraded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "Upgraded", - type: "event", - }, - { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x6080604052604051610735380380610735833981016040819052610022916102dc565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103aa565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b815260040161014891906103c6565b600080604083850312156102ef57600080fd5b82516001600160a01b038116811461030657600080fd5b60208401519092506001600160401b038082111561032357600080fd5b818501915085601f83011261033757600080fd5b81518181111561034957610349610425565b604051601f8201601f19908116603f0116810190838211818310171561037157610371610425565b8160405282815288602084870101111561038a57600080fd5b61039b8360208301602088016103f9565b80955050505050509250929050565b600082516103bc8184602087016103f9565b9190910192915050565b60208152600082518060208401526103e58160408501602087016103f9565b601f01601f19169190910160400192915050565b60005b838110156104145781810151838201526020016103fc565b838111156100645750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e091906101e8565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610204565b600082516101fa818460208701610237565b9190910192915050565b6020815260008251806020840152610223816040850160208701610237565b601f01601f19169190910160400192915050565b60005b8381101561025257818101518382015260200161023a565b83811115610261576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212206c0dbbf9b7cea0b39475b09af2676b6d09e25394c7e441ee3ecd8d988bc0d67964736f6c63430008070033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564"; - -type ERC1967ProxyConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ERC1967ProxyConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ERC1967Proxy__factory extends ContractFactory { - constructor(...args: ERC1967ProxyConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - _logic: PromiseOrValue, - _data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - _logic, - _data, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - _logic: PromiseOrValue, - _data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(_logic, _data, overrides || {}); - } - override attach(address: string): ERC1967Proxy { - return super.attach(address) as ERC1967Proxy; - } - override connect(signer: Signer): ERC1967Proxy__factory { - return super.connect(signer) as ERC1967Proxy__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ERC1967ProxyInterface { - return new utils.Interface(_abi) as ERC1967ProxyInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ERC1967Proxy { - return new Contract(address, _abi, signerOrProvider) as ERC1967Proxy; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts b/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts deleted file mode 100644 index 384b7f6..0000000 --- a/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - ERC1967Upgrade, - ERC1967UpgradeInterface, -} from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "previousAdmin", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newAdmin", - type: "address", - }, - ], - name: "AdminChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "beacon", - type: "address", - }, - ], - name: "BeaconUpgraded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "Upgraded", - type: "event", - }, -] as const; - -export class ERC1967Upgrade__factory { - static readonly abi = _abi; - static createInterface(): ERC1967UpgradeInterface { - return new utils.Interface(_abi) as ERC1967UpgradeInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ERC1967Upgrade { - return new Contract(address, _abi, signerOrProvider) as ERC1967Upgrade; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts b/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts deleted file mode 100644 index 62504d8..0000000 --- a/typechain/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ERC1967Proxy__factory } from "./ERC1967Proxy__factory"; -export { ERC1967Upgrade__factory } from "./ERC1967Upgrade__factory"; diff --git a/typechain/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts b/typechain/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts deleted file mode 100644 index b621d10..0000000 --- a/typechain/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - Proxy, - ProxyInterface, -} from "../../../../@openzeppelin/contracts/proxy/Proxy"; - -const _abi = [ - { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", - }, -]; - -export class Proxy__factory { - static readonly abi = _abi; - static createInterface(): ProxyInterface { - return new utils.Interface(_abi) as ProxyInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Proxy { - return new Contract(address, _abi, signerOrProvider) as Proxy; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts b/typechain/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts deleted file mode 100644 index 660ffd1..0000000 --- a/typechain/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IBeacon, - IBeaconInterface, -} from "../../../../../@openzeppelin/contracts/proxy/beacon/IBeacon"; - -const _abi = [ - { - inputs: [], - name: "implementation", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -]; - -export class IBeacon__factory { - static readonly abi = _abi; - static createInterface(): IBeaconInterface { - return new utils.Interface(_abi) as IBeaconInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IBeacon { - return new Contract(address, _abi, signerOrProvider) as IBeacon; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.ts b/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.ts deleted file mode 100644 index 4a9d628..0000000 --- a/typechain/factories/@openzeppelin/contracts/proxy/beacon/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IBeacon__factory } from "./IBeacon__factory"; diff --git a/typechain/factories/@openzeppelin/contracts/proxy/index.ts b/typechain/factories/@openzeppelin/contracts/proxy/index.ts deleted file mode 100644 index 7f183c3..0000000 --- a/typechain/factories/@openzeppelin/contracts/proxy/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as erc1967 from "./ERC1967"; -export * as beacon from "./beacon"; -export { Proxy__factory } from "./Proxy__factory"; diff --git a/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts b/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts deleted file mode 100644 index b0986e7..0000000 --- a/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +++ /dev/null @@ -1,350 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../../../../common"; -import type { - ERC20, - ERC20Interface, -} from "../../../../../@openzeppelin/contracts/token/ERC20/ERC20"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "name_", - type: "string", - }, - { - internalType: "string", - name: "symbol_", - type: "string", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "subtractedValue", - type: "uint256", - }, - ], - name: "decreaseAllowance", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "addedValue", - type: "uint256", - }, - ], - name: "increaseAllowance", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b5060405162000aef38038062000aef8339810160408190526200003491620001c5565b81516200004990600390602085019062000068565b5080516200005f90600490602084019062000068565b50505062000282565b82805462000076906200022f565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b600082601f8301126200012057600080fd5b81516001600160401b03808211156200013d576200013d6200026c565b604051601f8301601f19908116603f011681019082821181831017156200016857620001686200026c565b816040528381526020925086838588010111156200018557600080fd5b600091505b83821015620001a957858201830151818301840152908201906200018a565b83821115620001bb5760008385830101525b9695505050505050565b60008060408385031215620001d957600080fd5b82516001600160401b0380821115620001f157600080fd5b620001ff868387016200010e565b935060208501519150808211156200021657600080fd5b5062000225858286016200010e565b9150509250929050565b600181811c908216806200024457607f821691505b602082108114156200026657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61085d80620002926000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c39190610771565b60405180910390f35b6100df6100da366004610747565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f36600461070b565b61024a565b604051601281526020016100c3565b6100df610131366004610747565b61026e565b6100f36101443660046106b6565b6001600160a01b031660009081526020819052604090205490565b6100b6610290565b6100df610175366004610747565b61029f565b6100df610188366004610747565b61031f565b6100f361019b3660046106d8565b61032d565b6060600380546101af906107ec565b80601f01602080910402602001604051908101604052809291908181526020018280546101db906107ec565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b600033610240818585610358565b5060019392505050565b60003361025885828561047c565b6102638585856104f6565b506001949350505050565b600033610240818585610281838361032d565b61028b91906107c6565b610358565b6060600480546101af906107ec565b600033816102ad828661032d565b9050838110156103125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102638286868403610358565b6000336102408185856104f6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610309565b6001600160a01b03821661041b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610309565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610488848461032d565b905060001981146104f057818110156104e35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610309565b6104f08484848403610358565b50505050565b6001600160a01b03831661055a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610309565b6001600160a01b0382166105bc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610309565b6001600160a01b038316600090815260208190526040902054818110156106345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610309565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36104f0565b80356001600160a01b03811681146106b157600080fd5b919050565b6000602082840312156106c857600080fd5b6106d18261069a565b9392505050565b600080604083850312156106eb57600080fd5b6106f48361069a565b91506107026020840161069a565b90509250929050565b60008060006060848603121561072057600080fd5b6107298461069a565b92506107376020850161069a565b9150604084013590509250925092565b6000806040838503121561075a57600080fd5b6107638361069a565b946020939093013593505050565b600060208083528351808285015260005b8181101561079e57858101830151858201604001528201610782565b818111156107b0576000604083870101525b50601f01601f1916929092016040019392505050565b600082198211156107e757634e487b7160e01b600052601160045260246000fd5b500190565b600181811c9082168061080057607f821691505b6020821081141561082157634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212207691b3774df59a6a431bed3fd76b15e3b21cfffecc3764714d350cb9a97520e664736f6c63430008070033"; - -type ERC20ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ERC20ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ERC20__factory extends ContractFactory { - constructor(...args: ERC20ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - name_: PromiseOrValue, - symbol_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(name_, symbol_, overrides || {}) as Promise; - } - override getDeployTransaction( - name_: PromiseOrValue, - symbol_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(name_, symbol_, overrides || {}); - } - override attach(address: string): ERC20 { - return super.attach(address) as ERC20; - } - override connect(signer: Signer): ERC20__factory { - return super.connect(signer) as ERC20__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ERC20Interface { - return new utils.Interface(_abi) as ERC20Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): ERC20 { - return new Contract(address, _abi, signerOrProvider) as ERC20; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts b/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts deleted file mode 100644 index 52ad5a1..0000000 --- a/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +++ /dev/null @@ -1,206 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC20, - IERC20Interface, -} from "../../../../../@openzeppelin/contracts/token/ERC20/IERC20"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IERC20__factory { - static readonly abi = _abi; - static createInterface(): IERC20Interface { - return new utils.Interface(_abi) as IERC20Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IERC20 { - return new Contract(address, _abi, signerOrProvider) as IERC20; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts b/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts deleted file mode 100644 index a9ab743..0000000 --- a/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +++ /dev/null @@ -1,248 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { Contract, Signer, utils } from "ethers"; -import type { Provider } from "@ethersproject/providers"; -import type { - IERC20Metadata, - IERC20MetadataInterface, -} from "../../../../../../@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -]; - -export class IERC20Metadata__factory { - static readonly abi = _abi; - static createInterface(): IERC20MetadataInterface { - return new utils.Interface(_abi) as IERC20MetadataInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC20Metadata { - return new Contract(address, _abi, signerOrProvider) as IERC20Metadata; - } -} diff --git a/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts b/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts deleted file mode 100644 index b9477f8..0000000 --- a/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC20Metadata__factory } from "./IERC20Metadata__factory"; diff --git a/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts b/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts deleted file mode 100644 index 3523dc7..0000000 --- a/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as extensions from "./extensions"; -export { ERC20__factory } from "./ERC20__factory"; -export { IERC20__factory } from "./IERC20__factory"; diff --git a/typechain/factories/@openzeppelin/contracts/token/index.ts b/typechain/factories/@openzeppelin/contracts/token/index.ts deleted file mode 100644 index da1e061..0000000 --- a/typechain/factories/@openzeppelin/contracts/token/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as erc20 from "./ERC20"; diff --git a/typechain/factories/@openzeppelin/index.ts b/typechain/factories/@openzeppelin/index.ts deleted file mode 100644 index 6923c15..0000000 --- a/typechain/factories/@openzeppelin/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as contracts from "./contracts"; -export * as contractsUpgradeable from "./contracts-upgradeable"; diff --git a/typechain/factories/contracts/MockSignatureVerifier__factory.ts b/typechain/factories/contracts/MockSignatureVerifier__factory.ts deleted file mode 100644 index f60e80e..0000000 --- a/typechain/factories/contracts/MockSignatureVerifier__factory.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; -import type { Provider, TransactionRequest } from "@ethersproject/providers"; -import type { PromiseOrValue } from "../../common"; -import type { - MockSignatureVerifier, - MockSignatureVerifierInterface, -} from "../../contracts/MockSignatureVerifier"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "submissionId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "Confirmed", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes32", - name: "deployId", - type: "bytes32", - }, - { - indexed: false, - internalType: "address", - name: "operator", - type: "address", - }, - ], - name: "DeployConfirmed", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - { - internalType: "bytes", - name: "", - type: "bytes", - }, - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - name: "submit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b50610172806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063965d0a6414610030575b600080fd5b61004361003e36600461005b565b505050565b005b803560ff8116811461005657600080fd5b919050565b60008060006060848603121561007057600080fd5b83359250602084013567ffffffffffffffff8082111561008f57600080fd5b818601915086601f8301126100a357600080fd5b8135818111156100b5576100b5610126565b604051601f8201601f19908116603f011681019083821181831017156100dd576100dd610126565b816040528281528960208487010111156100f657600080fd5b82602086016020830137600060208483010152809650505050505061011d60408501610045565b90509250925092565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220dc706b926787088e58ef7d7dd07ee209573c8450bab9a52841b48f449f33afe064736f6c63430008070033"; - -type MockSignatureVerifierConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: MockSignatureVerifierConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class MockSignatureVerifier__factory extends ContractFactory { - constructor(...args: MockSignatureVerifierConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(overrides || {}) as Promise; - } - override getDeployTransaction( - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(overrides || {}); - } - override attach(address: string): MockSignatureVerifier { - return super.attach(address) as MockSignatureVerifier; - } - override connect(signer: Signer): MockSignatureVerifier__factory { - return super.connect(signer) as MockSignatureVerifier__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): MockSignatureVerifierInterface { - return new utils.Interface(_abi) as MockSignatureVerifierInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): MockSignatureVerifier { - return new Contract( - address, - _abi, - signerOrProvider - ) as MockSignatureVerifier; - } -} diff --git a/typechain/factories/contracts/index.ts b/typechain/factories/contracts/index.ts deleted file mode 100644 index 1cc0875..0000000 --- a/typechain/factories/contracts/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { MockSignatureVerifier__factory } from "./MockSignatureVerifier__factory"; diff --git a/typechain/factories/index.ts b/typechain/factories/index.ts deleted file mode 100644 index 8bd08d0..0000000 --- a/typechain/factories/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as debridgeFinance from "./@debridge-finance"; -export * as openzeppelin from "./@openzeppelin"; -export * as contracts from "./contracts"; diff --git a/typechain/hardhat.d.ts b/typechain/hardhat.d.ts deleted file mode 100644 index 872b499..0000000 --- a/typechain/hardhat.d.ts +++ /dev/null @@ -1,366 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ - -import { ethers } from "ethers"; -import { - FactoryOptions, - HardhatEthersHelpers as HardhatEthersHelpersBase, -} from "@nomiclabs/hardhat-ethers/types"; - -import * as Contracts from "."; - -declare module "hardhat/types/runtime" { - interface HardhatEthersHelpers extends HardhatEthersHelpersBase { - getContractFactory( - name: "ICallProxy", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IDeBridgeGate", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IDeBridgeToken", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IDeBridgeTokenDeployer", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20Permit", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IFlashCallback", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IOraclesManager", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ISignatureVerifier", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IWETH", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IWethGate", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "Flags", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "SignatureUtil", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "MockWeth", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "CallProxy", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "DeBridgeGate", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "OraclesManager", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "SignatureVerifier", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "AccessControlUpgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IAccessControlUpgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "Initializable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "PausableUpgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ReentrancyGuardUpgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20PermitUpgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20MetadataUpgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20Upgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ContextUpgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC165Upgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC165Upgradeable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC1822Proxiable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IBeacon", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC1967Proxy", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC1967Upgrade", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "Proxy", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20Metadata", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "MockSignatureVerifier", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - - getContractAt( - name: "ICallProxy", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IDeBridgeGate", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IDeBridgeToken", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IDeBridgeTokenDeployer", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20Permit", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IFlashCallback", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IOraclesManager", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ISignatureVerifier", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IWETH", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IWethGate", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "Flags", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "SignatureUtil", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "MockWeth", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "CallProxy", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "DeBridgeGate", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "OraclesManager", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "SignatureVerifier", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "AccessControlUpgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IAccessControlUpgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "Initializable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "PausableUpgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ReentrancyGuardUpgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20PermitUpgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20MetadataUpgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20Upgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ContextUpgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC165Upgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC165Upgradeable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC1822Proxiable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IBeacon", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC1967Proxy", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC1967Upgrade", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "Proxy", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20Metadata", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "MockSignatureVerifier", - address: string, - signer?: ethers.Signer - ): Promise; - - // default types - getContractFactory( - name: string, - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - abi: any[], - bytecode: ethers.utils.BytesLike, - signer?: ethers.Signer - ): Promise; - getContractAt( - nameOrAbi: string | any[], - address: string, - signer?: ethers.Signer - ): Promise; - } -} diff --git a/typechain/index.ts b/typechain/index.ts deleted file mode 100644 index 72978d7..0000000 --- a/typechain/index.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as debridgeFinance from "./@debridge-finance"; -export type { debridgeFinance }; -import type * as openzeppelin from "./@openzeppelin"; -export type { openzeppelin }; -import type * as contracts from "./contracts"; -export type { contracts }; -export * as factories from "./factories"; -export type { ICallProxy } from "./@debridge-finance/contracts/contracts/interfaces/ICallProxy"; -export { ICallProxy__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/ICallProxy__factory"; -export type { IDeBridgeGate } from "./@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate"; -export { IDeBridgeGate__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeGate__factory"; -export type { IDeBridgeToken } from "./@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken"; -export { IDeBridgeToken__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeToken__factory"; -export type { IDeBridgeTokenDeployer } from "./@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer"; -export { IDeBridgeTokenDeployer__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IDeBridgeTokenDeployer__factory"; -export type { IERC20Permit } from "./@debridge-finance/contracts/contracts/interfaces/IERC20Permit"; -export { IERC20Permit__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IERC20Permit__factory"; -export type { IFlashCallback } from "./@debridge-finance/contracts/contracts/interfaces/IFlashCallback"; -export { IFlashCallback__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IFlashCallback__factory"; -export type { IOraclesManager } from "./@debridge-finance/contracts/contracts/interfaces/IOraclesManager"; -export { IOraclesManager__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IOraclesManager__factory"; -export type { ISignatureVerifier } from "./@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier"; -export { ISignatureVerifier__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/ISignatureVerifier__factory"; -export type { IWETH } from "./@debridge-finance/contracts/contracts/interfaces/IWETH"; -export { IWETH__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IWETH__factory"; -export type { IWethGate } from "./@debridge-finance/contracts/contracts/interfaces/IWethGate"; -export { IWethGate__factory } from "./factories/@debridge-finance/contracts/contracts/interfaces/IWethGate__factory"; -export type { Flags } from "./@debridge-finance/contracts/contracts/libraries/Flags"; -export { Flags__factory } from "./factories/@debridge-finance/contracts/contracts/libraries/Flags__factory"; -export type { SignatureUtil } from "./@debridge-finance/contracts/contracts/libraries/SignatureUtil"; -export { SignatureUtil__factory } from "./factories/@debridge-finance/contracts/contracts/libraries/SignatureUtil__factory"; -export type { MockWeth } from "./@debridge-finance/contracts/contracts/mock/MockWeth"; -export { MockWeth__factory } from "./factories/@debridge-finance/contracts/contracts/mock/MockWeth__factory"; -export type { CallProxy } from "./@debridge-finance/contracts/contracts/periphery/CallProxy"; -export { CallProxy__factory } from "./factories/@debridge-finance/contracts/contracts/periphery/CallProxy__factory"; -export type { DeBridgeGate } from "./@debridge-finance/contracts/contracts/transfers/DeBridgeGate"; -export { DeBridgeGate__factory } from "./factories/@debridge-finance/contracts/contracts/transfers/DeBridgeGate__factory"; -export type { OraclesManager } from "./@debridge-finance/contracts/contracts/transfers/OraclesManager"; -export { OraclesManager__factory } from "./factories/@debridge-finance/contracts/contracts/transfers/OraclesManager__factory"; -export type { SignatureVerifier } from "./@debridge-finance/contracts/contracts/transfers/SignatureVerifier"; -export { SignatureVerifier__factory } from "./factories/@debridge-finance/contracts/contracts/transfers/SignatureVerifier__factory"; -export type { AccessControlUpgradeable } from "./@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable"; -export { AccessControlUpgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable__factory"; -export type { IAccessControlUpgradeable } from "./@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable"; -export { IAccessControlUpgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable__factory"; -export type { Initializable } from "./@openzeppelin/contracts-upgradeable/proxy/utils/Initializable"; -export { Initializable__factory } from "./factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory"; -export type { PausableUpgradeable } from "./@openzeppelin/contracts-upgradeable/security/PausableUpgradeable"; -export { PausableUpgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory"; -export type { ReentrancyGuardUpgradeable } from "./@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable"; -export { ReentrancyGuardUpgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory"; -export type { IERC20PermitUpgradeable } from "./@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable"; -export { IERC20PermitUpgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory"; -export type { IERC20MetadataUpgradeable } from "./@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable"; -export { IERC20MetadataUpgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable__factory"; -export type { IERC20Upgradeable } from "./@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable"; -export { IERC20Upgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory"; -export type { ContextUpgradeable } from "./@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable"; -export { ContextUpgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory"; -export type { ERC165Upgradeable } from "./@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable"; -export { ERC165Upgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable__factory"; -export type { IERC165Upgradeable } from "./@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable"; -export { IERC165Upgradeable__factory } from "./factories/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable__factory"; -export type { IERC1822Proxiable } from "./@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable"; -export { IERC1822Proxiable__factory } from "./factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory"; -export type { IBeacon } from "./@openzeppelin/contracts/proxy/beacon/IBeacon"; -export { IBeacon__factory } from "./factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory"; -export type { ERC1967Proxy } from "./@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy"; -export { ERC1967Proxy__factory } from "./factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory"; -export type { ERC1967Upgrade } from "./@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade"; -export { ERC1967Upgrade__factory } from "./factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory"; -export type { Proxy } from "./@openzeppelin/contracts/proxy/Proxy"; -export { Proxy__factory } from "./factories/@openzeppelin/contracts/proxy/Proxy__factory"; -export type { ERC20 } from "./@openzeppelin/contracts/token/ERC20/ERC20"; -export { ERC20__factory } from "./factories/@openzeppelin/contracts/token/ERC20/ERC20__factory"; -export type { IERC20Metadata } from "./@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata"; -export { IERC20Metadata__factory } from "./factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory"; -export type { IERC20 } from "./@openzeppelin/contracts/token/ERC20/IERC20"; -export { IERC20__factory } from "./factories/@openzeppelin/contracts/token/ERC20/IERC20__factory"; -export type { MockSignatureVerifier } from "./contracts/MockSignatureVerifier"; -export { MockSignatureVerifier__factory } from "./factories/contracts/MockSignatureVerifier__factory";