From c276dc3943e73a4efb3bca184e6bdd2194cb8404 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 10:05:16 +0100 Subject: [PATCH 1/7] remove v1 directory --- v1/.env.example | 2 - v1/.eslintignore | 8 - v1/.eslintrc.js | 44 - v1/.solhint.json | 10 - v1/Dockerfile | 21 - v1/contracts/evm/ERC20Custody.sol | 200 - v1/contracts/evm/Zeta.eth.sol | 13 - v1/contracts/evm/Zeta.non-eth.sol | 83 - v1/contracts/evm/ZetaConnector.base.sol | 194 - v1/contracts/evm/ZetaConnector.eth.sol | 112 - v1/contracts/evm/ZetaConnector.non-eth.sol | 123 - .../evm/interfaces/ConnectorErrors.sol | 25 - v1/contracts/evm/interfaces/ZetaErrors.sol | 25 - .../evm/interfaces/ZetaInteractorErrors.sol | 19 - .../evm/interfaces/ZetaInterfaces.sol | 110 - .../evm/interfaces/ZetaNonEthInterface.sol | 13 - v1/contracts/evm/testing/AttackerContract.sol | 54 - v1/contracts/evm/testing/ERC20Mock.sol | 13 - .../evm/testing/TestUniswapV3Contracts.sol | 171 - .../evm/testing/ZetaInteractorMock.sol | 17 - v1/contracts/evm/testing/ZetaReceiverMock.sol | 18 - .../evm/tools/ImmutableCreate2Factory.sol | 209 - v1/contracts/evm/tools/ZetaInteractor.sol | 56 - .../ZetaTokenConsumerPancakeV3.strategy.sol | 220 - .../ZetaTokenConsumerTrident.strategy.sol | 207 - .../tools/ZetaTokenConsumerUniV2.strategy.sol | 173 - .../tools/ZetaTokenConsumerUniV3.strategy.sol | 195 - .../tools/ZetaTokenConsumerZEVM.strategy.sol | 149 - ...ridentConcentratedLiquidityPoolFactory.sol | 23 - .../tools/interfaces/TridentIPoolRouter.sol | 71 - v1/contracts/zevm/SystemContract.sol | 173 - v1/contracts/zevm/Uniswap.sol | 7 - v1/contracts/zevm/UniswapPeriphery.sol | 6 - v1/contracts/zevm/WZETA.sol | 68 - v1/contracts/zevm/ZRC20.sol | 292 - v1/contracts/zevm/ZetaConnectorZEVM.sol | 222 - v1/contracts/zevm/interfaces/ISystem.sol | 19 - .../zevm/interfaces/IUniswapV2Router01.sol | 130 - .../zevm/interfaces/IUniswapV2Router02.sol | 51 - v1/contracts/zevm/interfaces/IWZETA.sol | 25 - v1/contracts/zevm/interfaces/IZRC20.sol | 51 - v1/contracts/zevm/interfaces/zContract.sol | 42 - .../zevm/testing/SystemContractMock.sol | 85 - v1/data/addresses.json | 175 - v1/data/addresses.mainnet.json | 424 - v1/data/addresses.testnet.json | 453 - v1/data/readme.md | 1 - v1/docs/.gitignore | 1 - v1/docs/book.css | 13 - v1/docs/book.toml | 12 - v1/docs/solidity.min.js | 74 - v1/docs/src/README.md | 90 - v1/docs/src/SUMMARY.md | 72 - v1/docs/src/contracts/README.md | 5 - .../ERC20Custody.sol/contract.ERC20Custody.md | 328 - v1/docs/src/contracts/evm/README.md | 12 - .../evm/Zeta.eth.sol/contract.ZetaEth.md | 17 - .../Zeta.non-eth.sol/contract.ZetaNonEth.md | 104 - .../contract.ZetaConnectorBase.md | 235 - .../contract.ZetaConnectorEth.md | 74 - .../contract.ZetaConnectorNonEth.md | 98 - .../interface.ConnectorErrors.md | 43 - .../src/contracts/evm/interfaces/README.md | 12 - .../ZetaErrors.sol/interface.ZetaErrors.md | 43 - .../interface.ZetaInteractorErrors.md | 31 - .../interface.ZetaCommonErrors.md | 11 - .../interface.ZetaConnector.md | 14 - .../interface.ZetaInterfaces.md | 49 - .../interface.ZetaReceiver.md | 24 - .../interface.ZetaTokenConsumer.md | 85 - .../interface.ZetaNonEthInterface.md | 24 - .../contract.AttackerContract.md | 76 - .../AttackerContract.sol/interface.Victim.md | 19 - .../ERC20Mock.sol/contract.ERC20Mock.md | 17 - v1/docs/src/contracts/evm/testing/README.md | 10 - .../interface.INonfungiblePositionManager.md | 288 - .../interface.IPoolInitializer.md | 34 - .../contract.ZetaInteractorMock.md | 32 - .../contract.ZetaReceiverMock.md | 35 - .../contract.ImmutableCreate2Factory.md | 177 - .../interface.Ownable.md | 12 - v1/docs/src/contracts/evm/tools/README.md | 19 - .../abstract.ZetaInteractor.md | 87 - .../contract.ZetaTokenConsumerPancakeV3.md | 143 - .../interface.ISwapRouterPancake.md | 76 - .../interface.WETH9.md | 12 - .../interface.ZetaTokenConsumerUniV3Errors.md | 23 - .../contract.ZetaTokenConsumerTrident.md | 129 - .../interface.WETH9.md | 33 - ...nterface.ZetaTokenConsumerTridentErrors.md | 23 - .../contract.ZetaTokenConsumerUniV2.md | 94 - .../interface.ZetaTokenConsumerUniV2Errors.md | 11 - .../contract.ZetaTokenConsumerUniV3.md | 143 - .../interface.WETH9.md | 12 - .../interface.ZetaTokenConsumerUniV3Errors.md | 23 - .../contract.ZetaTokenConsumerZEVM.md | 94 - .../interface.ZetaTokenConsumerZEVMErrors.md | 53 - .../contracts/evm/tools/interfaces/README.md | 5 - ...erface.ConcentratedLiquidityPoolFactory.md | 15 - .../interface.IPoolRouter.md | 127 - .../zevm/Interfaces.sol/enum.CoinType.md | 14 - .../zevm/Interfaces.sol/interface.ISystem.md | 49 - .../zevm/Interfaces.sol/interface.IZRC20.md | 111 - .../interface.IZRC20Metadata.md | 29 - v1/docs/src/contracts/zevm/README.md | 19 - .../contract.SystemContract.md | 277 - .../interface.SystemContractErrors.md | 37 - .../Uniswap.sol/contract.UniswapImports.md | 4 - .../contract.UniswapImports.md | 4 - .../zevm/WZETA.sol/contract.WETH9.md | 115 - .../zevm/ZRC20.sol/contract.ZRC20.md | 470 - .../zevm/ZRC20.sol/interface.ZRC20Errors.md | 55 - .../contract.ZetaConnectorZEVM.md | 191 - .../interface.ZetaInterfaces.md | 49 - .../interface.ZetaReceiver.md | 24 - .../interface.IUniswapV2Router01.md | 228 - .../interface.IUniswapV2Router02.md | 78 - .../interfaces/IWZETA.sol/interface.IWETH9.md | 86 - .../interfaces/IZRC20.sol/interface.IZRC20.md | 139 - .../src/contracts/zevm/interfaces/README.md | 9 - .../zContract.sol/interface.zContract.md | 12 - .../zContract.sol/struct.zContext.md | 12 - v1/docs/src/contracts/zevm/testing/README.md | 5 - .../contract.SystemContractMock.md | 131 - .../interface.SystemContractErrors.md | 29 - v1/hardhat.config.ts | 92 - .../ImmutableCreate2Factory.helpers.ts | 76 - v1/lib/address.helpers.ts | 14 - v1/lib/address.tools.ts | 104 - v1/lib/addresses.ts | 25 - v1/lib/contracts.constants.ts | 94 - v1/lib/contracts.helpers.ts | 189 - v1/lib/deterministic-deploy.helpers.ts | 44 - v1/lib/index.ts | 5 - v1/lib/types.ts | 4 - v1/package.json | 93 - .../evm/erc20custody.sol/erc20custody.go | 1868 ---- .../connectorerrors.sol/connectorerrors.go | 181 - .../interfaces/zetaerrors.sol/zetaerrors.go | 181 - .../zetainteractorerrors.go | 181 - .../zetainterfaces.sol/zetacommonerrors.go | 181 - .../zetainterfaces.sol/zetaconnector.go | 212 - .../zetainterfaces.sol/zetainterfaces.go | 181 - .../zetainterfaces.sol/zetareceiver.go | 242 - .../zetainterfaces.sol/zetatokenconsumer.go | 838 -- .../zetanonethinterface.go | 687 -- .../attackercontract.sol/attackercontract.go | 318 - .../testing/attackercontract.sol/victim.go | 223 - .../evm/testing/erc20mock.sol/erc20mock.go | 802 -- .../inonfungiblepositionmanager.go | 864 -- .../ipoolinitializer.go | 202 - .../zetainteractormock.go | 778 -- .../zetareceivermock.sol/zetareceivermock.go | 532 - .../immutablecreate2factory.go | 338 - .../immutablecreate2factory.sol/ownable.go | 202 - .../concentratedliquiditypoolfactory.go | 212 - .../tridentipoolrouter.sol/ipoolrouter.go | 326 - .../zetainteractor.sol/zetainteractor.go | 695 -- .../iswaprouterpancake.go | 263 - .../weth9.go | 202 - .../zetatokenconsumerpancakev3.go | 1067 -- .../zetatokenconsumeruniv3errors.go | 181 - .../weth9.go | 265 - .../zetatokenconsumertrident.go | 974 -- .../zetatokenconsumertridenterrors.go | 181 - .../zetatokenconsumeruniv2.go | 891 -- .../zetatokenconsumeruniv2errors.go | 181 - .../weth9.go | 202 - .../zetatokenconsumeruniv3.go | 1067 -- .../zetatokenconsumeruniv3errors.go | 181 - .../zetatokenconsumerzevm.go | 912 -- .../zetatokenconsumerzevmerrors.go | 181 - v1/pkg/contracts/evm/zeta.eth.sol/zetaeth.go | 802 -- .../evm/zeta.non-eth.sol/zetanoneth.go | 1706 --- .../zetaconnectorbase.go | 1695 --- .../zetaconnector.eth.sol/zetaconnectoreth.go | 1726 --- .../zetaconnectornoneth.go | 1913 ---- .../zevm/interfaces/isystem.sol/isystem.go | 367 - .../iuniswapv2router01.go | 650 -- .../iuniswapv2router02.go | 755 -- .../zevm/interfaces/iwzeta.sol/iweth9.go | 977 -- .../zevm/interfaces/izrc20.sol/izrc20.go | 463 - .../interfaces/izrc20.sol/izrc20metadata.go | 556 - .../zevm/interfaces/izrc20.sol/zrc20events.go | 1185 -- .../zcontract.sol/universalcontract.go | 237 - .../interfaces/zcontract.sol/zcontract.go | 209 - .../zevm/systemcontract.sol/systemcontract.go | 1421 --- .../systemcontracterrors.go | 181 - .../systemcontracterrors.go | 181 - .../systemcontractmock.go | 1176 -- .../zevm/uniswap.sol/uniswapimports.go | 203 - .../uniswapperiphery.sol/uniswapimports.go | 203 - v1/pkg/contracts/zevm/wzeta.sol/weth9.go | 1113 -- .../zetaconnectorzevm.go | 1000 -- .../zetaconnectorzevm.sol/zetainterfaces.go | 181 - .../zetaconnectorzevm.sol/zetareceiver.go | 242 - v1/pkg/contracts/zevm/zrc20.sol/zrc20.go | 1800 --- .../contracts/zevm/zrc20.sol/zrc20errors.go | 181 - .../contracts/access/ownable.sol/ownable.go | 407 - .../access/ownable2step.sol/ownable2step.go | 612 - .../security/pausable.sol/pausable.go | 480 - .../reentrancyguard.sol/reentrancyguard.go | 181 - .../contracts/token/erc20/erc20.sol/erc20.go | 802 -- .../erc20burnable.sol/erc20burnable.go | 822 -- .../ierc20metadata.sol/ierc20metadata.go | 738 -- .../token/erc20/ierc20.sol/ierc20.go | 645 -- .../erc20/utils/safeerc20.sol/safeerc20.go | 203 - .../contracts/utils/address.sol/address.go | 203 - .../contracts/utils/context.sol/context.go | 181 - .../transferhelper.sol/transferhelper.go | 203 - .../contracts/interfaces/ierc20.sol/ierc20.go | 738 -- .../iuniswapv2callee.sol/iuniswapv2callee.go | 202 - .../iuniswapv2erc20.sol/iuniswapv2erc20.go | 852 -- .../iuniswapv2factory.go | 554 - .../iuniswapv2pair.sol/iuniswapv2pair.go | 1842 --- .../contracts/libraries/math.sol/math.go | 203 - .../libraries/safemath.sol/safemath.go | 203 - .../libraries/uq112x112.sol/uq112x112.go | 203 - .../uniswapv2erc20.sol/uniswapv2erc20.go | 874 -- .../uniswapv2factory.sol/uniswapv2factory.go | 576 - .../uniswapv2pair.sol/uniswapv2pair.go | 1864 ---- .../contracts/interfaces/ierc20.sol/ierc20.go | 738 -- .../iuniswapv2router01.go | 650 -- .../iuniswapv2router02.go | 755 -- .../contracts/interfaces/iweth.sol/iweth.go | 244 - .../libraries/safemath.sol/safemath.go | 203 - .../uniswapv2library.sol/uniswapv2library.go | 203 - .../uniswapv2router02.go | 798 -- .../iuniswapv3swapcallback.go | 202 - .../iuniswapv3factory.go | 807 -- .../iuniswapv3pool.sol/iuniswapv3pool.go | 2455 ---- .../iuniswapv3poolactions.go | 328 - .../iuniswapv3poolderivedstate.go | 276 - .../iuniswapv3poolevents.go | 1556 --- .../iuniswapv3poolimmutables.go | 367 - .../iuniswapv3poolowneractions.go | 223 - .../iuniswapv3poolstate.go | 610 - .../interfaces/iquoter.sol/iquoter.go | 265 - .../interfaces/iswaprouter.sol/iswaprouter.go | 328 - v1/readme.md | 123 - .../deployments/core/deploy-deterministic.ts | 23 - .../deployments/core/deploy-erc20-custody.ts | 36 - .../core/deploy-immutable-create2-factory.ts | 25 - .../deployments/core/deploy-zeta-connector.ts | 37 - .../deployments/core/deploy-zeta-token.ts | 43 - v1/scripts/deployments/core/deploy.ts | 23 - .../deterministic-deploy-erc20-custody.ts | 65 - .../deterministic-deploy-zeta-connector.ts | 67 - .../core/deterministic-deploy-zeta-token.ts | 72 - ...ministic-deploy-zeta-consumer-pancakev3.ts | 45 - .../deterministic-deploy-zeta-consumer-v2.ts | 55 - .../deterministic-deploy-zeta-consumer-v3.ts | 46 - .../deterministic-get-salt-erc20-custody.ts | 47 - .../deterministic-get-salt-zeta-connector.ts | 52 - .../deterministic-get-salt-zeta-token.ts | 52 - v1/scripts/generate_addresses.sh | 10 - v1/scripts/generate_addresses_types.ts | 46 - v1/scripts/generate_go.sh | 83 - .../bytecode-checker/bytecode.constants.ts | 18 - .../bytecode-checker/bytecode.helpers.ts | 94 - v1/scripts/tools/bytecode-checker/bytecode.ts | 98 - v1/scripts/tools/send-tss-gas.ts | 28 - v1/scripts/tools/set-zeta-token-addresses.ts | 32 - v1/scripts/tools/test-zeta-send.ts | 46 - v1/scripts/tools/token-approval.ts | 34 - v1/scripts/tools/update-tss-address.ts | 40 - v1/scripts/tools/update-zeta-connector.ts | 32 - v1/tasks/addresses.mainnet.json | 16 - v1/tasks/addresses.testnet.json | 58 - v1/tasks/addresses.ts | 365 - v1/tasks/readme.md | 2 - v1/test/ConnectorZEVM.spec.ts | 295 - v1/test/ERC20Custody.spec.ts | 279 - v1/test/ImmutableCreate2Factory.spec.ts | 128 - v1/test/ZRC20.spec.ts | 117 - v1/test/Zeta.non-eth.spec.ts | 155 - v1/test/ZetaConnector.spec.ts | 855 -- v1/test/ZetaInteractor.spec.ts | 119 - v1/test/ZetaTokenConsumer.spec.ts | 213 - v1/test/ZetaTokenConsumerZEVM.spec.ts | 197 - v1/test/test.helpers.ts | 23 - v1/tsconfig.json | 30 - .../access/OwnableUpgradeable.ts | 188 - .../contracts-upgradeable/access/index.ts | 4 - .../contracts-upgradeable/index.ts | 13 - .../interfaces/IERC1967Upgradeable.ts | 115 - .../IERC1822ProxiableUpgradeable.ts | 88 - .../draft-IERC1822Upgradeable.sol/index.ts | 4 - .../contracts-upgradeable/interfaces/index.ts | 6 - .../ERC1967/ERC1967UpgradeUpgradeable.ts | 127 - .../proxy/ERC1967/index.ts | 4 - .../proxy/beacon/IBeaconUpgradeable.ts | 88 - .../proxy/beacon/index.ts | 4 - .../contracts-upgradeable/proxy/index.ts | 9 - .../proxy/utils/Initializable.ts | 70 - .../proxy/utils/UUPSUpgradeable.ts | 238 - .../proxy/utils/index.ts | 5 - .../security/ReentrancyGuardUpgradeable.ts | 70 - .../contracts-upgradeable/security/index.ts | 4 - .../utils/ContextUpgradeable.ts | 70 - .../contracts-upgradeable/utils/index.ts | 4 - .../@openzeppelin/contracts/access/Ownable.ts | 176 - .../contracts/access/Ownable2Step.ts | 250 - .../@openzeppelin/contracts/access/index.ts | 5 - .../@openzeppelin/contracts/index.ts | 9 - .../contracts/security/Pausable.ts | 112 - .../@openzeppelin/contracts/security/index.ts | 4 - .../contracts/token/ERC20/ERC20.ts | 464 - .../contracts/token/ERC20/IERC20.ts | 342 - .../token/ERC20/extensions/ERC20Burnable.ts | 533 - .../token/ERC20/extensions/IERC20Metadata.ts | 384 - .../draft-IERC20Permit.sol/IERC20Permit.ts | 193 - .../draft-IERC20Permit.sol/index.ts | 4 - .../contracts/token/ERC20/extensions/index.ts | 7 - .../contracts/token/ERC20/index.ts | 7 - .../@openzeppelin/contracts/token/index.ts | 5 - v1/typechain-types/@openzeppelin/index.ts | 5 - v1/typechain-types/@uniswap/index.ts | 11 - .../v2-core/contracts/UniswapV2ERC20.ts | 526 - .../v2-core/contracts/UniswapV2Factory.ts | 335 - .../v2-core/contracts/UniswapV2Pair.ts | 996 -- .../@uniswap/v2-core/contracts/index.ts | 8 - .../v2-core/contracts/interfaces/IERC20.ts | 384 - .../contracts/interfaces/IUniswapV2Callee.ts | 126 - .../contracts/interfaces/IUniswapV2ERC20.ts | 526 - .../contracts/interfaces/IUniswapV2Factory.ts | 335 - .../contracts/interfaces/IUniswapV2Pair.ts | 996 -- .../v2-core/contracts/interfaces/index.ts | 8 - v1/typechain-types/@uniswap/v2-core/index.ts | 5 - .../contracts/UniswapV2Router02.ts | 1510 --- .../@uniswap/v2-periphery/contracts/index.ts | 6 - .../contracts/interfaces/IERC20.ts | 384 - .../interfaces/IUniswapV2Router01.ts | 1175 -- .../interfaces/IUniswapV2Router02.ts | 1510 --- .../contracts/interfaces/IWETH.ts | 163 - .../contracts/interfaces/index.ts | 7 - .../@uniswap/v2-periphery/index.ts | 5 - .../@uniswap/v3-core/contracts/index.ts | 5 - .../contracts/interfaces/IUniswapV3Factory.ts | 369 - .../contracts/interfaces/IUniswapV3Pool.ts | 1371 --- .../callback/IUniswapV3SwapCallback.ts | 122 - .../contracts/interfaces/callback/index.ts | 4 - .../v3-core/contracts/interfaces/index.ts | 9 - .../interfaces/pool/IUniswapV3PoolActions.ts | 421 - .../pool/IUniswapV3PoolDerivedState.ts | 175 - .../interfaces/pool/IUniswapV3PoolEvents.ts | 340 - .../pool/IUniswapV3PoolImmutables.ts | 169 - .../pool/IUniswapV3PoolOwnerActions.ts | 163 - .../interfaces/pool/IUniswapV3PoolState.ts | 446 - .../contracts/interfaces/pool/index.ts | 9 - v1/typechain-types/@uniswap/v3-core/index.ts | 5 - .../@uniswap/v3-periphery/contracts/index.ts | 5 - .../contracts/interfaces/IQuoter.ts | 276 - .../contracts/interfaces/ISwapRouter.ts | 369 - .../contracts/interfaces/index.ts | 5 - .../@uniswap/v3-periphery/index.ts | 5 - v1/typechain-types/common.ts | 46 - .../contracts/evm/ERC20Custody.ts | 678 -- .../contracts/evm/Zeta.eth.sol/ZetaEth.ts | 464 - .../contracts/evm/Zeta.eth.sol/index.ts | 4 - .../evm/Zeta.non-eth.sol/ZetaNonEth.ts | 817 -- .../contracts/evm/Zeta.non-eth.sol/index.ts | 4 - .../ZetaConnectorBase.ts | 704 -- .../evm/ZetaConnector.base.sol/index.ts | 4 - .../ZetaConnector.eth.sol/ZetaConnectorEth.ts | 724 -- .../evm/ZetaConnector.eth.sol/index.ts | 4 - .../ZetaConnectorNonEth.ts | 796 -- .../evm/ZetaConnector.non-eth.sol/index.ts | 4 - v1/typechain-types/contracts/evm/index.ts | 20 - .../evm/interfaces/ConnectorErrors.ts | 56 - .../contracts/evm/interfaces/ZetaErrors.ts | 56 - .../evm/interfaces/ZetaInteractorErrors.ts | 56 - .../ZetaInterfaces.sol/ZetaCommonErrors.ts | 56 - .../ZetaInterfaces.sol/ZetaConnector.ts | 130 - .../ZetaInterfaces.sol/ZetaReceiver.ts | 191 - .../ZetaInterfaces.sol/ZetaTokenConsumer.ts | 398 - .../interfaces/ZetaInterfaces.sol/index.ts | 7 - .../evm/interfaces/ZetaNonEthInterface.ts | 425 - .../contracts/evm/interfaces/index.ts | 9 - .../AttackerContract.sol/AttackerContract.ts | 214 - .../testing/AttackerContract.sol/Victim.ts | 168 - .../evm/testing/AttackerContract.sol/index.ts | 5 - .../contracts/evm/testing/ERC20Mock.ts | 464 - .../INonfungiblePositionManager.ts | 573 - .../IPoolInitializer.ts | 128 - .../TestUniswapV3Contracts.sol/index.ts | 5 - .../evm/testing/ZetaInteractorMock.ts | 459 - .../contracts/evm/testing/ZetaReceiverMock.ts | 233 - .../contracts/evm/testing/index.ts | 10 - .../ImmutableCreate2Factory.ts | 268 - .../ImmutableCreate2Factory.sol/Ownable.ts | 105 - .../ImmutableCreate2Factory.sol/index.ts | 5 - .../contracts/evm/tools/ZetaInteractor.ts | 340 - .../ISwapRouterPancake.ts | 240 - .../WETH9.ts | 103 - .../ZetaTokenConsumerPancakeV3.ts | 512 - .../ZetaTokenConsumerUniV3Errors.ts | 56 - .../index.ts | 7 - .../WETH9.ts | 194 - .../ZetaTokenConsumerTrident.ts | 452 - .../ZetaTokenConsumerTridentErrors.ts | 57 - .../index.ts | 6 - .../ZetaTokenConsumerUniV2.ts | 412 - .../ZetaTokenConsumerUniV2Errors.ts | 56 - .../index.ts | 5 - .../WETH9.ts | 103 - .../ZetaTokenConsumerUniV3.ts | 512 - .../ZetaTokenConsumerUniV3Errors.ts | 56 - .../index.ts | 6 - .../ZetaTokenConsumerZEVM.ts | 418 - .../ZetaTokenConsumerZEVMErrors.ts | 56 - .../index.ts | 5 - .../contracts/evm/tools/index.ts | 18 - .../ConcentratedLiquidityPoolFactory.ts | 122 - .../index.ts | 4 - .../TridentIPoolRouter.sol/IPoolRouter.ts | 359 - .../TridentIPoolRouter.sol/index.ts | 4 - .../contracts/evm/tools/interfaces/index.ts | 7 - v1/typechain-types/contracts/index.ts | 7 - .../contracts/zevm/Interfaces.sol/ISystem.ts | 243 - .../contracts/zevm/Interfaces.sol/IZRC20.ts | 547 - .../zevm/Interfaces.sol/IZRC20Metadata.ts | 589 - .../contracts/zevm/Interfaces.sol/index.ts | 6 - .../zevm/SystemContract.sol/SystemContract.ts | 706 -- .../SystemContractErrors.ts | 56 - .../zevm/SystemContract.sol/index.ts | 5 - .../contracts/zevm/WZETA.sol/WETH9.ts | 480 - .../contracts/zevm/WZETA.sol/index.ts | 4 - .../contracts/zevm/ZRC20.sol/ZRC20.ts | 832 -- .../contracts/zevm/ZRC20.sol/ZRC20Errors.ts | 56 - .../contracts/zevm/ZRC20.sol/index.ts | 5 - .../zevm/ZetaConnectorZEVM.sol/WZETA.ts | 153 - .../ZetaConnectorZEVM.ts | 468 - .../ZetaConnectorZEVM.sol/ZetaReceiver.ts | 191 - .../zevm/ZetaConnectorZEVM.sol/index.ts | 5 - .../contracts/zevm/ZetaConnectorZEVM.ts | 726 -- v1/typechain-types/contracts/zevm/index.ts | 15 - .../contracts/zevm/interfaces/ISystem.ts | 243 - .../zevm/interfaces/IUniswapV2Router01.ts | 1175 -- .../zevm/interfaces/IUniswapV2Router02.ts | 1510 --- .../zevm/interfaces/IWZETA.sol/IWETH9.ts | 438 - .../zevm/interfaces/IWZETA.sol/index.ts | 4 - .../zevm/interfaces/IZRC20.sol/ISystem.ts | 243 - .../zevm/interfaces/IZRC20.sol/IZRC20.ts | 432 - .../interfaces/IZRC20.sol/IZRC20Metadata.ts | 474 - .../zevm/interfaces/IZRC20.sol/ZRC20Events.ts | 219 - .../zevm/interfaces/IZRC20.sol/index.ts | 6 - .../contracts/zevm/interfaces/IZRC20.ts | 679 -- .../contracts/zevm/interfaces/ZContract.ts | 138 - .../contracts/zevm/interfaces/index.ts | 12 - .../zContract.sol/UniversalContract.ts | 203 - .../interfaces/zContract.sol/ZContract.ts | 138 - .../zevm/interfaces/zContract.sol/index.ts | 5 - .../SystemContractErrors.ts | 56 - .../SystemContractMock.ts | 553 - .../testing/SystemContractMock.sol/index.ts | 5 - .../contracts/zevm/testing/index.ts | 5 - .../access/OwnableUpgradeable__factory.ts | 91 - .../contracts-upgradeable/access/index.ts | 4 - .../contracts-upgradeable/index.ts | 8 - .../IERC1967Upgradeable__factory.ts | 71 - .../IERC1822ProxiableUpgradeable__factory.ts | 43 - .../draft-IERC1822Upgradeable.sol/index.ts | 4 - .../contracts-upgradeable/interfaces/index.ts | 5 - .../ERC1967UpgradeUpgradeable__factory.ts | 88 - .../proxy/ERC1967/index.ts | 4 - .../beacon/IBeaconUpgradeable__factory.ts | 39 - .../proxy/beacon/index.ts | 4 - .../contracts-upgradeable/proxy/index.ts | 6 - .../proxy/utils/Initializable__factory.ts | 39 - .../proxy/utils/UUPSUpgradeable__factory.ts | 128 - .../proxy/utils/index.ts | 5 - .../ReentrancyGuardUpgradeable__factory.ts | 43 - .../contracts-upgradeable/security/index.ts | 4 - .../utils/ContextUpgradeable__factory.ts | 39 - .../contracts-upgradeable/utils/index.ts | 4 - .../contracts/access/Ownable2Step__factory.ts | 117 - .../contracts/access/Ownable__factory.ts | 78 - .../@openzeppelin/contracts/access/index.ts | 5 - .../@openzeppelin/contracts/index.ts | 6 - .../contracts/security/Pausable__factory.ts | 65 - .../@openzeppelin/contracts/security/index.ts | 4 - .../contracts/token/ERC20/ERC20__factory.ts | 350 - .../contracts/token/ERC20/IERC20__factory.ts | 206 - .../extensions/ERC20Burnable__factory.ts | 327 - .../extensions/IERC20Metadata__factory.ts | 248 - .../IERC20Permit__factory.ts | 101 - .../draft-IERC20Permit.sol/index.ts | 4 - .../contracts/token/ERC20/extensions/index.ts | 6 - .../contracts/token/ERC20/index.ts | 6 - .../@openzeppelin/contracts/token/index.ts | 4 - .../factories/@openzeppelin/index.ts | 4 - .../factories/@uniswap/index.ts | 7 - .../contracts/UniswapV2ERC20__factory.ts | 405 - .../contracts/UniswapV2Factory__factory.ts | 259 - .../contracts/UniswapV2Pair__factory.ts | 774 -- .../@uniswap/v2-core/contracts/index.ts | 7 - .../contracts/interfaces/IERC20__factory.ts | 245 - .../interfaces/IUniswapV2Callee__factory.ts | 54 - .../interfaces/IUniswapV2ERC20__factory.ts | 336 - .../interfaces/IUniswapV2Factory__factory.ts | 189 - .../interfaces/IUniswapV2Pair__factory.ts | 677 -- .../v2-core/contracts/interfaces/index.ts | 8 - .../factories/@uniswap/v2-core/index.ts | 4 - .../contracts/UniswapV2Router02__factory.ts | 1042 -- .../@uniswap/v2-periphery/contracts/index.ts | 5 - .../contracts/interfaces/IERC20__factory.ts | 245 - .../interfaces/IUniswapV2Router01__factory.ts | 775 -- .../interfaces/IUniswapV2Router02__factory.ts | 977 -- .../contracts/interfaces/IWETH__factory.ts | 67 - .../contracts/interfaces/index.ts | 7 - .../factories/@uniswap/v2-periphery/index.ts | 4 - .../@uniswap/v3-core/contracts/index.ts | 4 - .../interfaces/IUniswapV3Factory__factory.ts | 222 - .../interfaces/IUniswapV3Pool__factory.ts | 1007 -- .../IUniswapV3SwapCallback__factory.ts | 53 - .../contracts/interfaces/callback/index.ts | 4 - .../v3-core/contracts/interfaces/index.ts | 7 - .../pool/IUniswapV3PoolActions__factory.ts | 250 - .../IUniswapV3PoolDerivedState__factory.ts | 88 - .../pool/IUniswapV3PoolEvents__factory.ts | 357 - .../pool/IUniswapV3PoolImmutables__factory.ts | 108 - .../IUniswapV3PoolOwnerActions__factory.ts | 82 - .../pool/IUniswapV3PoolState__factory.ts | 272 - .../contracts/interfaces/pool/index.ts | 9 - .../factories/@uniswap/v3-core/index.ts | 4 - .../@uniswap/v3-periphery/contracts/index.ts | 4 - .../contracts/interfaces/IQuoter__factory.ts | 152 - .../interfaces/ISwapRouter__factory.ts | 263 - .../contracts/interfaces/index.ts | 5 - .../factories/@uniswap/v3-periphery/index.ts | 4 - .../contracts/evm/ERC20Custody__factory.ts | 533 - .../evm/Zeta.eth.sol/ZetaEth__factory.ts | 364 - .../contracts/evm/Zeta.eth.sol/index.ts | 4 - .../Zeta.non-eth.sol/ZetaNonEth__factory.ts | 634 -- .../contracts/evm/Zeta.non-eth.sol/index.ts | 4 - .../ZetaConnectorBase__factory.ts | 642 -- .../evm/ZetaConnector.base.sol/index.ts | 4 - .../ZetaConnectorEth__factory.ts | 655 -- .../evm/ZetaConnector.eth.sol/index.ts | 4 - .../ZetaConnectorNonEth__factory.ts | 700 -- .../evm/ZetaConnector.non-eth.sol/index.ts | 4 - .../factories/contracts/evm/index.ts | 12 - .../interfaces/ConnectorErrors__factory.ts | 86 - .../evm/interfaces/ZetaErrors__factory.ts | 80 - .../ZetaInteractorErrors__factory.ts | 56 - .../ZetaCommonErrors__factory.ts | 31 - .../ZetaConnector__factory.ts | 71 - .../ZetaReceiver__factory.ts | 111 - .../ZetaTokenConsumer__factory.ts | 248 - .../interfaces/ZetaInterfaces.sol/index.ts | 7 - .../ZetaNonEthInterface__factory.ts | 250 - .../contracts/evm/interfaces/index.ts | 8 - .../AttackerContract__factory.ts | 196 - .../AttackerContract.sol/Victim__factory.ts | 74 - .../evm/testing/AttackerContract.sol/index.ts | 5 - .../evm/testing/ERC20Mock__factory.ts | 386 - .../INonfungiblePositionManager__factory.ts | 461 - .../IPoolInitializer__factory.ts | 60 - .../TestUniswapV3Contracts.sol/index.ts | 5 - .../testing/ZetaInteractorMock__factory.ts | 336 - .../evm/testing/ZetaReceiverMock__factory.ts | 174 - .../factories/contracts/evm/testing/index.ts | 8 - .../ImmutableCreate2Factory__factory.ts | 178 - .../Ownable__factory.ts | 40 - .../ImmutableCreate2Factory.sol/index.ts | 5 - .../evm/tools/ZetaInteractor__factory.ts | 198 - .../ISwapRouterPancake__factory.ts | 146 - .../WETH9__factory.ts | 36 - .../ZetaTokenConsumerPancakeV3__factory.ts | 462 - .../ZetaTokenConsumerUniV3Errors__factory.ts | 45 - .../index.ts | 7 - .../WETH9__factory.ts | 74 - ...ZetaTokenConsumerTridentErrors__factory.ts | 45 - .../ZetaTokenConsumerTrident__factory.ts | 398 - .../index.ts | 6 - .../ZetaTokenConsumerUniV2Errors__factory.ts | 35 - .../ZetaTokenConsumerUniV2__factory.ts | 340 - .../index.ts | 5 - .../WETH9__factory.ts | 36 - .../ZetaTokenConsumerUniV3Errors__factory.ts | 45 - .../ZetaTokenConsumerUniV3__factory.ts | 462 - .../index.ts | 6 - .../ZetaTokenConsumerZEVMErrors__factory.ts | 70 - .../ZetaTokenConsumerZEVM__factory.ts | 379 - .../index.ts | 5 - .../factories/contracts/evm/tools/index.ts | 11 - ...ncentratedLiquidityPoolFactory__factory.ts | 66 - .../index.ts | 4 - .../IPoolRouter__factory.ts | 253 - .../TridentIPoolRouter.sol/index.ts | 4 - .../contracts/evm/tools/interfaces/index.ts | 5 - .../factories/contracts/index.ts | 5 - .../zevm/Interfaces.sol/ISystem__factory.ts | 122 - .../Interfaces.sol/IZRC20Metadata__factory.ts | 415 - .../zevm/Interfaces.sol/IZRC20__factory.ts | 373 - .../contracts/zevm/Interfaces.sol/index.ts | 6 - .../SystemContractErrors__factory.ts | 55 - .../SystemContract__factory.ts | 495 - .../zevm/SystemContract.sol/index.ts | 5 - .../zevm/WZETA.sol/WETH9__factory.ts | 344 - .../contracts/zevm/WZETA.sol/index.ts | 4 - .../zevm/ZRC20.sol/ZRC20Errors__factory.ts | 66 - .../zevm/ZRC20.sol/ZRC20__factory.ts | 705 -- .../contracts/zevm/ZRC20.sol/index.ts | 5 - .../zevm/ZRC20New.sol/ZRC20Errors__factory.ts | 66 - .../zevm/ZRC20New.sol/ZRC20New__factory.ts | 730 -- .../contracts/zevm/ZRC20New.sol/index.ts | 5 - .../ZetaConnectorZEVM.sol/WZETA__factory.ts | 65 - .../ZetaConnectorZEVM__factory.ts | 430 - .../ZetaReceiver__factory.ts | 111 - .../zevm/ZetaConnectorZEVM.sol/index.ts | 5 - .../zevm/ZetaConnectorZEVM__factory.ts | 679 -- .../factories/contracts/zevm/index.ts | 9 - .../zevm/interfaces/ISystem__factory.ts | 122 - .../interfaces/IUniswapV2Router01__factory.ts | 775 -- .../interfaces/IUniswapV2Router02__factory.ts | 977 -- .../interfaces/IWZETA.sol/IWETH9__factory.ts | 264 - .../zevm/interfaces/IWZETA.sol/index.ts | 4 - .../interfaces/IZRC20.sol/ISystem__factory.ts | 122 - .../IZRC20.sol/IZRC20Metadata__factory.ts | 296 - .../interfaces/IZRC20.sol/IZRC20__factory.ts | 254 - .../IZRC20.sol/ZRC20Events__factory.ts | 177 - .../zevm/interfaces/IZRC20.sol/index.ts | 6 - .../zevm/interfaces/IZRC20__factory.ts | 453 - .../zevm/interfaces/ZContract__factory.ts | 71 - .../contracts/zevm/interfaces/index.ts | 9 - .../UniversalContract__factory.ts | 116 - .../zContract.sol/ZContract__factory.ts | 71 - .../zevm/interfaces/zContract.sol/index.ts | 5 - .../SystemContractErrors__factory.ts | 50 - .../SystemContractMock__factory.ts | 398 - .../testing/SystemContractMock.sol/index.ts | 5 - .../factories/contracts/zevm/testing/index.ts | 4 - v1/typechain-types/factories/index.ts | 6 - v1/typechain-types/hardhat.d.ts | 843 -- v1/typechain-types/index.ts | 168 - v1/yarn.lock | 9917 ----------------- 638 files changed, 159408 deletions(-) delete mode 100644 v1/.env.example delete mode 100644 v1/.eslintignore delete mode 100644 v1/.eslintrc.js delete mode 100644 v1/.solhint.json delete mode 100644 v1/Dockerfile delete mode 100644 v1/contracts/evm/ERC20Custody.sol delete mode 100644 v1/contracts/evm/Zeta.eth.sol delete mode 100644 v1/contracts/evm/Zeta.non-eth.sol delete mode 100644 v1/contracts/evm/ZetaConnector.base.sol delete mode 100644 v1/contracts/evm/ZetaConnector.eth.sol delete mode 100644 v1/contracts/evm/ZetaConnector.non-eth.sol delete mode 100644 v1/contracts/evm/interfaces/ConnectorErrors.sol delete mode 100644 v1/contracts/evm/interfaces/ZetaErrors.sol delete mode 100644 v1/contracts/evm/interfaces/ZetaInteractorErrors.sol delete mode 100644 v1/contracts/evm/interfaces/ZetaInterfaces.sol delete mode 100644 v1/contracts/evm/interfaces/ZetaNonEthInterface.sol delete mode 100644 v1/contracts/evm/testing/AttackerContract.sol delete mode 100644 v1/contracts/evm/testing/ERC20Mock.sol delete mode 100644 v1/contracts/evm/testing/TestUniswapV3Contracts.sol delete mode 100644 v1/contracts/evm/testing/ZetaInteractorMock.sol delete mode 100644 v1/contracts/evm/testing/ZetaReceiverMock.sol delete mode 100644 v1/contracts/evm/tools/ImmutableCreate2Factory.sol delete mode 100644 v1/contracts/evm/tools/ZetaInteractor.sol delete mode 100644 v1/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol delete mode 100644 v1/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol delete mode 100644 v1/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol delete mode 100644 v1/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol delete mode 100644 v1/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol delete mode 100644 v1/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol delete mode 100644 v1/contracts/evm/tools/interfaces/TridentIPoolRouter.sol delete mode 100644 v1/contracts/zevm/SystemContract.sol delete mode 100644 v1/contracts/zevm/Uniswap.sol delete mode 100644 v1/contracts/zevm/UniswapPeriphery.sol delete mode 100644 v1/contracts/zevm/WZETA.sol delete mode 100644 v1/contracts/zevm/ZRC20.sol delete mode 100644 v1/contracts/zevm/ZetaConnectorZEVM.sol delete mode 100644 v1/contracts/zevm/interfaces/ISystem.sol delete mode 100644 v1/contracts/zevm/interfaces/IUniswapV2Router01.sol delete mode 100644 v1/contracts/zevm/interfaces/IUniswapV2Router02.sol delete mode 100644 v1/contracts/zevm/interfaces/IWZETA.sol delete mode 100644 v1/contracts/zevm/interfaces/IZRC20.sol delete mode 100644 v1/contracts/zevm/interfaces/zContract.sol delete mode 100644 v1/contracts/zevm/testing/SystemContractMock.sol delete mode 100644 v1/data/addresses.json delete mode 100644 v1/data/addresses.mainnet.json delete mode 100644 v1/data/addresses.testnet.json delete mode 100644 v1/data/readme.md delete mode 100644 v1/docs/.gitignore delete mode 100644 v1/docs/book.css delete mode 100644 v1/docs/book.toml delete mode 100644 v1/docs/solidity.min.js delete mode 100644 v1/docs/src/README.md delete mode 100644 v1/docs/src/SUMMARY.md delete mode 100644 v1/docs/src/contracts/README.md delete mode 100644 v1/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md delete mode 100644 v1/docs/src/contracts/evm/README.md delete mode 100644 v1/docs/src/contracts/evm/Zeta.eth.sol/contract.ZetaEth.md delete mode 100644 v1/docs/src/contracts/evm/Zeta.non-eth.sol/contract.ZetaNonEth.md delete mode 100644 v1/docs/src/contracts/evm/ZetaConnector.base.sol/contract.ZetaConnectorBase.md delete mode 100644 v1/docs/src/contracts/evm/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md delete mode 100644 v1/docs/src/contracts/evm/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ConnectorErrors.sol/interface.ConnectorErrors.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/README.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaErrors.sol/interface.ZetaErrors.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaInteractorErrors.sol/interface.ZetaInteractorErrors.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaCommonErrors.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaConnector.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaInterfaces.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaReceiver.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md delete mode 100644 v1/docs/src/contracts/evm/interfaces/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md delete mode 100644 v1/docs/src/contracts/evm/testing/AttackerContract.sol/contract.AttackerContract.md delete mode 100644 v1/docs/src/contracts/evm/testing/AttackerContract.sol/interface.Victim.md delete mode 100644 v1/docs/src/contracts/evm/testing/ERC20Mock.sol/contract.ERC20Mock.md delete mode 100644 v1/docs/src/contracts/evm/testing/README.md delete mode 100644 v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.INonfungiblePositionManager.md delete mode 100644 v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.IPoolInitializer.md delete mode 100644 v1/docs/src/contracts/evm/testing/ZetaInteractorMock.sol/contract.ZetaInteractorMock.md delete mode 100644 v1/docs/src/contracts/evm/testing/ZetaReceiverMock.sol/contract.ZetaReceiverMock.md delete mode 100644 v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/contract.ImmutableCreate2Factory.md delete mode 100644 v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/interface.Ownable.md delete mode 100644 v1/docs/src/contracts/evm/tools/README.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaInteractor.sol/abstract.ZetaInteractor.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/contract.ZetaTokenConsumerPancakeV3.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ISwapRouterPancake.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.WETH9.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/contract.ZetaTokenConsumerTrident.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.WETH9.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.ZetaTokenConsumerTridentErrors.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/contract.ZetaTokenConsumerUniV2.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/interface.ZetaTokenConsumerUniV2Errors.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/contract.ZetaTokenConsumerUniV3.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.WETH9.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/contract.ZetaTokenConsumerZEVM.md delete mode 100644 v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/interface.ZetaTokenConsumerZEVMErrors.md delete mode 100644 v1/docs/src/contracts/evm/tools/interfaces/README.md delete mode 100644 v1/docs/src/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/interface.ConcentratedLiquidityPoolFactory.md delete mode 100644 v1/docs/src/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/interface.IPoolRouter.md delete mode 100644 v1/docs/src/contracts/zevm/Interfaces.sol/enum.CoinType.md delete mode 100644 v1/docs/src/contracts/zevm/Interfaces.sol/interface.ISystem.md delete mode 100644 v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20.md delete mode 100644 v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20Metadata.md delete mode 100644 v1/docs/src/contracts/zevm/README.md delete mode 100644 v1/docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md delete mode 100644 v1/docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md delete mode 100644 v1/docs/src/contracts/zevm/Uniswap.sol/contract.UniswapImports.md delete mode 100644 v1/docs/src/contracts/zevm/UniswapPeriphery.sol/contract.UniswapImports.md delete mode 100644 v1/docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md delete mode 100644 v1/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md delete mode 100644 v1/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md delete mode 100644 v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md delete mode 100644 v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md delete mode 100644 v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md delete mode 100644 v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router01.sol/interface.IUniswapV2Router01.md delete mode 100644 v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router02.sol/interface.IUniswapV2Router02.md delete mode 100644 v1/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md delete mode 100644 v1/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md delete mode 100644 v1/docs/src/contracts/zevm/interfaces/README.md delete mode 100644 v1/docs/src/contracts/zevm/interfaces/zContract.sol/interface.zContract.md delete mode 100644 v1/docs/src/contracts/zevm/interfaces/zContract.sol/struct.zContext.md delete mode 100644 v1/docs/src/contracts/zevm/testing/README.md delete mode 100644 v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/contract.SystemContractMock.md delete mode 100644 v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/interface.SystemContractErrors.md delete mode 100644 v1/hardhat.config.ts delete mode 100644 v1/lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers.ts delete mode 100644 v1/lib/address.helpers.ts delete mode 100644 v1/lib/address.tools.ts delete mode 100644 v1/lib/addresses.ts delete mode 100644 v1/lib/contracts.constants.ts delete mode 100644 v1/lib/contracts.helpers.ts delete mode 100644 v1/lib/deterministic-deploy.helpers.ts delete mode 100644 v1/lib/index.ts delete mode 100644 v1/lib/types.ts delete mode 100644 v1/package.json delete mode 100644 v1/pkg/contracts/evm/erc20custody.sol/erc20custody.go delete mode 100644 v1/pkg/contracts/evm/interfaces/connectorerrors.sol/connectorerrors.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetaerrors.sol/zetaerrors.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetainteractorerrors.sol/zetainteractorerrors.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetacommonerrors.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetaconnector.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetainterfaces.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetareceiver.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetatokenconsumer.go delete mode 100644 v1/pkg/contracts/evm/interfaces/zetanonethinterface.sol/zetanonethinterface.go delete mode 100644 v1/pkg/contracts/evm/testing/attackercontract.sol/attackercontract.go delete mode 100644 v1/pkg/contracts/evm/testing/attackercontract.sol/victim.go delete mode 100644 v1/pkg/contracts/evm/testing/erc20mock.sol/erc20mock.go delete mode 100644 v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/inonfungiblepositionmanager.go delete mode 100644 v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/ipoolinitializer.go delete mode 100644 v1/pkg/contracts/evm/testing/zetainteractormock.sol/zetainteractormock.go delete mode 100644 v1/pkg/contracts/evm/testing/zetareceivermock.sol/zetareceivermock.go delete mode 100644 v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/immutablecreate2factory.go delete mode 100644 v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/ownable.go delete mode 100644 v1/pkg/contracts/evm/tools/interfaces/tridentconcentratedliquiditypoolfactory.sol/concentratedliquiditypoolfactory.go delete mode 100644 v1/pkg/contracts/evm/tools/interfaces/tridentipoolrouter.sol/ipoolrouter.go delete mode 100644 v1/pkg/contracts/evm/tools/zetainteractor.sol/zetainteractor.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/iswaprouterpancake.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/weth9.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumerpancakev3.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumeruniv3errors.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/weth9.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertrident.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertridenterrors.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2errors.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/weth9.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3errors.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevm.go delete mode 100644 v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevmerrors.go delete mode 100644 v1/pkg/contracts/evm/zeta.eth.sol/zetaeth.go delete mode 100644 v1/pkg/contracts/evm/zeta.non-eth.sol/zetanoneth.go delete mode 100644 v1/pkg/contracts/evm/zetaconnector.base.sol/zetaconnectorbase.go delete mode 100644 v1/pkg/contracts/evm/zetaconnector.eth.sol/zetaconnectoreth.go delete mode 100644 v1/pkg/contracts/evm/zetaconnector.non-eth.sol/zetaconnectornoneth.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/isystem.sol/isystem.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/iwzeta.sol/iweth9.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20metadata.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/izrc20.sol/zrc20events.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/zcontract.sol/universalcontract.go delete mode 100644 v1/pkg/contracts/zevm/interfaces/zcontract.sol/zcontract.go delete mode 100644 v1/pkg/contracts/zevm/systemcontract.sol/systemcontract.go delete mode 100644 v1/pkg/contracts/zevm/systemcontract.sol/systemcontracterrors.go delete mode 100644 v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontracterrors.go delete mode 100644 v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontractmock.go delete mode 100644 v1/pkg/contracts/zevm/uniswap.sol/uniswapimports.go delete mode 100644 v1/pkg/contracts/zevm/uniswapperiphery.sol/uniswapimports.go delete mode 100644 v1/pkg/contracts/zevm/wzeta.sol/weth9.go delete mode 100644 v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetaconnectorzevm.go delete mode 100644 v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetainterfaces.go delete mode 100644 v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetareceiver.go delete mode 100644 v1/pkg/contracts/zevm/zrc20.sol/zrc20.go delete mode 100644 v1/pkg/contracts/zevm/zrc20.sol/zrc20errors.go delete mode 100644 v1/pkg/openzeppelin/contracts/access/ownable.sol/ownable.go delete mode 100644 v1/pkg/openzeppelin/contracts/access/ownable2step.sol/ownable2step.go delete mode 100644 v1/pkg/openzeppelin/contracts/security/pausable.sol/pausable.go delete mode 100644 v1/pkg/openzeppelin/contracts/security/reentrancyguard.sol/reentrancyguard.go delete mode 100644 v1/pkg/openzeppelin/contracts/token/erc20/erc20.sol/erc20.go delete mode 100644 v1/pkg/openzeppelin/contracts/token/erc20/extensions/erc20burnable.sol/erc20burnable.go delete mode 100644 v1/pkg/openzeppelin/contracts/token/erc20/extensions/ierc20metadata.sol/ierc20metadata.go delete mode 100644 v1/pkg/openzeppelin/contracts/token/erc20/ierc20.sol/ierc20.go delete mode 100644 v1/pkg/openzeppelin/contracts/token/erc20/utils/safeerc20.sol/safeerc20.go delete mode 100644 v1/pkg/openzeppelin/contracts/utils/address.sol/address.go delete mode 100644 v1/pkg/openzeppelin/contracts/utils/context.sol/context.go delete mode 100644 v1/pkg/uniswap/lib/contracts/libraries/transferhelper.sol/transferhelper.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/interfaces/ierc20.sol/ierc20.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2callee.sol/iuniswapv2callee.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2erc20.sol/iuniswapv2erc20.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2factory.sol/iuniswapv2factory.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2pair.sol/iuniswapv2pair.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/libraries/math.sol/math.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/libraries/safemath.sol/safemath.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/libraries/uq112x112.sol/uq112x112.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/uniswapv2erc20.sol/uniswapv2erc20.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/uniswapv2factory.sol/uniswapv2factory.go delete mode 100644 v1/pkg/uniswap/v2-core/contracts/uniswapv2pair.sol/uniswapv2pair.go delete mode 100644 v1/pkg/uniswap/v2-periphery/contracts/interfaces/ierc20.sol/ierc20.go delete mode 100644 v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go delete mode 100644 v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go delete mode 100644 v1/pkg/uniswap/v2-periphery/contracts/interfaces/iweth.sol/iweth.go delete mode 100644 v1/pkg/uniswap/v2-periphery/contracts/libraries/safemath.sol/safemath.go delete mode 100644 v1/pkg/uniswap/v2-periphery/contracts/libraries/uniswapv2library.sol/uniswapv2library.go delete mode 100644 v1/pkg/uniswap/v2-periphery/contracts/uniswapv2router02.sol/uniswapv2router02.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/callback/iuniswapv3swapcallback.sol/iuniswapv3swapcallback.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3factory.sol/iuniswapv3factory.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3pool.sol/iuniswapv3pool.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolactions.sol/iuniswapv3poolactions.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolderivedstate.sol/iuniswapv3poolderivedstate.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolevents.sol/iuniswapv3poolevents.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolimmutables.sol/iuniswapv3poolimmutables.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolowneractions.sol/iuniswapv3poolowneractions.go delete mode 100644 v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolstate.sol/iuniswapv3poolstate.go delete mode 100644 v1/pkg/uniswap/v3-periphery/contracts/interfaces/iquoter.sol/iquoter.go delete mode 100644 v1/pkg/uniswap/v3-periphery/contracts/interfaces/iswaprouter.sol/iswaprouter.go delete mode 100644 v1/readme.md delete mode 100644 v1/scripts/deployments/core/deploy-deterministic.ts delete mode 100644 v1/scripts/deployments/core/deploy-erc20-custody.ts delete mode 100644 v1/scripts/deployments/core/deploy-immutable-create2-factory.ts delete mode 100644 v1/scripts/deployments/core/deploy-zeta-connector.ts delete mode 100644 v1/scripts/deployments/core/deploy-zeta-token.ts delete mode 100644 v1/scripts/deployments/core/deploy.ts delete mode 100644 v1/scripts/deployments/core/deterministic-deploy-erc20-custody.ts delete mode 100644 v1/scripts/deployments/core/deterministic-deploy-zeta-connector.ts delete mode 100644 v1/scripts/deployments/core/deterministic-deploy-zeta-token.ts delete mode 100644 v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-pancakev3.ts delete mode 100644 v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v2.ts delete mode 100644 v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v3.ts delete mode 100644 v1/scripts/deployments/tools/deterministic-get-salt-erc20-custody.ts delete mode 100644 v1/scripts/deployments/tools/deterministic-get-salt-zeta-connector.ts delete mode 100644 v1/scripts/deployments/tools/deterministic-get-salt-zeta-token.ts delete mode 100755 v1/scripts/generate_addresses.sh delete mode 100644 v1/scripts/generate_addresses_types.ts delete mode 100755 v1/scripts/generate_go.sh delete mode 100644 v1/scripts/tools/bytecode-checker/bytecode.constants.ts delete mode 100644 v1/scripts/tools/bytecode-checker/bytecode.helpers.ts delete mode 100644 v1/scripts/tools/bytecode-checker/bytecode.ts delete mode 100644 v1/scripts/tools/send-tss-gas.ts delete mode 100644 v1/scripts/tools/set-zeta-token-addresses.ts delete mode 100644 v1/scripts/tools/test-zeta-send.ts delete mode 100644 v1/scripts/tools/token-approval.ts delete mode 100644 v1/scripts/tools/update-tss-address.ts delete mode 100644 v1/scripts/tools/update-zeta-connector.ts delete mode 100644 v1/tasks/addresses.mainnet.json delete mode 100644 v1/tasks/addresses.testnet.json delete mode 100644 v1/tasks/addresses.ts delete mode 100644 v1/tasks/readme.md delete mode 100644 v1/test/ConnectorZEVM.spec.ts delete mode 100644 v1/test/ERC20Custody.spec.ts delete mode 100644 v1/test/ImmutableCreate2Factory.spec.ts delete mode 100644 v1/test/ZRC20.spec.ts delete mode 100644 v1/test/Zeta.non-eth.spec.ts delete mode 100644 v1/test/ZetaConnector.spec.ts delete mode 100644 v1/test/ZetaInteractor.spec.ts delete mode 100644 v1/test/ZetaTokenConsumer.spec.ts delete mode 100644 v1/test/ZetaTokenConsumerZEVM.spec.ts delete mode 100644 v1/test/test.helpers.ts delete mode 100644 v1/tsconfig.json delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/security/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/access/Ownable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/access/Ownable2Step.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/access/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/security/Pausable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/security/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/contracts/token/index.ts delete mode 100644 v1/typechain-types/@openzeppelin/index.ts delete mode 100644 v1/typechain-types/@uniswap/index.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2ERC20.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Factory.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Pair.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/index.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IERC20.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/@uniswap/v2-core/index.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/contracts/UniswapV2Router02.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/contracts/index.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IERC20.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IWETH.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/@uniswap/v2-periphery/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-core/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-periphery/contracts/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/IQuoter.ts delete mode 100644 v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts delete mode 100644 v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/@uniswap/v3-periphery/index.ts delete mode 100644 v1/typechain-types/common.ts delete mode 100644 v1/typechain-types/contracts/evm/ERC20Custody.ts delete mode 100644 v1/typechain-types/contracts/evm/Zeta.eth.sol/ZetaEth.ts delete mode 100644 v1/typechain-types/contracts/evm/Zeta.eth.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/Zeta.non-eth.sol/ZetaNonEth.ts delete mode 100644 v1/typechain-types/contracts/evm/Zeta.non-eth.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase.ts delete mode 100644 v1/typechain-types/contracts/evm/ZetaConnector.base.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth.ts delete mode 100644 v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts delete mode 100644 v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/index.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ConnectorErrors.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaErrors.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaInteractorErrors.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/ZetaNonEthInterface.ts delete mode 100644 v1/typechain-types/contracts/evm/interfaces/index.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/AttackerContract.sol/AttackerContract.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/AttackerContract.sol/Victim.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/AttackerContract.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/ERC20Mock.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/ZetaInteractorMock.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/ZetaReceiverMock.ts delete mode 100644 v1/typechain-types/contracts/evm/testing/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaInteractor.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts delete mode 100644 v1/typechain-types/contracts/evm/tools/interfaces/index.ts delete mode 100644 v1/typechain-types/contracts/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/Interfaces.sol/ISystem.ts delete mode 100644 v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20.ts delete mode 100644 v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20Metadata.ts delete mode 100644 v1/typechain-types/contracts/zevm/Interfaces.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContract.ts delete mode 100644 v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContractErrors.ts delete mode 100644 v1/typechain-types/contracts/zevm/SystemContract.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/WZETA.sol/WETH9.ts delete mode 100644 v1/typechain-types/contracts/zevm/WZETA.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20Errors.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZRC20.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/WZETA.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.ts delete mode 100644 v1/typechain-types/contracts/zevm/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/ISystem.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router01.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router02.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/IWETH9.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ISystem.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/IZRC20.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/ZContract.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/zContract.sol/UniversalContract.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/zContract.sol/ZContract.ts delete mode 100644 v1/typechain-types/contracts/zevm/interfaces/zContract.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors.ts delete mode 100644 v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock.ts delete mode 100644 v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/index.ts delete mode 100644 v1/typechain-types/contracts/zevm/testing/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/security/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/access/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/security/Pausable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/security/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/contracts/token/index.ts delete mode 100644 v1/typechain-types/factories/@openzeppelin/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2ERC20__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Factory__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Pair__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IERC20__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-core/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/contracts/UniswapV2Router02__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/contracts/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IERC20__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IWETH__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v2-periphery/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-core/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/IQuoter__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/@uniswap/v3-periphery/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/ERC20Custody__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/ZetaEth__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/ZetaNonEth__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ConnectorErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaInteractorErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/ZetaNonEthInterface__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/AttackerContract__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/Victim__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/ERC20Mock__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/ZetaInteractorMock__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/ZetaReceiverMock__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/testing/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaInteractor__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/evm/tools/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/contracts/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/Interfaces.sol/ISystem__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20Metadata__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/Interfaces.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContractErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContract__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/SystemContract.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/WZETA.sol/WETH9__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/WZETA.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20Errors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZRC20.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20Errors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20New__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/WZETA__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/ISystem__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router01__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router02__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/IWETH9__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ISystem__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/ZContract__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/UniversalContract__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/ZContract__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock__factory.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/index.ts delete mode 100644 v1/typechain-types/factories/contracts/zevm/testing/index.ts delete mode 100644 v1/typechain-types/factories/index.ts delete mode 100644 v1/typechain-types/hardhat.d.ts delete mode 100644 v1/typechain-types/index.ts delete mode 100644 v1/yarn.lock diff --git a/v1/.env.example b/v1/.env.example deleted file mode 100644 index aa168758a..000000000 --- a/v1/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1 -PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 diff --git a/v1/.eslintignore b/v1/.eslintignore deleted file mode 100644 index 7b3ae51a4..000000000 --- a/v1/.eslintignore +++ /dev/null @@ -1,8 +0,0 @@ -.yarn -artifacts -cache -dist -node_modules -typechain-types -docs -crytic-export \ No newline at end of file diff --git a/v1/.eslintrc.js b/v1/.eslintrc.js deleted file mode 100644 index a13a8dc22..000000000 --- a/v1/.eslintrc.js +++ /dev/null @@ -1,44 +0,0 @@ -const path = require("path"); - -const OFF = 0; - -/** - * @type {import("eslint").Linter.Config} - */ -module.exports = { - env: { - browser: false, - es2021: true, - mocha: true, - node: true, - }, - extends: ["plugin:prettier/recommended"], - parser: "@typescript-eslint/parser", - parserOptions: { - ecmaVersion: 12, - }, - plugins: ["@typescript-eslint", "prettier", "simple-import-sort", "sort-keys-fix", "typescript-sort-keys"], - rules: { - "@typescript-eslint/sort-type-union-intersection-members": "error", - camelcase: "off", - "no-console": OFF, - "simple-import-sort/exports": "error", - "simple-import-sort/imports": "error", - "sort-keys-fix/sort-keys-fix": "error", - "typescript-sort-keys/interface": "error", - "typescript-sort-keys/string-enum": "error", - }, - settings: { - "import/parsers": { - "@typescript-eslint/parser": [".js", ".jsx", ".ts", ".tsx", ".d.ts"], - }, - "import/resolver": { - node: { - extensions: [".js", ".jsx", ".ts", ".tsx", ".d.ts"], - }, - typescript: { - project: path.join(__dirname, "tsconfig.json"), - }, - }, - }, -}; diff --git a/v1/.solhint.json b/v1/.solhint.json deleted file mode 100644 index 918be2100..000000000 --- a/v1/.solhint.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "solhint:recommended", - "rules": { - "compiler-version": "off", - "func-visibility": ["warn", { "ignoreConstructors": true }], - "reason-string": ["warn", { "maxLength": 80 }], - "no-empty-blocks": "off", - "check-send-result": "off" - } -} diff --git a/v1/Dockerfile b/v1/Dockerfile deleted file mode 100644 index 48d6eaf2c..000000000 --- a/v1/Dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -# Set the base image to ethereum/client-go -FROM ethereum/client-go:alltools-v1.11.5 - -# Update and install dependencies -RUN apk update && \ - apk add jq unzip bash - -# Copy the scripts directory into the docker container -COPY . . - -# Make the script executable -RUN chmod +x /scripts/generate_go.sh - -# Set the working directory -WORKDIR / - -# Print the contents of /scripts/pkg after running the script -CMD ["ls", "-la", "pkg"] - -# Set the entry point to your script -ENTRYPOINT ["/bin/bash", "/scripts/generate_go.sh"] diff --git a/v1/contracts/evm/ERC20Custody.sol b/v1/contracts/evm/ERC20Custody.sol deleted file mode 100644 index 5c5a3455b..000000000 --- a/v1/contracts/evm/ERC20Custody.sol +++ /dev/null @@ -1,200 +0,0 @@ -// SPDX-License-Identifier: MIT -// v1.0, 2023-01-10 -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; -import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; - -/// @title ERC20Custody. -/// @notice ERC20Custody for depositing ERC20 assets into ZetaChain and making operations with them. -contract ERC20Custody is ReentrancyGuard { - using SafeERC20 for IERC20; - - error NotWhitelisted(); - error NotPaused(); - error InvalidSender(); - error InvalidTSSUpdater(); - error ZeroAddress(); - error IsPaused(); - error ZetaMaxFeeExceeded(); - error ZeroFee(); - - /// @notice If custody operations are paused. - bool public paused; - /// @notice TSSAddress is the TSS address collectively possessed by Zeta blockchain validators. - address public TSSAddress; - /// @notice Threshold Signature Scheme (TSS) [GG20] is a multi-sig ECDSA/EdDSA protocol. - address public TSSAddressUpdater; - /// @notice Current zeta fee for depositing funds into ZetaChain. - uint256 public zetaFee; - /// @notice Maximum zeta fee for transaction. - uint256 public immutable zetaMaxFee; - /// @notice Zeta ERC20 token . - IERC20 public immutable zeta; - /// @notice Mapping of whitelisted token => true/false. - mapping(IERC20 => bool) public whitelisted; - - event Paused(address sender); - event Unpaused(address sender); - event Whitelisted(IERC20 indexed asset); - event Unwhitelisted(IERC20 indexed asset); - event Deposited(bytes recipient, IERC20 indexed asset, uint256 amount, bytes message); - event Withdrawn(address indexed recipient, IERC20 indexed asset, uint256 amount); - event RenouncedTSSUpdater(address TSSAddressUpdater_); - event UpdatedTSSAddress(address TSSAddress_); - event UpdatedZetaFee(uint256 zetaFee_); - - /** - * @dev Only TSS address allowed modifier. - */ - modifier onlyTSS() { - if (msg.sender != TSSAddress) { - revert InvalidSender(); - } - _; - } - - /** - * @dev Only TSS address updater allowed modifier. - */ - modifier onlyTSSUpdater() { - if (msg.sender != TSSAddressUpdater) { - revert InvalidTSSUpdater(); - } - _; - } - - constructor(address TSSAddress_, address TSSAddressUpdater_, uint256 zetaFee_, uint256 zetaMaxFee_, IERC20 zeta_) { - TSSAddress = TSSAddress_; - TSSAddressUpdater = TSSAddressUpdater_; - zetaFee = zetaFee_; - zeta = zeta_; - zetaMaxFee = zetaMaxFee_; - } - - /** - * @dev Update the TSSAddress in case of Zeta blockchain validator nodes churn. - * @param TSSAddress_, new tss address. - */ - function updateTSSAddress(address TSSAddress_) external onlyTSSUpdater { - if (TSSAddress_ == address(0)) { - revert ZeroAddress(); - } - TSSAddress = TSSAddress_; - emit UpdatedTSSAddress(TSSAddress_); - } - - /** - * @dev Update zeta fee - * @param zetaFee_, new zeta fee - */ - function updateZetaFee(uint256 zetaFee_) external onlyTSS { - if (zetaFee_ == 0) { - revert ZeroFee(); - } - if (zetaFee_ > zetaMaxFee) { - revert ZetaMaxFeeExceeded(); - } - zetaFee = zetaFee_; - emit UpdatedZetaFee(zetaFee_); - } - - /** - * @dev Change the ownership of TSSAddressUpdater to the Zeta blockchain TSS nodes. - * Effectively, only Zeta blockchain validators collectively can update TSSAddress afterwards. - */ - function renounceTSSAddressUpdater() external onlyTSSUpdater { - if (TSSAddress == address(0)) { - revert ZeroAddress(); - } - TSSAddressUpdater = TSSAddress; - emit RenouncedTSSUpdater(msg.sender); - } - - /** - * @dev Pause custody operations. - */ - function pause() external onlyTSS { - if (paused) { - revert IsPaused(); - } - if (TSSAddress == address(0)) { - revert ZeroAddress(); - } - paused = true; - emit Paused(msg.sender); - } - - /** - * @dev Unpause custody operations. - */ - function unpause() external onlyTSS { - if (!paused) { - revert NotPaused(); - } - paused = false; - emit Unpaused(msg.sender); - } - - /** - * @dev Whitelist asset. - * @param asset, ERC20 asset. - */ - function whitelist(IERC20 asset) external onlyTSS { - whitelisted[asset] = true; - emit Whitelisted(asset); - } - - /** - * @dev Unwhitelist asset. - * @param asset, ERC20 asset. - */ - function unwhitelist(IERC20 asset) external onlyTSS { - whitelisted[asset] = false; - emit Unwhitelisted(asset); - } - - /** - * @dev Deposit asset amount to recipient with message that encodes additional zetachain evm call or message. - * @param recipient, recipient address. - * @param asset, ERC20 asset. - * @param amount, asset amount. - * @param message, bytes message or encoded zetechain call. - */ - function deposit( - bytes calldata recipient, - IERC20 asset, - uint256 amount, - bytes calldata message - ) external nonReentrant { - if (paused) { - revert IsPaused(); - } - if (!whitelisted[asset]) { - revert NotWhitelisted(); - } - if (zetaFee != 0 && address(zeta) != address(0)) { - zeta.safeTransferFrom(msg.sender, TSSAddress, zetaFee); - } - uint256 oldBalance = asset.balanceOf(address(this)); - asset.safeTransferFrom(msg.sender, address(this), amount); - // In case if there is a fee on a token transfer, we might not receive a full exepected amount - // and we need to correctly process that, o we subtract an old balance from a new balance, which should be an actual received amount. - emit Deposited(recipient, asset, asset.balanceOf(address(this)) - oldBalance, message); - } - - /** - * @dev Withdraw asset amount to recipient by custody TSS owner. - * @param recipient, recipient address. - * @param asset, ERC20 asset. - * @param amount, asset amount. - */ - function withdraw(address recipient, IERC20 asset, uint256 amount) external nonReentrant onlyTSS { - if (!whitelisted[asset]) { - revert NotWhitelisted(); - } - IERC20(asset).safeTransfer(recipient, amount); - emit Withdrawn(recipient, asset, amount); - } -} diff --git a/v1/contracts/evm/Zeta.eth.sol b/v1/contracts/evm/Zeta.eth.sol deleted file mode 100644 index ad0557903..000000000 --- a/v1/contracts/evm/Zeta.eth.sol +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; - -/** - * @dev ZetaEth is an implementation of OpenZeppelin's ERC20 - */ -contract ZetaEth is ERC20("Zeta", "ZETA") { - constructor(address creator, uint256 initialSupply) { - _mint(creator, initialSupply * (10 ** uint256(decimals()))); - } -} diff --git a/v1/contracts/evm/Zeta.non-eth.sol b/v1/contracts/evm/Zeta.non-eth.sol deleted file mode 100644 index 133018121..000000000 --- a/v1/contracts/evm/Zeta.non-eth.sol +++ /dev/null @@ -1,83 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; - -import "./interfaces/ZetaErrors.sol"; - -import "./interfaces/ZetaNonEthInterface.sol"; - -contract ZetaNonEth is ZetaNonEthInterface, ERC20Burnable, ZetaErrors { - address public connectorAddress; - - /** - * @dev Collectively held by Zeta blockchain validators - */ - address public tssAddress; - - /** - * @dev Initially a multi-sig, eventually held by Zeta blockchain validators (via renounceTssAddressUpdater) - */ - address public tssAddressUpdater; - - event Minted(address indexed mintee, uint256 amount, bytes32 indexed internalSendHash); - - event Burnt(address indexed burnee, uint256 amount); - - event TSSAddressUpdated(address callerAddress, address newTssAddress); - - event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress); - - event ConnectorAddressUpdated(address callerAddress, address newConnectorAddress); - - constructor(address tssAddress_, address tssAddressUpdater_) ERC20("Zeta", "ZETA") { - if (tssAddress_ == address(0) || tssAddressUpdater_ == address(0)) revert InvalidAddress(); - - tssAddress = tssAddress_; - tssAddressUpdater = tssAddressUpdater_; - } - - function updateTssAndConnectorAddresses(address tssAddress_, address connectorAddress_) external { - if (msg.sender != tssAddressUpdater && msg.sender != tssAddress) revert CallerIsNotTssOrUpdater(msg.sender); - if (tssAddress_ == address(0) || connectorAddress_ == address(0)) revert InvalidAddress(); - - tssAddress = tssAddress_; - connectorAddress = connectorAddress_; - - emit TSSAddressUpdated(msg.sender, tssAddress_); - emit ConnectorAddressUpdated(msg.sender, connectorAddress_); - } - - /** - * @dev Sets tssAddressUpdater to be tssAddress - */ - function renounceTssAddressUpdater() external { - if (msg.sender != tssAddressUpdater) revert CallerIsNotTssUpdater(msg.sender); - if (tssAddress == address(0)) revert InvalidAddress(); - - tssAddressUpdater = tssAddress; - emit TSSAddressUpdaterUpdated(msg.sender, tssAddress); - } - - function mint(address mintee, uint256 value, bytes32 internalSendHash) external override { - /** - * @dev Only Connector can mint. Minting requires burning the equivalent amount on another chain - */ - if (msg.sender != connectorAddress) revert CallerIsNotConnector(msg.sender); - - _mint(mintee, value); - - emit Minted(mintee, value, internalSendHash); - } - - function burnFrom(address account, uint256 amount) public override(ZetaNonEthInterface, ERC20Burnable) { - /** - * @dev Only Connector can burn. - */ - if (msg.sender != connectorAddress) revert CallerIsNotConnector(msg.sender); - - ERC20Burnable.burnFrom(account, amount); - - emit Burnt(account, amount); - } -} diff --git a/v1/contracts/evm/ZetaConnector.base.sol b/v1/contracts/evm/ZetaConnector.base.sol deleted file mode 100644 index 4ecf55eb2..000000000 --- a/v1/contracts/evm/ZetaConnector.base.sol +++ /dev/null @@ -1,194 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; -import "@openzeppelin/contracts/security/Pausable.sol"; - -import "./interfaces/ConnectorErrors.sol"; -import "./interfaces/ZetaInterfaces.sol"; - -/** - * @dev Main abstraction of ZetaConnector. - * This contract manages interactions between TSS and different chains. - * There's an instance of this contract on each chain supported by ZetaChain. - */ -contract ZetaConnectorBase is ConnectorErrors, Pausable { - address public immutable zetaToken; - - /** - * @dev Multisig contract to pause incoming transactions. - * The responsibility of pausing outgoing transactions is left to the protocol for more flexibility. - */ - address public pauserAddress; - - /** - * @dev Collectively held by ZetaChain validators. - */ - address public tssAddress; - - /** - * @dev This address will start pointing to a multisig contract, then it will become the TSS address itself. - */ - address public tssAddressUpdater; - - event ZetaSent( - address sourceTxOriginAddress, - address indexed zetaTxSenderAddress, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 zetaValueAndGas, - uint256 destinationGasLimit, - bytes message, - bytes zetaParams - ); - - event ZetaReceived( - bytes zetaTxSenderAddress, - uint256 indexed sourceChainId, - address indexed destinationAddress, - uint256 zetaValue, - bytes message, - bytes32 indexed internalSendHash - ); - - event ZetaReverted( - address zetaTxSenderAddress, - uint256 sourceChainId, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 remainingZetaValue, - bytes message, - bytes32 indexed internalSendHash - ); - - event TSSAddressUpdated(address callerAddress, address newTssAddress); - - event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress); - - event PauserAddressUpdated(address callerAddress, address newTssAddress); - - /** - * @dev Constructor requires initial addresses. - * zetaToken address is the only immutable one, while others can be updated. - */ - constructor(address zetaToken_, address tssAddress_, address tssAddressUpdater_, address pauserAddress_) { - if ( - zetaToken_ == address(0) || - tssAddress_ == address(0) || - tssAddressUpdater_ == address(0) || - pauserAddress_ == address(0) - ) { - revert ZetaCommonErrors.InvalidAddress(); - } - - zetaToken = zetaToken_; - tssAddress = tssAddress_; - tssAddressUpdater = tssAddressUpdater_; - pauserAddress = pauserAddress_; - } - - /** - * @dev Modifier to restrict actions to pauser address. - */ - modifier onlyPauser() { - if (msg.sender != pauserAddress) revert CallerIsNotPauser(msg.sender); - _; - } - - /** - * @dev Modifier to restrict actions to TSS address. - */ - modifier onlyTssAddress() { - if (msg.sender != tssAddress) revert CallerIsNotTss(msg.sender); - _; - } - - /** - * @dev Modifier to restrict actions to TSS updater address. - */ - modifier onlyTssUpdater() { - if (msg.sender != tssAddressUpdater) revert CallerIsNotTssUpdater(msg.sender); - _; - } - - /** - * @dev Update the pauser address. The only address allowed to do that is the current pauser. - */ - function updatePauserAddress(address pauserAddress_) external onlyPauser { - if (pauserAddress_ == address(0)) revert ZetaCommonErrors.InvalidAddress(); - - pauserAddress = pauserAddress_; - - emit PauserAddressUpdated(msg.sender, pauserAddress_); - } - - /** - * @dev Update the TSS address. The address can be updated by the TSS updater or the TSS address itself. - */ - function updateTssAddress(address tssAddress_) external { - if (msg.sender != tssAddress && msg.sender != tssAddressUpdater) revert CallerIsNotTssOrUpdater(msg.sender); - if (tssAddress_ == address(0)) revert ZetaCommonErrors.InvalidAddress(); - - tssAddress = tssAddress_; - - emit TSSAddressUpdated(msg.sender, tssAddress_); - } - - /** - * @dev Changes the ownership of tssAddressUpdater to be the one held by the ZetaChain TSS Signer nodes. - */ - function renounceTssAddressUpdater() external onlyTssUpdater { - if (tssAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - - tssAddressUpdater = tssAddress; - emit TSSAddressUpdaterUpdated(msg.sender, tssAddressUpdater); - } - - /** - * @dev Pause the input (send) transactions. - */ - - function pause() external onlyPauser { - _pause(); - } - - /** - * @dev Unpause the contract to allow transactions again. - */ - - function unpause() external onlyPauser { - _unpause(); - } - - /** - * @dev Entrypoint to send data and value through ZetaChain. - */ - function send(ZetaInterfaces.SendInput calldata input) external virtual {} - - /** - * @dev Handler to receive data from other chain. - * This method can be called only by TSS. Access validation is in implementation. - */ - function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external virtual {} - - /** - * @dev Handler to receive errors from other chain. - * This method can be called only by TSS. Access validation is in implementation. - */ - function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external virtual {} -} diff --git a/v1/contracts/evm/ZetaConnector.eth.sol b/v1/contracts/evm/ZetaConnector.eth.sol deleted file mode 100644 index d0aa2115d..000000000 --- a/v1/contracts/evm/ZetaConnector.eth.sol +++ /dev/null @@ -1,112 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; - -import "./interfaces/ConnectorErrors.sol"; -import "./ZetaConnector.base.sol"; -import "./interfaces/ZetaInterfaces.sol"; - -/** - * @dev ETH implementation of ZetaConnector. - * This contract manages interactions between TSS and different chains. - * This version is only for Ethereum network because in the other chains we mint and burn and in this one we lock and unlock. - */ -contract ZetaConnectorEth is ZetaConnectorBase { - constructor( - address zetaToken_, - address tssAddress_, - address tssAddressUpdater_, - address pauserAddress_ - ) ZetaConnectorBase(zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_) {} - - function getLockedAmount() external view returns (uint256) { - return IERC20(zetaToken).balanceOf(address(this)); - } - - /** - * @dev Entrypoint to send data through ZetaChain - * This call locks the token on the contract and emits an event with all the data needed by the protocol. - */ - function send(ZetaInterfaces.SendInput calldata input) external override whenNotPaused { - bool success = IERC20(zetaToken).transferFrom(msg.sender, address(this), input.zetaValueAndGas); - if (!success) revert ZetaTransferError(); - - emit ZetaSent( - tx.origin, - msg.sender, - input.destinationChainId, - input.destinationAddress, - input.zetaValueAndGas, - input.destinationGasLimit, - input.message, - input.zetaParams - ); - } - - /** - * @dev Handler to receive data from other chain. - * This method can be called only by TSS. - * Transfers the Zeta tokens to destination and calls onZetaMessage if it's needed. - */ - function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external override onlyTssAddress { - bool success = IERC20(zetaToken).transfer(destinationAddress, zetaValue); - if (!success) revert ZetaTransferError(); - - if (message.length > 0) { - ZetaReceiver(destinationAddress).onZetaMessage( - ZetaInterfaces.ZetaMessage(zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message) - ); - } - - emit ZetaReceived(zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash); - } - - /** - * @dev Handler to receive errors from other chain. - * This method can be called only by TSS. - * Transfers the Zeta tokens to destination and calls onZetaRevert if it's needed. - */ - function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external override whenNotPaused onlyTssAddress { - bool success = IERC20(zetaToken).transfer(zetaTxSenderAddress, remainingZetaValue); - if (!success) revert ZetaTransferError(); - - if (message.length > 0) { - ZetaReceiver(zetaTxSenderAddress).onZetaRevert( - ZetaInterfaces.ZetaRevert( - zetaTxSenderAddress, - sourceChainId, - destinationAddress, - destinationChainId, - remainingZetaValue, - message - ) - ); - } - - emit ZetaReverted( - zetaTxSenderAddress, - sourceChainId, - destinationChainId, - destinationAddress, - remainingZetaValue, - message, - internalSendHash - ); - } -} diff --git a/v1/contracts/evm/ZetaConnector.non-eth.sol b/v1/contracts/evm/ZetaConnector.non-eth.sol deleted file mode 100644 index 2844bcd87..000000000 --- a/v1/contracts/evm/ZetaConnector.non-eth.sol +++ /dev/null @@ -1,123 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; - -import "./ZetaConnector.base.sol"; -import "./interfaces/ZetaInterfaces.sol"; -import "./interfaces/ZetaNonEthInterface.sol"; - -/** - * @dev Non ETH implementation of ZetaConnector. - * This contract manages interactions between TSS and different chains. - * This version is for every chain but Etherum network because in the other chains we mint and burn and in Etherum we lock and unlock - */ -contract ZetaConnectorNonEth is ZetaConnectorBase { - uint256 public maxSupply = 2 ** 256 - 1; - - event MaxSupplyUpdated(address callerAddress, uint256 newMaxSupply); - - constructor( - address zetaTokenAddress_, - address tssAddress_, - address tssAddressUpdater_, - address pauserAddress_ - ) ZetaConnectorBase(zetaTokenAddress_, tssAddress_, tssAddressUpdater_, pauserAddress_) {} - - function getLockedAmount() external view returns (uint256) { - return ZetaNonEthInterface(zetaToken).balanceOf(address(this)); - } - - function setMaxSupply(uint256 maxSupply_) external onlyTssAddress { - maxSupply = maxSupply_; - emit MaxSupplyUpdated(msg.sender, maxSupply_); - } - - /** - * @dev Entry point to send data to protocol - * This call burn the token and emit an event with all the data needed by the protocol - */ - function send(ZetaInterfaces.SendInput calldata input) external override whenNotPaused { - ZetaNonEthInterface(zetaToken).burnFrom(msg.sender, input.zetaValueAndGas); - - emit ZetaSent( - tx.origin, - msg.sender, - input.destinationChainId, - input.destinationAddress, - input.zetaValueAndGas, - input.destinationGasLimit, - input.message, - input.zetaParams - ); - } - - /** - * @dev Handler to receive data from other chain. - * This method can be called only by TSS. - * Transfer the Zeta tokens to destination and calls onZetaMessage if it's needed. - * To perform the transfer mint new tokens, validating first the maxSupply allowed in the current chain. - */ - function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external override onlyTssAddress { - if (zetaValue + ZetaNonEthInterface(zetaToken).totalSupply() > maxSupply) revert ExceedsMaxSupply(maxSupply); - ZetaNonEthInterface(zetaToken).mint(destinationAddress, zetaValue, internalSendHash); - - if (message.length > 0) { - ZetaReceiver(destinationAddress).onZetaMessage( - ZetaInterfaces.ZetaMessage(zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message) - ); - } - - emit ZetaReceived(zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash); - } - - /** - * @dev Handler to receive errors from other chain. - * This method can be called only by TSS. - * Transfer the Zeta tokens to destination and calls onZetaRevert if it's needed. - * To perform the transfer mint new tokens, validating first the maxSupply allowed in the current chain. - */ - function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external override whenNotPaused onlyTssAddress { - if (remainingZetaValue + ZetaNonEthInterface(zetaToken).totalSupply() > maxSupply) - revert ExceedsMaxSupply(maxSupply); - ZetaNonEthInterface(zetaToken).mint(zetaTxSenderAddress, remainingZetaValue, internalSendHash); - - if (message.length > 0) { - ZetaReceiver(zetaTxSenderAddress).onZetaRevert( - ZetaInterfaces.ZetaRevert( - zetaTxSenderAddress, - sourceChainId, - destinationAddress, - destinationChainId, - remainingZetaValue, - message - ) - ); - } - - emit ZetaReverted( - zetaTxSenderAddress, - sourceChainId, - destinationChainId, - destinationAddress, - remainingZetaValue, - message, - internalSendHash - ); - } -} diff --git a/v1/contracts/evm/interfaces/ConnectorErrors.sol b/v1/contracts/evm/interfaces/ConnectorErrors.sol deleted file mode 100644 index 5fd7d744e..000000000 --- a/v1/contracts/evm/interfaces/ConnectorErrors.sol +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -/** - * @dev Interface with connector custom errors - */ -interface ConnectorErrors { - // @dev Thrown when caller is not the address defined as paused address - error CallerIsNotPauser(address caller); - - // @dev Thrown when caller is not the address defined as TSS address - error CallerIsNotTss(address caller); - - // @dev Thrown when caller is not the address defined as TSS Updater address - error CallerIsNotTssUpdater(address caller); - - // @dev Thrown when caller is not the address defined as TSS or TSS Updater address - error CallerIsNotTssOrUpdater(address caller); - - // @dev Thrown when Zeta can't be transferred for some reason - error ZetaTransferError(); - - // @dev Thrown when maxSupply will be exceed if minting will proceed - error ExceedsMaxSupply(uint256 maxSupply); -} diff --git a/v1/contracts/evm/interfaces/ZetaErrors.sol b/v1/contracts/evm/interfaces/ZetaErrors.sol deleted file mode 100644 index 3cc378288..000000000 --- a/v1/contracts/evm/interfaces/ZetaErrors.sol +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -/** - * @dev Common custom errors - */ -interface ZetaErrors { - // @dev Thrown when caller is not the address defined as TSS address - error CallerIsNotTss(address caller); - - // @dev Thrown when caller is not the address defined as connector address - error CallerIsNotConnector(address caller); - - // @dev Thrown when caller is not the address defined as TSS Updater address - error CallerIsNotTssUpdater(address caller); - - // @dev Thrown when caller is not the address defined as TSS or TSS Updater address - error CallerIsNotTssOrUpdater(address caller); - - // @dev Thrown when a contract receives an invalid address param, mostly zero address validation - error InvalidAddress(); - - // @dev Thrown when Zeta can't be transferred for some reason - error ZetaTransferError(); -} diff --git a/v1/contracts/evm/interfaces/ZetaInteractorErrors.sol b/v1/contracts/evm/interfaces/ZetaInteractorErrors.sol deleted file mode 100644 index df10982f9..000000000 --- a/v1/contracts/evm/interfaces/ZetaInteractorErrors.sol +++ /dev/null @@ -1,19 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -/** - * @dev Interface with Zeta Interactor errors - */ -interface ZetaInteractorErrors { - // @dev Thrown when try to send a message or tokens to a non whitelisted chain - error InvalidDestinationChainId(); - - // @dev Thrown when the caller is invalid. e.g.: if onZetaMessage or onZetaRevert are not called by Connector - error InvalidCaller(address caller); - - // @dev Thrown when message on onZetaMessage has the wrong format - error InvalidZetaMessageCall(); - - // @dev Thrown when message on onZetaRevert has the wrong format - error InvalidZetaRevertCall(); -} diff --git a/v1/contracts/evm/interfaces/ZetaInterfaces.sol b/v1/contracts/evm/interfaces/ZetaInterfaces.sol deleted file mode 100644 index 68b737ecc..000000000 --- a/v1/contracts/evm/interfaces/ZetaInterfaces.sol +++ /dev/null @@ -1,110 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -interface ZetaInterfaces { - /** - * @dev Use SendInput to interact with the Connector: connector.send(SendInput) - */ - struct SendInput { - /// @dev Chain id of the destination chain. More about chain ids https://docs.zetachain.com/learn/glossary#chain-id - uint256 destinationChainId; - /// @dev Address receiving the message on the destination chain (expressed in bytes since it can be non-EVM) - bytes destinationAddress; - /// @dev Gas limit for the destination chain's transaction - uint256 destinationGasLimit; - /// @dev An encoded, arbitrary message to be parsed by the destination contract - bytes message; - /// @dev ZETA to be sent cross-chain + ZetaChain gas fees + destination chain gas fees (expressed in ZETA) - uint256 zetaValueAndGas; - /// @dev Optional parameters for the ZetaChain protocol - bytes zetaParams; - } - - /** - * @dev Our Connector calls onZetaMessage with this struct as argument - */ - struct ZetaMessage { - bytes zetaTxSenderAddress; - uint256 sourceChainId; - address destinationAddress; - /// @dev Remaining ZETA from zetaValueAndGas after subtracting ZetaChain gas fees and destination gas fees - uint256 zetaValue; - bytes message; - } - - /** - * @dev Our Connector calls onZetaRevert with this struct as argument - */ - struct ZetaRevert { - address zetaTxSenderAddress; - uint256 sourceChainId; - bytes destinationAddress; - uint256 destinationChainId; - /// @dev Equals to: zetaValueAndGas - ZetaChain gas fees - destination chain gas fees - source chain revert tx gas fees - uint256 remainingZetaValue; - bytes message; - } -} - -interface ZetaConnector { - /** - * @dev Sending value and data cross-chain is as easy as calling connector.send(SendInput) - */ - function send(ZetaInterfaces.SendInput calldata input) external; -} - -interface ZetaReceiver { - /** - * @dev onZetaMessage is called when a cross-chain message reaches a contract - */ - function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) external; - - /** - * @dev onZetaRevert is called when a cross-chain message reverts. - * It's useful to rollback to the original state - */ - function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external; -} - -/** - * @dev ZetaTokenConsumer makes it easier to handle the following situations: - * - Getting Zeta using native coin (to pay for destination gas while using `connector.send`) - * - Getting Zeta using a token (to pay for destination gas while using `connector.send`) - * - Getting native coin using Zeta (to return unused destination gas when `onZetaRevert` is executed) - * - Getting a token using Zeta (to return unused destination gas when `onZetaRevert` is executed) - * @dev The interface can be implemented using different strategies, like UniswapV2, UniswapV3, etc - */ -interface ZetaTokenConsumer { - event EthExchangedForZeta(uint256 amountIn, uint256 amountOut); - event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut); - event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut); - event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut); - - function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable returns (uint256); - - function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount - ) external returns (uint256); - - function getEthFromZeta( - address destinationAddress, - uint256 minAmountOut, - uint256 zetaTokenAmount - ) external returns (uint256); - - function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount - ) external returns (uint256); - - function hasZetaLiquidity() external view returns (bool); -} - -interface ZetaCommonErrors { - error InvalidAddress(); -} diff --git a/v1/contracts/evm/interfaces/ZetaNonEthInterface.sol b/v1/contracts/evm/interfaces/ZetaNonEthInterface.sol deleted file mode 100644 index 617e6ca18..000000000 --- a/v1/contracts/evm/interfaces/ZetaNonEthInterface.sol +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; - -/** - * @dev ZetaNonEthInterface is a mintable / burnable version of IERC20 - */ -interface ZetaNonEthInterface is IERC20 { - function burnFrom(address account, uint256 amount) external; - - function mint(address mintee, uint256 value, bytes32 internalSendHash) external; -} diff --git a/v1/contracts/evm/testing/AttackerContract.sol b/v1/contracts/evm/testing/AttackerContract.sol deleted file mode 100644 index 45606d6f4..000000000 --- a/v1/contracts/evm/testing/AttackerContract.sol +++ /dev/null @@ -1,54 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; -import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; - -interface Victim { - function deposit(bytes calldata recipient, address asset, uint256 amount, bytes calldata message) external; - - function withdraw(address recipient, address asset, uint256 amount) external; -} - -contract AttackerContract { - address public victimContractAddress; - uint256 private _victimMethod; - - constructor(address victimContractAddress_, address wzeta, uint256 victimMethod) { - victimContractAddress = victimContractAddress_; - IERC20(wzeta).approve(victimContractAddress, type(uint256).max); - _victimMethod = victimMethod; - } - - // Fallback function to receive ETH - receive() external payable {} - - function attackDeposit() internal { - Victim(victimContractAddress).deposit("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", address(this), 0, "0x00"); - } - - function attackWidrawal() internal { - Victim(victimContractAddress).withdraw(0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266, address(this), 0); - } - - function attack() internal { - if (_victimMethod == 1) { - attackDeposit(); - } else if (_victimMethod == 2) { - attackWidrawal(); - } - } - - function balanceOf(address account) external returns (uint256) { - attack(); - return 0; - } - - function transferFrom(address from, address to, uint256 amount) public returns (bool) { - attack(); - return true; - } - - function transfer(address to, uint256 amount) public returns (bool) { - attack(); - return true; - } -} diff --git a/v1/contracts/evm/testing/ERC20Mock.sol b/v1/contracts/evm/testing/ERC20Mock.sol deleted file mode 100644 index 61cdc0ce1..000000000 --- a/v1/contracts/evm/testing/ERC20Mock.sol +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; - -/** - * @dev ZetaEth is an implementation of OpenZeppelin's ERC20 - */ -contract ERC20Mock is ERC20 { - constructor(string memory name, string memory symbol, address creator, uint256 initialSupply) ERC20(name, symbol) { - _mint(creator, initialSupply * (10 ** uint256(decimals()))); - } -} diff --git a/v1/contracts/evm/testing/TestUniswapV3Contracts.sol b/v1/contracts/evm/testing/TestUniswapV3Contracts.sol deleted file mode 100644 index bf3077b87..000000000 --- a/v1/contracts/evm/testing/TestUniswapV3Contracts.sol +++ /dev/null @@ -1,171 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -pragma solidity >=0.7.5; -pragma abicoder v2; - -/// @title Non-fungible token for positions -/// @notice Wraps Uniswap V3 positions in a non-fungible token interface which allows for them to be transferred -/// and authorized. -interface INonfungiblePositionManager { - /// @notice Emitted when liquidity is increased for a position NFT - /// @dev Also emitted when a token is minted - /// @param tokenId The ID of the token for which liquidity was increased - /// @param liquidity The amount by which liquidity for the NFT position was increased - /// @param amount0 The amount of token0 that was paid for the increase in liquidity - /// @param amount1 The amount of token1 that was paid for the increase in liquidity - event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); - /// @notice Emitted when liquidity is decreased for a position NFT - /// @param tokenId The ID of the token for which liquidity was decreased - /// @param liquidity The amount by which liquidity for the NFT position was decreased - /// @param amount0 The amount of token0 that was accounted for the decrease in liquidity - /// @param amount1 The amount of token1 that was accounted for the decrease in liquidity - event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); - /// @notice Emitted when tokens are collected for a position NFT - /// @dev The amounts reported may not be exactly equivalent to the amounts transferred, due to rounding behavior - /// @param tokenId The ID of the token for which underlying tokens were collected - /// @param recipient The address of the account that received the collected tokens - /// @param amount0 The amount of token0 owed to the position that was collected - /// @param amount1 The amount of token1 owed to the position that was collected - event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1); - - /// @notice Returns the position information associated with a given token ID. - /// @dev Throws if the token ID is not valid. - /// @param tokenId The ID of the token that represents the position - /// @return nonce The nonce for permits - /// @return operator The address that is approved for spending - /// @return token0 The address of the token0 for a specific pool - /// @return token1 The address of the token1 for a specific pool - /// @return fee The fee associated with the pool - /// @return tickLower The lower end of the tick range for the position - /// @return tickUpper The higher end of the tick range for the position - /// @return liquidity The liquidity of the position - /// @return feeGrowthInside0LastX128 The fee growth of token0 as of the last action on the individual position - /// @return feeGrowthInside1LastX128 The fee growth of token1 as of the last action on the individual position - /// @return tokensOwed0 The uncollected amount of token0 owed to the position as of the last computation - /// @return tokensOwed1 The uncollected amount of token1 owed to the position as of the last computation - function positions( - uint256 tokenId - ) - external - view - returns ( - uint96 nonce, - address operator, - address token0, - address token1, - uint24 fee, - int24 tickLower, - int24 tickUpper, - uint128 liquidity, - uint256 feeGrowthInside0LastX128, - uint256 feeGrowthInside1LastX128, - uint128 tokensOwed0, - uint128 tokensOwed1 - ); - - struct MintParams { - address token0; - address token1; - uint24 fee; - int24 tickLower; - int24 tickUpper; - uint256 amount0Desired; - uint256 amount1Desired; - uint256 amount0Min; - uint256 amount1Min; - address recipient; - uint256 deadline; - } - - /// @notice Creates a new position wrapped in a NFT - /// @dev Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized - /// a method does not exist, i.e. the pool is assumed to be initialized. - /// @param params The params necessary to mint a position, encoded as `MintParams` in calldata - /// @return tokenId The ID of the token that represents the minted position - /// @return liquidity The amount of liquidity for this position - /// @return amount0 The amount of token0 - /// @return amount1 The amount of token1 - function mint( - MintParams calldata params - ) external payable returns (uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); - - struct IncreaseLiquidityParams { - uint256 tokenId; - uint256 amount0Desired; - uint256 amount1Desired; - uint256 amount0Min; - uint256 amount1Min; - uint256 deadline; - } - - /// @notice Increases the amount of liquidity in a position, with tokens paid by the `msg.sender` - /// @param params tokenId The ID of the token for which liquidity is being increased, - /// amount0Desired The desired amount of token0 to be spent, - /// amount1Desired The desired amount of token1 to be spent, - /// amount0Min The minimum amount of token0 to spend, which serves as a slippage check, - /// amount1Min The minimum amount of token1 to spend, which serves as a slippage check, - /// deadline The time by which the transaction must be included to effect the change - /// @return liquidity The new liquidity amount as a result of the increase - /// @return amount0 The amount of token0 to acheive resulting liquidity - /// @return amount1 The amount of token1 to acheive resulting liquidity - function increaseLiquidity( - IncreaseLiquidityParams calldata params - ) external payable returns (uint128 liquidity, uint256 amount0, uint256 amount1); - - struct DecreaseLiquidityParams { - uint256 tokenId; - uint128 liquidity; - uint256 amount0Min; - uint256 amount1Min; - uint256 deadline; - } - - /// @notice Decreases the amount of liquidity in a position and accounts it to the position - /// @param params tokenId The ID of the token for which liquidity is being decreased, - /// amount The amount by which liquidity will be decreased, - /// amount0Min The minimum amount of token0 that should be accounted for the burned liquidity, - /// amount1Min The minimum amount of token1 that should be accounted for the burned liquidity, - /// deadline The time by which the transaction must be included to effect the change - /// @return amount0 The amount of token0 accounted to the position's tokens owed - /// @return amount1 The amount of token1 accounted to the position's tokens owed - function decreaseLiquidity( - DecreaseLiquidityParams calldata params - ) external payable returns (uint256 amount0, uint256 amount1); - - struct CollectParams { - uint256 tokenId; - address recipient; - uint128 amount0Max; - uint128 amount1Max; - } - - /// @notice Collects up to a maximum amount of fees owed to a specific position to the recipient - /// @param params tokenId The ID of the NFT for which tokens are being collected, - /// recipient The account that should receive the tokens, - /// amount0Max The maximum amount of token0 to collect, - /// amount1Max The maximum amount of token1 to collect - /// @return amount0 The amount of fees collected in token0 - /// @return amount1 The amount of fees collected in token1 - function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1); - - /// @notice Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens - /// must be collected first. - /// @param tokenId The ID of the token that is being burned - function burn(uint256 tokenId) external payable; -} - -// import "@uniswap/v3-periphery/contracts/interfaces/IPoolInitializer.sol"; -interface IPoolInitializer { - /// @notice Creates a new pool if it does not exist, then initializes if not initialized - /// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool - /// @param token0 The contract address of token0 of the pool - /// @param token1 The contract address of token1 of the pool - /// @param fee The fee amount of the v3 pool for the specified token pair - /// @param sqrtPriceX96 The initial square root price of the pool as a Q64.96 value - /// @return pool Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary - function createAndInitializePoolIfNecessary( - address token0, - address token1, - uint24 fee, - uint160 sqrtPriceX96 - ) external payable returns (address pool); -} diff --git a/v1/contracts/evm/testing/ZetaInteractorMock.sol b/v1/contracts/evm/testing/ZetaInteractorMock.sol deleted file mode 100644 index 81a1602fa..000000000 --- a/v1/contracts/evm/testing/ZetaInteractorMock.sol +++ /dev/null @@ -1,17 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/access/Ownable2Step.sol"; -import "../tools/ZetaInteractor.sol"; - -contract ZetaInteractorMock is Ownable2Step, ZetaInteractor, ZetaReceiver { - constructor(address zetaConnectorAddress) ZetaInteractor(zetaConnectorAddress) {} - - function onZetaMessage( - ZetaInterfaces.ZetaMessage calldata zetaMessage - ) external override isValidMessageCall(zetaMessage) {} - - function onZetaRevert( - ZetaInterfaces.ZetaRevert calldata zetaRevert - ) external override isValidRevertCall(zetaRevert) {} -} diff --git a/v1/contracts/evm/testing/ZetaReceiverMock.sol b/v1/contracts/evm/testing/ZetaReceiverMock.sol deleted file mode 100644 index 808d07b7f..000000000 --- a/v1/contracts/evm/testing/ZetaReceiverMock.sol +++ /dev/null @@ -1,18 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "../interfaces/ZetaInterfaces.sol"; - -contract ZetaReceiverMock is ZetaReceiver { - event MockOnZetaMessage(address destinationAddress); - - event MockOnZetaRevert(address zetaTxSenderAddress); - - function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) external override { - emit MockOnZetaMessage(zetaMessage.destinationAddress); - } - - function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external override { - emit MockOnZetaRevert(zetaRevert.zetaTxSenderAddress); - } -} diff --git a/v1/contracts/evm/tools/ImmutableCreate2Factory.sol b/v1/contracts/evm/tools/ImmutableCreate2Factory.sol deleted file mode 100644 index c96253a4b..000000000 --- a/v1/contracts/evm/tools/ImmutableCreate2Factory.sol +++ /dev/null @@ -1,209 +0,0 @@ -pragma solidity 0.5.10; // optimization enabled, 99999 runs, evm: petersburg - -interface Ownable { - function transferOwnership(address newOwner) external; -} - -/** - * @title Immutable Create2 Contract Factory - * @author 0age - * @notice This contract provides a safeCreate2 function that takes a salt value - * and a block of initialization code as arguments and passes them into inline - * assembly. The contract prevents redeploys by maintaining a mapping of all - * contracts that have already been deployed, and prevents frontrunning or other - * collisions by requiring that the first 20 bytes of the salt are equal to the - * address of the caller (this can be bypassed by setting the first 20 bytes to - * the null address). There is also a view function that computes the address of - * the contract that will be created when submitting a given salt or nonce along - * with a given block of initialization code. - * @dev This contract has not yet been fully tested or audited - proceed with - * caution and please share any exploits or optimizations you discover. - */ -contract ImmutableCreate2Factory { - // mapping to track which addresses have already been deployed. - mapping(address => bool) private _deployed; - - function safeCreate2Internal( - bytes32 salt, - bytes memory initializationCode - ) internal returns (address deploymentAddress) { - // move the initialization code from calldata to memory. - bytes memory initCode = initializationCode; - - // determine the target address for contract deployment. - address targetDeploymentAddress = address( - uint160( // downcast to match the address type. - uint256( // convert to uint to truncate upper digits. - keccak256( // compute the CREATE2 hash using 4 inputs. - abi.encodePacked( // pack all inputs to the hash together. - hex"ff", // start with 0xff to distinguish from RLP. - address(this), // this contract will be the caller. - salt, // pass in the supplied salt value. - keccak256(abi.encodePacked(initCode)) // pass in the hash of initialization code. - ) - ) - ) - ) - ); - - // ensure that a contract hasn't been previously deployed to target address. - require(!_deployed[targetDeploymentAddress], "Invalid contract creation - contract has already been deployed."); - - // using inline assembly: load data and length of data, then call CREATE2. - assembly { - // solhint-disable-line - let encoded_data := add(0x20, initCode) // load initialization code. - let encoded_size := mload(initCode) // load the init code's length. - deploymentAddress := create2( - // call CREATE2 with 4 arguments. - callvalue, // forward any attached value. - encoded_data, // pass in initialization code. - encoded_size, // pass in init code's length. - salt // pass in the salt value. - ) - } - - // check address against target to ensure that deployment was successful. - require( - deploymentAddress == targetDeploymentAddress, - "Failed to deploy contract using provided salt and initialization code." - ); - - // record the deployment of the contract to prevent redeploys. - _deployed[deploymentAddress] = true; - } - - /** - * @dev Create a contract using CREATE2 by submitting a given salt or nonce - * along with the initialization code for the contract. Note that the first 20 - * bytes of the salt must match those of the calling address, which prevents - * contract creation events from being submitted by unintended parties. - * @param salt bytes32 The nonce that will be passed into the CREATE2 call. - * @param initializationCode bytes The initialization code that will be passed - * into the CREATE2 call. - * @return Address of the contract that will be created, or the null address - * if a contract already exists at that address. - */ - function safeCreate2( - bytes32 salt, - bytes memory initializationCode - ) public payable containsCaller(salt) returns (address deploymentAddress) { - return safeCreate2Internal(salt, initializationCode); - } - - /** - * @dev Compute the address of the contract that will be created when - * submitting a given salt or nonce to the contract along with the contract's - * initialization code. The CREATE2 address is computed in accordance with - * EIP-1014, and adheres to the formula therein of - * `keccak256( 0xff ++ address ++ salt ++ keccak256(init_code)))[12:]` when - * performing the computation. The computed address is then checked for any - * existing contract code - if so, the null address will be returned instead. - * @param salt bytes32 The nonce passed into the CREATE2 address calculation. - * @param initCode bytes The contract initialization code to be used. - * that will be passed into the CREATE2 address calculation. - * @return Address of the contract that will be created, or the null address - * if a contract has already been deployed to that address. - */ - function findCreate2Address( - bytes32 salt, - bytes calldata initCode - ) external view returns (address deploymentAddress) { - // determine the address where the contract will be deployed. - deploymentAddress = address( - uint160( // downcast to match the address type. - uint256( // convert to uint to truncate upper digits. - keccak256( // compute the CREATE2 hash using 4 inputs. - abi.encodePacked( // pack all inputs to the hash together. - hex"ff", // start with 0xff to distinguish from RLP. - address(this), // this contract will be the caller. - salt, // pass in the supplied salt value. - keccak256(abi.encodePacked(initCode)) // pass in the hash of initialization code. - ) - ) - ) - ) - ); - - // return null address to signify failure if contract has been deployed. - if (_deployed[deploymentAddress]) { - return address(0); - } - } - - /** - * @dev Compute the address of the contract that will be created when - * submitting a given salt or nonce to the contract along with the keccak256 - * hash of the contract's initialization code. The CREATE2 address is computed - * in accordance with EIP-1014, and adheres to the formula therein of - * `keccak256( 0xff ++ address ++ salt ++ keccak256(init_code)))[12:]` when - * performing the computation. The computed address is then checked for any - * existing contract code - if so, the null address will be returned instead. - * @param salt bytes32 The nonce passed into the CREATE2 address calculation. - * @param initCodeHash bytes32 The keccak256 hash of the initialization code - * that will be passed into the CREATE2 address calculation. - * @return Address of the contract that will be created, or the null address - * if a contract has already been deployed to that address. - */ - function findCreate2AddressViaHash( - bytes32 salt, - bytes32 initCodeHash - ) external view returns (address deploymentAddress) { - // determine the address where the contract will be deployed. - deploymentAddress = address( - uint160( // downcast to match the address type. - uint256( // convert to uint to truncate upper digits. - keccak256( // compute the CREATE2 hash using 4 inputs. - abi.encodePacked( // pack all inputs to the hash together. - hex"ff", // start with 0xff to distinguish from RLP. - address(this), // this contract will be the caller. - salt, // pass in the supplied salt value. - initCodeHash // pass in the hash of initialization code. - ) - ) - ) - ) - ); - - // return null address to signify failure if contract has been deployed. - if (_deployed[deploymentAddress]) { - return address(0); - } - } - - /** - * @dev Determine if a contract has already been deployed by the factory to a - * given address. - * @param deploymentAddress address The contract address to check. - * @return True if the contract has been deployed, false otherwise. - */ - function hasBeenDeployed(address deploymentAddress) external view returns (bool) { - // determine if a contract has been deployed to the provided address. - return _deployed[deploymentAddress]; - } - - /** - * @dev Modifier to ensure that the first 20 bytes of a submitted salt match - * those of the calling account. This provides protection against the salt - * being stolen by frontrunners or other attackers. The protection can also be - * bypassed if desired by setting each of the first 20 bytes to zero. - * @param salt bytes32 The salt value to check against the calling address. - */ - modifier containsCaller(bytes32 salt) { - // prevent contract submissions from being stolen from tx.pool by requiring - // that the first 20 bytes of the submitted salt match msg.sender. - require( - (address(bytes20(salt)) == msg.sender) || (bytes20(salt) == bytes20(0)), - "Invalid salt - first 20 bytes of the salt must match calling address." - ); - _; - } - - function safeCreate2AndTransfer( - bytes32 salt, - bytes calldata initializationCode - ) external payable containsCaller(salt) returns (address deploymentAddress) { - deploymentAddress = safeCreate2Internal(salt, initializationCode); - Ownable(deploymentAddress).transferOwnership(msg.sender); - } -} diff --git a/v1/contracts/evm/tools/ZetaInteractor.sol b/v1/contracts/evm/tools/ZetaInteractor.sol deleted file mode 100644 index 3ec126786..000000000 --- a/v1/contracts/evm/tools/ZetaInteractor.sol +++ /dev/null @@ -1,56 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/access/Ownable2Step.sol"; - -import "../interfaces/ZetaInterfaces.sol"; -import "../interfaces/ZetaInteractorErrors.sol"; - -abstract contract ZetaInteractor is Ownable2Step, ZetaInteractorErrors { - bytes32 constant ZERO_BYTES = keccak256(new bytes(0)); - uint256 internal immutable currentChainId; - ZetaConnector public immutable connector; - - /** - * @dev Maps a chain id to its corresponding address of the MultiChainSwap contract - * The address is expressed in bytes to allow non-EVM chains - * This mapping is useful, mainly, for two reasons: - * - Given a chain id, the contract is able to route a transaction to its corresponding address - * - To check that the messages (onZetaMessage, onZetaRevert) come from a trusted source - */ - mapping(uint256 => bytes) public interactorsByChainId; - - modifier isValidMessageCall(ZetaInterfaces.ZetaMessage calldata zetaMessage) { - _isValidCaller(); - if (keccak256(zetaMessage.zetaTxSenderAddress) != keccak256(interactorsByChainId[zetaMessage.sourceChainId])) - revert InvalidZetaMessageCall(); - _; - } - - modifier isValidRevertCall(ZetaInterfaces.ZetaRevert calldata zetaRevert) { - _isValidCaller(); - if (zetaRevert.zetaTxSenderAddress != address(this)) revert InvalidZetaRevertCall(); - _; - } - - constructor(address zetaConnectorAddress) { - if (zetaConnectorAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - currentChainId = block.chainid; - connector = ZetaConnector(zetaConnectorAddress); - } - - function _isValidCaller() private view { - if (msg.sender != address(connector)) revert InvalidCaller(msg.sender); - } - - /** - * @dev Useful for contracts that inherit from this one - */ - function _isValidChainId(uint256 chainId) internal view returns (bool) { - return (keccak256(interactorsByChainId[chainId]) != ZERO_BYTES); - } - - function setInteractorByChainId(uint256 destinationChainId, bytes calldata contractAddress) external onlyOwner { - interactorsByChainId[destinationChainId] = contractAddress; - } -} diff --git a/v1/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol b/v1/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol deleted file mode 100644 index e4fbc397b..000000000 --- a/v1/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol +++ /dev/null @@ -1,220 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/interfaces/IERC20.sol"; -import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol"; -import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol"; -import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; - -import "../interfaces/ZetaInterfaces.sol"; - -interface ZetaTokenConsumerUniV3Errors { - error InputCantBeZero(); - - error ErrorSendingETH(); - - error ReentrancyError(); -} - -interface WETH9 { - function withdraw(uint256 wad) external; -} - -interface ISwapRouterPancake is IUniswapV3SwapCallback { - struct ExactInputSingleParams { - address tokenIn; - address tokenOut; - uint24 fee; - address recipient; - uint256 amountIn; - uint256 amountOutMinimum; - uint160 sqrtPriceLimitX96; - } - - /// @notice Swaps `amountIn` of one token for as much as possible of another token - /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata - /// @return amountOut The amount of the received token - function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); - - struct ExactInputParams { - bytes path; - address recipient; - uint256 amountIn; - uint256 amountOutMinimum; - } - - /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path - /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata - /// @return amountOut The amount of the received token - function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); -} - -/** - * @dev Uniswap V3 strategy for ZetaTokenConsumer - */ -contract ZetaTokenConsumerPancakeV3 is ZetaTokenConsumer, ZetaTokenConsumerUniV3Errors { - using SafeERC20 for IERC20; - uint256 internal constant MAX_DEADLINE = 200; - - uint24 public immutable zetaPoolFee; - uint24 public immutable tokenPoolFee; - - address public immutable WETH9Address; - address public immutable zetaToken; - - ISwapRouterPancake public immutable pancakeV3Router; - IUniswapV3Factory public immutable uniswapV3Factory; - - bool internal _locked; - - constructor( - address zetaToken_, - address pancakeV3Router_, - address uniswapV3Factory_, - address WETH9Address_, - uint24 zetaPoolFee_, - uint24 tokenPoolFee_ - ) { - if ( - zetaToken_ == address(0) || - pancakeV3Router_ == address(0) || - uniswapV3Factory_ == address(0) || - WETH9Address_ == address(0) - ) revert ZetaCommonErrors.InvalidAddress(); - - zetaToken = zetaToken_; - pancakeV3Router = ISwapRouterPancake(pancakeV3Router_); - uniswapV3Factory = IUniswapV3Factory(uniswapV3Factory_); - WETH9Address = WETH9Address_; - zetaPoolFee = zetaPoolFee_; - tokenPoolFee = tokenPoolFee_; - } - - modifier nonReentrant() { - if (_locked) revert ReentrancyError(); - _locked = true; - _; - _locked = false; - } - - receive() external payable {} - - function getZetaFromEth( - address destinationAddress, - uint256 minAmountOut - ) external payable override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (msg.value == 0) revert InputCantBeZero(); - - ISwapRouterPancake.ExactInputSingleParams memory params = ISwapRouterPancake.ExactInputSingleParams({ - tokenIn: WETH9Address, - tokenOut: zetaToken, - fee: zetaPoolFee, - recipient: destinationAddress, - amountIn: msg.value, - amountOutMinimum: minAmountOut, - sqrtPriceLimitX96: 0 - }); - - uint256 amountOut = pancakeV3Router.exactInputSingle{value: msg.value}(params); - - emit EthExchangedForZeta(msg.value, amountOut); - return amountOut; - } - - function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0) || inputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (inputTokenAmount == 0) revert InputCantBeZero(); - - IERC20(inputToken).safeTransferFrom(msg.sender, address(this), inputTokenAmount); - IERC20(inputToken).safeApprove(address(pancakeV3Router), inputTokenAmount); - - ISwapRouterPancake.ExactInputParams memory params = ISwapRouterPancake.ExactInputParams({ - path: abi.encodePacked(inputToken, tokenPoolFee, WETH9Address, zetaPoolFee, zetaToken), - recipient: destinationAddress, - amountIn: inputTokenAmount, - amountOutMinimum: minAmountOut - }); - - uint256 amountOut = pancakeV3Router.exactInput(params); - - emit TokenExchangedForZeta(inputToken, inputTokenAmount, amountOut); - return amountOut; - } - - function getEthFromZeta( - address destinationAddress, - uint256 minAmountOut, - uint256 zetaTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(pancakeV3Router), zetaTokenAmount); - - ISwapRouterPancake.ExactInputSingleParams memory params = ISwapRouterPancake.ExactInputSingleParams({ - tokenIn: zetaToken, - tokenOut: WETH9Address, - fee: zetaPoolFee, - recipient: address(this), - amountIn: zetaTokenAmount, - amountOutMinimum: minAmountOut, - sqrtPriceLimitX96: 0 - }); - - uint256 amountOut = pancakeV3Router.exactInputSingle(params); - - WETH9(WETH9Address).withdraw(amountOut); - - emit ZetaExchangedForEth(zetaTokenAmount, amountOut); - - (bool sent, ) = destinationAddress.call{value: amountOut}(""); - if (!sent) revert ErrorSendingETH(); - - return amountOut; - } - - function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount - ) external override nonReentrant returns (uint256) { - if (destinationAddress == address(0) || outputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(pancakeV3Router), zetaTokenAmount); - - ISwapRouterPancake.ExactInputParams memory params = ISwapRouterPancake.ExactInputParams({ - path: abi.encodePacked(zetaToken, zetaPoolFee, WETH9Address, tokenPoolFee, outputToken), - recipient: destinationAddress, - amountIn: zetaTokenAmount, - amountOutMinimum: minAmountOut - }); - - uint256 amountOut = pancakeV3Router.exactInput(params); - - emit ZetaExchangedForToken(outputToken, zetaTokenAmount, amountOut); - return amountOut; - } - - function hasZetaLiquidity() external view override returns (bool) { - address poolAddress = uniswapV3Factory.getPool(WETH9Address, zetaToken, zetaPoolFee); - - if (poolAddress == address(0)) { - return false; - } - - //@dev: if pool does exist, get its liquidity - IUniswapV3Pool pool = IUniswapV3Pool(poolAddress); - return pool.liquidity() > 0; - } -} diff --git a/v1/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol b/v1/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol deleted file mode 100644 index a4ce8240f..000000000 --- a/v1/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol +++ /dev/null @@ -1,207 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/interfaces/IERC20.sol"; -import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import "@uniswap/v3-periphery/contracts/interfaces/IQuoter.sol"; - -import "../interfaces/ZetaInterfaces.sol"; -import "./interfaces/TridentConcentratedLiquidityPoolFactory.sol"; -import "./interfaces/TridentIPoolRouter.sol"; - -interface ZetaTokenConsumerTridentErrors { - error InputCantBeZero(); - - error ErrorSendingETH(); - - error ReentrancyError(); -} - -interface WETH9 { - function deposit() external payable; - - function withdraw(uint256 wad) external; - - function depositTo(address to) external payable; - - function withdrawTo(address payable to, uint256 value) external; -} - -/** - * @dev Trident strategy for ZetaTokenConsumer - */ -contract ZetaTokenConsumerTrident is ZetaTokenConsumer, ZetaTokenConsumerTridentErrors { - using SafeERC20 for IERC20; - uint256 internal constant MAX_DEADLINE = 200; - - address internal immutable WETH9Address; - address public immutable zetaToken; - - IPoolRouter public immutable tridentRouter; - ConcentratedLiquidityPoolFactory public immutable poolFactory; - - bool internal _locked; - - constructor(address zetaToken_, address uniswapV3Router_, address WETH9Address_, address poolFactory_) { - if ( - zetaToken_ == address(0) || - uniswapV3Router_ == address(0) || - WETH9Address_ == address(0) || - poolFactory_ == address(0) - ) revert ZetaCommonErrors.InvalidAddress(); - - zetaToken = zetaToken_; - tridentRouter = IPoolRouter(uniswapV3Router_); - poolFactory = ConcentratedLiquidityPoolFactory(poolFactory_); - WETH9Address = WETH9Address_; - } - - modifier nonReentrant() { - if (_locked) revert ReentrancyError(); - _locked = true; - _; - _locked = false; - } - - receive() external payable {} - - function getPair(address token0, address token1) internal pure returns (address, address) { - if (token0 < token1) return (token0, token1); - - return (token1, token0); - } - - function getZetaFromEth( - address destinationAddress, - uint256 minAmountOut - ) external payable override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (msg.value == 0) revert InputCantBeZero(); - - (address token0, address token1) = getPair(WETH9Address, zetaToken); - address[] memory pairPools = poolFactory.getPools(token0, token1, 0, 1); - - IPoolRouter.ExactInputSingleParams memory params = IPoolRouter.ExactInputSingleParams({ - tokenIn: address(0), - amountIn: msg.value, - amountOutMinimum: minAmountOut, - pool: pairPools[0], - to: destinationAddress, - unwrap: false - }); - - uint256 amountOut = tridentRouter.exactInputSingle{value: msg.value}(params); - - emit EthExchangedForZeta(msg.value, amountOut); - return amountOut; - } - - function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0) || inputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (inputTokenAmount == 0) revert InputCantBeZero(); - - IERC20(inputToken).safeTransferFrom(msg.sender, address(this), inputTokenAmount); - IERC20(inputToken).safeApprove(address(tridentRouter), inputTokenAmount); - - (address token0, address token1) = getPair(inputToken, WETH9Address); - address[] memory pairPools1 = poolFactory.getPools(token0, token1, 0, 1); - - (token0, token1) = getPair(WETH9Address, zetaToken); - address[] memory pairPools2 = poolFactory.getPools(token0, token1, 0, 1); - - address[] memory path = new address[](2); - path[0] = pairPools1[0]; - path[1] = pairPools2[0]; - - IPoolRouter.ExactInputParams memory params = IPoolRouter.ExactInputParams({ - tokenIn: inputToken, - amountIn: inputTokenAmount, - amountOutMinimum: minAmountOut, - path: path, - to: destinationAddress, - unwrap: false - }); - - uint256 amountOut = tridentRouter.exactInput(params); - - emit TokenExchangedForZeta(inputToken, inputTokenAmount, amountOut); - return amountOut; - } - - function getEthFromZeta( - address destinationAddress, - uint256 minAmountOut, - uint256 zetaTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(tridentRouter), zetaTokenAmount); - - (address token0, address token1) = getPair(zetaToken, WETH9Address); - address[] memory pairPools = poolFactory.getPools(token0, token1, 0, 1); - - IPoolRouter.ExactInputSingleParams memory params = IPoolRouter.ExactInputSingleParams({ - tokenIn: zetaToken, - amountIn: zetaTokenAmount, - amountOutMinimum: minAmountOut, - pool: pairPools[0], - to: destinationAddress, - unwrap: true - }); - - uint256 amountOut = tridentRouter.exactInputSingle(params); - - emit ZetaExchangedForEth(zetaTokenAmount, amountOut); - - return amountOut; - } - - function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount - ) external override nonReentrant returns (uint256) { - if (destinationAddress == address(0) || outputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(tridentRouter), zetaTokenAmount); - - (address token0, address token1) = getPair(zetaToken, WETH9Address); - address[] memory pairPools1 = poolFactory.getPools(token0, token1, 0, 1); - - (token0, token1) = getPair(WETH9Address, outputToken); - address[] memory pairPools2 = poolFactory.getPools(token0, token1, 0, 1); - - address[] memory path = new address[](2); - path[0] = pairPools1[0]; - path[1] = pairPools2[0]; - - IPoolRouter.ExactInputParams memory params = IPoolRouter.ExactInputParams({ - tokenIn: zetaToken, - amountIn: zetaTokenAmount, - amountOutMinimum: minAmountOut, - path: path, - to: destinationAddress, - unwrap: false - }); - - uint256 amountOut = tridentRouter.exactInput(params); - - emit ZetaExchangedForToken(outputToken, zetaTokenAmount, amountOut); - return amountOut; - } - - function hasZetaLiquidity() external view override returns (bool) { - //@TODO: Implement - return false; - } -} diff --git a/v1/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol b/v1/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol deleted file mode 100644 index 28c492687..000000000 --- a/v1/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol +++ /dev/null @@ -1,173 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/interfaces/IERC20.sol"; -import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; - -import "../interfaces/ZetaInterfaces.sol"; - -interface ZetaTokenConsumerUniV2Errors { - error InputCantBeZero(); -} - -/** - * @dev Uniswap V2 strategy for ZetaTokenConsumer - */ -contract ZetaTokenConsumerUniV2 is ZetaTokenConsumer, ZetaTokenConsumerUniV2Errors { - using SafeERC20 for IERC20; - uint256 internal constant MAX_DEADLINE = 200; - - address internal immutable wETH; - address public immutable zetaToken; - - IUniswapV2Router02 internal immutable uniswapV2Router; - - constructor(address zetaToken_, address uniswapV2Router_) { - if (zetaToken_ == address(0) || uniswapV2Router_ == address(0)) revert ZetaCommonErrors.InvalidAddress(); - - zetaToken = zetaToken_; - uniswapV2Router = IUniswapV2Router02(uniswapV2Router_); - wETH = IUniswapV2Router02(uniswapV2Router_).WETH(); - } - - function getZetaFromEth( - address destinationAddress, - uint256 minAmountOut - ) external payable override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (msg.value == 0) revert InputCantBeZero(); - - address[] memory path = new address[](2); - path[0] = wETH; - path[1] = zetaToken; - - uint256[] memory amounts = uniswapV2Router.swapExactETHForTokens{value: msg.value}( - minAmountOut, - path, - destinationAddress, - block.timestamp + MAX_DEADLINE - ); - - uint256 amountOut = amounts[path.length - 1]; - - emit EthExchangedForZeta(msg.value, amountOut); - return amountOut; - } - - function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0) || inputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (inputTokenAmount == 0) revert InputCantBeZero(); - - IERC20(inputToken).safeTransferFrom(msg.sender, address(this), inputTokenAmount); - IERC20(inputToken).safeApprove(address(uniswapV2Router), inputTokenAmount); - - address[] memory path; - if (inputToken == wETH) { - path = new address[](2); - path[0] = wETH; - path[1] = zetaToken; - } else { - path = new address[](3); - path[0] = inputToken; - path[1] = wETH; - path[2] = zetaToken; - } - - uint256[] memory amounts = uniswapV2Router.swapExactTokensForTokens( - inputTokenAmount, - minAmountOut, - path, - destinationAddress, - block.timestamp + MAX_DEADLINE - ); - uint256 amountOut = amounts[path.length - 1]; - - emit TokenExchangedForZeta(inputToken, inputTokenAmount, amountOut); - return amountOut; - } - - function getEthFromZeta( - address destinationAddress, - uint256 minAmountOut, - uint256 zetaTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(uniswapV2Router), zetaTokenAmount); - - address[] memory path = new address[](2); - path[0] = zetaToken; - path[1] = wETH; - - uint256[] memory amounts = uniswapV2Router.swapExactTokensForETH( - zetaTokenAmount, - minAmountOut, - path, - destinationAddress, - block.timestamp + MAX_DEADLINE - ); - - uint256 amountOut = amounts[path.length - 1]; - - emit ZetaExchangedForEth(zetaTokenAmount, amountOut); - return amountOut; - } - - function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0) || outputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(uniswapV2Router), zetaTokenAmount); - - address[] memory path; - if (outputToken == wETH) { - path = new address[](2); - path[0] = zetaToken; - path[1] = wETH; - } else { - path = new address[](3); - path[0] = zetaToken; - path[1] = wETH; - path[2] = outputToken; - } - - uint256[] memory amounts = uniswapV2Router.swapExactTokensForTokens( - zetaTokenAmount, - minAmountOut, - path, - destinationAddress, - block.timestamp + MAX_DEADLINE - ); - - uint256 amountOut = amounts[path.length - 1]; - - emit ZetaExchangedForToken(outputToken, zetaTokenAmount, amountOut); - return amountOut; - } - - function hasZetaLiquidity() external view override returns (bool) { - address[] memory path = new address[](2); - path[0] = wETH; - path[1] = zetaToken; - - try uniswapV2Router.getAmountsOut(1, path) returns (uint256[] memory amounts) { - return amounts[path.length - 1] > 0; - } catch { - return false; - } - } -} diff --git a/v1/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol b/v1/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol deleted file mode 100644 index 648ac1a26..000000000 --- a/v1/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol +++ /dev/null @@ -1,195 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/interfaces/IERC20.sol"; -import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol"; -import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol"; -import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; - -import "../interfaces/ZetaInterfaces.sol"; - -interface ZetaTokenConsumerUniV3Errors { - error InputCantBeZero(); - - error ErrorSendingETH(); - - error ReentrancyError(); -} - -interface WETH9 { - function withdraw(uint256 wad) external; -} - -/** - * @dev Uniswap V3 strategy for ZetaTokenConsumer - */ -contract ZetaTokenConsumerUniV3 is ZetaTokenConsumer, ZetaTokenConsumerUniV3Errors { - using SafeERC20 for IERC20; - uint256 internal constant MAX_DEADLINE = 200; - - uint24 public immutable zetaPoolFee; - uint24 public immutable tokenPoolFee; - - address public immutable WETH9Address; - address public immutable zetaToken; - - ISwapRouter public immutable uniswapV3Router; - IUniswapV3Factory public immutable uniswapV3Factory; - - bool internal _locked; - - constructor( - address zetaToken_, - address uniswapV3Router_, - address uniswapV3Factory_, - address WETH9Address_, - uint24 zetaPoolFee_, - uint24 tokenPoolFee_ - ) { - if ( - zetaToken_ == address(0) || - uniswapV3Router_ == address(0) || - uniswapV3Factory_ == address(0) || - WETH9Address_ == address(0) - ) revert ZetaCommonErrors.InvalidAddress(); - - zetaToken = zetaToken_; - uniswapV3Router = ISwapRouter(uniswapV3Router_); - uniswapV3Factory = IUniswapV3Factory(uniswapV3Factory_); - WETH9Address = WETH9Address_; - zetaPoolFee = zetaPoolFee_; - tokenPoolFee = tokenPoolFee_; - } - - modifier nonReentrant() { - if (_locked) revert ReentrancyError(); - _locked = true; - _; - _locked = false; - } - - receive() external payable {} - - function getZetaFromEth( - address destinationAddress, - uint256 minAmountOut - ) external payable override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (msg.value == 0) revert InputCantBeZero(); - - ISwapRouter.ExactInputSingleParams memory params = ISwapRouter.ExactInputSingleParams({ - deadline: block.timestamp + MAX_DEADLINE, - tokenIn: WETH9Address, - tokenOut: zetaToken, - fee: zetaPoolFee, - recipient: destinationAddress, - amountIn: msg.value, - amountOutMinimum: minAmountOut, - sqrtPriceLimitX96: 0 - }); - - uint256 amountOut = uniswapV3Router.exactInputSingle{value: msg.value}(params); - - emit EthExchangedForZeta(msg.value, amountOut); - return amountOut; - } - - function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0) || inputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (inputTokenAmount == 0) revert InputCantBeZero(); - - IERC20(inputToken).safeTransferFrom(msg.sender, address(this), inputTokenAmount); - IERC20(inputToken).safeApprove(address(uniswapV3Router), inputTokenAmount); - - ISwapRouter.ExactInputParams memory params = ISwapRouter.ExactInputParams({ - deadline: block.timestamp + MAX_DEADLINE, - path: abi.encodePacked(inputToken, tokenPoolFee, WETH9Address, zetaPoolFee, zetaToken), - recipient: destinationAddress, - amountIn: inputTokenAmount, - amountOutMinimum: minAmountOut - }); - - uint256 amountOut = uniswapV3Router.exactInput(params); - - emit TokenExchangedForZeta(inputToken, inputTokenAmount, amountOut); - return amountOut; - } - - function getEthFromZeta( - address destinationAddress, - uint256 minAmountOut, - uint256 zetaTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(uniswapV3Router), zetaTokenAmount); - - ISwapRouter.ExactInputSingleParams memory params = ISwapRouter.ExactInputSingleParams({ - deadline: block.timestamp + MAX_DEADLINE, - tokenIn: zetaToken, - tokenOut: WETH9Address, - fee: zetaPoolFee, - recipient: address(this), - amountIn: zetaTokenAmount, - amountOutMinimum: minAmountOut, - sqrtPriceLimitX96: 0 - }); - - uint256 amountOut = uniswapV3Router.exactInputSingle(params); - - WETH9(WETH9Address).withdraw(amountOut); - - emit ZetaExchangedForEth(zetaTokenAmount, amountOut); - - (bool sent, ) = destinationAddress.call{value: amountOut}(""); - if (!sent) revert ErrorSendingETH(); - - return amountOut; - } - - function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount - ) external override nonReentrant returns (uint256) { - if (destinationAddress == address(0) || outputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - - IERC20(zetaToken).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(zetaToken).safeApprove(address(uniswapV3Router), zetaTokenAmount); - - ISwapRouter.ExactInputParams memory params = ISwapRouter.ExactInputParams({ - deadline: block.timestamp + MAX_DEADLINE, - path: abi.encodePacked(zetaToken, zetaPoolFee, WETH9Address, tokenPoolFee, outputToken), - recipient: destinationAddress, - amountIn: zetaTokenAmount, - amountOutMinimum: minAmountOut - }); - - uint256 amountOut = uniswapV3Router.exactInput(params); - - emit ZetaExchangedForToken(outputToken, zetaTokenAmount, amountOut); - return amountOut; - } - - function hasZetaLiquidity() external view override returns (bool) { - address poolAddress = uniswapV3Factory.getPool(WETH9Address, zetaToken, zetaPoolFee); - - if (poolAddress == address(0)) { - return false; - } - - //@dev: if pool does exist, get its liquidity - IUniswapV3Pool pool = IUniswapV3Pool(poolAddress); - return pool.liquidity() > 0; - } -} diff --git a/v1/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol b/v1/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol deleted file mode 100644 index 3d45028a6..000000000 --- a/v1/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol +++ /dev/null @@ -1,149 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "@openzeppelin/contracts/interfaces/IERC20.sol"; -import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; - -import "../interfaces/ZetaInterfaces.sol"; -import "../../zevm/interfaces/IWZETA.sol"; - -interface ZetaTokenConsumerZEVMErrors { - error InputCantBeZero(); - - error ErrorSendingETH(); - - error ReentrancyError(); - - error NotEnoughValue(); - - error InputCantBeZeta(); - - error OutputCantBeZeta(); - - error OnlyWZETAAllowed(); - - error InvalidForZEVM(); -} - -/** - * @dev ZetaTokenConsumer for ZEVM - */ -contract ZetaTokenConsumerZEVM is ZetaTokenConsumer, ZetaTokenConsumerZEVMErrors { - using SafeERC20 for IERC20; - uint256 internal constant MAX_DEADLINE = 200; - - address public immutable WETH9Address; - - IUniswapV2Router02 internal immutable uniswapV2Router; - - constructor(address WETH9Address_, address uniswapV2Router_) { - if (WETH9Address_ == address(0) || uniswapV2Router_ == address(0)) revert ZetaCommonErrors.InvalidAddress(); - - WETH9Address = WETH9Address_; - uniswapV2Router = IUniswapV2Router02(uniswapV2Router_); - } - - function getZetaFromEth( - address destinationAddress, - uint256 minAmountOut - ) external payable override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (msg.value == 0) revert InputCantBeZero(); - if (msg.value < minAmountOut) revert NotEnoughValue(); - - IWETH9(WETH9Address).deposit{value: msg.value}(); - IERC20(WETH9Address).safeTransfer(destinationAddress, msg.value); - emit EthExchangedForZeta(msg.value, msg.value); - return msg.value; - } - - function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0) || inputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (inputTokenAmount == 0) revert InputCantBeZero(); - if (inputToken == WETH9Address) revert InputCantBeZeta(); - - IERC20(inputToken).safeTransferFrom(msg.sender, address(this), inputTokenAmount); - IERC20(inputToken).safeApprove(address(uniswapV2Router), inputTokenAmount); - - address[] memory path = new address[](2); - path[0] = inputToken; - path[1] = WETH9Address; - - uint256[] memory amounts = uniswapV2Router.swapExactTokensForTokens( - inputTokenAmount, - minAmountOut, - path, - destinationAddress, - block.timestamp + MAX_DEADLINE - ); - uint256 amountOut = amounts[path.length - 1]; - - emit TokenExchangedForZeta(inputToken, inputTokenAmount, amountOut); - return amountOut; - } - - function getEthFromZeta( - address destinationAddress, - uint256 minAmountOut, - uint256 zetaTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - if (zetaTokenAmount < minAmountOut) revert NotEnoughValue(); - - IERC20(WETH9Address).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IWETH9(WETH9Address).withdraw(zetaTokenAmount); - - emit ZetaExchangedForEth(zetaTokenAmount, zetaTokenAmount); - - (bool sent, ) = destinationAddress.call{value: zetaTokenAmount}(""); - if (!sent) revert ErrorSendingETH(); - - return zetaTokenAmount; - } - - function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount - ) external override returns (uint256) { - if (destinationAddress == address(0) || outputToken == address(0)) revert ZetaCommonErrors.InvalidAddress(); - if (zetaTokenAmount == 0) revert InputCantBeZero(); - if (outputToken == WETH9Address) revert OutputCantBeZeta(); - - IERC20(WETH9Address).safeTransferFrom(msg.sender, address(this), zetaTokenAmount); - IERC20(WETH9Address).safeApprove(address(uniswapV2Router), zetaTokenAmount); - - address[] memory path = new address[](2); - path[0] = WETH9Address; - path[1] = outputToken; - - uint256[] memory amounts = uniswapV2Router.swapExactTokensForTokens( - zetaTokenAmount, - minAmountOut, - path, - destinationAddress, - block.timestamp + MAX_DEADLINE - ); - - uint256 amountOut = amounts[path.length - 1]; - - emit ZetaExchangedForToken(outputToken, zetaTokenAmount, amountOut); - return amountOut; - } - - function hasZetaLiquidity() external view override returns (bool) { - revert InvalidForZEVM(); - } - - receive() external payable { - if (msg.sender != WETH9Address) revert OnlyWZETAAllowed(); - } -} diff --git a/v1/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol b/v1/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol deleted file mode 100644 index d8c288985..000000000 --- a/v1/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0 - -/* - * - * ##### ## # # #### ###### ## ##### ##### #### ##### #### #### #### # - * # # # # ## # # # # # # # # # # # # # # # # # # # # - * # # # # # # # # ##### # # # # # # # # # # # # # # # - * ##### ###### # # # # ### # ###### ##### ##### # # # # # # # # # - * # # # # ## # # # # # # # # # # # # # # # # # # - * # # # # # #### ###### # # # # # #### # #### #### #### ###### - * - */ - -pragma solidity >=0.8.0; - -interface ConcentratedLiquidityPoolFactory { - function getPools( - address token0, - address token1, - uint256 startIndex, - uint256 count - ) external view returns (address[] memory pairPools); -} diff --git a/v1/contracts/evm/tools/interfaces/TridentIPoolRouter.sol b/v1/contracts/evm/tools/interfaces/TridentIPoolRouter.sol deleted file mode 100644 index 3cc16f32b..000000000 --- a/v1/contracts/evm/tools/interfaces/TridentIPoolRouter.sol +++ /dev/null @@ -1,71 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0 - -/* - * - * ##### ## # # #### ###### ## ##### ##### #### ##### #### #### #### # - * # # # # ## # # # # # # # # # # # # # # # # # # # # - * # # # # # # # # ##### # # # # # # # # # # # # # # # - * ##### ###### # # # # ### # ###### ##### ##### # # # # # # # # # - * # # # # ## # # # # # # # # # # # # # # # # # # - * # # # # # #### ###### # # # # # #### # #### #### #### ###### - * - */ - -pragma solidity >=0.8.0; - -interface IPoolRouter { - struct ExactInputSingleParams { - address tokenIn; /// @dev the input token address. If tokenIn is address(0), msg.value will be wrapped and used as input token - uint256 amountIn; /// @dev The amount of input tokens to send - uint256 amountOutMinimum; /// @dev minimum required amount of output token after swap - address pool; /// @dev pool address to swap - address to; /// @dev address to receive - bool unwrap; /// @dev unwrap if output token is wrapped klay - } - - struct ExactInputParams { - address tokenIn; /// @dev the token address to swap-in. If tokenIn is address(0), msg.value will be wrapped and used as input token - uint256 amountIn; /// @dev The amount of input tokens to send. - uint256 amountOutMinimum; /// @dev minimum required amount of output token after swap - address[] path; /// @dev An array of pool addresses to pass through - address to; /// @dev recipient of the output tokens - bool unwrap; /// @dev unwrap if output token is wrapped klay - } - - struct ExactOutputSingleParams { - address tokenIn; /// @dev the input token address. If tokenIn is address(0), msg.value will be wrapped and used as input token - uint256 amountOut; /// @dev The amount of output tokens to receive - uint256 amountInMaximum; /// @dev maximum available amount of input token after swap - address pool; /// @dev pool address to swap - address to; /// @dev address to receive - bool unwrap; /// @dev unwrap if output token is wrapped klay - } - - struct ExactOutputParams { - address tokenIn; /// @dev the token address to swap-in. If tokenIn is address(0), msg.value will be wrapped and used as input token - uint256 amountOut; /// @dev The amount of output tokens to receive - uint256 amountInMaximum; /// @dev maximum available amount of input token after swap - address[] path; /// @dev An array of pool addresses to pass through - address to; /// @dev recipient of the output tokens - bool unwrap; /// @dev unwrap if output token is wrapped klay - } - - /// @notice Swap amountIn of one token for as much as possible of another token - /// @param params The parameters necessary for the swap, encoded as ExactInputSingleParams in calldata - function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); - - /// @notice Swap amountIn of one token for as much as possible of another along the specified path - /// @param params The parameters necessary for the multi-hop swap, encoded as ExactInputParams in calldata - function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); - - /// @notice Swaps as little as possible of one token for `amountOut` of another token - /// @param params The parameters necessary for the swap, encoded as ExactOutputSingleParams in calldata - function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn); - - /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed) - /// @param params The parameters necessary for the multi-hop swap, encoded as ExactOutputParams in calldata - function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn); - - /// @notice Recover mistakenly sent tokens - function sweep(address token, uint256 amount, address recipient) external payable; -} diff --git a/v1/contracts/zevm/SystemContract.sol b/v1/contracts/zevm/SystemContract.sol deleted file mode 100644 index 272fbdfd9..000000000 --- a/v1/contracts/zevm/SystemContract.sol +++ /dev/null @@ -1,173 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "./interfaces/zContract.sol"; -import "./interfaces/IZRC20.sol"; - -/** - * @dev Custom errors for SystemContract - */ -interface SystemContractErrors { - error CallerIsNotFungibleModule(); - error InvalidTarget(); - error CantBeIdenticalAddresses(); - error CantBeZeroAddress(); - error ZeroAddress(); -} - -/** - * @dev The system contract it's called by the protocol to interact with the blockchain. - * Also includes a lot of tools to make easier to interact with ZetaChain. - */ -contract SystemContract is SystemContractErrors { - /// @notice Map to know the gas price of each chain given a chain id. - mapping(uint256 => uint256) public gasPriceByChainId; - /// @notice Map to know the ZRC20 address of a token given a chain id, ex zETH, zBNB etc. - mapping(uint256 => address) public gasCoinZRC20ByChainId; - // @dev: Map to know uniswap V2 pool of ZETA/ZRC20 given a chain id. This refer to the build in uniswap deployed at genesis. - mapping(uint256 => address) public gasZetaPoolByChainId; - - /// @notice Fungible address is always the same, it's on protocol level. - address public constant FUNGIBLE_MODULE_ADDRESS = 0x735b14BB79463307AAcBED86DAf3322B1e6226aB; - /// @notice Uniswap V2 addresses. - address public immutable uniswapv2FactoryAddress; - address public immutable uniswapv2Router02Address; - /// @notice Address of the wrapped ZETA to interact with Uniswap V2. - address public wZetaContractAddress; - /// @notice Address of ZEVM Zeta Connector. - address public zetaConnectorZEVMAddress; - - /// @notice Custom SystemContract errors. - event SystemContractDeployed(); - event SetGasPrice(uint256, uint256); - event SetGasCoin(uint256, address); - event SetGasZetaPool(uint256, address); - event SetWZeta(address); - event SetConnectorZEVM(address); - - /** - * @dev Only fungible module can deploy a system contract. - */ - constructor(address wzeta_, address uniswapv2Factory_, address uniswapv2Router02_) { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - wZetaContractAddress = wzeta_; - uniswapv2FactoryAddress = uniswapv2Factory_; - uniswapv2Router02Address = uniswapv2Router02_; - emit SystemContractDeployed(); - } - - /** - * @dev Deposit foreign coins into ZRC20 and call user specified contract on zEVM. - * @param context, context data for deposit. - * @param zrc20, zrc20 address for deposit. - * @param amount, amount to deposit. - * @param target, contract address to make a call after deposit. - * @param message, calldata for a call. - */ - function depositAndCall( - zContext calldata context, - address zrc20, - uint256 amount, - address target, - bytes calldata message - ) external { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - if (target == FUNGIBLE_MODULE_ADDRESS || target == address(this)) revert InvalidTarget(); - - IZRC20(zrc20).deposit(target, amount); - zContract(target).onCrossChainCall(context, zrc20, amount, message); - } - - /** - * @dev Sort token addresses lexicographically. Used to handle return values from pairs sorted in the order. - * @param tokenA, tokenA address. - * @param tokenB, tokenB address. - * @return token0 token1, returns sorted token addresses,. - */ - function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { - if (tokenA == tokenB) revert CantBeIdenticalAddresses(); - (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); - if (token0 == address(0)) revert CantBeZeroAddress(); - } - - /** - * @dev Calculates the CREATE2 address for a pair without making any external calls. - * @param factory, factory address. - * @param tokenA, tokenA address. - * @param tokenB, tokenB address. - * @return pair tokens pair address. - */ - function uniswapv2PairFor(address factory, address tokenA, address tokenB) public pure returns (address pair) { - (address token0, address token1) = sortTokens(tokenA, tokenB); - pair = address( - uint160( - uint256( - keccak256( - abi.encodePacked( - hex"ff", - factory, - keccak256(abi.encodePacked(token0, token1)), - hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash - ) - ) - ) - ) - ); - } - - /** - * @dev Fungible module updates the gas price oracle periodically. - * @param chainID, chain id. - * @param price, new gas price. - */ - function setGasPrice(uint256 chainID, uint256 price) external { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - gasPriceByChainId[chainID] = price; - emit SetGasPrice(chainID, price); - } - - /** - * @dev Setter for gasCoinZRC20ByChainId map. - * @param chainID, chain id. - * @param zrc20, ZRC20 address. - */ - function setGasCoinZRC20(uint256 chainID, address zrc20) external { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - gasCoinZRC20ByChainId[chainID] = zrc20; - emit SetGasCoin(chainID, zrc20); - } - - /** - * @dev Set the pool wzeta/erc20 address. - * @param chainID, chain id. - * @param erc20, pair for uniswap wzeta/erc20. - */ - function setGasZetaPool(uint256 chainID, address erc20) external { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - address pool = uniswapv2PairFor(uniswapv2FactoryAddress, wZetaContractAddress, erc20); - gasZetaPoolByChainId[chainID] = pool; - emit SetGasZetaPool(chainID, pool); - } - - /** - * @dev Setter for wrapped ZETA address. - * @param addr, wzeta new address. - */ - function setWZETAContractAddress(address addr) external { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - if (addr == address(0)) revert ZeroAddress(); - wZetaContractAddress = addr; - emit SetWZeta(wZetaContractAddress); - } - - /** - * @dev Setter for zetaConnector ZEVM Address - * @param addr, zeta connector new address. - */ - function setConnectorZEVMAddress(address addr) external { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - if (addr == address(0)) revert ZeroAddress(); - zetaConnectorZEVMAddress = addr; - emit SetConnectorZEVM(zetaConnectorZEVMAddress); - } -} diff --git a/v1/contracts/zevm/Uniswap.sol b/v1/contracts/zevm/Uniswap.sol deleted file mode 100644 index d3f805275..000000000 --- a/v1/contracts/zevm/Uniswap.sol +++ /dev/null @@ -1,7 +0,0 @@ -//SPDX-License-Identifier: MIT -pragma solidity 0.5.16; - -import "@uniswap/v2-core/contracts/UniswapV2Pair.sol"; -import "@uniswap/v2-core/contracts/UniswapV2Factory.sol"; - -contract UniswapImports {} diff --git a/v1/contracts/zevm/UniswapPeriphery.sol b/v1/contracts/zevm/UniswapPeriphery.sol deleted file mode 100644 index 18e666fea..000000000 --- a/v1/contracts/zevm/UniswapPeriphery.sol +++ /dev/null @@ -1,6 +0,0 @@ -//SPDX-License-Identifier: MIT -pragma solidity 0.6.6; - -import "@uniswap/v2-periphery/contracts/UniswapV2Router02.sol"; - -contract UniswapImports {} diff --git a/v1/contracts/zevm/WZETA.sol b/v1/contracts/zevm/WZETA.sol deleted file mode 100644 index 2e31390bb..000000000 --- a/v1/contracts/zevm/WZETA.sol +++ /dev/null @@ -1,68 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -contract WETH9 { - string public name = "Wrapped Ether"; - string public symbol = "WETH"; - uint8 public decimals = 18; - - event Approval(address indexed src, address indexed guy, uint256 wad); - event Transfer(address indexed src, address indexed dst, uint256 wad); - event Deposit(address indexed dst, uint256 wad); - event Withdrawal(address indexed src, uint256 wad); - - mapping(address => uint256) public balanceOf; - mapping(address => mapping(address => uint256)) public allowance; - - receive() external payable { - deposit(); - } - - function deposit() public payable { - balanceOf[msg.sender] += msg.value; - emit Deposit(msg.sender, msg.value); - } - - function withdraw(uint256 wad) public { - require(balanceOf[msg.sender] >= wad, ""); - balanceOf[msg.sender] -= wad; - payable(msg.sender).transfer(wad); - emit Withdrawal(msg.sender, wad); - } - - function totalSupply() public view returns (uint256) { - return address(this).balance; - } - - function approve(address guy, uint256 wad) public returns (bool) { - allowance[msg.sender][guy] = wad; - emit Approval(msg.sender, guy, wad); - return true; - } - - function transfer(address dst, uint256 wad) public returns (bool) { - return transferFrom(msg.sender, dst, wad); - } - - function transferFrom( - address src, - address dst, - uint256 wad - ) public returns (bool) { - require(balanceOf[src] >= wad, ""); - - if ( - src != msg.sender && allowance[src][msg.sender] != type(uint256).max - ) { - require(allowance[src][msg.sender] >= wad, ""); - allowance[src][msg.sender] -= wad; - } - - balanceOf[src] -= wad; - balanceOf[dst] += wad; - - emit Transfer(src, dst, wad); - - return true; - } -} \ No newline at end of file diff --git a/v1/contracts/zevm/ZRC20.sol b/v1/contracts/zevm/ZRC20.sol deleted file mode 100644 index 2dd1769fd..000000000 --- a/v1/contracts/zevm/ZRC20.sol +++ /dev/null @@ -1,292 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; -import "./interfaces/IZRC20.sol"; -import "./interfaces/ISystem.sol"; - -/** - * @dev Custom errors for ZRC20 - */ -interface ZRC20Errors { - // @dev: Error thrown when caller is not the fungible module - error CallerIsNotFungibleModule(); - error InvalidSender(); - error GasFeeTransferFailed(); - error ZeroGasCoin(); - error ZeroGasPrice(); - error LowAllowance(); - error LowBalance(); - error ZeroAddress(); -} - -contract ZRC20 is IZRC20Metadata, ZRC20Events, ZRC20Errors { - /// @notice Fungible address is always the same, maintained at the protocol level - address public constant FUNGIBLE_MODULE_ADDRESS = 0x735b14BB79463307AAcBED86DAf3322B1e6226aB; - /// @notice Chain id.abi - uint256 public immutable CHAIN_ID; - /// @notice Coin type, checkout Interfaces.sol. - CoinType public immutable COIN_TYPE; - /// @notice System contract address. - address public SYSTEM_CONTRACT_ADDRESS; - /// @notice Gas limit. - uint256 public GAS_LIMIT; - /// @notice Protocol flat fee. - uint256 public override PROTOCOL_FLAT_FEE; - - mapping(address => uint256) private _balances; - mapping(address => mapping(address => uint256)) private _allowances; - uint256 private _totalSupply; - string private _name; - string private _symbol; - uint8 private _decimals; - - function _msgSender() internal view virtual returns (address) { - return msg.sender; - } - - function _msgData() internal view virtual returns (bytes calldata) { - return msg.data; - } - - /** - * @dev Only fungible module modifier. - */ - modifier onlyFungible() { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - _; - } - - /** - * @dev The only one allowed to deploy new ZRC20 is fungible address. - */ - constructor( - string memory name_, - string memory symbol_, - uint8 decimals_, - uint256 chainid_, - CoinType coinType_, - uint256 gasLimit_, - address systemContractAddress_ - ) { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert CallerIsNotFungibleModule(); - _name = name_; - _symbol = symbol_; - _decimals = decimals_; - CHAIN_ID = chainid_; - COIN_TYPE = coinType_; - GAS_LIMIT = gasLimit_; - SYSTEM_CONTRACT_ADDRESS = systemContractAddress_; - } - - /** - * @dev ZRC20 name - * @return name as string - */ - function name() public view virtual override returns (string memory) { - return _name; - } - - /** - * @dev ZRC20 symbol. - * @return symbol as string. - */ - function symbol() public view virtual override returns (string memory) { - return _symbol; - } - - /** - * @dev ZRC20 decimals. - * @return returns uint8 decimals. - */ - function decimals() public view virtual override returns (uint8) { - return _decimals; - } - - /** - * @dev ZRC20 total supply. - * @return returns uint256 total supply. - */ - function totalSupply() public view virtual override returns (uint256) { - return _totalSupply; - } - - /** - * @dev Returns ZRC20 balance of an account. - * @param account, account address for which balance is requested. - * @return uint256 account balance. - */ - function balanceOf(address account) public view virtual override returns (uint256) { - return _balances[account]; - } - - /** - * @dev Returns ZRC20 balance of an account. - * @param recipient, recipiuent address to which transfer is done. - * @return true/false if transfer succeeded/failed. - */ - function transfer(address recipient, uint256 amount) public virtual override returns (bool) { - _transfer(_msgSender(), recipient, amount); - return true; - } - - /** - * @dev Returns token allowance from owner to spender. - * @param owner, owner address. - * @return uint256 allowance. - */ - function allowance(address owner, address spender) public view virtual override returns (uint256) { - return _allowances[owner][spender]; - } - - /** - * @dev Approves amount transferFrom for spender. - * @param spender, spender address. - * @param amount, amount to approve. - * @return true/false if succeeded/failed. - */ - function approve(address spender, uint256 amount) public virtual override returns (bool) { - _approve(_msgSender(), spender, amount); - return true; - } - - /** - * @dev Transfers tokens from sender to recipient. - * @param sender, sender address. - * @param recipient, recipient address. - * @param amount, amount to transfer. - * @return true/false if succeeded/failed. - */ - function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { - _transfer(sender, recipient, amount); - - uint256 currentAllowance = _allowances[sender][_msgSender()]; - if (currentAllowance < amount) revert LowAllowance(); - - _approve(sender, _msgSender(), currentAllowance - amount); - - return true; - } - - /** - * @dev Burns an amount of tokens. - * @param amount, amount to burn. - * @return true/false if succeeded/failed. - */ - function burn(uint256 amount) external override returns (bool) { - _burn(msg.sender, amount); - return true; - } - - function _transfer(address sender, address recipient, uint256 amount) internal virtual { - if (sender == address(0)) revert ZeroAddress(); - if (recipient == address(0)) revert ZeroAddress(); - - uint256 senderBalance = _balances[sender]; - if (senderBalance < amount) revert LowBalance(); - - _balances[sender] = senderBalance - amount; - _balances[recipient] += amount; - - emit Transfer(sender, recipient, amount); - } - - function _mint(address account, uint256 amount) internal virtual { - if (account == address(0)) revert ZeroAddress(); - - _totalSupply += amount; - _balances[account] += amount; - emit Transfer(address(0), account, amount); - } - - function _burn(address account, uint256 amount) internal virtual { - if (account == address(0)) revert ZeroAddress(); - - uint256 accountBalance = _balances[account]; - if (accountBalance < amount) revert LowBalance(); - - _balances[account] = accountBalance - amount; - _totalSupply -= amount; - - emit Transfer(account, address(0), amount); - } - - function _approve(address owner, address spender, uint256 amount) internal virtual { - if (owner == address(0)) revert ZeroAddress(); - if (spender == address(0)) revert ZeroAddress(); - - _allowances[owner][spender] = amount; - emit Approval(owner, spender, amount); - } - - /** - * @dev Deposits corresponding tokens from external chain, only callable by Fungible module. - * @param to, recipient address. - * @param amount, amount to deposit. - * @return true/false if succeeded/failed. - */ - function deposit(address to, uint256 amount) external override returns (bool) { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS && msg.sender != SYSTEM_CONTRACT_ADDRESS) revert InvalidSender(); - _mint(to, amount); - emit Deposit(abi.encodePacked(FUNGIBLE_MODULE_ADDRESS), to, amount); - return true; - } - - /** - * @dev Withdraws gas fees. - * @return returns the ZRC20 address for gas on the same chain of this ZRC20, and calculates the gas fee for withdraw() - */ - function withdrawGasFee() public view override returns (address, uint256) { - address gasZRC20 = ISystem(SYSTEM_CONTRACT_ADDRESS).gasCoinZRC20ByChainId(CHAIN_ID); - if (gasZRC20 == address(0)) revert ZeroGasCoin(); - - uint256 gasPrice = ISystem(SYSTEM_CONTRACT_ADDRESS).gasPriceByChainId(CHAIN_ID); - if (gasPrice == 0) { - revert ZeroGasPrice(); - } - uint256 gasFee = gasPrice * GAS_LIMIT + PROTOCOL_FLAT_FEE; - return (gasZRC20, gasFee); - } - - /** - * @dev Withraws ZRC20 tokens to external chains, this function causes cctx module to send out outbound tx to the outbound chain - * this contract should be given enough allowance of the gas ZRC20 to pay for outbound tx gas fee. - * @param to, recipient address. - * @param amount, amount to deposit. - * @return true/false if succeeded/failed. - */ - function withdraw(bytes memory to, uint256 amount) external override returns (bool) { - (address gasZRC20, uint256 gasFee) = withdrawGasFee(); - if (!IZRC20(gasZRC20).transferFrom(msg.sender, FUNGIBLE_MODULE_ADDRESS, gasFee)) { - revert GasFeeTransferFailed(); - } - _burn(msg.sender, amount); - emit Withdrawal(msg.sender, to, amount, gasFee, PROTOCOL_FLAT_FEE); - return true; - } - - /** - * @dev Updates system contract address. Can only be updated by the fungible module. - * @param addr, new system contract address. - */ - function updateSystemContractAddress(address addr) external onlyFungible { - SYSTEM_CONTRACT_ADDRESS = addr; - emit UpdatedSystemContract(addr); - } - - /** - * @dev Updates gas limit. Can only be updated by the fungible module. - * @param gasLimit, new gas limit. - */ - function updateGasLimit(uint256 gasLimit) external onlyFungible { - GAS_LIMIT = gasLimit; - emit UpdatedGasLimit(gasLimit); - } - - /** - * @dev Updates protocol flat fee. Can only be updated by the fungible module. - * @param protocolFlatFee, new protocol flat fee. - */ - function updateProtocolFlatFee(uint256 protocolFlatFee) external onlyFungible { - PROTOCOL_FLAT_FEE = protocolFlatFee; - emit UpdatedProtocolFlatFee(protocolFlatFee); - } -} diff --git a/v1/contracts/zevm/ZetaConnectorZEVM.sol b/v1/contracts/zevm/ZetaConnectorZEVM.sol deleted file mode 100644 index fb6ae9da8..000000000 --- a/v1/contracts/zevm/ZetaConnectorZEVM.sol +++ /dev/null @@ -1,222 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; -import "./interfaces/IWZETA.sol"; - -interface ZetaInterfaces { - /** - * @dev Use SendInput to interact with the Connector: connector.send(SendInput) - */ - struct SendInput { - /// @dev Chain id of the destination chain. More about chain ids https://docs.zetachain.com/learn/glossary#chain-id - uint256 destinationChainId; - /// @dev Address receiving the message on the destination chain (expressed in bytes since it can be non-EVM) - bytes destinationAddress; - /// @dev Gas limit for the destination chain's transaction - uint256 destinationGasLimit; - /// @dev An encoded, arbitrary message to be parsed by the destination contract - bytes message; - /// @dev ZETA to be sent cross-chain + ZetaChain gas fees + destination chain gas fees (expressed in ZETA) - uint256 zetaValueAndGas; - /// @dev Optional parameters for the ZetaChain protocol - bytes zetaParams; - } - - /** - * @dev Our Connector calls onZetaMessage with this struct as argument - */ - struct ZetaMessage { - bytes zetaTxSenderAddress; - uint256 sourceChainId; - address destinationAddress; - /// @dev Remaining ZETA from zetaValueAndGas after subtracting ZetaChain gas fees and destination gas fees - uint256 zetaValue; - bytes message; - } - - /** - * @dev Our Connector calls onZetaRevert with this struct as argument - */ - struct ZetaRevert { - address zetaTxSenderAddress; - uint256 sourceChainId; - bytes destinationAddress; - uint256 destinationChainId; - /// @dev Equals to: zetaValueAndGas - ZetaChain gas fees - destination chain gas fees - source chain revert tx gas fees - uint256 remainingZetaValue; - bytes message; - } -} - -interface ZetaReceiver { - /** - * @dev onZetaMessage is called when a cross-chain message reaches a contract - */ - function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) external; - - /** - * @dev onZetaRevert is called when a cross-chain message reverts. - * It's useful to rollback to the original state - */ - function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external; -} - -contract ZetaConnectorZEVM { - /// @notice WZETA token address. - address public wzeta; - - /// @notice Contract custom errors. - error OnlyWZETAOrFungible(); - error WZETATransferFailed(); - error OnlyFungibleModule(); - error FailedZetaSent(); - error WrongValue(); - - /// @notice Fungible module address. - address public constant FUNGIBLE_MODULE_ADDRESS = payable(0x735b14BB79463307AAcBED86DAf3322B1e6226aB); - - event SetWZETA(address wzeta_); - - event ZetaSent( - address sourceTxOriginAddress, - address indexed zetaTxSenderAddress, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 zetaValueAndGas, - uint256 destinationGasLimit, - bytes message, - bytes zetaParams - ); - - event ZetaReceived( - bytes zetaTxSenderAddress, - uint256 indexed sourceChainId, - address indexed destinationAddress, - uint256 zetaValue, - bytes message, - bytes32 indexed internalSendHash - ); - - event ZetaReverted( - address zetaTxSenderAddress, - uint256 sourceChainId, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 remainingZetaValue, - bytes message, - bytes32 indexed internalSendHash - ); - - /** - * @dev Modifier to restrict actions to fungible module. - */ - modifier onlyFungibleModule() { - if (msg.sender != FUNGIBLE_MODULE_ADDRESS) revert OnlyFungibleModule(); - _; - } - - constructor(address wzeta_) { - wzeta = wzeta_; - } - - /// @dev Receive function to receive ZETA from WETH9.withdraw(). - receive() external payable { - if (msg.sender != wzeta && msg.sender != FUNGIBLE_MODULE_ADDRESS) revert OnlyWZETAOrFungible(); - } - - function setWzetaAddress(address wzeta_) external onlyFungibleModule { - wzeta = wzeta_; - emit SetWZETA(wzeta_); - } - - /** - * @dev Sends ZETA and bytes messages (to execute it) crosschain. - * @param input, SendInput struct, checkout above. - */ - function send(ZetaInterfaces.SendInput calldata input) external { - // Transfer wzeta to "fungible" module, which will be burnt by the protocol post processing via hooks. - if (!IWETH9(wzeta).transferFrom(msg.sender, address(this), input.zetaValueAndGas)) revert WZETATransferFailed(); - IWETH9(wzeta).withdraw(input.zetaValueAndGas); - (bool sent, ) = FUNGIBLE_MODULE_ADDRESS.call{value: input.zetaValueAndGas}(""); - if (!sent) revert FailedZetaSent(); - emit ZetaSent( - tx.origin, - msg.sender, - input.destinationChainId, - input.destinationAddress, - input.zetaValueAndGas, - input.destinationGasLimit, - input.message, - input.zetaParams - ); - } - - /** - * @dev Handler to receive data from other chain. - * This method can be called only by Fungible Module. - * Transfer the Zeta tokens to destination and calls onZetaMessage if it's needed. - * To perform the transfer wrap the new tokens - */ - function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external payable onlyFungibleModule { - if (msg.value != zetaValue) revert WrongValue(); - IWETH9(wzeta).deposit{value: zetaValue}(); - if (!IWETH9(wzeta).transferFrom(address(this), destinationAddress, zetaValue)) revert WZETATransferFailed(); - - if (message.length > 0) { - ZetaReceiver(destinationAddress).onZetaMessage( - ZetaInterfaces.ZetaMessage(zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message) - ); - } - - emit ZetaReceived(zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash); - } - - /** - * @dev Handler to receive errors from other chain. - * This method can be called only by Fungible Module. - * Transfer the Zeta tokens to destination and calls onZetaRevert if it's needed. - */ - function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash - ) external payable onlyFungibleModule { - if (msg.value != remainingZetaValue) revert WrongValue(); - IWETH9(wzeta).deposit{value: remainingZetaValue}(); - if (!IWETH9(wzeta).transferFrom(address(this), zetaTxSenderAddress, remainingZetaValue)) - revert WZETATransferFailed(); - - if (message.length > 0) { - ZetaReceiver(zetaTxSenderAddress).onZetaRevert( - ZetaInterfaces.ZetaRevert( - zetaTxSenderAddress, - sourceChainId, - destinationAddress, - destinationChainId, - remainingZetaValue, - message - ) - ); - } - - emit ZetaReverted( - zetaTxSenderAddress, - sourceChainId, - destinationChainId, - destinationAddress, - remainingZetaValue, - message, - internalSendHash - ); - } -} diff --git a/v1/contracts/zevm/interfaces/ISystem.sol b/v1/contracts/zevm/interfaces/ISystem.sol deleted file mode 100644 index f8fb70bd9..000000000 --- a/v1/contracts/zevm/interfaces/ISystem.sol +++ /dev/null @@ -1,19 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -/** - * @dev Interfaces of SystemContract and ZRC20 to make easier to import. - */ -interface ISystem { - function FUNGIBLE_MODULE_ADDRESS() external view returns (address); - - function wZetaContractAddress() external view returns (address); - - function uniswapv2FactoryAddress() external view returns (address); - - function gasPriceByChainId(uint256 chainID) external view returns (uint256); - - function gasCoinZRC20ByChainId(uint256 chainID) external view returns (address); - - function gasZetaPoolByChainId(uint256 chainID) external view returns (address); -} diff --git a/v1/contracts/zevm/interfaces/IUniswapV2Router01.sol b/v1/contracts/zevm/interfaces/IUniswapV2Router01.sol deleted file mode 100644 index faf9d4806..000000000 --- a/v1/contracts/zevm/interfaces/IUniswapV2Router01.sol +++ /dev/null @@ -1,130 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -interface IUniswapV2Router01 { - function factory() external pure returns (address); - - function WETH() external pure returns (address); - - function addLiquidity( - address tokenA, - address tokenB, - uint amountADesired, - uint amountBDesired, - uint amountAMin, - uint amountBMin, - address to, - uint deadline - ) external returns (uint amountA, uint amountB, uint liquidity); - - function addLiquidityETH( - address token, - uint amountTokenDesired, - uint amountTokenMin, - uint amountETHMin, - address to, - uint deadline - ) external payable returns (uint amountToken, uint amountETH, uint liquidity); - - function removeLiquidity( - address tokenA, - address tokenB, - uint liquidity, - uint amountAMin, - uint amountBMin, - address to, - uint deadline - ) external returns (uint amountA, uint amountB); - - function removeLiquidityETH( - address token, - uint liquidity, - uint amountTokenMin, - uint amountETHMin, - address to, - uint deadline - ) external returns (uint amountToken, uint amountETH); - - function removeLiquidityWithPermit( - address tokenA, - address tokenB, - uint liquidity, - uint amountAMin, - uint amountBMin, - address to, - uint deadline, - bool approveMax, - uint8 v, - bytes32 r, - bytes32 s - ) external returns (uint amountA, uint amountB); - - function removeLiquidityETHWithPermit( - address token, - uint liquidity, - uint amountTokenMin, - uint amountETHMin, - address to, - uint deadline, - bool approveMax, - uint8 v, - bytes32 r, - bytes32 s - ) external returns (uint amountToken, uint amountETH); - - function swapExactTokensForTokens( - uint amountIn, - uint amountOutMin, - address[] calldata path, - address to, - uint deadline - ) external returns (uint[] memory amounts); - - function swapTokensForExactTokens( - uint amountOut, - uint amountInMax, - address[] calldata path, - address to, - uint deadline - ) external returns (uint[] memory amounts); - - function swapExactETHForTokens( - uint amountOutMin, - address[] calldata path, - address to, - uint deadline - ) external payable returns (uint[] memory amounts); - - function swapTokensForExactETH( - uint amountOut, - uint amountInMax, - address[] calldata path, - address to, - uint deadline - ) external returns (uint[] memory amounts); - - function swapExactTokensForETH( - uint amountIn, - uint amountOutMin, - address[] calldata path, - address to, - uint deadline - ) external returns (uint[] memory amounts); - - function swapETHForExactTokens( - uint amountOut, - address[] calldata path, - address to, - uint deadline - ) external payable returns (uint[] memory amounts); - - function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); - - function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); - - function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); - - function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); - - function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); -} diff --git a/v1/contracts/zevm/interfaces/IUniswapV2Router02.sol b/v1/contracts/zevm/interfaces/IUniswapV2Router02.sol deleted file mode 100644 index 19d0e62a6..000000000 --- a/v1/contracts/zevm/interfaces/IUniswapV2Router02.sol +++ /dev/null @@ -1,51 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "./IUniswapV2Router01.sol"; - -interface IUniswapV2Router02 is IUniswapV2Router01 { - function removeLiquidityETHSupportingFeeOnTransferTokens( - address token, - uint liquidity, - uint amountTokenMin, - uint amountETHMin, - address to, - uint deadline - ) external returns (uint amountETH); - - function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - address token, - uint liquidity, - uint amountTokenMin, - uint amountETHMin, - address to, - uint deadline, - bool approveMax, - uint8 v, - bytes32 r, - bytes32 s - ) external returns (uint amountETH); - - function swapExactTokensForTokensSupportingFeeOnTransferTokens( - uint amountIn, - uint amountOutMin, - address[] calldata path, - address to, - uint deadline - ) external; - - function swapExactETHForTokensSupportingFeeOnTransferTokens( - uint amountOutMin, - address[] calldata path, - address to, - uint deadline - ) external payable; - - function swapExactTokensForETHSupportingFeeOnTransferTokens( - uint amountIn, - uint amountOutMin, - address[] calldata path, - address to, - uint deadline - ) external; -} diff --git a/v1/contracts/zevm/interfaces/IWZETA.sol b/v1/contracts/zevm/interfaces/IWZETA.sol deleted file mode 100644 index f5a895d2c..000000000 --- a/v1/contracts/zevm/interfaces/IWZETA.sol +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -interface IWETH9 { - event Approval(address indexed owner, address indexed spender, uint value); - event Transfer(address indexed from, address indexed to, uint value); - event Deposit(address indexed dst, uint wad); - event Withdrawal(address indexed src, uint wad); - - function totalSupply() external view returns (uint); - - function balanceOf(address owner) external view returns (uint); - - function allowance(address owner, address spender) external view returns (uint); - - function approve(address spender, uint wad) external returns (bool); - - function transfer(address to, uint wad) external returns (bool); - - function transferFrom(address from, address to, uint wad) external returns (bool); - - function deposit() external payable; - - function withdraw(uint wad) external; -} diff --git a/v1/contracts/zevm/interfaces/IZRC20.sol b/v1/contracts/zevm/interfaces/IZRC20.sol deleted file mode 100644 index 670dedf2e..000000000 --- a/v1/contracts/zevm/interfaces/IZRC20.sol +++ /dev/null @@ -1,51 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -interface IZRC20 { - function totalSupply() external view returns (uint256); - - function balanceOf(address account) external view returns (uint256); - - function transfer(address recipient, uint256 amount) external returns (bool); - - function allowance(address owner, address spender) external view returns (uint256); - - function approve(address spender, uint256 amount) external returns (bool); - - function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); - - function deposit(address to, uint256 amount) external returns (bool); - - function burn(uint256 amount) external returns (bool); - - function withdraw(bytes memory to, uint256 amount) external returns (bool); - - function withdrawGasFee() external view returns (address, uint256); - - function PROTOCOL_FLAT_FEE() external view returns (uint256); -} - -interface IZRC20Metadata is IZRC20 { - function name() external view returns (string memory); - - function symbol() external view returns (string memory); - - function decimals() external view returns (uint8); -} - -interface ZRC20Events { - event Transfer(address indexed from, address indexed to, uint256 value); - event Approval(address indexed owner, address indexed spender, uint256 value); - event Deposit(bytes from, address indexed to, uint256 value); - event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee); - event UpdatedSystemContract(address systemContract); - event UpdatedGasLimit(uint256 gasLimit); - event UpdatedProtocolFlatFee(uint256 protocolFlatFee); -} - -/// @dev Coin types for ZRC20. Zeta value should not be used. -enum CoinType { - Zeta, - Gas, - ERC20 -} diff --git a/v1/contracts/zevm/interfaces/zContract.sol b/v1/contracts/zevm/interfaces/zContract.sol deleted file mode 100644 index 9f6635a4d..000000000 --- a/v1/contracts/zevm/interfaces/zContract.sol +++ /dev/null @@ -1,42 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -struct zContext { - bytes origin; - address sender; - uint256 chainID; -} - -// TODO: define revertContext -struct revertContext { - bytes origin; - address sender; - uint256 chainID; -} - -interface zContract { - function onCrossChainCall( - zContext calldata context, - address zrc20, - uint256 amount, - bytes calldata message - ) external; -} - -interface UniversalContract { - function onCrossChainCall( - zContext calldata context, - address zrc20, - uint256 amount, - bytes calldata message - ) external; - - // TODO: define onRevert - function onRevert( - revertContext calldata context, - address zrc20, - uint256 amount, - bytes calldata message - ) external; - -} \ No newline at end of file diff --git a/v1/contracts/zevm/testing/SystemContractMock.sol b/v1/contracts/zevm/testing/SystemContractMock.sol deleted file mode 100644 index f3c86a346..000000000 --- a/v1/contracts/zevm/testing/SystemContractMock.sol +++ /dev/null @@ -1,85 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity 0.8.7; - -import "../interfaces/zContract.sol"; -import "../interfaces/IZRC20.sol"; - -interface SystemContractErrors { - error CallerIsNotFungibleModule(); - - error InvalidTarget(); - - error CantBeIdenticalAddresses(); - - error CantBeZeroAddress(); -} - -contract SystemContractMock is SystemContractErrors { - mapping(uint256 => uint256) public gasPriceByChainId; - mapping(uint256 => address) public gasCoinZRC20ByChainId; - mapping(uint256 => address) public gasZetaPoolByChainId; - - address public wZetaContractAddress; - address public uniswapv2FactoryAddress; - address public uniswapv2Router02Address; - - event SystemContractDeployed(); - event SetGasPrice(uint256, uint256); - event SetGasCoin(uint256, address); - event SetGasZetaPool(uint256, address); - event SetWZeta(address); - - constructor(address wzeta_, address uniswapv2Factory_, address uniswapv2Router02_) { - wZetaContractAddress = wzeta_; - uniswapv2FactoryAddress = uniswapv2Factory_; - uniswapv2Router02Address = uniswapv2Router02_; - emit SystemContractDeployed(); - } - - // fungible module updates the gas price oracle periodically - function setGasPrice(uint256 chainID, uint256 price) external { - gasPriceByChainId[chainID] = price; - emit SetGasPrice(chainID, price); - } - - function setGasCoinZRC20(uint256 chainID, address zrc20) external { - gasCoinZRC20ByChainId[chainID] = zrc20; - emit SetGasCoin(chainID, zrc20); - } - - function setWZETAContractAddress(address addr) external { - wZetaContractAddress = addr; - emit SetWZeta(wZetaContractAddress); - } - - // returns sorted token addresses, used to handle return values from pairs sorted in this order - function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { - if (tokenA == tokenB) revert CantBeIdenticalAddresses(); - (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); - if (token0 == address(0)) revert CantBeZeroAddress(); - } - - function uniswapv2PairFor(address factory, address tokenA, address tokenB) public pure returns (address pair) { - (address token0, address token1) = sortTokens(tokenA, tokenB); - pair = address( - uint160( - uint256( - keccak256( - abi.encodePacked( - hex"ff", - factory, - keccak256(abi.encodePacked(token0, token1)), - hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash - ) - ) - ) - ) - ); - } - - function onCrossChainCall(address target, address zrc20, uint256 amount, bytes calldata message) external { - zContext memory context = zContext({sender: msg.sender, origin: "", chainID: block.chainid}); - IZRC20(zrc20).transfer(target, amount); - zContract(target).onCrossChainCall(context, zrc20, amount, message); - } -} diff --git a/v1/data/addresses.json b/v1/data/addresses.json deleted file mode 100644 index 3442551b3..000000000 --- a/v1/data/addresses.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "ccm": { - "base_testnet": { - "connector": "0xc0B74d761ef4EC9e9473f65687d36B9F13DB0dCc", - "erc20Custody": "0x3A1f7b35EF57543B4e86c384eF6a368Ed811a36E", - "immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d", - "tss": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "tssUpdater": "0xdE3fb63723f0EEed8967ff9124e1c3bA89871b03", - "zetaToken": "0xf4e63991E7475b659bd97Bba85f32a7259239D5d", - "zetaTokenConsumerUniV2": "", - "zetaTokenConsumerUniV3": "" - }, - "base_mainnet": { - "connector": "0xfc6a3d4D373B522B182E8caDd66ECF140a313E2F", - "erc20Custody": "0x53b0705194e686Ba745eF8A80cB1Ef355dE645D0", - "immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d", - "tss": "0x70e967acFcC17c3941E87562161406d41676FD83", - "tssUpdater": "0x4Ed087B3aB502475c97cF9d3f1637eFd2470B8FE", - "zetaToken": "0x7FB8E2aE4A5923BBd8e1513945914b5AB69cdA2a" - }, - "bsc_mainnet": { - "connector": "0x000063A6e758D9e2f438d430108377564cf4077D", - "erc20Custody": "0x00000fF8fA992424957F97688015814e707A0115", - "immutableCreate2Factory": "", - "tss": "0x70e967acFcC17c3941E87562161406d41676FD83", - "tssUpdater": "", - "zetaToken": "0x0000028a2eB8346cd5c0267856aB7594B7a55308" - }, - "bsc_testnet": { - "connector": "0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1", - "erc20Custody": "0x0000a7db254145767262c6a81a7ee1650684258e", - "immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d", - "tss": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "tssUpdater": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "zetaToken": "0x0000c9ec4042283e8139c74f4c64bcd1e0b9b54f", - "zetaTokenConsumerUniV2": "", - "zetaTokenConsumerUniV3": "0xFB2fCE3CCca19F0f764Ed8aa26C62181E3dA04C5" - }, - "btc_mainnet": { - "connector": "", - "immutableCreate2Factory": "", - "tss": "bc1qm24wp577nk8aacckv8np465z3dvmu7ry45el6y", - "tssUpdater": "", - "zetaToken": "", - "zetaTokenConsumerUniV2": "", - "zetaTokenConsumerUniV3": "" - }, - "btc_testnet": { - "connector": "", - "immutableCreate2Factory": "", - "tss": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur", - "tssUpdater": "", - "zetaToken": "", - "zetaTokenConsumerUniV2": "", - "zetaTokenConsumerUniV3": "" - }, - "eth_mainnet": { - "connector": "0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a", - "erc20Custody": "0x0000030Ec64DF25301d8414eE5a29588C4B0dE10", - "immutableCreate2Factory": "", - "tss": "0x70e967acFcC17c3941E87562161406d41676FD83", - "tssUpdater": "", - "zetaToken": "0xf091867EC603A6628eD83D274E835539D82e9cc8" - }, - "goerli_testnet": { - "connector": "0x00005e3125aba53c5652f9f0ce1a4cf91d8b15ea", - "erc20Custody": "0x000047f11c6e42293f433c82473532e869ce4ec5", - "immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d", - "tss": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "tssUpdater": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "zetaToken": "0x0000c304d2934c00db1d51995b9f6996affd17c0", - "zetaTokenConsumerUniV2": "0x8eAc517b92eeE82177a83851268F13109878f8c4", - "zetaTokenConsumerUniV3": "" - }, - "mumbai_testnet": { - "connector": "0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1", - "erc20Custody": "0x0000a7db254145767262c6a81a7ee1650684258e", - "immutableCreate2Factory": "0x095a03c6a68137fE9a566bBc3e552F299d8b886d", - "tss": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "tssUpdater": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "zetaToken": "0x0000c9ec4042283e8139c74f4c64bcd1e0b9b54f", - "zetaTokenConsumerUniV2": "", - "zetaTokenConsumerUniV3": "0x7e792f3736751e168864106AdbAC50152641A927" - }, - "zeta_mainnet": { - "connector": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67", - "immutableCreate2Factory": "", - "tss": "", - "tssUpdater": "", - "zetaToken": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf", - "zetaTokenConsumerUniV2": "", - "zetaTokenConsumerUniV3": "" - }, - "zeta_testnet": { - "connector": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67", - "immutableCreate2Factory": "", - "tss": "0x7c125C1d515b8945841b3d5144a060115C58725F", - "tssUpdater": "0x7274d1d5dddef36aac53dd45b93487ce01ef0a55", - "zetaToken": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf", - "zetaTokenConsumerUniV2": "", - "zetaTokenConsumerUniV3": "" - } - }, - "non_zeta": { - "bsc_mainnet": { - "uniswapV2Factory": "", - "uniswapV2Router02": "", - "uniswapV3Factory": "", - "uniswapV3Router": "", - "weth9": "" - }, - "bsc_testnet": { - "uniswapV2Factory": "", - "uniswapV2Router02": "0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3", - "uniswapV3Factory": "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865", - "uniswapV3Router": "0x9a489505a00cE272eAa5e07Dba6491314CaE3796", - "weth9": "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd" - }, - "eth_mainnet": { - "uniswapV2Factory": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f", - "uniswapV2Router02": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", - "uniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "uniswapV3Router": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "weth9": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" - }, - "goerli_testnet": { - "uniswapV2Factory": "", - "uniswapV2Router02": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", - "uniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "uniswapV3Router": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "weth9": "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6" - }, - "mumbai_testnet": { - "uniswapV2Factory": "", - "uniswapV2Router02": "0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1", - "uniswapV3Factory": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "uniswapV3Router": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "weth9": "0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889" - }, - "zeta_testnet": { - "uniswapV2Factory": "", - "uniswapV2Router02": "", - "uniswapV3Factory": "", - "uniswapV3Router": "", - "weth9": "" - } - }, - "zevm": { - "bsc_testnet": { - "zrc20": "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891" - }, - "btc_testnet": { - "zrc20": "0x65a45c57636f9BcCeD4fe193A602008578BcA90b" - }, - "goerli_testnet": { - "zrc20": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4" - }, - "mumbai_testnet": { - "zrc20": "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb" - }, - "zeta_mainnet": { - "fungibleModule": "", - "systemContract": "0x91d18e54DAf4F677cB28167158d6dd21F6aB3921", - "uniswapv2Factory": "", - "uniswapv2Router02": "" - }, - "zeta_testnet": { - "fungibleModule": "0x735b14BB79463307AAcBED86DAf3322B1e6226aB", - "systemContract": "0xEdf1c3275d13489aCdC6cD6eD246E72458B8795B", - "uniswapv2Factory": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c", - "uniswapv2Router02": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe" - } - } -} - diff --git a/v1/data/addresses.mainnet.json b/v1/data/addresses.mainnet.json deleted file mode 100644 index 308fb597c..000000000 --- a/v1/data/addresses.mainnet.json +++ /dev/null @@ -1,424 +0,0 @@ -[ - { - "address": "0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "connector" - }, - { - "address": "0x0000030Ec64DF25301d8414eE5a29588C4B0dE10", - "category": "omnichain", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "erc20Custody" - }, - { - "address": "0xaeB6dDB7708467814D557e340283248be8E43124", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "pauser" - }, - { - "address": "0x70e967acFcC17c3941E87562161406d41676FD83", - "category": "omnichain", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "tss" - }, - { - "address": "0xaeB6dDB7708467814D557e340283248be8E43124", - "category": "omnichain", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "tssUpdater" - }, - { - "address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "uniswapV2Factory" - }, - { - "address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "uniswapV2Router02" - }, - { - "address": "0x1F98431c8aD98523631AE4a59f267346ea31F984", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "uniswapV3Factory" - }, - { - "address": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "uniswapV3Router" - }, - { - "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "weth9" - }, - { - "address": "0xf091867EC603A6628eD83D274E835539D82e9cc8", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "zetaToken" - }, - { - "address": "0x000063A6e758D9e2f438d430108377564cf4077D", - "category": "messaging", - "chain_id": 56, - "chain_name": "bsc_mainnet", - "type": "connector" - }, - { - "address": "0x00000fF8fA992424957F97688015814e707A0115", - "category": "omnichain", - "chain_id": 56, - "chain_name": "bsc_mainnet", - "type": "erc20Custody" - }, - { - "address": "0xaf28a257D292e7f0E531073f70a175b57E0261a8", - "category": "messaging", - "chain_id": 56, - "chain_name": "bsc_mainnet", - "type": "pauser" - }, - { - "address": "0x70e967acFcC17c3941E87562161406d41676FD83", - "category": "omnichain", - "chain_id": 56, - "chain_name": "bsc_mainnet", - "type": "tss" - }, - { - "address": "0xaf28a257D292e7f0E531073f70a175b57E0261a8", - "category": "omnichain", - "chain_id": 56, - "chain_name": "bsc_mainnet", - "type": "tssUpdater" - }, - { - "address": "0x0000028a2eB8346cd5c0267856aB7594B7a55308", - "category": "messaging", - "chain_id": 56, - "chain_name": "bsc_mainnet", - "type": "zetaToken" - }, - { - "address": "0x73cE2544d30A71D833C70D418FB5Ddf7a4A75455", - "category": "messaging", - "chain_id": 137, - "chain_name": "polygon_mainnet", - "type": "connector" - }, - { - "address": "0x69727Ef241ebD6e42Fc3A798092077069B415B2D", - "category": "omnichain", - "chain_id": 137, - "chain_name": "polygon_mainnet", - "type": "erc20Custody" - }, - { - "address": "0x7828F92E7d79E141189f24C98aceF71Bc07bad3f", - "category": "messaging", - "chain_id": 137, - "chain_name": "polygon_mainnet", - "type": "pauser" - }, - { - "address": "0x70e967acFcC17c3941E87562161406d41676FD83", - "category": "omnichain", - "chain_id": 137, - "chain_name": "polygon_mainnet", - "type": "tss" - }, - { - "address": "0x7828F92E7d79E141189f24C98aceF71Bc07bad3f", - "category": "omnichain", - "chain_id": 137, - "chain_name": "polygon_mainnet", - "type": "tssUpdater" - }, - { - "address": "0x2eff750c9D770BaBE6dBe84d05E40e4C65d7938d", - "category": "messaging", - "chain_id": 137, - "chain_name": "polygon_mainnet", - "type": "zetaToken" - }, - { - "address": "0x4Ed087B3aB502475c97cF9d3f1637eFd2470B8FE", - "category": "omnichain", - "chain_id": 8453, - "chain_name": "base_mainnet", - "type": "tssUpdater" - }, - { - "address": "0x70e967acFcC17c3941E87562161406d41676FD83", - "category": "omnichain", - "chain_id": 8453, - "chain_name": "base_mainnet", - "type": "tss" - }, - { - "address": "0xfc6a3d4D373B522B182E8caDd66ECF140a313E2F", - "category": "messaging", - "chain_id": 8453, - "chain_name": "base_mainnet", - "type": "connector" - }, - { - "address": "0x53b0705194e686Ba745eF8A80cB1Ef355dE645D0", - "category": "omnichain", - "chain_id": 8453, - "chain_name": "base_mainnet", - "type": "erc20Custody" - }, - { - "address": "0x4Ed087B3aB502475c97cF9d3f1637eFd2470B8FE", - "category": "messaging", - "chain_id": 8453, - "chain_name": "base_mainnet", - "type": "pauser" - }, - { - "address": "0x7FB8E2aE4A5923BBd8e1513945914b5AB69cdA2a", - "category": "messaging", - "chain_id": 8453, - "chain_name": "base_mainnet", - "type": "zetaToken" - }, - { - "address": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67", - "category": "messaging", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "type": "connector" - }, - { - "address": "0x735b14BB79463307AAcBED86DAf3322B1e6226aB", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "type": "fungibleModule" - }, - { - "address": "0x91d18e54DAf4F677cB28167158d6dd21F6aB3921", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "type": "systemContract" - }, - { - "address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "type": "uniswapV2Factory" - }, - { - "address": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "type": "uniswapV2Router02" - }, - { - "address": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "type": "zetaToken" - }, - { - "address": "0x05BA149A7bd6dC1F937fA9046A9e05C05f3b18b0", - "asset": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 18, - "description": "ZetaChain ZRC20 USDC on BSC", - "foreign_chain_id": "56", - "symbol": "USDC.BSC", - "type": "zrc20" - }, - { - "address": "0x0cbe0dF132a6c6B4a2974Fa1b7Fb953CF0Cc798a", - "asset": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 6, - "description": "ZetaChain ZRC20 USDC on ETH", - "foreign_chain_id": "1", - "symbol": "USDC.ETH", - "type": "zrc20" - }, - { - "address": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4", - "asset": "", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "gas", - "decimals": 8, - "description": "ZetaChain ZRC20 BTC-btc_mainnet", - "foreign_chain_id": "8332", - "symbol": "BTC.BTC", - "type": "zrc20" - }, - { - "address": "0x236b0DE675cC8F46AE186897fCCeFe3370C9eDeD", - "asset": "0x6982508145454ce325ddbe47a25d4ec3d2311933", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 18, - "description": "ZetaChain ZRC20 PEPE on ETH", - "foreign_chain_id": "1", - "symbol": "PEPE.ETH", - "type": "zrc20" - }, - { - "address": "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb", - "asset": "", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "gas", - "decimals": 18, - "description": "ZetaChain ZRC20 BNB-bsc_mainnet", - "foreign_chain_id": "56", - "symbol": "BNB.BSC", - "type": "zrc20" - }, - { - "address": "0x777915D031d1e8144c90D025C594b3b8Bf07a08d", - "asset": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 18, - "description": "ZetaChain ZRC20 SHIB on ETH", - "foreign_chain_id": "1", - "symbol": "SHIB.ETH", - "type": "zrc20" - }, - { - "address": "0x7c8dDa80bbBE1254a7aACf3219EBe1481c6E01d7", - "asset": "0xdac17f958d2ee523a2206206994597c13d831ec7", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 6, - "description": "ZetaChain ZRC20 USDT on ETH", - "foreign_chain_id": "1", - "symbol": "USDT.ETH", - "type": "zrc20" - }, - { - "address": "0x91d4F0D54090Df2D81e834c3c8CE71C6c865e79F", - "asset": "0x55d398326f99059ff775485246999027b3197955", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 18, - "description": "ZetaChain ZRC20 USDT on BSC", - "foreign_chain_id": "56", - "symbol": "USDT.BSC", - "type": "zrc20" - }, - { - "address": "0xADF73ebA3Ebaa7254E859549A44c74eF7cff7501", - "asset": "", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "gas", - "decimals": 18, - "description": "ZetaChain ZRC20 Polygon POL-polygon_mainnet", - "foreign_chain_id": "137", - "symbol": "POL.POLYGON", - "type": "zrc20" - }, - { - "address": "0xcC683A782f4B30c138787CB5576a86AF66fdc31d", - "asset": "0x6b175474e89094c44da98b954eedeac495271d0f", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 18, - "description": "ZetaChain ZRC20 DAI on ETH", - "foreign_chain_id": "1", - "symbol": "DAI.ETH", - "type": "zrc20" - }, - { - "address": "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891", - "asset": "", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "gas", - "decimals": 18, - "description": "ZetaChain ZRC20 ETH-eth_mainnet", - "foreign_chain_id": "1", - "symbol": "ETH.ETH", - "type": "zrc20" - }, - { - "address": "0xdbfF6471a79E5374d771922F2194eccc42210B9F", - "asset": "0xc2132d05d31c914a87c6611c10748aeb04b58e8f", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 6, - "description": "ZetaChain ZRC20 USDT on POL", - "foreign_chain_id": "137", - "symbol": "USDT.POL", - "type": "zrc20" - }, - { - "address": "0xfC9201f4116aE6b054722E10b98D904829b469c3", - "asset": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", - "category": "omnichain", - "chain_id": 7000, - "chain_name": "zeta_mainnet", - "coin_type": "erc20", - "decimals": 6, - "description": "ZetaChain ZRC20 USDC on POL", - "foreign_chain_id": "137", - "symbol": "USDC.POL", - "type": "zrc20" - }, - { - "address": "bc1qm24wp577nk8aacckv8np465z3dvmu7ry45el6y", - "category": "omnichain", - "chain_id": 8332, - "chain_name": "btc_mainnet", - "type": "tss" - } -] - diff --git a/v1/data/addresses.testnet.json b/v1/data/addresses.testnet.json deleted file mode 100644 index 424515b2a..000000000 --- a/v1/data/addresses.testnet.json +++ /dev/null @@ -1,453 +0,0 @@ -[ - { - "address": "0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "connector" - }, - { - "address": "0x0000a7db254145767262c6a81a7ee1650684258e", - "category": "omnichain", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "erc20Custody" - }, - { - "address": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "pauser" - }, - { - "address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "category": "omnichain", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "tss" - }, - { - "address": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "category": "omnichain", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "tssUpdater" - }, - { - "address": "0xB7926C0430Afb07AA7DEfDE6DA862aE0Bde767bc", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "uniswapV2Factory" - }, - { - "address": "0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "uniswapV2Router02" - }, - { - "address": "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "uniswapV3Factory" - }, - { - "address": "0x9a489505a00cE272eAa5e07Dba6491314CaE3796", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "uniswapV3Router" - }, - { - "address": "0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "weth9" - }, - { - "address": "0x0000c9ec4042283e8139c74f4c64bcd1e0b9b54f", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "zetaToken" - }, - { - "address": "0xFB2fCE3CCca19F0f764Ed8aa26C62181E3dA04C5", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "zetaTokenConsumerUniV3" - }, - { - "address": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67", - "category": "messaging", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "connector" - }, - { - "address": "0x735b14BB79463307AAcBED86DAf3322B1e6226aB", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "fungibleModule" - }, - { - "address": "0xEdf1c3275d13489aCdC6cD6eD246E72458B8795B", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "systemContract" - }, - { - "address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "uniswapV2Factory" - }, - { - "address": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "uniswapV2Router02" - }, - { - "address": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "zetaToken" - }, - { - "address": "0x48C4475B7A9A6E9c384dDF3eb30c56761a2bc37e", - "category": "messaging", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "zetaTokenConsumerUniV3" - }, - { - "address": "0x05BA149A7bd6dC1F937fA9046A9e05C05f3b18b0", - "asset": "", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "gas", - "decimals": 18, - "description": "ZetaChain ZRC20 sETH-sepolia_testnet", - "foreign_chain_id": "11155111", - "symbol": "sETH.SEPOLIA", - "type": "zrc20" - }, - { - "address": "0x0cbe0dF132a6c6B4a2974Fa1b7Fb953CF0Cc798a", - "asset": "0x07865c6e87b9f70255377e024ace6630c1eaa37f", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "erc20", - "decimals": 6, - "description": "USDC-goerli_testnet", - "foreign_chain_id": "5", - "symbol": "USDC", - "type": "zrc20" - }, - { - "address": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4", - "asset": "", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "gas", - "decimals": 18, - "description": "ETH-goerli_testnet", - "foreign_chain_id": "5", - "symbol": "gETH", - "type": "zrc20" - }, - { - "address": "0x236b0DE675cC8F46AE186897fCCeFe3370C9eDeD", - "asset": "", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "gas", - "decimals": 18, - "description": "ZetaChain ZRC20 Base Sepolia ETH-base_sepolia", - "foreign_chain_id": "84532", - "symbol": "ETH.BASESEPOLIA", - "type": "zrc20" - }, - { - "address": "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb", - "asset": "", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "gas", - "decimals": 18, - "description": "MATIC-mumbai_testnet", - "foreign_chain_id": "80001", - "symbol": "tMATIC", - "type": "zrc20" - }, - { - "address": "0x65a45c57636f9BcCeD4fe193A602008578BcA90b", - "asset": "", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "gas", - "decimals": 8, - "description": "BTC-btc_testnet-btc_testnet", - "foreign_chain_id": "18332", - "symbol": "tBTC", - "type": "zrc20" - }, - { - "address": "0x777915D031d1e8144c90D025C594b3b8Bf07a08d", - "asset": "", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "gas", - "decimals": 18, - "description": "ZetaChain ZRC20 Amoy MATIC-amoy_testnet", - "foreign_chain_id": "80002", - "symbol": "MATIC.AMOY", - "type": "zrc20" - }, - { - "address": "0x7c8dDa80bbBE1254a7aACf3219EBe1481c6E01d7", - "asset": "0x64544969ed7EBf5f083679233325356EbE738930", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "erc20", - "decimals": 6, - "description": "USDC-bsc_testnet", - "foreign_chain_id": "97", - "symbol": "USDC", - "type": "zrc20" - }, - { - "address": "0x91d4F0D54090Df2D81e834c3c8CE71C6c865e79F", - "asset": "0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "erc20", - "decimals": 6, - "description": "USDC-mumbai_testnet", - "foreign_chain_id": "80001", - "symbol": "USDC", - "type": "zrc20" - }, - { - "address": "0xcC683A782f4B30c138787CB5576a86AF66fdc31d", - "asset": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "erc20", - "decimals": 6, - "description": "ZetaChain ZRC20 USDC on SEPOLIA", - "foreign_chain_id": "11155111", - "symbol": "USDC.SEPOLIA", - "type": "zrc20" - }, - { - "address": "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891", - "asset": "", - "category": "omnichain", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "coin_type": "gas", - "decimals": 18, - "description": "BNB-bsc_testnet", - "foreign_chain_id": "97", - "symbol": "tBNB", - "type": "zrc20" - }, - { - "address": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur", - "category": "omnichain", - "chain_id": 18332, - "chain_name": "btc_testnet", - "type": "tss" - }, - { - "address": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur", - "category": "omnichain", - "chain_id": 18333, - "chain_name": "btc_signet", - "type": "tss" - }, - { - "address": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur", - "category": "omnichain", - "chain_id": 18334, - "chain_name": "btc_testnet4", - "type": "tss" - }, - { - "address": "0x60E6b70bC2761f878Ff992276612F67FbABC1761", - "category": "messaging", - "chain_id": 80002, - "chain_name": "amoy_testnet", - "type": "connector" - }, - { - "address": "0xFDE448af6140a8702A1165c44A0895ebE24b0C02", - "category": "omnichain", - "chain_id": 80002, - "chain_name": "amoy_testnet", - "type": "erc20Custody" - }, - { - "address": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "category": "messaging", - "chain_id": 80002, - "chain_name": "amoy_testnet", - "type": "pauser" - }, - { - "address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "category": "omnichain", - "chain_id": 80002, - "chain_name": "amoy_testnet", - "type": "tss" - }, - { - "address": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "category": "omnichain", - "chain_id": 80002, - "chain_name": "amoy_testnet", - "type": "tssUpdater" - }, - { - "address": "0x1432612E60cad487C857E7D38AFf57134916c902", - "category": "messaging", - "chain_id": 80002, - "chain_name": "amoy_testnet", - "type": "zetaToken" - }, - { - "address": "0xc0B74d761ef4EC9e9473f65687d36B9F13DB0dCc", - "category": "messaging", - "chain_id": 84532, - "chain_name": "base_sepolia", - "type": "connector" - }, - { - "address": "0x3A1f7b35EF57543B4e86c384eF6a368Ed811a36E", - "category": "omnichain", - "chain_id": 84532, - "chain_name": "base_sepolia", - "type": "erc20Custody" - }, - { - "address": "0xdE3fb63723f0EEed8967ff9124e1c3bA89871b03", - "category": "messaging", - "chain_id": 84532, - "chain_name": "base_sepolia", - "type": "pauser" - }, - { - "address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "category": "omnichain", - "chain_id": 84532, - "chain_name": "base_sepolia", - "type": "tss" - }, - { - "address": "0xdE3fb63723f0EEed8967ff9124e1c3bA89871b03", - "category": "omnichain", - "chain_id": 84532, - "chain_name": "base_sepolia", - "type": "tssUpdater" - }, - { - "address": "0xf4e63991E7475b659bd97Bba85f32a7259239D5d", - "category": "messaging", - "chain_id": 84532, - "chain_name": "base_sepolia", - "type": "zetaToken" - }, - { - "address": "0x3963341dad121c9CD33046089395D66eBF20Fb03", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "connector" - }, - { - "address": "0x84725b70a239d3Faa7C6EF0C6C8E8b6c8e28338b", - "category": "omnichain", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "erc20Custody" - }, - { - "address": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "pauser" - }, - { - "address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e", - "category": "omnichain", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "tss" - }, - { - "address": "0x55122f7590164Ac222504436943FAB17B62F5d7d", - "category": "omnichain", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "tssUpdater" - }, - { - "address": "0x0227628f3F023bb0B980b67D528571c95c6DaC1c", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "uniswapV3Factory" - }, - { - "address": "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "uniswapV3Router" - }, - { - "address": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "weth9" - }, - { - "address": "0x0000c304D2934c00Db1d51995b9f6996AffD17c0", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "zetaToken" - }, - { - "address": "0x301ED39771d8f1dD0b05F8C2D4327ce9C426E783", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "zetaTokenConsumerUniV3" - } -] diff --git a/v1/data/readme.md b/v1/data/readme.md deleted file mode 100644 index 9a1ef0f0c..000000000 --- a/v1/data/readme.md +++ /dev/null @@ -1 +0,0 @@ -These addresses are generated automatically, do not modify them directly. diff --git a/v1/docs/.gitignore b/v1/docs/.gitignore deleted file mode 100644 index 4e42a1bcd..000000000 --- a/v1/docs/.gitignore +++ /dev/null @@ -1 +0,0 @@ -book/ \ No newline at end of file diff --git a/v1/docs/book.css b/v1/docs/book.css deleted file mode 100644 index b5ce903f9..000000000 --- a/v1/docs/book.css +++ /dev/null @@ -1,13 +0,0 @@ -table { - margin: 0 auto; - border-collapse: collapse; - width: 100%; -} - -table td:first-child { - width: 15%; -} - -table td:nth-child(2) { - width: 25%; -} \ No newline at end of file diff --git a/v1/docs/book.toml b/v1/docs/book.toml deleted file mode 100644 index 9fe0d553c..000000000 --- a/v1/docs/book.toml +++ /dev/null @@ -1,12 +0,0 @@ -[book] -src = "src" -title = "" - -[output.html] -no-section-label = true -additional-js = ["solidity.min.js"] -additional-css = ["book.css"] -git-repository-url = "https://github.com/zeta-chain/protocol-contracts" - -[output.html.fold] -enable = true diff --git a/v1/docs/solidity.min.js b/v1/docs/solidity.min.js deleted file mode 100644 index 192493291..000000000 --- a/v1/docs/solidity.min.js +++ /dev/null @@ -1,74 +0,0 @@ -hljs.registerLanguage("solidity",(()=>{"use strict";function e(){try{return!0 -}catch(e){return!1}} -var a=/-?(\b0[xX]([a-fA-F0-9]_?)*[a-fA-F0-9]|(\b[1-9](_?\d)*(\.((\d_?)*\d)?)?|\.\d(_?\d)*)([eE][-+]?\d(_?\d)*)?|\b0)(?!\w|\$)/ -;e()&&(a=a.source.replace(/\\b/g,"(?{ -var a=r(e),o=l(e),c=/[A-Za-z_$][A-Za-z_$0-9.]*/,d=e.inherit(e.TITLE_MODE,{ -begin:/[A-Za-z$_][0-9A-Za-z$_]*/,lexemes:c,keywords:n}),u={className:"params", -begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,lexemes:c,keywords:n, -contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,o,s]},_={ -className:"operator",begin:/:=|->/};return{keywords:n,lexemes:c, -contains:[a,o,i,t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,_,{ -className:"function",lexemes:c,beginKeywords:"function",end:"{",excludeEnd:!0, -contains:[d,u,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_]}]}}, -solAposStringMode:r,solQuoteStringMode:l,HEX_APOS_STRING_MODE:i, -HEX_QUOTE_STRING_MODE:t,SOL_NUMBER:s,isNegativeLookbehindAvailable:e} -;const{baseAssembly:c,solAposStringMode:d,solQuoteStringMode:u,HEX_APOS_STRING_MODE:_,HEX_QUOTE_STRING_MODE:m,SOL_NUMBER:b,isNegativeLookbehindAvailable:E}=o -;return e=>{for(var a=d(e),s=u(e),n=[],i=0;i<32;i++)n[i]=i+1 -;var t=n.map((e=>8*e)),r=[];for(i=0;i<=80;i++)r[i]=i -;var l=n.map((e=>"bytes"+e)).join(" ")+" ",o=t.map((e=>"uint"+e)).join(" ")+" ",g=t.map((e=>"int"+e)).join(" ")+" ",M=[].concat.apply([],t.map((e=>r.map((a=>e+"x"+a))))),p={ -keyword:"var bool string int uint "+g+o+"byte bytes "+l+"fixed ufixed "+M.map((e=>"fixed"+e)).join(" ")+" "+M.map((e=>"ufixed"+e)).join(" ")+" enum struct mapping address new delete if else for while continue break return throw emit try catch revert unchecked _ function modifier event constructor fallback receive error virtual override constant immutable anonymous indexed storage memory calldata external public internal payable pure view private returns import from as using pragma contract interface library is abstract type assembly", -literal:"true false wei gwei szabo finney ether seconds minutes hours days weeks years", -built_in:"self this super selfdestruct suicide now msg block tx abi blockhash gasleft assert require Error Panic sha3 sha256 keccak256 ripemd160 ecrecover addmod mulmod log0 log1 log2 log3 log4" -},O={className:"operator",begin:/[+\-!~*\/%<>&^|=]/ -},C=/[A-Za-z_$][A-Za-z_$0-9]*/,N={className:"params",begin:/\(/,end:/\)/, -excludeBegin:!0,excludeEnd:!0,lexemes:C,keywords:p, -contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,b,"self"]},f={ -begin:/\.\s*/,end:/[^A-Za-z0-9$_\.]/,excludeBegin:!0,excludeEnd:!0,keywords:{ -built_in:"gas value selector address length push pop send transfer call callcode delegatecall staticcall balance code codehash wrap unwrap name creationCode runtimeCode interfaceId min max" -},relevance:2},y=e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/, -lexemes:C,keywords:p}),w={className:"built_in", -begin:(E()?"(? true/false. - - -```solidity -mapping(IERC20 => bool) public whitelisted; -``` - - -## Functions -### onlyTSS - -*Only TSS address allowed modifier.* - - -```solidity -modifier onlyTSS(); -``` - -### onlyTSSUpdater - -*Only TSS address updater allowed modifier.* - - -```solidity -modifier onlyTSSUpdater(); -``` - -### constructor - - -```solidity -constructor(address TSSAddress_, address TSSAddressUpdater_, uint256 zetaFee_, uint256 zetaMaxFee_, IERC20 zeta_); -``` - -### updateTSSAddress - -*Update the TSSAddress in case of Zeta blockchain validator nodes churn.* - - -```solidity -function updateTSSAddress(address TSSAddress_) external onlyTSSUpdater; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`TSSAddress_`|`address`|| - - -### updateZetaFee - -*Update zeta fee* - - -```solidity -function updateZetaFee(uint256 zetaFee_) external onlyTSS; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`zetaFee_`|`uint256`|| - - -### renounceTSSAddressUpdater - -*Change the ownership of TSSAddressUpdater to the Zeta blockchain TSS nodes. -Effectively, only Zeta blockchain validators collectively can update TSSAddress afterwards.* - - -```solidity -function renounceTSSAddressUpdater() external onlyTSSUpdater; -``` - -### pause - -*Pause custody operations.* - - -```solidity -function pause() external onlyTSS; -``` - -### unpause - -*Unpause custody operations.* - - -```solidity -function unpause() external onlyTSS; -``` - -### whitelist - -*Whitelist asset.* - - -```solidity -function whitelist(IERC20 asset) external onlyTSS; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`asset`|`IERC20`|| - - -### unwhitelist - -*Unwhitelist asset.* - - -```solidity -function unwhitelist(IERC20 asset) external onlyTSS; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`asset`|`IERC20`|| - - -### deposit - -*Deposit asset amount to recipient with message that encodes additional zetachain evm call or message.* - - -```solidity -function deposit(bytes calldata recipient, IERC20 asset, uint256 amount, bytes calldata message) - external - nonReentrant; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`recipient`|`bytes`|| -|`asset`|`IERC20`|| -|`amount`|`uint256`|| -|`message`|`bytes`|| - - -### withdraw - -*Withdraw asset amount to recipient by custody TSS owner.* - - -```solidity -function withdraw(address recipient, IERC20 asset, uint256 amount) external nonReentrant onlyTSS; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`recipient`|`address`|| -|`asset`|`IERC20`|| -|`amount`|`uint256`|| - - -## Events -### Paused - -```solidity -event Paused(address sender); -``` - -### Unpaused - -```solidity -event Unpaused(address sender); -``` - -### Whitelisted - -```solidity -event Whitelisted(IERC20 indexed asset); -``` - -### Unwhitelisted - -```solidity -event Unwhitelisted(IERC20 indexed asset); -``` - -### Deposited - -```solidity -event Deposited(bytes recipient, IERC20 indexed asset, uint256 amount, bytes message); -``` - -### Withdrawn - -```solidity -event Withdrawn(address indexed recipient, IERC20 indexed asset, uint256 amount); -``` - -### RenouncedTSSUpdater - -```solidity -event RenouncedTSSUpdater(address TSSAddressUpdater_); -``` - -### UpdatedTSSAddress - -```solidity -event UpdatedTSSAddress(address TSSAddress_); -``` - -### UpdatedZetaFee - -```solidity -event UpdatedZetaFee(uint256 zetaFee_); -``` - -## Errors -### NotWhitelisted - -```solidity -error NotWhitelisted(); -``` - -### NotPaused - -```solidity -error NotPaused(); -``` - -### InvalidSender - -```solidity -error InvalidSender(); -``` - -### InvalidTSSUpdater - -```solidity -error InvalidTSSUpdater(); -``` - -### ZeroAddress - -```solidity -error ZeroAddress(); -``` - -### IsPaused - -```solidity -error IsPaused(); -``` - -### ZetaMaxFeeExceeded - -```solidity -error ZetaMaxFeeExceeded(); -``` - -### ZeroFee - -```solidity -error ZeroFee(); -``` - diff --git a/v1/docs/src/contracts/evm/README.md b/v1/docs/src/contracts/evm/README.md deleted file mode 100644 index f3503d0e7..000000000 --- a/v1/docs/src/contracts/evm/README.md +++ /dev/null @@ -1,12 +0,0 @@ - - -# Contents -- [interfaces](/contracts/evm/interfaces) -- [testing](/contracts/evm/testing) -- [tools](/contracts/evm/tools) -- [ERC20Custody](ERC20Custody.sol/contract.ERC20Custody.md) -- [ZetaEth](Zeta.eth.sol/contract.ZetaEth.md) -- [ZetaNonEth](Zeta.non-eth.sol/contract.ZetaNonEth.md) -- [ZetaConnectorBase](ZetaConnector.base.sol/contract.ZetaConnectorBase.md) -- [ZetaConnectorEth](ZetaConnector.eth.sol/contract.ZetaConnectorEth.md) -- [ZetaConnectorNonEth](ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md) diff --git a/v1/docs/src/contracts/evm/Zeta.eth.sol/contract.ZetaEth.md b/v1/docs/src/contracts/evm/Zeta.eth.sol/contract.ZetaEth.md deleted file mode 100644 index 47d958a1d..000000000 --- a/v1/docs/src/contracts/evm/Zeta.eth.sol/contract.ZetaEth.md +++ /dev/null @@ -1,17 +0,0 @@ -# ZetaEth -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/Zeta.eth.sol) - -**Inherits:** -ERC20 - -*ZetaEth is an implementation of OpenZeppelin's ERC20* - - -## Functions -### constructor - - -```solidity -constructor(address creator, uint256 initialSupply); -``` - diff --git a/v1/docs/src/contracts/evm/Zeta.non-eth.sol/contract.ZetaNonEth.md b/v1/docs/src/contracts/evm/Zeta.non-eth.sol/contract.ZetaNonEth.md deleted file mode 100644 index 17d5018b6..000000000 --- a/v1/docs/src/contracts/evm/Zeta.non-eth.sol/contract.ZetaNonEth.md +++ /dev/null @@ -1,104 +0,0 @@ -# ZetaNonEth -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/Zeta.non-eth.sol) - -**Inherits:** -[ZetaNonEthInterface](/contracts/evm/interfaces/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md), ERC20Burnable, [ZetaErrors](/contracts/evm/interfaces/ZetaErrors.sol/interface.ZetaErrors.md) - - -## State Variables -### connectorAddress - -```solidity -address public connectorAddress; -``` - - -### tssAddress -*Collectively held by Zeta blockchain validators* - - -```solidity -address public tssAddress; -``` - - -### tssAddressUpdater -*Initially a multi-sig, eventually held by Zeta blockchain validators (via renounceTssAddressUpdater)* - - -```solidity -address public tssAddressUpdater; -``` - - -## Functions -### constructor - - -```solidity -constructor(address tssAddress_, address tssAddressUpdater_) ERC20("Zeta", "ZETA"); -``` - -### updateTssAndConnectorAddresses - - -```solidity -function updateTssAndConnectorAddresses(address tssAddress_, address connectorAddress_) external; -``` - -### renounceTssAddressUpdater - -*Sets tssAddressUpdater to be tssAddress* - - -```solidity -function renounceTssAddressUpdater() external; -``` - -### mint - - -```solidity -function mint(address mintee, uint256 value, bytes32 internalSendHash) external override; -``` - -### burnFrom - -*Only Connector can mint. Minting requires burning the equivalent amount on another chain* - - -```solidity -function burnFrom(address account, uint256 amount) public override(ZetaNonEthInterface, ERC20Burnable); -``` - -## Events -### Minted - -```solidity -event Minted(address indexed mintee, uint256 amount, bytes32 indexed internalSendHash); -``` - -### Burnt - -```solidity -event Burnt(address indexed burnee, uint256 amount); -``` - -### TSSAddressUpdated - -```solidity -event TSSAddressUpdated(address callerAddress, address newTssAddress); -``` - -### TSSAddressUpdaterUpdated - -```solidity -event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress); -``` - -### ConnectorAddressUpdated - -```solidity -event ConnectorAddressUpdated(address callerAddress, address newConnectorAddress); -``` - diff --git a/v1/docs/src/contracts/evm/ZetaConnector.base.sol/contract.ZetaConnectorBase.md b/v1/docs/src/contracts/evm/ZetaConnector.base.sol/contract.ZetaConnectorBase.md deleted file mode 100644 index b7b7454d9..000000000 --- a/v1/docs/src/contracts/evm/ZetaConnector.base.sol/contract.ZetaConnectorBase.md +++ /dev/null @@ -1,235 +0,0 @@ -# ZetaConnectorBase -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/ZetaConnector.base.sol) - -**Inherits:** -[ConnectorErrors](/contracts/evm/interfaces/ConnectorErrors.sol/interface.ConnectorErrors.md), Pausable - -*Main abstraction of ZetaConnector. -This contract manages interactions between TSS and different chains. -There's an instance of this contract on each chain supported by ZetaChain.* - - -## State Variables -### zetaToken - -```solidity -address public immutable zetaToken; -``` - - -### pauserAddress -*Multisig contract to pause incoming transactions. -The responsibility of pausing outgoing transactions is left to the protocol for more flexibility.* - - -```solidity -address public pauserAddress; -``` - - -### tssAddress -*Collectively held by ZetaChain validators.* - - -```solidity -address public tssAddress; -``` - - -### tssAddressUpdater -*This address will start pointing to a multisig contract, then it will become the TSS address itself.* - - -```solidity -address public tssAddressUpdater; -``` - - -## Functions -### constructor - -*Constructor requires initial addresses. -zetaToken address is the only immutable one, while others can be updated.* - - -```solidity -constructor(address zetaToken_, address tssAddress_, address tssAddressUpdater_, address pauserAddress_); -``` - -### onlyPauser - -*Modifier to restrict actions to pauser address.* - - -```solidity -modifier onlyPauser(); -``` - -### onlyTssAddress - -*Modifier to restrict actions to TSS address.* - - -```solidity -modifier onlyTssAddress(); -``` - -### onlyTssUpdater - -*Modifier to restrict actions to TSS updater address.* - - -```solidity -modifier onlyTssUpdater(); -``` - -### updatePauserAddress - -*Update the pauser address. The only address allowed to do that is the current pauser.* - - -```solidity -function updatePauserAddress(address pauserAddress_) external onlyPauser; -``` - -### updateTssAddress - -*Update the TSS address. The address can be updated by the TSS updater or the TSS address itself.* - - -```solidity -function updateTssAddress(address tssAddress_) external; -``` - -### renounceTssAddressUpdater - -*Changes the ownership of tssAddressUpdater to be the one held by the ZetaChain TSS Signer nodes.* - - -```solidity -function renounceTssAddressUpdater() external onlyTssUpdater; -``` - -### pause - -*Pause the input (send) transactions.* - - -```solidity -function pause() external onlyPauser; -``` - -### unpause - -*Unpause the contract to allow transactions again.* - - -```solidity -function unpause() external onlyPauser; -``` - -### send - -*Entrypoint to send data and value through ZetaChain.* - - -```solidity -function send(ZetaInterfaces.SendInput calldata input) external virtual; -``` - -### onReceive - -*Handler to receive data from other chain. -This method can be called only by TSS. Access validation is in implementation.* - - -```solidity -function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash -) external virtual; -``` - -### onRevert - -*Handler to receive errors from other chain. -This method can be called only by TSS. Access validation is in implementation.* - - -```solidity -function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash -) external virtual; -``` - -## Events -### ZetaSent - -```solidity -event ZetaSent( - address sourceTxOriginAddress, - address indexed zetaTxSenderAddress, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 zetaValueAndGas, - uint256 destinationGasLimit, - bytes message, - bytes zetaParams -); -``` - -### ZetaReceived - -```solidity -event ZetaReceived( - bytes zetaTxSenderAddress, - uint256 indexed sourceChainId, - address indexed destinationAddress, - uint256 zetaValue, - bytes message, - bytes32 indexed internalSendHash -); -``` - -### ZetaReverted - -```solidity -event ZetaReverted( - address zetaTxSenderAddress, - uint256 sourceChainId, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 remainingZetaValue, - bytes message, - bytes32 indexed internalSendHash -); -``` - -### TSSAddressUpdated - -```solidity -event TSSAddressUpdated(address callerAddress, address newTssAddress); -``` - -### TSSAddressUpdaterUpdated - -```solidity -event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress); -``` - -### PauserAddressUpdated - -```solidity -event PauserAddressUpdated(address callerAddress, address newTssAddress); -``` - diff --git a/v1/docs/src/contracts/evm/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md b/v1/docs/src/contracts/evm/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md deleted file mode 100644 index 0b8b1155b..000000000 --- a/v1/docs/src/contracts/evm/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md +++ /dev/null @@ -1,74 +0,0 @@ -# ZetaConnectorEth -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/ZetaConnector.eth.sol) - -**Inherits:** -[ZetaConnectorBase](/contracts/evm/ZetaConnector.base.sol/contract.ZetaConnectorBase.md) - -*ETH implementation of ZetaConnector. -This contract manages interactions between TSS and different chains. -This version is only for Ethereum network because in the other chains we mint and burn and in this one we lock and unlock.* - - -## Functions -### constructor - - -```solidity -constructor(address zetaToken_, address tssAddress_, address tssAddressUpdater_, address pauserAddress_) - ZetaConnectorBase(zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_); -``` - -### getLockedAmount - - -```solidity -function getLockedAmount() external view returns (uint256); -``` - -### send - -*Entrypoint to send data through ZetaChain -This call locks the token on the contract and emits an event with all the data needed by the protocol.* - - -```solidity -function send(ZetaInterfaces.SendInput calldata input) external override whenNotPaused; -``` - -### onReceive - -*Handler to receive data from other chain. -This method can be called only by TSS. -Transfers the Zeta tokens to destination and calls onZetaMessage if it's needed.* - - -```solidity -function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash -) external override onlyTssAddress; -``` - -### onRevert - -*Handler to receive errors from other chain. -This method can be called only by TSS. -Transfers the Zeta tokens to destination and calls onZetaRevert if it's needed.* - - -```solidity -function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash -) external override whenNotPaused onlyTssAddress; -``` - diff --git a/v1/docs/src/contracts/evm/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md b/v1/docs/src/contracts/evm/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md deleted file mode 100644 index 5b34034b8..000000000 --- a/v1/docs/src/contracts/evm/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md +++ /dev/null @@ -1,98 +0,0 @@ -# ZetaConnectorNonEth -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/ZetaConnector.non-eth.sol) - -**Inherits:** -[ZetaConnectorBase](/contracts/evm/ZetaConnector.base.sol/contract.ZetaConnectorBase.md) - -*Non ETH implementation of ZetaConnector. -This contract manages interactions between TSS and different chains. -This version is for every chain but Etherum network because in the other chains we mint and burn and in Etherum we lock and unlock* - - -## State Variables -### maxSupply - -```solidity -uint256 public maxSupply = 2 ** 256 - 1; -``` - - -## Functions -### constructor - - -```solidity -constructor(address zetaTokenAddress_, address tssAddress_, address tssAddressUpdater_, address pauserAddress_) - ZetaConnectorBase(zetaTokenAddress_, tssAddress_, tssAddressUpdater_, pauserAddress_); -``` - -### getLockedAmount - - -```solidity -function getLockedAmount() external view returns (uint256); -``` - -### setMaxSupply - - -```solidity -function setMaxSupply(uint256 maxSupply_) external onlyTssAddress; -``` - -### send - -*Entry point to send data to protocol -This call burn the token and emit an event with all the data needed by the protocol* - - -```solidity -function send(ZetaInterfaces.SendInput calldata input) external override whenNotPaused; -``` - -### onReceive - -*Handler to receive data from other chain. -This method can be called only by TSS. -Transfer the Zeta tokens to destination and calls onZetaMessage if it's needed. -To perform the transfer mint new tokens, validating first the maxSupply allowed in the current chain.* - - -```solidity -function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash -) external override onlyTssAddress; -``` - -### onRevert - -*Handler to receive errors from other chain. -This method can be called only by TSS. -Transfer the Zeta tokens to destination and calls onZetaRevert if it's needed. -To perform the transfer mint new tokens, validating first the maxSupply allowed in the current chain.* - - -```solidity -function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash -) external override whenNotPaused onlyTssAddress; -``` - -## Events -### MaxSupplyUpdated - -```solidity -event MaxSupplyUpdated(address callerAddress, uint256 newMaxSupply); -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ConnectorErrors.sol/interface.ConnectorErrors.md b/v1/docs/src/contracts/evm/interfaces/ConnectorErrors.sol/interface.ConnectorErrors.md deleted file mode 100644 index a3f6a8d9b..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ConnectorErrors.sol/interface.ConnectorErrors.md +++ /dev/null @@ -1,43 +0,0 @@ -# ConnectorErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ConnectorErrors.sol) - -*Interface with connector custom errors* - - -## Errors -### CallerIsNotPauser - -```solidity -error CallerIsNotPauser(address caller); -``` - -### CallerIsNotTss - -```solidity -error CallerIsNotTss(address caller); -``` - -### CallerIsNotTssUpdater - -```solidity -error CallerIsNotTssUpdater(address caller); -``` - -### CallerIsNotTssOrUpdater - -```solidity -error CallerIsNotTssOrUpdater(address caller); -``` - -### ZetaTransferError - -```solidity -error ZetaTransferError(); -``` - -### ExceedsMaxSupply - -```solidity -error ExceedsMaxSupply(uint256 maxSupply); -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/README.md b/v1/docs/src/contracts/evm/interfaces/README.md deleted file mode 100644 index 825ccb3b9..000000000 --- a/v1/docs/src/contracts/evm/interfaces/README.md +++ /dev/null @@ -1,12 +0,0 @@ - - -# Contents -- [ConnectorErrors](ConnectorErrors.sol/interface.ConnectorErrors.md) -- [ZetaErrors](ZetaErrors.sol/interface.ZetaErrors.md) -- [ZetaInteractorErrors](ZetaInteractorErrors.sol/interface.ZetaInteractorErrors.md) -- [ZetaInterfaces](ZetaInterfaces.sol/interface.ZetaInterfaces.md) -- [ZetaConnector](ZetaInterfaces.sol/interface.ZetaConnector.md) -- [ZetaReceiver](ZetaInterfaces.sol/interface.ZetaReceiver.md) -- [ZetaTokenConsumer](ZetaInterfaces.sol/interface.ZetaTokenConsumer.md) -- [ZetaCommonErrors](ZetaInterfaces.sol/interface.ZetaCommonErrors.md) -- [ZetaNonEthInterface](ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md) diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaErrors.sol/interface.ZetaErrors.md b/v1/docs/src/contracts/evm/interfaces/ZetaErrors.sol/interface.ZetaErrors.md deleted file mode 100644 index 6855b0b7c..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaErrors.sol/interface.ZetaErrors.md +++ /dev/null @@ -1,43 +0,0 @@ -# ZetaErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaErrors.sol) - -*Common custom errors* - - -## Errors -### CallerIsNotTss - -```solidity -error CallerIsNotTss(address caller); -``` - -### CallerIsNotConnector - -```solidity -error CallerIsNotConnector(address caller); -``` - -### CallerIsNotTssUpdater - -```solidity -error CallerIsNotTssUpdater(address caller); -``` - -### CallerIsNotTssOrUpdater - -```solidity -error CallerIsNotTssOrUpdater(address caller); -``` - -### InvalidAddress - -```solidity -error InvalidAddress(); -``` - -### ZetaTransferError - -```solidity -error ZetaTransferError(); -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaInteractorErrors.sol/interface.ZetaInteractorErrors.md b/v1/docs/src/contracts/evm/interfaces/ZetaInteractorErrors.sol/interface.ZetaInteractorErrors.md deleted file mode 100644 index 10f393895..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaInteractorErrors.sol/interface.ZetaInteractorErrors.md +++ /dev/null @@ -1,31 +0,0 @@ -# ZetaInteractorErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaInteractorErrors.sol) - -*Interface with Zeta Interactor errors* - - -## Errors -### InvalidDestinationChainId - -```solidity -error InvalidDestinationChainId(); -``` - -### InvalidCaller - -```solidity -error InvalidCaller(address caller); -``` - -### InvalidZetaMessageCall - -```solidity -error InvalidZetaMessageCall(); -``` - -### InvalidZetaRevertCall - -```solidity -error InvalidZetaRevertCall(); -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaCommonErrors.md b/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaCommonErrors.md deleted file mode 100644 index 13b95cbe9..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaCommonErrors.md +++ /dev/null @@ -1,11 +0,0 @@ -# ZetaCommonErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaInterfaces.sol) - - -## Errors -### InvalidAddress - -```solidity -error InvalidAddress(); -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaConnector.md b/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaConnector.md deleted file mode 100644 index 3565c19ed..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaConnector.md +++ /dev/null @@ -1,14 +0,0 @@ -# ZetaConnector -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaInterfaces.sol) - - -## Functions -### send - -*Sending value and data cross-chain is as easy as calling connector.send(SendInput)* - - -```solidity -function send(ZetaInterfaces.SendInput calldata input) external; -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaInterfaces.md b/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaInterfaces.md deleted file mode 100644 index f035012eb..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaInterfaces.md +++ /dev/null @@ -1,49 +0,0 @@ -# ZetaInterfaces -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaInterfaces.sol) - - -## Structs -### SendInput -*Use SendInput to interact with the Connector: connector.send(SendInput)* - - -```solidity -struct SendInput { - uint256 destinationChainId; - bytes destinationAddress; - uint256 destinationGasLimit; - bytes message; - uint256 zetaValueAndGas; - bytes zetaParams; -} -``` - -### ZetaMessage -*Our Connector calls onZetaMessage with this struct as argument* - - -```solidity -struct ZetaMessage { - bytes zetaTxSenderAddress; - uint256 sourceChainId; - address destinationAddress; - uint256 zetaValue; - bytes message; -} -``` - -### ZetaRevert -*Our Connector calls onZetaRevert with this struct as argument* - - -```solidity -struct ZetaRevert { - address zetaTxSenderAddress; - uint256 sourceChainId; - bytes destinationAddress; - uint256 destinationChainId; - uint256 remainingZetaValue; - bytes message; -} -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaReceiver.md b/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaReceiver.md deleted file mode 100644 index 11798ecaf..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaReceiver.md +++ /dev/null @@ -1,24 +0,0 @@ -# ZetaReceiver -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaInterfaces.sol) - - -## Functions -### onZetaMessage - -*onZetaMessage is called when a cross-chain message reaches a contract* - - -```solidity -function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) external; -``` - -### onZetaRevert - -*onZetaRevert is called when a cross-chain message reverts. -It's useful to rollback to the original state* - - -```solidity -function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external; -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md b/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md deleted file mode 100644 index 6e62d5941..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md +++ /dev/null @@ -1,85 +0,0 @@ -# ZetaTokenConsumer -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaInterfaces.sol) - -*ZetaTokenConsumer makes it easier to handle the following situations: -- Getting Zeta using native coin (to pay for destination gas while using `connector.send`) -- Getting Zeta using a token (to pay for destination gas while using `connector.send`) -- Getting native coin using Zeta (to return unused destination gas when `onZetaRevert` is executed) -- Getting a token using Zeta (to return unused destination gas when `onZetaRevert` is executed)* - -*The interface can be implemented using different strategies, like UniswapV2, UniswapV3, etc* - - -## Functions -### getZetaFromEth - - -```solidity -function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable returns (uint256); -``` - -### getZetaFromToken - - -```solidity -function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount -) external returns (uint256); -``` - -### getEthFromZeta - - -```solidity -function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) - external - returns (uint256); -``` - -### getTokenFromZeta - - -```solidity -function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount -) external returns (uint256); -``` - -### hasZetaLiquidity - - -```solidity -function hasZetaLiquidity() external view returns (bool); -``` - -## Events -### EthExchangedForZeta - -```solidity -event EthExchangedForZeta(uint256 amountIn, uint256 amountOut); -``` - -### TokenExchangedForZeta - -```solidity -event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut); -``` - -### ZetaExchangedForEth - -```solidity -event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut); -``` - -### ZetaExchangedForToken - -```solidity -event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut); -``` - diff --git a/v1/docs/src/contracts/evm/interfaces/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md b/v1/docs/src/contracts/evm/interfaces/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md deleted file mode 100644 index a7469d012..000000000 --- a/v1/docs/src/contracts/evm/interfaces/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md +++ /dev/null @@ -1,24 +0,0 @@ -# ZetaNonEthInterface -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/interfaces/ZetaNonEthInterface.sol) - -**Inherits:** -IERC20 - -*ZetaNonEthInterface is a mintable / burnable version of IERC20* - - -## Functions -### burnFrom - - -```solidity -function burnFrom(address account, uint256 amount) external; -``` - -### mint - - -```solidity -function mint(address mintee, uint256 value, bytes32 internalSendHash) external; -``` - diff --git a/v1/docs/src/contracts/evm/testing/AttackerContract.sol/contract.AttackerContract.md b/v1/docs/src/contracts/evm/testing/AttackerContract.sol/contract.AttackerContract.md deleted file mode 100644 index 6eaae5012..000000000 --- a/v1/docs/src/contracts/evm/testing/AttackerContract.sol/contract.AttackerContract.md +++ /dev/null @@ -1,76 +0,0 @@ -# AttackerContract -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/testing/AttackerContract.sol) - - -## State Variables -### victimContractAddress - -```solidity -address public victimContractAddress; -``` - - -### _victimMethod - -```solidity -uint256 private _victimMethod; -``` - - -## Functions -### constructor - - -```solidity -constructor(address victimContractAddress_, address wzeta, uint256 victimMethod); -``` - -### receive - - -```solidity -receive() external payable; -``` - -### attackDeposit - - -```solidity -function attackDeposit() internal; -``` - -### attackWidrawal - - -```solidity -function attackWidrawal() internal; -``` - -### attack - - -```solidity -function attack() internal; -``` - -### balanceOf - - -```solidity -function balanceOf(address account) external returns (uint256); -``` - -### transferFrom - - -```solidity -function transferFrom(address from, address to, uint256 amount) public returns (bool); -``` - -### transfer - - -```solidity -function transfer(address to, uint256 amount) public returns (bool); -``` - diff --git a/v1/docs/src/contracts/evm/testing/AttackerContract.sol/interface.Victim.md b/v1/docs/src/contracts/evm/testing/AttackerContract.sol/interface.Victim.md deleted file mode 100644 index d99198a8f..000000000 --- a/v1/docs/src/contracts/evm/testing/AttackerContract.sol/interface.Victim.md +++ /dev/null @@ -1,19 +0,0 @@ -# Victim -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/testing/AttackerContract.sol) - - -## Functions -### deposit - - -```solidity -function deposit(bytes calldata recipient, address asset, uint256 amount, bytes calldata message) external; -``` - -### withdraw - - -```solidity -function withdraw(address recipient, address asset, uint256 amount) external; -``` - diff --git a/v1/docs/src/contracts/evm/testing/ERC20Mock.sol/contract.ERC20Mock.md b/v1/docs/src/contracts/evm/testing/ERC20Mock.sol/contract.ERC20Mock.md deleted file mode 100644 index 0e863c06d..000000000 --- a/v1/docs/src/contracts/evm/testing/ERC20Mock.sol/contract.ERC20Mock.md +++ /dev/null @@ -1,17 +0,0 @@ -# ERC20Mock -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/testing/ERC20Mock.sol) - -**Inherits:** -ERC20 - -*ZetaEth is an implementation of OpenZeppelin's ERC20* - - -## Functions -### constructor - - -```solidity -constructor(string memory name, string memory symbol, address creator, uint256 initialSupply) ERC20(name, symbol); -``` - diff --git a/v1/docs/src/contracts/evm/testing/README.md b/v1/docs/src/contracts/evm/testing/README.md deleted file mode 100644 index 18d008bed..000000000 --- a/v1/docs/src/contracts/evm/testing/README.md +++ /dev/null @@ -1,10 +0,0 @@ - - -# Contents -- [Victim](AttackerContract.sol/interface.Victim.md) -- [AttackerContract](AttackerContract.sol/contract.AttackerContract.md) -- [ERC20Mock](ERC20Mock.sol/contract.ERC20Mock.md) -- [INonfungiblePositionManager](TestUniswapV3Contracts.sol/interface.INonfungiblePositionManager.md) -- [IPoolInitializer](TestUniswapV3Contracts.sol/interface.IPoolInitializer.md) -- [ZetaInteractorMock](ZetaInteractorMock.sol/contract.ZetaInteractorMock.md) -- [ZetaReceiverMock](ZetaReceiverMock.sol/contract.ZetaReceiverMock.md) diff --git a/v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.INonfungiblePositionManager.md b/v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.INonfungiblePositionManager.md deleted file mode 100644 index e2c28aa1d..000000000 --- a/v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.INonfungiblePositionManager.md +++ /dev/null @@ -1,288 +0,0 @@ -# INonfungiblePositionManager -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/testing/TestUniswapV3Contracts.sol) - -Wraps Uniswap V3 positions in a non-fungible token interface which allows for them to be transferred -and authorized. - - -## Functions -### positions - -Returns the position information associated with a given token ID. - -*Throws if the token ID is not valid.* - - -```solidity -function positions(uint256 tokenId) - external - view - returns ( - uint96 nonce, - address operator, - address token0, - address token1, - uint24 fee, - int24 tickLower, - int24 tickUpper, - uint128 liquidity, - uint256 feeGrowthInside0LastX128, - uint256 feeGrowthInside1LastX128, - uint128 tokensOwed0, - uint128 tokensOwed1 - ); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`tokenId`|`uint256`|The ID of the token that represents the position| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`nonce`|`uint96`|The nonce for permits| -|`operator`|`address`|The address that is approved for spending| -|`token0`|`address`|The address of the token0 for a specific pool| -|`token1`|`address`|The address of the token1 for a specific pool| -|`fee`|`uint24`|The fee associated with the pool| -|`tickLower`|`int24`|The lower end of the tick range for the position| -|`tickUpper`|`int24`|The higher end of the tick range for the position| -|`liquidity`|`uint128`|The liquidity of the position| -|`feeGrowthInside0LastX128`|`uint256`|The fee growth of token0 as of the last action on the individual position| -|`feeGrowthInside1LastX128`|`uint256`|The fee growth of token1 as of the last action on the individual position| -|`tokensOwed0`|`uint128`|The uncollected amount of token0 owed to the position as of the last computation| -|`tokensOwed1`|`uint128`|The uncollected amount of token1 owed to the position as of the last computation| - - -### mint - -Creates a new position wrapped in a NFT - -*Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized -a method does not exist, i.e. the pool is assumed to be initialized.* - - -```solidity -function mint(MintParams calldata params) - external - payable - returns (uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`MintParams`|The params necessary to mint a position, encoded as `MintParams` in calldata| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`tokenId`|`uint256`|The ID of the token that represents the minted position| -|`liquidity`|`uint128`|The amount of liquidity for this position| -|`amount0`|`uint256`|The amount of token0| -|`amount1`|`uint256`|The amount of token1| - - -### increaseLiquidity - -Increases the amount of liquidity in a position, with tokens paid by the `msg.sender` - - -```solidity -function increaseLiquidity(IncreaseLiquidityParams calldata params) - external - payable - returns (uint128 liquidity, uint256 amount0, uint256 amount1); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`IncreaseLiquidityParams`|tokenId The ID of the token for which liquidity is being increased, amount0Desired The desired amount of token0 to be spent, amount1Desired The desired amount of token1 to be spent, amount0Min The minimum amount of token0 to spend, which serves as a slippage check, amount1Min The minimum amount of token1 to spend, which serves as a slippage check, deadline The time by which the transaction must be included to effect the change| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`liquidity`|`uint128`|The new liquidity amount as a result of the increase| -|`amount0`|`uint256`|The amount of token0 to acheive resulting liquidity| -|`amount1`|`uint256`|The amount of token1 to acheive resulting liquidity| - - -### decreaseLiquidity - -Decreases the amount of liquidity in a position and accounts it to the position - - -```solidity -function decreaseLiquidity(DecreaseLiquidityParams calldata params) - external - payable - returns (uint256 amount0, uint256 amount1); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`DecreaseLiquidityParams`|tokenId The ID of the token for which liquidity is being decreased, amount The amount by which liquidity will be decreased, amount0Min The minimum amount of token0 that should be accounted for the burned liquidity, amount1Min The minimum amount of token1 that should be accounted for the burned liquidity, deadline The time by which the transaction must be included to effect the change| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`amount0`|`uint256`|The amount of token0 accounted to the position's tokens owed| -|`amount1`|`uint256`|The amount of token1 accounted to the position's tokens owed| - - -### collect - -Collects up to a maximum amount of fees owed to a specific position to the recipient - - -```solidity -function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`CollectParams`|tokenId The ID of the NFT for which tokens are being collected, recipient The account that should receive the tokens, amount0Max The maximum amount of token0 to collect, amount1Max The maximum amount of token1 to collect| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`amount0`|`uint256`|The amount of fees collected in token0| -|`amount1`|`uint256`|The amount of fees collected in token1| - - -### burn - -Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens -must be collected first. - - -```solidity -function burn(uint256 tokenId) external payable; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`tokenId`|`uint256`|The ID of the token that is being burned| - - -## Events -### IncreaseLiquidity -Emitted when liquidity is increased for a position NFT - -*Also emitted when a token is minted* - - -```solidity -event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); -``` - -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`tokenId`|`uint256`|The ID of the token for which liquidity was increased| -|`liquidity`|`uint128`|The amount by which liquidity for the NFT position was increased| -|`amount0`|`uint256`|The amount of token0 that was paid for the increase in liquidity| -|`amount1`|`uint256`|The amount of token1 that was paid for the increase in liquidity| - -### DecreaseLiquidity -Emitted when liquidity is decreased for a position NFT - - -```solidity -event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); -``` - -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`tokenId`|`uint256`|The ID of the token for which liquidity was decreased| -|`liquidity`|`uint128`|The amount by which liquidity for the NFT position was decreased| -|`amount0`|`uint256`|The amount of token0 that was accounted for the decrease in liquidity| -|`amount1`|`uint256`|The amount of token1 that was accounted for the decrease in liquidity| - -### Collect -Emitted when tokens are collected for a position NFT - -*The amounts reported may not be exactly equivalent to the amounts transferred, due to rounding behavior* - - -```solidity -event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1); -``` - -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`tokenId`|`uint256`|The ID of the token for which underlying tokens were collected| -|`recipient`|`address`|The address of the account that received the collected tokens| -|`amount0`|`uint256`|The amount of token0 owed to the position that was collected| -|`amount1`|`uint256`|The amount of token1 owed to the position that was collected| - -## Structs -### MintParams - -```solidity -struct MintParams { - address token0; - address token1; - uint24 fee; - int24 tickLower; - int24 tickUpper; - uint256 amount0Desired; - uint256 amount1Desired; - uint256 amount0Min; - uint256 amount1Min; - address recipient; - uint256 deadline; -} -``` - -### IncreaseLiquidityParams - -```solidity -struct IncreaseLiquidityParams { - uint256 tokenId; - uint256 amount0Desired; - uint256 amount1Desired; - uint256 amount0Min; - uint256 amount1Min; - uint256 deadline; -} -``` - -### DecreaseLiquidityParams - -```solidity -struct DecreaseLiquidityParams { - uint256 tokenId; - uint128 liquidity; - uint256 amount0Min; - uint256 amount1Min; - uint256 deadline; -} -``` - -### CollectParams - -```solidity -struct CollectParams { - uint256 tokenId; - address recipient; - uint128 amount0Max; - uint128 amount1Max; -} -``` - diff --git a/v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.IPoolInitializer.md b/v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.IPoolInitializer.md deleted file mode 100644 index 24f2213a0..000000000 --- a/v1/docs/src/contracts/evm/testing/TestUniswapV3Contracts.sol/interface.IPoolInitializer.md +++ /dev/null @@ -1,34 +0,0 @@ -# IPoolInitializer -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/testing/TestUniswapV3Contracts.sol) - - -## Functions -### createAndInitializePoolIfNecessary - -Creates a new pool if it does not exist, then initializes if not initialized - -*This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool* - - -```solidity -function createAndInitializePoolIfNecessary(address token0, address token1, uint24 fee, uint160 sqrtPriceX96) - external - payable - returns (address pool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`token0`|`address`|The contract address of token0 of the pool| -|`token1`|`address`|The contract address of token1 of the pool| -|`fee`|`uint24`|The fee amount of the v3 pool for the specified token pair| -|`sqrtPriceX96`|`uint160`|The initial square root price of the pool as a Q64.96 value| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`pool`|`address`|Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary| - - diff --git a/v1/docs/src/contracts/evm/testing/ZetaInteractorMock.sol/contract.ZetaInteractorMock.md b/v1/docs/src/contracts/evm/testing/ZetaInteractorMock.sol/contract.ZetaInteractorMock.md deleted file mode 100644 index c16679f56..000000000 --- a/v1/docs/src/contracts/evm/testing/ZetaInteractorMock.sol/contract.ZetaInteractorMock.md +++ /dev/null @@ -1,32 +0,0 @@ -# ZetaInteractorMock -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/testing/ZetaInteractorMock.sol) - -**Inherits:** -Ownable2Step, [ZetaInteractor](/contracts/evm/tools/ZetaInteractor.sol/abstract.ZetaInteractor.md), [ZetaReceiver](/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md) - - -## Functions -### constructor - - -```solidity -constructor(address zetaConnectorAddress) ZetaInteractor(zetaConnectorAddress); -``` - -### onZetaMessage - - -```solidity -function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) - external - override - isValidMessageCall(zetaMessage); -``` - -### onZetaRevert - - -```solidity -function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external override isValidRevertCall(zetaRevert); -``` - diff --git a/v1/docs/src/contracts/evm/testing/ZetaReceiverMock.sol/contract.ZetaReceiverMock.md b/v1/docs/src/contracts/evm/testing/ZetaReceiverMock.sol/contract.ZetaReceiverMock.md deleted file mode 100644 index 55b41147a..000000000 --- a/v1/docs/src/contracts/evm/testing/ZetaReceiverMock.sol/contract.ZetaReceiverMock.md +++ /dev/null @@ -1,35 +0,0 @@ -# ZetaReceiverMock -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/testing/ZetaReceiverMock.sol) - -**Inherits:** -[ZetaReceiver](/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md) - - -## Functions -### onZetaMessage - - -```solidity -function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) external override; -``` - -### onZetaRevert - - -```solidity -function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external override; -``` - -## Events -### MockOnZetaMessage - -```solidity -event MockOnZetaMessage(address destinationAddress); -``` - -### MockOnZetaRevert - -```solidity -event MockOnZetaRevert(address zetaTxSenderAddress); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/contract.ImmutableCreate2Factory.md b/v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/contract.ImmutableCreate2Factory.md deleted file mode 100644 index 044115b2f..000000000 --- a/v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/contract.ImmutableCreate2Factory.md +++ /dev/null @@ -1,177 +0,0 @@ -# ImmutableCreate2Factory -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ImmutableCreate2Factory.sol) - -**Author:** -0age - -This contract provides a safeCreate2 function that takes a salt value -and a block of initialization code as arguments and passes them into inline -assembly. The contract prevents redeploys by maintaining a mapping of all -contracts that have already been deployed, and prevents frontrunning or other -collisions by requiring that the first 20 bytes of the salt are equal to the -address of the caller (this can be bypassed by setting the first 20 bytes to -the null address). There is also a view function that computes the address of -the contract that will be created when submitting a given salt or nonce along -with a given block of initialization code. - -*This contract has not yet been fully tested or audited - proceed with -caution and please share any exploits or optimizations you discover.* - - -## State Variables -### _deployed - -```solidity -mapping(address => bool) private _deployed; -``` - - -## Functions -### safeCreate2Internal - - -```solidity -function safeCreate2Internal(bytes32 salt, bytes memory initializationCode) - internal - returns (address deploymentAddress); -``` - -### safeCreate2 - -*Create a contract using CREATE2 by submitting a given salt or nonce -along with the initialization code for the contract. Note that the first 20 -bytes of the salt must match those of the calling address, which prevents -contract creation events from being submitted by unintended parties.* - - -```solidity -function safeCreate2(bytes32 salt, bytes memory initializationCode) - public - payable - containsCaller(salt) - returns (address deploymentAddress); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`salt`|`bytes32`|bytes32 The nonce that will be passed into the CREATE2 call.| -|`initializationCode`|`bytes`|bytes The initialization code that will be passed into the CREATE2 call.| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`deploymentAddress`|`address`|Address of the contract that will be created, or the null address if a contract already exists at that address.| - - -### findCreate2Address - -*Compute the address of the contract that will be created when -submitting a given salt or nonce to the contract along with the contract's -initialization code. The CREATE2 address is computed in accordance with -EIP-1014, and adheres to the formula therein of -`keccak256( 0xff ++ address ++ salt ++ keccak256(init_code)))[12:]` when -performing the computation. The computed address is then checked for any -existing contract code - if so, the null address will be returned instead.* - - -```solidity -function findCreate2Address(bytes32 salt, bytes calldata initCode) external view returns (address deploymentAddress); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`salt`|`bytes32`|bytes32 The nonce passed into the CREATE2 address calculation.| -|`initCode`|`bytes`|bytes The contract initialization code to be used. that will be passed into the CREATE2 address calculation.| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`deploymentAddress`|`address`|Address of the contract that will be created, or the null address if a contract has already been deployed to that address.| - - -### findCreate2AddressViaHash - -*Compute the address of the contract that will be created when -submitting a given salt or nonce to the contract along with the keccak256 -hash of the contract's initialization code. The CREATE2 address is computed -in accordance with EIP-1014, and adheres to the formula therein of -`keccak256( 0xff ++ address ++ salt ++ keccak256(init_code)))[12:]` when -performing the computation. The computed address is then checked for any -existing contract code - if so, the null address will be returned instead.* - - -```solidity -function findCreate2AddressViaHash(bytes32 salt, bytes32 initCodeHash) - external - view - returns (address deploymentAddress); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`salt`|`bytes32`|bytes32 The nonce passed into the CREATE2 address calculation.| -|`initCodeHash`|`bytes32`|bytes32 The keccak256 hash of the initialization code that will be passed into the CREATE2 address calculation.| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`deploymentAddress`|`address`|Address of the contract that will be created, or the null address if a contract has already been deployed to that address.| - - -### hasBeenDeployed - -*Determine if a contract has already been deployed by the factory to a -given address.* - - -```solidity -function hasBeenDeployed(address deploymentAddress) external view returns (bool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`deploymentAddress`|`address`|address The contract address to check.| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`bool`|True if the contract has been deployed, false otherwise.| - - -### containsCaller - -*Modifier to ensure that the first 20 bytes of a submitted salt match -those of the calling account. This provides protection against the salt -being stolen by frontrunners or other attackers. The protection can also be -bypassed if desired by setting each of the first 20 bytes to zero.* - - -```solidity -modifier containsCaller(bytes32 salt); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`salt`|`bytes32`|bytes32 The salt value to check against the calling address.| - - -### safeCreate2AndTransfer - - -```solidity -function safeCreate2AndTransfer(bytes32 salt, bytes calldata initializationCode) - external - payable - containsCaller(salt) - returns (address deploymentAddress); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/interface.Ownable.md b/v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/interface.Ownable.md deleted file mode 100644 index b07fd77c6..000000000 --- a/v1/docs/src/contracts/evm/tools/ImmutableCreate2Factory.sol/interface.Ownable.md +++ /dev/null @@ -1,12 +0,0 @@ -# Ownable -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ImmutableCreate2Factory.sol) - - -## Functions -### transferOwnership - - -```solidity -function transferOwnership(address newOwner) external; -``` - diff --git a/v1/docs/src/contracts/evm/tools/README.md b/v1/docs/src/contracts/evm/tools/README.md deleted file mode 100644 index 740a8471f..000000000 --- a/v1/docs/src/contracts/evm/tools/README.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# Contents -- [interfaces](/contracts/evm/tools/interfaces) -- [Ownable](ImmutableCreate2Factory.sol/interface.Ownable.md) -- [ImmutableCreate2Factory](ImmutableCreate2Factory.sol/contract.ImmutableCreate2Factory.md) -- [ZetaInteractor](ZetaInteractor.sol/abstract.ZetaInteractor.md) -- [ZetaTokenConsumerUniV3Errors](ZetaTokenConsumerPancakeV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md) -- [WETH9](ZetaTokenConsumerPancakeV3.strategy.sol/interface.WETH9.md) -- [ISwapRouterPancake](ZetaTokenConsumerPancakeV3.strategy.sol/interface.ISwapRouterPancake.md) -- [ZetaTokenConsumerPancakeV3](ZetaTokenConsumerPancakeV3.strategy.sol/contract.ZetaTokenConsumerPancakeV3.md) -- [ZetaTokenConsumerTridentErrors](ZetaTokenConsumerTrident.strategy.sol/interface.ZetaTokenConsumerTridentErrors.md) -- [WETH9](ZetaTokenConsumerTrident.strategy.sol/interface.WETH9.md) -- [ZetaTokenConsumerTrident](ZetaTokenConsumerTrident.strategy.sol/contract.ZetaTokenConsumerTrident.md) -- [ZetaTokenConsumerUniV2Errors](ZetaTokenConsumerUniV2.strategy.sol/interface.ZetaTokenConsumerUniV2Errors.md) -- [ZetaTokenConsumerUniV2](ZetaTokenConsumerUniV2.strategy.sol/contract.ZetaTokenConsumerUniV2.md) -- [ZetaTokenConsumerUniV3Errors](ZetaTokenConsumerUniV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md) -- [WETH9](ZetaTokenConsumerUniV3.strategy.sol/interface.WETH9.md) -- [ZetaTokenConsumerUniV3](ZetaTokenConsumerUniV3.strategy.sol/contract.ZetaTokenConsumerUniV3.md) diff --git a/v1/docs/src/contracts/evm/tools/ZetaInteractor.sol/abstract.ZetaInteractor.md b/v1/docs/src/contracts/evm/tools/ZetaInteractor.sol/abstract.ZetaInteractor.md deleted file mode 100644 index 4b4a7a7b0..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaInteractor.sol/abstract.ZetaInteractor.md +++ /dev/null @@ -1,87 +0,0 @@ -# ZetaInteractor -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaInteractor.sol) - -**Inherits:** -Ownable2Step, [ZetaInteractorErrors](/contracts/evm/interfaces/ZetaInteractorErrors.sol/interface.ZetaInteractorErrors.md) - - -## State Variables -### ZERO_BYTES - -```solidity -bytes32 constant ZERO_BYTES = keccak256(new bytes(0)); -``` - - -### currentChainId - -```solidity -uint256 internal immutable currentChainId; -``` - - -### connector - -```solidity -ZetaConnector public immutable connector; -``` - - -### interactorsByChainId -*Maps a chain id to its corresponding address of the MultiChainSwap contract -The address is expressed in bytes to allow non-EVM chains -This mapping is useful, mainly, for two reasons: -- Given a chain id, the contract is able to route a transaction to its corresponding address -- To check that the messages (onZetaMessage, onZetaRevert) come from a trusted source* - - -```solidity -mapping(uint256 => bytes) public interactorsByChainId; -``` - - -## Functions -### isValidMessageCall - - -```solidity -modifier isValidMessageCall(ZetaInterfaces.ZetaMessage calldata zetaMessage); -``` - -### isValidRevertCall - - -```solidity -modifier isValidRevertCall(ZetaInterfaces.ZetaRevert calldata zetaRevert); -``` - -### constructor - - -```solidity -constructor(address zetaConnectorAddress); -``` - -### _isValidCaller - - -```solidity -function _isValidCaller() private view; -``` - -### _isValidChainId - -*Useful for contracts that inherit from this one* - - -```solidity -function _isValidChainId(uint256 chainId) internal view returns (bool); -``` - -### setInteractorByChainId - - -```solidity -function setInteractorByChainId(uint256 destinationChainId, bytes calldata contractAddress) external onlyOwner; -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/contract.ZetaTokenConsumerPancakeV3.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/contract.ZetaTokenConsumerPancakeV3.md deleted file mode 100644 index b572b03e1..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/contract.ZetaTokenConsumerPancakeV3.md +++ /dev/null @@ -1,143 +0,0 @@ -# ZetaTokenConsumerPancakeV3 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol) - -**Inherits:** -[ZetaTokenConsumer](/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md), [ZetaTokenConsumerUniV3Errors](/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md) - -*Uniswap V3 strategy for ZetaTokenConsumer* - - -## State Variables -### MAX_DEADLINE - -```solidity -uint256 internal constant MAX_DEADLINE = 200; -``` - - -### zetaPoolFee - -```solidity -uint24 public immutable zetaPoolFee; -``` - - -### tokenPoolFee - -```solidity -uint24 public immutable tokenPoolFee; -``` - - -### WETH9Address - -```solidity -address public immutable WETH9Address; -``` - - -### zetaToken - -```solidity -address public immutable zetaToken; -``` - - -### pancakeV3Router - -```solidity -ISwapRouterPancake public immutable pancakeV3Router; -``` - - -### uniswapV3Factory - -```solidity -IUniswapV3Factory public immutable uniswapV3Factory; -``` - - -### _locked - -```solidity -bool internal _locked; -``` - - -## Functions -### constructor - - -```solidity -constructor( - address zetaToken_, - address pancakeV3Router_, - address uniswapV3Factory_, - address WETH9Address_, - uint24 zetaPoolFee_, - uint24 tokenPoolFee_ -); -``` - -### nonReentrant - - -```solidity -modifier nonReentrant(); -``` - -### receive - - -```solidity -receive() external payable; -``` - -### getZetaFromEth - - -```solidity -function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable override returns (uint256); -``` - -### getZetaFromToken - - -```solidity -function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount -) external override returns (uint256); -``` - -### getEthFromZeta - - -```solidity -function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) - external - override - returns (uint256); -``` - -### getTokenFromZeta - - -```solidity -function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount -) external override nonReentrant returns (uint256); -``` - -### hasZetaLiquidity - - -```solidity -function hasZetaLiquidity() external view override returns (bool); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ISwapRouterPancake.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ISwapRouterPancake.md deleted file mode 100644 index e68f0e660..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ISwapRouterPancake.md +++ /dev/null @@ -1,76 +0,0 @@ -# ISwapRouterPancake -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol) - -**Inherits:** -IUniswapV3SwapCallback - - -## Functions -### exactInputSingle - -Swaps `amountIn` of one token for as much as possible of another token - - -```solidity -function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`ExactInputSingleParams`|The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`amountOut`|`uint256`|The amount of the received token| - - -### exactInput - -Swaps `amountIn` of one token for as much as possible of another along the specified path - - -```solidity -function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`ExactInputParams`|The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`amountOut`|`uint256`|The amount of the received token| - - -## Structs -### ExactInputSingleParams - -```solidity -struct ExactInputSingleParams { - address tokenIn; - address tokenOut; - uint24 fee; - address recipient; - uint256 amountIn; - uint256 amountOutMinimum; - uint160 sqrtPriceLimitX96; -} -``` - -### ExactInputParams - -```solidity -struct ExactInputParams { - bytes path; - address recipient; - uint256 amountIn; - uint256 amountOutMinimum; -} -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.WETH9.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.WETH9.md deleted file mode 100644 index d053100f5..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.WETH9.md +++ /dev/null @@ -1,12 +0,0 @@ -# WETH9 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol) - - -## Functions -### withdraw - - -```solidity -function withdraw(uint256 wad) external; -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md deleted file mode 100644 index 20d7269b3..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md +++ /dev/null @@ -1,23 +0,0 @@ -# ZetaTokenConsumerUniV3Errors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol) - - -## Errors -### InputCantBeZero - -```solidity -error InputCantBeZero(); -``` - -### ErrorSendingETH - -```solidity -error ErrorSendingETH(); -``` - -### ReentrancyError - -```solidity -error ReentrancyError(); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/contract.ZetaTokenConsumerTrident.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/contract.ZetaTokenConsumerTrident.md deleted file mode 100644 index 2b67a4fa7..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/contract.ZetaTokenConsumerTrident.md +++ /dev/null @@ -1,129 +0,0 @@ -# ZetaTokenConsumerTrident -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol) - -**Inherits:** -[ZetaTokenConsumer](/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md), [ZetaTokenConsumerTridentErrors](/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.ZetaTokenConsumerTridentErrors.md) - -*Trident strategy for ZetaTokenConsumer* - - -## State Variables -### MAX_DEADLINE - -```solidity -uint256 internal constant MAX_DEADLINE = 200; -``` - - -### WETH9Address - -```solidity -address internal immutable WETH9Address; -``` - - -### zetaToken - -```solidity -address public immutable zetaToken; -``` - - -### tridentRouter - -```solidity -IPoolRouter public immutable tridentRouter; -``` - - -### poolFactory - -```solidity -ConcentratedLiquidityPoolFactory public immutable poolFactory; -``` - - -### _locked - -```solidity -bool internal _locked; -``` - - -## Functions -### constructor - - -```solidity -constructor(address zetaToken_, address uniswapV3Router_, address WETH9Address_, address poolFactory_); -``` - -### nonReentrant - - -```solidity -modifier nonReentrant(); -``` - -### receive - - -```solidity -receive() external payable; -``` - -### getPair - - -```solidity -function getPair(address token0, address token1) internal pure returns (address, address); -``` - -### getZetaFromEth - - -```solidity -function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable override returns (uint256); -``` - -### getZetaFromToken - - -```solidity -function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount -) external override returns (uint256); -``` - -### getEthFromZeta - - -```solidity -function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) - external - override - returns (uint256); -``` - -### getTokenFromZeta - - -```solidity -function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount -) external override nonReentrant returns (uint256); -``` - -### hasZetaLiquidity - - -```solidity -function hasZetaLiquidity() external view override returns (bool); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.WETH9.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.WETH9.md deleted file mode 100644 index 8e6a71771..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.WETH9.md +++ /dev/null @@ -1,33 +0,0 @@ -# WETH9 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol) - - -## Functions -### deposit - - -```solidity -function deposit() external payable; -``` - -### withdraw - - -```solidity -function withdraw(uint256 wad) external; -``` - -### depositTo - - -```solidity -function depositTo(address to) external payable; -``` - -### withdrawTo - - -```solidity -function withdrawTo(address payable to, uint256 value) external; -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.ZetaTokenConsumerTridentErrors.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.ZetaTokenConsumerTridentErrors.md deleted file mode 100644 index e9adc33cb..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/interface.ZetaTokenConsumerTridentErrors.md +++ /dev/null @@ -1,23 +0,0 @@ -# ZetaTokenConsumerTridentErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol) - - -## Errors -### InputCantBeZero - -```solidity -error InputCantBeZero(); -``` - -### ErrorSendingETH - -```solidity -error ErrorSendingETH(); -``` - -### ReentrancyError - -```solidity -error ReentrancyError(); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/contract.ZetaTokenConsumerUniV2.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/contract.ZetaTokenConsumerUniV2.md deleted file mode 100644 index 42c5f89c9..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/contract.ZetaTokenConsumerUniV2.md +++ /dev/null @@ -1,94 +0,0 @@ -# ZetaTokenConsumerUniV2 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol) - -**Inherits:** -[ZetaTokenConsumer](/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md), [ZetaTokenConsumerUniV2Errors](/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/interface.ZetaTokenConsumerUniV2Errors.md) - -*Uniswap V2 strategy for ZetaTokenConsumer* - - -## State Variables -### MAX_DEADLINE - -```solidity -uint256 internal constant MAX_DEADLINE = 200; -``` - - -### wETH - -```solidity -address internal immutable wETH; -``` - - -### zetaToken - -```solidity -address public immutable zetaToken; -``` - - -### uniswapV2Router - -```solidity -IUniswapV2Router02 internal immutable uniswapV2Router; -``` - - -## Functions -### constructor - - -```solidity -constructor(address zetaToken_, address uniswapV2Router_); -``` - -### getZetaFromEth - - -```solidity -function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable override returns (uint256); -``` - -### getZetaFromToken - - -```solidity -function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount -) external override returns (uint256); -``` - -### getEthFromZeta - - -```solidity -function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) - external - override - returns (uint256); -``` - -### getTokenFromZeta - - -```solidity -function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount -) external override returns (uint256); -``` - -### hasZetaLiquidity - - -```solidity -function hasZetaLiquidity() external view override returns (bool); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/interface.ZetaTokenConsumerUniV2Errors.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/interface.ZetaTokenConsumerUniV2Errors.md deleted file mode 100644 index 96d77911c..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/interface.ZetaTokenConsumerUniV2Errors.md +++ /dev/null @@ -1,11 +0,0 @@ -# ZetaTokenConsumerUniV2Errors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol) - - -## Errors -### InputCantBeZero - -```solidity -error InputCantBeZero(); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/contract.ZetaTokenConsumerUniV3.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/contract.ZetaTokenConsumerUniV3.md deleted file mode 100644 index 10a9ba79d..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/contract.ZetaTokenConsumerUniV3.md +++ /dev/null @@ -1,143 +0,0 @@ -# ZetaTokenConsumerUniV3 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol) - -**Inherits:** -[ZetaTokenConsumer](/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md), [ZetaTokenConsumerUniV3Errors](/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md) - -*Uniswap V3 strategy for ZetaTokenConsumer* - - -## State Variables -### MAX_DEADLINE - -```solidity -uint256 internal constant MAX_DEADLINE = 200; -``` - - -### zetaPoolFee - -```solidity -uint24 public immutable zetaPoolFee; -``` - - -### tokenPoolFee - -```solidity -uint24 public immutable tokenPoolFee; -``` - - -### WETH9Address - -```solidity -address public immutable WETH9Address; -``` - - -### zetaToken - -```solidity -address public immutable zetaToken; -``` - - -### uniswapV3Router - -```solidity -ISwapRouter public immutable uniswapV3Router; -``` - - -### uniswapV3Factory - -```solidity -IUniswapV3Factory public immutable uniswapV3Factory; -``` - - -### _locked - -```solidity -bool internal _locked; -``` - - -## Functions -### constructor - - -```solidity -constructor( - address zetaToken_, - address uniswapV3Router_, - address uniswapV3Factory_, - address WETH9Address_, - uint24 zetaPoolFee_, - uint24 tokenPoolFee_ -); -``` - -### nonReentrant - - -```solidity -modifier nonReentrant(); -``` - -### receive - - -```solidity -receive() external payable; -``` - -### getZetaFromEth - - -```solidity -function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable override returns (uint256); -``` - -### getZetaFromToken - - -```solidity -function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount -) external override returns (uint256); -``` - -### getEthFromZeta - - -```solidity -function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) - external - override - returns (uint256); -``` - -### getTokenFromZeta - - -```solidity -function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount -) external override nonReentrant returns (uint256); -``` - -### hasZetaLiquidity - - -```solidity -function hasZetaLiquidity() external view override returns (bool); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.WETH9.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.WETH9.md deleted file mode 100644 index fc738e6cb..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.WETH9.md +++ /dev/null @@ -1,12 +0,0 @@ -# WETH9 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol) - - -## Functions -### withdraw - - -```solidity -function withdraw(uint256 wad) external; -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md deleted file mode 100644 index 5f2e27954..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/interface.ZetaTokenConsumerUniV3Errors.md +++ /dev/null @@ -1,23 +0,0 @@ -# ZetaTokenConsumerUniV3Errors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol) - - -## Errors -### InputCantBeZero - -```solidity -error InputCantBeZero(); -``` - -### ErrorSendingETH - -```solidity -error ErrorSendingETH(); -``` - -### ReentrancyError - -```solidity -error ReentrancyError(); -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/contract.ZetaTokenConsumerZEVM.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/contract.ZetaTokenConsumerZEVM.md deleted file mode 100644 index 056394488..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/contract.ZetaTokenConsumerZEVM.md +++ /dev/null @@ -1,94 +0,0 @@ -# ZetaTokenConsumerZEVM -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/6aed43c93d3900874969a54408401c17997e7cb9/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol) - -**Inherits:** -[ZetaTokenConsumer](/contracts/evm/interfaces/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md), [ZetaTokenConsumerZEVMErrors](/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/interface.ZetaTokenConsumerZEVMErrors.md) - -*ZetaTokenConsumer for ZEVM* - - -## State Variables -### MAX_DEADLINE - -```solidity -uint256 internal constant MAX_DEADLINE = 200; -``` - - -### WETH9Address - -```solidity -address public immutable WETH9Address; -``` - - -### uniswapV2Router - -```solidity -IUniswapV2Router02 internal immutable uniswapV2Router; -``` - - -## Functions -### constructor - - -```solidity -constructor(address WETH9Address_, address uniswapV2Router_); -``` - -### getZetaFromEth - - -```solidity -function getZetaFromEth(address destinationAddress, uint256 minAmountOut) external payable override returns (uint256); -``` - -### getZetaFromToken - - -```solidity -function getZetaFromToken( - address destinationAddress, - uint256 minAmountOut, - address inputToken, - uint256 inputTokenAmount -) external override returns (uint256); -``` - -### getEthFromZeta - - -```solidity -function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) - external - override - returns (uint256); -``` - -### getTokenFromZeta - - -```solidity -function getTokenFromZeta( - address destinationAddress, - uint256 minAmountOut, - address outputToken, - uint256 zetaTokenAmount -) external override returns (uint256); -``` - -### hasZetaLiquidity - - -```solidity -function hasZetaLiquidity() external view override returns (bool); -``` - -### receive - - -```solidity -receive() external payable; -``` - diff --git a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/interface.ZetaTokenConsumerZEVMErrors.md b/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/interface.ZetaTokenConsumerZEVMErrors.md deleted file mode 100644 index 862670012..000000000 --- a/v1/docs/src/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/interface.ZetaTokenConsumerZEVMErrors.md +++ /dev/null @@ -1,53 +0,0 @@ -# ZetaTokenConsumerZEVMErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/6aed43c93d3900874969a54408401c17997e7cb9/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol) - - -## Errors -### InputCantBeZero - -```solidity -error InputCantBeZero(); -``` - -### ErrorSendingETH - -```solidity -error ErrorSendingETH(); -``` - -### ReentrancyError - -```solidity -error ReentrancyError(); -``` - -### NotEnoughValue - -```solidity -error NotEnoughValue(); -``` - -### InputCantBeZeta - -```solidity -error InputCantBeZeta(); -``` - -### OutputCantBeZeta - -```solidity -error OutputCantBeZeta(); -``` - -### OnlyWZETAAllowed - -```solidity -error OnlyWZETAAllowed(); -``` - -### InvalidForZEVM - -```solidity -error InvalidForZEVM(); -``` - diff --git a/v1/docs/src/contracts/evm/tools/interfaces/README.md b/v1/docs/src/contracts/evm/tools/interfaces/README.md deleted file mode 100644 index 849b1d5a4..000000000 --- a/v1/docs/src/contracts/evm/tools/interfaces/README.md +++ /dev/null @@ -1,5 +0,0 @@ - - -# Contents -- [ConcentratedLiquidityPoolFactory](TridentConcentratedLiquidityPoolFactory.sol/interface.ConcentratedLiquidityPoolFactory.md) -- [IPoolRouter](TridentIPoolRouter.sol/interface.IPoolRouter.md) diff --git a/v1/docs/src/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/interface.ConcentratedLiquidityPoolFactory.md b/v1/docs/src/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/interface.ConcentratedLiquidityPoolFactory.md deleted file mode 100644 index c2c7dff48..000000000 --- a/v1/docs/src/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/interface.ConcentratedLiquidityPoolFactory.md +++ /dev/null @@ -1,15 +0,0 @@ -# ConcentratedLiquidityPoolFactory -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol) - - -## Functions -### getPools - - -```solidity -function getPools(address token0, address token1, uint256 startIndex, uint256 count) - external - view - returns (address[] memory pairPools); -``` - diff --git a/v1/docs/src/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/interface.IPoolRouter.md b/v1/docs/src/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/interface.IPoolRouter.md deleted file mode 100644 index 1ef1aa4f3..000000000 --- a/v1/docs/src/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/interface.IPoolRouter.md +++ /dev/null @@ -1,127 +0,0 @@ -# IPoolRouter -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/evm/tools/interfaces/TridentIPoolRouter.sol) - - -## Functions -### exactInputSingle - -Swap amountIn of one token for as much as possible of another token - - -```solidity -function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`ExactInputSingleParams`|The parameters necessary for the swap, encoded as ExactInputSingleParams in calldata| - - -### exactInput - -Swap amountIn of one token for as much as possible of another along the specified path - - -```solidity -function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`ExactInputParams`|The parameters necessary for the multi-hop swap, encoded as ExactInputParams in calldata| - - -### exactOutputSingle - -Swaps as little as possible of one token for `amountOut` of another token - - -```solidity -function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`ExactOutputSingleParams`|The parameters necessary for the swap, encoded as ExactOutputSingleParams in calldata| - - -### exactOutput - -Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed) - - -```solidity -function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`params`|`ExactOutputParams`|The parameters necessary for the multi-hop swap, encoded as ExactOutputParams in calldata| - - -### sweep - -Recover mistakenly sent tokens - - -```solidity -function sweep(address token, uint256 amount, address recipient) external payable; -``` - -## Structs -### ExactInputSingleParams - -```solidity -struct ExactInputSingleParams { - address tokenIn; - uint256 amountIn; - uint256 amountOutMinimum; - address pool; - address to; - bool unwrap; -} -``` - -### ExactInputParams - -```solidity -struct ExactInputParams { - address tokenIn; - uint256 amountIn; - uint256 amountOutMinimum; - address[] path; - address to; - bool unwrap; -} -``` - -### ExactOutputSingleParams - -```solidity -struct ExactOutputSingleParams { - address tokenIn; - uint256 amountOut; - uint256 amountInMaximum; - address pool; - address to; - bool unwrap; -} -``` - -### ExactOutputParams - -```solidity -struct ExactOutputParams { - address tokenIn; - uint256 amountOut; - uint256 amountInMaximum; - address[] path; - address to; - bool unwrap; -} -``` - diff --git a/v1/docs/src/contracts/zevm/Interfaces.sol/enum.CoinType.md b/v1/docs/src/contracts/zevm/Interfaces.sol/enum.CoinType.md deleted file mode 100644 index a093e87f1..000000000 --- a/v1/docs/src/contracts/zevm/Interfaces.sol/enum.CoinType.md +++ /dev/null @@ -1,14 +0,0 @@ -# CoinType -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/Interfaces.sol) - -*Coin types for ZRC20. Zeta value should not be used.* - - -```solidity -enum CoinType { - Zeta, - Gas, - ERC20 -} -``` - diff --git a/v1/docs/src/contracts/zevm/Interfaces.sol/interface.ISystem.md b/v1/docs/src/contracts/zevm/Interfaces.sol/interface.ISystem.md deleted file mode 100644 index 8de54cbd7..000000000 --- a/v1/docs/src/contracts/zevm/Interfaces.sol/interface.ISystem.md +++ /dev/null @@ -1,49 +0,0 @@ -# ISystem -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/Interfaces.sol) - -*Interfaces of SystemContract and ZRC20 to make easier to import.* - - -## Functions -### FUNGIBLE_MODULE_ADDRESS - - -```solidity -function FUNGIBLE_MODULE_ADDRESS() external view returns (address); -``` - -### wZetaContractAddress - - -```solidity -function wZetaContractAddress() external view returns (address); -``` - -### uniswapv2FactoryAddress - - -```solidity -function uniswapv2FactoryAddress() external view returns (address); -``` - -### gasPriceByChainId - - -```solidity -function gasPriceByChainId(uint256 chainID) external view returns (uint256); -``` - -### gasCoinZRC20ByChainId - - -```solidity -function gasCoinZRC20ByChainId(uint256 chainID) external view returns (address); -``` - -### gasZetaPoolByChainId - - -```solidity -function gasZetaPoolByChainId(uint256 chainID) external view returns (address); -``` - diff --git a/v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20.md b/v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20.md deleted file mode 100644 index 4ced735f0..000000000 --- a/v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20.md +++ /dev/null @@ -1,111 +0,0 @@ -# IZRC20 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/Interfaces.sol) - - -## Functions -### totalSupply - - -```solidity -function totalSupply() external view returns (uint256); -``` - -### balanceOf - - -```solidity -function balanceOf(address account) external view returns (uint256); -``` - -### transfer - - -```solidity -function transfer(address recipient, uint256 amount) external returns (bool); -``` - -### allowance - - -```solidity -function allowance(address owner, address spender) external view returns (uint256); -``` - -### approve - - -```solidity -function approve(address spender, uint256 amount) external returns (bool); -``` - -### transferFrom - - -```solidity -function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); -``` - -### deposit - - -```solidity -function deposit(address to, uint256 amount) external returns (bool); -``` - -### withdraw - - -```solidity -function withdraw(bytes memory to, uint256 amount) external returns (bool); -``` - -### withdrawGasFee - - -```solidity -function withdrawGasFee() external view returns (address, uint256); -``` - -## Events -### Transfer - -```solidity -event Transfer(address indexed from, address indexed to, uint256 value); -``` - -### Approval - -```solidity -event Approval(address indexed owner, address indexed spender, uint256 value); -``` - -### Deposit - -```solidity -event Deposit(bytes from, address indexed to, uint256 value); -``` - -### Withdrawal - -```solidity -event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasfee, uint256 protocolFlatFee); -``` - -### UpdatedSystemContract - -```solidity -event UpdatedSystemContract(address systemContract); -``` - -### UpdatedGasLimit - -```solidity -event UpdatedGasLimit(uint256 gasLimit); -``` - -### UpdatedProtocolFlatFee - -```solidity -event UpdatedProtocolFlatFee(uint256 protocolFlatFee); -``` - diff --git a/v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20Metadata.md b/v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20Metadata.md deleted file mode 100644 index fd5ae0139..000000000 --- a/v1/docs/src/contracts/zevm/Interfaces.sol/interface.IZRC20Metadata.md +++ /dev/null @@ -1,29 +0,0 @@ -# IZRC20Metadata -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/Interfaces.sol) - -**Inherits:** -[IZRC20](/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md) - - -## Functions -### name - - -```solidity -function name() external view returns (string memory); -``` - -### symbol - - -```solidity -function symbol() external view returns (string memory); -``` - -### decimals - - -```solidity -function decimals() external view returns (uint8); -``` - diff --git a/v1/docs/src/contracts/zevm/README.md b/v1/docs/src/contracts/zevm/README.md deleted file mode 100644 index 5de453b6e..000000000 --- a/v1/docs/src/contracts/zevm/README.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# Contents -- [interfaces](/contracts/zevm/interfaces) -- [testing](/contracts/zevm/testing) -- [ISystem](Interfaces.sol/interface.ISystem.md) -- [IZRC20](Interfaces.sol/interface.IZRC20.md) -- [IZRC20Metadata](Interfaces.sol/interface.IZRC20Metadata.md) -- [CoinType](Interfaces.sol/enum.CoinType.md) -- [SystemContractErrors](SystemContract.sol/interface.SystemContractErrors.md) -- [SystemContract](SystemContract.sol/contract.SystemContract.md) -- [UniswapImports](Uniswap.sol/contract.UniswapImports.md) -- [UniswapImports](UniswapPeriphery.sol/contract.UniswapImports.md) -- [WETH9](WZETA.sol/contract.WETH9.md) -- [ZRC20Errors](ZRC20.sol/interface.ZRC20Errors.md) -- [ZRC20](ZRC20.sol/contract.ZRC20.md) -- [ZetaInterfaces](ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md) -- [ZetaReceiver](ZetaConnectorZEVM.sol/interface.ZetaReceiver.md) -- [ZetaConnectorZEVM](ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md) diff --git a/v1/docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md b/v1/docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md deleted file mode 100644 index e8939c668..000000000 --- a/v1/docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md +++ /dev/null @@ -1,277 +0,0 @@ -# SystemContract -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/SystemContract.sol) - -**Inherits:** -[SystemContractErrors](/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md) - -*The system contract it's called by the protocol to interact with the blockchain. -Also includes a lot of tools to make easier to interact with ZetaChain.* - - -## State Variables -### gasPriceByChainId -Map to know the gas price of each chain given a chain id. - - -```solidity -mapping(uint256 => uint256) public gasPriceByChainId; -``` - - -### gasCoinZRC20ByChainId -Map to know the ZRC20 address of a token given a chain id, ex zETH, zBNB etc. - - -```solidity -mapping(uint256 => address) public gasCoinZRC20ByChainId; -``` - - -### gasZetaPoolByChainId - -```solidity -mapping(uint256 => address) public gasZetaPoolByChainId; -``` - - -### FUNGIBLE_MODULE_ADDRESS -Fungible address is always the same, it's on protocol level. - - -```solidity -address public constant FUNGIBLE_MODULE_ADDRESS = 0x735b14BB79463307AAcBED86DAf3322B1e6226aB; -``` - - -### uniswapv2FactoryAddress -Uniswap V2 addresses. - - -```solidity -address public immutable uniswapv2FactoryAddress; -``` - - -### uniswapv2Router02Address - -```solidity -address public immutable uniswapv2Router02Address; -``` - - -### wZetaContractAddress -Address of the wrapped ZETA to interact with Uniswap V2. - - -```solidity -address public wZetaContractAddress; -``` - - -### zetaConnectorZEVMAddress -Address of ZEVM Zeta Connector. - - -```solidity -address public zetaConnectorZEVMAddress; -``` - - -## Functions -### constructor - -*Only fungible module can deploy a system contract.* - - -```solidity -constructor(address wzeta_, address uniswapv2Factory_, address uniswapv2Router02_); -``` - -### depositAndCall - -*Deposit foreign coins into ZRC20 and call user specified contract on zEVM.* - - -```solidity -function depositAndCall( - zContext calldata context, - address zrc20, - uint256 amount, - address target, - bytes calldata message -) external; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`context`|`zContext`|| -|`zrc20`|`address`|| -|`amount`|`uint256`|| -|`target`|`address`|| -|`message`|`bytes`|| - - -### sortTokens - -*Sort token addresses lexicographically. Used to handle return values from pairs sorted in the order.* - - -```solidity -function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`tokenA`|`address`|| -|`tokenB`|`address`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`token0`|`address`|token1, returns sorted token addresses,.| -|`token1`|`address`|| - - -### uniswapv2PairFor - -*Calculates the CREATE2 address for a pair without making any external calls.* - - -```solidity -function uniswapv2PairFor(address factory, address tokenA, address tokenB) public pure returns (address pair); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`factory`|`address`|| -|`tokenA`|`address`|| -|`tokenB`|`address`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|`pair`|`address`|tokens pair address.| - - -### setGasPrice - -*Fungible module updates the gas price oracle periodically.* - - -```solidity -function setGasPrice(uint256 chainID, uint256 price) external; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`chainID`|`uint256`|| -|`price`|`uint256`|| - - -### setGasCoinZRC20 - -*Setter for gasCoinZRC20ByChainId map.* - - -```solidity -function setGasCoinZRC20(uint256 chainID, address zrc20) external; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`chainID`|`uint256`|| -|`zrc20`|`address`|| - - -### setGasZetaPool - -*Set the pool wzeta/erc20 address.* - - -```solidity -function setGasZetaPool(uint256 chainID, address erc20) external; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`chainID`|`uint256`|| -|`erc20`|`address`|| - - -### setWZETAContractAddress - -*Setter for wrapped ZETA address.* - - -```solidity -function setWZETAContractAddress(address addr) external; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`addr`|`address`|| - - -### setConnectorZEVMAddress - -*Setter for zetaConnector ZEVM Address* - - -```solidity -function setConnectorZEVMAddress(address addr) external; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`addr`|`address`|| - - -## Events -### SystemContractDeployed -Custom SystemContract errors. - - -```solidity -event SystemContractDeployed(); -``` - -### SetGasPrice - -```solidity -event SetGasPrice(uint256, uint256); -``` - -### SetGasCoin - -```solidity -event SetGasCoin(uint256, address); -``` - -### SetGasZetaPool - -```solidity -event SetGasZetaPool(uint256, address); -``` - -### SetWZeta - -```solidity -event SetWZeta(address); -``` - -### SetConnectorZEVM - -```solidity -event SetConnectorZEVM(address); -``` - diff --git a/v1/docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md b/v1/docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md deleted file mode 100644 index 53b685725..000000000 --- a/v1/docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md +++ /dev/null @@ -1,37 +0,0 @@ -# SystemContractErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/SystemContract.sol) - -*Custom errors for SystemContract* - - -## Errors -### CallerIsNotFungibleModule - -```solidity -error CallerIsNotFungibleModule(); -``` - -### InvalidTarget - -```solidity -error InvalidTarget(); -``` - -### CantBeIdenticalAddresses - -```solidity -error CantBeIdenticalAddresses(); -``` - -### CantBeZeroAddress - -```solidity -error CantBeZeroAddress(); -``` - -### ZeroAddress - -```solidity -error ZeroAddress(); -``` - diff --git a/v1/docs/src/contracts/zevm/Uniswap.sol/contract.UniswapImports.md b/v1/docs/src/contracts/zevm/Uniswap.sol/contract.UniswapImports.md deleted file mode 100644 index c05dbbeee..000000000 --- a/v1/docs/src/contracts/zevm/Uniswap.sol/contract.UniswapImports.md +++ /dev/null @@ -1,4 +0,0 @@ -# UniswapImports -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/Uniswap.sol) - - diff --git a/v1/docs/src/contracts/zevm/UniswapPeriphery.sol/contract.UniswapImports.md b/v1/docs/src/contracts/zevm/UniswapPeriphery.sol/contract.UniswapImports.md deleted file mode 100644 index 1bb6ef5fa..000000000 --- a/v1/docs/src/contracts/zevm/UniswapPeriphery.sol/contract.UniswapImports.md +++ /dev/null @@ -1,4 +0,0 @@ -# UniswapImports -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/UniswapPeriphery.sol) - - diff --git a/v1/docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md b/v1/docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md deleted file mode 100644 index a239c45c3..000000000 --- a/v1/docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md +++ /dev/null @@ -1,115 +0,0 @@ -# WETH9 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/WZETA.sol) - - -## State Variables -### name - -```solidity -string public name = "Wrapped Zeta"; -``` - - -### symbol - -```solidity -string public symbol = "WZETA"; -``` - - -### decimals - -```solidity -uint8 public decimals = 18; -``` - - -### balanceOf - -```solidity -mapping(address => uint256) public balanceOf; -``` - - -### allowance - -```solidity -mapping(address => mapping(address => uint256)) public allowance; -``` - - -## Functions -### function - - -```solidity -function() public payable; -``` - -### deposit - - -```solidity -function deposit() public payable; -``` - -### withdraw - - -```solidity -function withdraw(uint256 wad) public; -``` - -### totalSupply - - -```solidity -function totalSupply() public view returns (uint256); -``` - -### approve - - -```solidity -function approve(address guy, uint256 wad) public returns (bool); -``` - -### transfer - - -```solidity -function transfer(address dst, uint256 wad) public returns (bool); -``` - -### transferFrom - - -```solidity -function transferFrom(address src, address dst, uint256 wad) public returns (bool); -``` - -## Events -### Approval - -```solidity -event Approval(address indexed src, address indexed guy, uint256 wad); -``` - -### Transfer - -```solidity -event Transfer(address indexed src, address indexed dst, uint256 wad); -``` - -### Deposit - -```solidity -event Deposit(address indexed dst, uint256 wad); -``` - -### Withdrawal - -```solidity -event Withdrawal(address indexed src, uint256 wad); -``` - diff --git a/v1/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md b/v1/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md deleted file mode 100644 index 2b772188f..000000000 --- a/v1/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md +++ /dev/null @@ -1,470 +0,0 @@ -# ZRC20 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/ZRC20.sol) - -**Inherits:** -[IZRC20](/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md), [IZRC20Metadata](/contracts/zevm/Interfaces.sol/interface.IZRC20Metadata.md), [ZRC20Errors](/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md) - - -## State Variables -### FUNGIBLE_MODULE_ADDRESS -Fungible address is always the same, maintained at the protocol level - - -```solidity -address public constant FUNGIBLE_MODULE_ADDRESS = 0x735b14BB79463307AAcBED86DAf3322B1e6226aB; -``` - - -### CHAIN_ID -Chain id.abi - - -```solidity -uint256 public immutable CHAIN_ID; -``` - - -### COIN_TYPE -Coin type, checkout Interfaces.sol. - - -```solidity -CoinType public immutable COIN_TYPE; -``` - - -### SYSTEM_CONTRACT_ADDRESS -System contract address. - - -```solidity -address public SYSTEM_CONTRACT_ADDRESS; -``` - - -### GAS_LIMIT -Gas limit. - - -```solidity -uint256 public GAS_LIMIT; -``` - - -### PROTOCOL_FLAT_FEE -Protocol flat fee. - - -```solidity -uint256 public PROTOCOL_FLAT_FEE; -``` - - -### _balances - -```solidity -mapping(address => uint256) private _balances; -``` - - -### _allowances - -```solidity -mapping(address => mapping(address => uint256)) private _allowances; -``` - - -### _totalSupply - -```solidity -uint256 private _totalSupply; -``` - - -### _name - -```solidity -string private _name; -``` - - -### _symbol - -```solidity -string private _symbol; -``` - - -### _decimals - -```solidity -uint8 private _decimals; -``` - - -## Functions -### _msgSender - - -```solidity -function _msgSender() internal view virtual returns (address); -``` - -### _msgData - - -```solidity -function _msgData() internal view virtual returns (bytes calldata); -``` - -### onlyFungible - -*Only fungible module modifier.* - - -```solidity -modifier onlyFungible(); -``` - -### constructor - -*The only one allowed to deploy new ZRC20 is fungible address.* - - -```solidity -constructor( - string memory name_, - string memory symbol_, - uint8 decimals_, - uint256 chainid_, - CoinType coinType_, - uint256 gasLimit_, - address systemContractAddress_ -); -``` - -### name - -*ZRC20 name* - - -```solidity -function name() public view virtual override returns (string memory); -``` -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`string`|name as string| - - -### symbol - -*ZRC20 symbol.* - - -```solidity -function symbol() public view virtual override returns (string memory); -``` -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`string`|symbol as string.| - - -### decimals - -*ZRC20 decimals.* - - -```solidity -function decimals() public view virtual override returns (uint8); -``` -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`uint8`|returns uint8 decimals.| - - -### totalSupply - -*ZRC20 total supply.* - - -```solidity -function totalSupply() public view virtual override returns (uint256); -``` -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`uint256`|returns uint256 total supply.| - - -### balanceOf - -*Returns ZRC20 balance of an account.* - - -```solidity -function balanceOf(address account) public view virtual override returns (uint256); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`account`|`address`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`uint256`|uint256 account balance.| - - -### transfer - -*Returns ZRC20 balance of an account.* - - -```solidity -function transfer(address recipient, uint256 amount) public virtual override returns (bool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`recipient`|`address`|| -|`amount`|`uint256`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`bool`|true/false if transfer succeeded/failed.| - - -### allowance - -*Returns token allowance from owner to spender.* - - -```solidity -function allowance(address owner, address spender) public view virtual override returns (uint256); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`owner`|`address`|| -|`spender`|`address`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`uint256`|uint256 allowance.| - - -### approve - -*Approves amount transferFrom for spender.* - - -```solidity -function approve(address spender, uint256 amount) public virtual override returns (bool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`spender`|`address`|| -|`amount`|`uint256`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`bool`|true/false if succeeded/failed.| - - -### transferFrom - -*Transfers tokens from sender to recipient.* - - -```solidity -function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`sender`|`address`|| -|`recipient`|`address`|| -|`amount`|`uint256`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`bool`|true/false if succeeded/failed.| - - -### burn - -*Burns an amount of tokens.* - - -```solidity -function burn(uint256 amount) external returns (bool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`amount`|`uint256`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`bool`|true/false if succeeded/failed.| - - -### _transfer - - -```solidity -function _transfer(address sender, address recipient, uint256 amount) internal virtual; -``` - -### _mint - - -```solidity -function _mint(address account, uint256 amount) internal virtual; -``` - -### _burn - - -```solidity -function _burn(address account, uint256 amount) internal virtual; -``` - -### _approve - - -```solidity -function _approve(address owner, address spender, uint256 amount) internal virtual; -``` - -### deposit - -*Deposits corresponding tokens from external chain, only callable by Fungible module.* - - -```solidity -function deposit(address to, uint256 amount) external override returns (bool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`to`|`address`|| -|`amount`|`uint256`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`bool`|true/false if succeeded/failed.| - - -### withdrawGasFee - -*Withdraws gas fees.* - - -```solidity -function withdrawGasFee() public view override returns (address, uint256); -``` -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`address`|returns the ZRC20 address for gas on the same chain of this ZRC20, and calculates the gas fee for withdraw()| -|``|`uint256`|| - - -### withdraw - -*Withraws ZRC20 tokens to external chains, this function causes cctx module to send out outbound tx to the outbound chain -this contract should be given enough allowance of the gas ZRC20 to pay for outbound tx gas fee.* - - -```solidity -function withdraw(bytes memory to, uint256 amount) external override returns (bool); -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`to`|`bytes`|| -|`amount`|`uint256`|| - -**Returns** - -|Name|Type|Description| -|----|----|-----------| -|``|`bool`|true/false if succeeded/failed.| - - -### updateSystemContractAddress - -*Updates system contract address. Can only be updated by the fungible module.* - - -```solidity -function updateSystemContractAddress(address addr) external onlyFungible; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`addr`|`address`|| - - -### updateGasLimit - -*Updates gas limit. Can only be updated by the fungible module.* - - -```solidity -function updateGasLimit(uint256 gasLimit) external onlyFungible; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`gasLimit`|`uint256`|| - - -### updateProtocolFlatFee - -*Updates protocol flat fee. Can only be updated by the fungible module.* - - -```solidity -function updateProtocolFlatFee(uint256 protocolFlatFee) external onlyFungible; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`protocolFlatFee`|`uint256`|| - - diff --git a/v1/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md b/v1/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md deleted file mode 100644 index 6706369dc..000000000 --- a/v1/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md +++ /dev/null @@ -1,55 +0,0 @@ -# ZRC20Errors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/ZRC20.sol) - -*Custom errors for ZRC20* - - -## Errors -### CallerIsNotFungibleModule - -```solidity -error CallerIsNotFungibleModule(); -``` - -### InvalidSender - -```solidity -error InvalidSender(); -``` - -### GasFeeTransferFailed - -```solidity -error GasFeeTransferFailed(); -``` - -### ZeroGasCoin - -```solidity -error ZeroGasCoin(); -``` - -### ZeroGasPrice - -```solidity -error ZeroGasPrice(); -``` - -### LowAllowance - -```solidity -error LowAllowance(); -``` - -### LowBalance - -```solidity -error LowBalance(); -``` - -### ZeroAddress - -```solidity -error ZeroAddress(); -``` - diff --git a/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md b/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md deleted file mode 100644 index ad3abc792..000000000 --- a/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md +++ /dev/null @@ -1,191 +0,0 @@ -# ZetaConnectorZEVM -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/ZetaConnectorZEVM.sol) - - -## State Variables -### wzeta -WZETA token address. - - -```solidity -address public wzeta; -``` - - -### FUNGIBLE_MODULE_ADDRESS -Fungible module address. - - -```solidity -address public constant FUNGIBLE_MODULE_ADDRESS = payable(0x735b14BB79463307AAcBED86DAf3322B1e6226aB); -``` - - -## Functions -### onlyFungibleModule - -*Modifier to restrict actions to fungible module.* - - -```solidity -modifier onlyFungibleModule(); -``` - -### constructor - - -```solidity -constructor(address wzeta_); -``` - -### receive - -*Receive function to receive ZETA from WETH9.withdraw().* - - -```solidity -receive() external payable; -``` - -### setWzetaAddress - - -```solidity -function setWzetaAddress(address wzeta_) external onlyFungibleModule; -``` - -### send - -*Sends ZETA and bytes messages (to execute it) crosschain.* - - -```solidity -function send(ZetaInterfaces.SendInput calldata input) external; -``` -**Parameters** - -|Name|Type|Description| -|----|----|-----------| -|`input`|`ZetaInterfaces.SendInput`|| - - -### onReceive - -*Handler to receive data from other chain. -This method can be called only by Fungible Module. -Transfer the Zeta tokens to destination and calls onZetaMessage if it's needed. -To perform the transfer wrap the new tokens* - - -```solidity -function onReceive( - bytes calldata zetaTxSenderAddress, - uint256 sourceChainId, - address destinationAddress, - uint256 zetaValue, - bytes calldata message, - bytes32 internalSendHash -) external payable onlyFungibleModule; -``` - -### onRevert - -*Handler to receive errors from other chain. -This method can be called only by Fungible Module. -Transfer the Zeta tokens to destination and calls onZetaRevert if it's needed.* - - -```solidity -function onRevert( - address zetaTxSenderAddress, - uint256 sourceChainId, - bytes calldata destinationAddress, - uint256 destinationChainId, - uint256 remainingZetaValue, - bytes calldata message, - bytes32 internalSendHash -) external payable onlyFungibleModule; -``` - -## Events -### SetWZETA - -```solidity -event SetWZETA(address wzeta_); -``` - -### ZetaSent - -```solidity -event ZetaSent( - address sourceTxOriginAddress, - address indexed zetaTxSenderAddress, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 zetaValueAndGas, - uint256 destinationGasLimit, - bytes message, - bytes zetaParams -); -``` - -### ZetaReceived - -```solidity -event ZetaReceived( - bytes zetaTxSenderAddress, - uint256 indexed sourceChainId, - address indexed destinationAddress, - uint256 zetaValue, - bytes message, - bytes32 indexed internalSendHash -); -``` - -### ZetaReverted - -```solidity -event ZetaReverted( - address zetaTxSenderAddress, - uint256 sourceChainId, - uint256 indexed destinationChainId, - bytes destinationAddress, - uint256 remainingZetaValue, - bytes message, - bytes32 indexed internalSendHash -); -``` - -## Errors -### OnlyWZETAOrFungible -Contract custom errors. - - -```solidity -error OnlyWZETAOrFungible(); -``` - -### WZETATransferFailed - -```solidity -error WZETATransferFailed(); -``` - -### OnlyFungibleModule - -```solidity -error OnlyFungibleModule(); -``` - -### FailedZetaSent - -```solidity -error FailedZetaSent(); -``` - -### WrongValue - -```solidity -error WrongValue(); -``` - diff --git a/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md b/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md deleted file mode 100644 index 22104db35..000000000 --- a/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md +++ /dev/null @@ -1,49 +0,0 @@ -# ZetaInterfaces -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/ZetaConnectorZEVM.sol) - - -## Structs -### SendInput -*Use SendInput to interact with the Connector: connector.send(SendInput)* - - -```solidity -struct SendInput { - uint256 destinationChainId; - bytes destinationAddress; - uint256 destinationGasLimit; - bytes message; - uint256 zetaValueAndGas; - bytes zetaParams; -} -``` - -### ZetaMessage -*Our Connector calls onZetaMessage with this struct as argument* - - -```solidity -struct ZetaMessage { - bytes zetaTxSenderAddress; - uint256 sourceChainId; - address destinationAddress; - uint256 zetaValue; - bytes message; -} -``` - -### ZetaRevert -*Our Connector calls onZetaRevert with this struct as argument* - - -```solidity -struct ZetaRevert { - address zetaTxSenderAddress; - uint256 sourceChainId; - bytes destinationAddress; - uint256 destinationChainId; - uint256 remainingZetaValue; - bytes message; -} -``` - diff --git a/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md b/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md deleted file mode 100644 index 945d03616..000000000 --- a/v1/docs/src/contracts/zevm/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md +++ /dev/null @@ -1,24 +0,0 @@ -# ZetaReceiver -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/ZetaConnectorZEVM.sol) - - -## Functions -### onZetaMessage - -*onZetaMessage is called when a cross-chain message reaches a contract* - - -```solidity -function onZetaMessage(ZetaInterfaces.ZetaMessage calldata zetaMessage) external; -``` - -### onZetaRevert - -*onZetaRevert is called when a cross-chain message reverts. -It's useful to rollback to the original state* - - -```solidity -function onZetaRevert(ZetaInterfaces.ZetaRevert calldata zetaRevert) external; -``` - diff --git a/v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router01.sol/interface.IUniswapV2Router01.md b/v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router01.sol/interface.IUniswapV2Router01.md deleted file mode 100644 index 538c274bf..000000000 --- a/v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router01.sol/interface.IUniswapV2Router01.md +++ /dev/null @@ -1,228 +0,0 @@ -# IUniswapV2Router01 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/interfaces/IUniswapV2Router01.sol) - - -## Functions -### factory - - -```solidity -function factory() external pure returns (address); -``` - -### WETH - - -```solidity -function WETH() external pure returns (address); -``` - -### addLiquidity - - -```solidity -function addLiquidity( - address tokenA, - address tokenB, - uint256 amountADesired, - uint256 amountBDesired, - uint256 amountAMin, - uint256 amountBMin, - address to, - uint256 deadline -) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); -``` - -### addLiquidityETH - - -```solidity -function addLiquidityETH( - address token, - uint256 amountTokenDesired, - uint256 amountTokenMin, - uint256 amountETHMin, - address to, - uint256 deadline -) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); -``` - -### removeLiquidity - - -```solidity -function removeLiquidity( - address tokenA, - address tokenB, - uint256 liquidity, - uint256 amountAMin, - uint256 amountBMin, - address to, - uint256 deadline -) external returns (uint256 amountA, uint256 amountB); -``` - -### removeLiquidityETH - - -```solidity -function removeLiquidityETH( - address token, - uint256 liquidity, - uint256 amountTokenMin, - uint256 amountETHMin, - address to, - uint256 deadline -) external returns (uint256 amountToken, uint256 amountETH); -``` - -### removeLiquidityWithPermit - - -```solidity -function removeLiquidityWithPermit( - address tokenA, - address tokenB, - uint256 liquidity, - uint256 amountAMin, - uint256 amountBMin, - address to, - uint256 deadline, - bool approveMax, - uint8 v, - bytes32 r, - bytes32 s -) external returns (uint256 amountA, uint256 amountB); -``` - -### removeLiquidityETHWithPermit - - -```solidity -function removeLiquidityETHWithPermit( - address token, - uint256 liquidity, - uint256 amountTokenMin, - uint256 amountETHMin, - address to, - uint256 deadline, - bool approveMax, - uint8 v, - bytes32 r, - bytes32 s -) external returns (uint256 amountToken, uint256 amountETH); -``` - -### swapExactTokensForTokens - - -```solidity -function swapExactTokensForTokens( - uint256 amountIn, - uint256 amountOutMin, - address[] calldata path, - address to, - uint256 deadline -) external returns (uint256[] memory amounts); -``` - -### swapTokensForExactTokens - - -```solidity -function swapTokensForExactTokens( - uint256 amountOut, - uint256 amountInMax, - address[] calldata path, - address to, - uint256 deadline -) external returns (uint256[] memory amounts); -``` - -### swapExactETHForTokens - - -```solidity -function swapExactETHForTokens(uint256 amountOutMin, address[] calldata path, address to, uint256 deadline) - external - payable - returns (uint256[] memory amounts); -``` - -### swapTokensForExactETH - - -```solidity -function swapTokensForExactETH( - uint256 amountOut, - uint256 amountInMax, - address[] calldata path, - address to, - uint256 deadline -) external returns (uint256[] memory amounts); -``` - -### swapExactTokensForETH - - -```solidity -function swapExactTokensForETH( - uint256 amountIn, - uint256 amountOutMin, - address[] calldata path, - address to, - uint256 deadline -) external returns (uint256[] memory amounts); -``` - -### swapETHForExactTokens - - -```solidity -function swapETHForExactTokens(uint256 amountOut, address[] calldata path, address to, uint256 deadline) - external - payable - returns (uint256[] memory amounts); -``` - -### quote - - -```solidity -function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) external pure returns (uint256 amountB); -``` - -### getAmountOut - - -```solidity -function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) - external - pure - returns (uint256 amountOut); -``` - -### getAmountIn - - -```solidity -function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) - external - pure - returns (uint256 amountIn); -``` - -### getAmountsOut - - -```solidity -function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts); -``` - -### getAmountsIn - - -```solidity -function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts); -``` - diff --git a/v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router02.sol/interface.IUniswapV2Router02.md b/v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router02.sol/interface.IUniswapV2Router02.md deleted file mode 100644 index 06719e4d6..000000000 --- a/v1/docs/src/contracts/zevm/interfaces/IUniswapV2Router02.sol/interface.IUniswapV2Router02.md +++ /dev/null @@ -1,78 +0,0 @@ -# IUniswapV2Router02 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/interfaces/IUniswapV2Router02.sol) - -**Inherits:** -[IUniswapV2Router01](/contracts/zevm/interfaces/IUniswapV2Router01.sol/interface.IUniswapV2Router01.md) - - -## Functions -### removeLiquidityETHSupportingFeeOnTransferTokens - - -```solidity -function removeLiquidityETHSupportingFeeOnTransferTokens( - address token, - uint256 liquidity, - uint256 amountTokenMin, - uint256 amountETHMin, - address to, - uint256 deadline -) external returns (uint256 amountETH); -``` - -### removeLiquidityETHWithPermitSupportingFeeOnTransferTokens - - -```solidity -function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - address token, - uint256 liquidity, - uint256 amountTokenMin, - uint256 amountETHMin, - address to, - uint256 deadline, - bool approveMax, - uint8 v, - bytes32 r, - bytes32 s -) external returns (uint256 amountETH); -``` - -### swapExactTokensForTokensSupportingFeeOnTransferTokens - - -```solidity -function swapExactTokensForTokensSupportingFeeOnTransferTokens( - uint256 amountIn, - uint256 amountOutMin, - address[] calldata path, - address to, - uint256 deadline -) external; -``` - -### swapExactETHForTokensSupportingFeeOnTransferTokens - - -```solidity -function swapExactETHForTokensSupportingFeeOnTransferTokens( - uint256 amountOutMin, - address[] calldata path, - address to, - uint256 deadline -) external payable; -``` - -### swapExactTokensForETHSupportingFeeOnTransferTokens - - -```solidity -function swapExactTokensForETHSupportingFeeOnTransferTokens( - uint256 amountIn, - uint256 amountOutMin, - address[] calldata path, - address to, - uint256 deadline -) external; -``` - diff --git a/v1/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md b/v1/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md deleted file mode 100644 index 00d7a5c2a..000000000 --- a/v1/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md +++ /dev/null @@ -1,86 +0,0 @@ -# IWETH9 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/interfaces/IWZETA.sol) - - -## Functions -### totalSupply - - -```solidity -function totalSupply() external view returns (uint256); -``` - -### balanceOf - - -```solidity -function balanceOf(address owner) external view returns (uint256); -``` - -### allowance - - -```solidity -function allowance(address owner, address spender) external view returns (uint256); -``` - -### approve - - -```solidity -function approve(address spender, uint256 wad) external returns (bool); -``` - -### transfer - - -```solidity -function transfer(address to, uint256 wad) external returns (bool); -``` - -### transferFrom - - -```solidity -function transferFrom(address from, address to, uint256 wad) external returns (bool); -``` - -### deposit - - -```solidity -function deposit() external payable; -``` - -### withdraw - - -```solidity -function withdraw(uint256 wad) external; -``` - -## Events -### Approval - -```solidity -event Approval(address indexed owner, address indexed spender, uint256 value); -``` - -### Transfer - -```solidity -event Transfer(address indexed from, address indexed to, uint256 value); -``` - -### Deposit - -```solidity -event Deposit(address indexed dst, uint256 wad); -``` - -### Withdrawal - -```solidity -event Withdrawal(address indexed src, uint256 wad); -``` - diff --git a/v1/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md b/v1/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md deleted file mode 100644 index ee91835dd..000000000 --- a/v1/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md +++ /dev/null @@ -1,139 +0,0 @@ -# IZRC20 -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/interfaces/IZRC20.sol) - - -## Functions -### totalSupply - - -```solidity -function totalSupply() external view returns (uint256); -``` - -### balanceOf - - -```solidity -function balanceOf(address account) external view returns (uint256); -``` - -### transfer - - -```solidity -function transfer(address recipient, uint256 amount) external returns (bool); -``` - -### allowance - - -```solidity -function allowance(address owner, address spender) external view returns (uint256); -``` - -### approve - - -```solidity -function approve(address spender, uint256 amount) external returns (bool); -``` - -### decreaseAllowance - - -```solidity -function decreaseAllowance(address spender, uint256 amount) external returns (bool); -``` - -### increaseAllowance - - -```solidity -function increaseAllowance(address spender, uint256 amount) external returns (bool); -``` - -### transferFrom - - -```solidity -function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); -``` - -### deposit - - -```solidity -function deposit(address to, uint256 amount) external returns (bool); -``` - -### burn - - -```solidity -function burn(address account, uint256 amount) external returns (bool); -``` - -### withdraw - - -```solidity -function withdraw(bytes memory to, uint256 amount) external returns (bool); -``` - -### withdrawGasFee - - -```solidity -function withdrawGasFee() external view returns (address, uint256); -``` - -### PROTOCOL_FLAT_FEE - - -```solidity -function PROTOCOL_FLAT_FEE() external view returns (uint256); -``` - -## Events -### Transfer - -```solidity -event Transfer(address indexed from, address indexed to, uint256 value); -``` - -### Approval - -```solidity -event Approval(address indexed owner, address indexed spender, uint256 value); -``` - -### Deposit - -```solidity -event Deposit(bytes from, address indexed to, uint256 value); -``` - -### Withdrawal - -```solidity -event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee); -``` - -### UpdatedSystemContract - -```solidity -event UpdatedSystemContract(address systemContract); -``` - -### UpdatedGasLimit - -```solidity -event UpdatedGasLimit(uint256 gasLimit); -``` - -### UpdatedProtocolFlatFee - -```solidity -event UpdatedProtocolFlatFee(uint256 protocolFlatFee); -``` - diff --git a/v1/docs/src/contracts/zevm/interfaces/README.md b/v1/docs/src/contracts/zevm/interfaces/README.md deleted file mode 100644 index 5368237e5..000000000 --- a/v1/docs/src/contracts/zevm/interfaces/README.md +++ /dev/null @@ -1,9 +0,0 @@ - - -# Contents -- [IUniswapV2Router01](IUniswapV2Router01.sol/interface.IUniswapV2Router01.md) -- [IUniswapV2Router02](IUniswapV2Router02.sol/interface.IUniswapV2Router02.md) -- [IWETH9](IWZETA.sol/interface.IWETH9.md) -- [IZRC20](IZRC20.sol/interface.IZRC20.md) -- [zContext](zContract.sol/struct.zContext.md) -- [zContract](zContract.sol/interface.zContract.md) diff --git a/v1/docs/src/contracts/zevm/interfaces/zContract.sol/interface.zContract.md b/v1/docs/src/contracts/zevm/interfaces/zContract.sol/interface.zContract.md deleted file mode 100644 index 39801a33f..000000000 --- a/v1/docs/src/contracts/zevm/interfaces/zContract.sol/interface.zContract.md +++ /dev/null @@ -1,12 +0,0 @@ -# zContract -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/interfaces/zContract.sol) - - -## Functions -### onCrossChainCall - - -```solidity -function onCrossChainCall(zContext calldata context, address zrc20, uint256 amount, bytes calldata message) external; -``` - diff --git a/v1/docs/src/contracts/zevm/interfaces/zContract.sol/struct.zContext.md b/v1/docs/src/contracts/zevm/interfaces/zContract.sol/struct.zContext.md deleted file mode 100644 index fceec54aa..000000000 --- a/v1/docs/src/contracts/zevm/interfaces/zContract.sol/struct.zContext.md +++ /dev/null @@ -1,12 +0,0 @@ -# zContext -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/interfaces/zContract.sol) - - -```solidity -struct zContext { - bytes origin; - address sender; - uint256 chainID; -} -``` - diff --git a/v1/docs/src/contracts/zevm/testing/README.md b/v1/docs/src/contracts/zevm/testing/README.md deleted file mode 100644 index 8ebe4e10b..000000000 --- a/v1/docs/src/contracts/zevm/testing/README.md +++ /dev/null @@ -1,5 +0,0 @@ - - -# Contents -- [SystemContractErrors](SystemContractMock.sol/interface.SystemContractErrors.md) -- [SystemContractMock](SystemContractMock.sol/contract.SystemContractMock.md) diff --git a/v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/contract.SystemContractMock.md b/v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/contract.SystemContractMock.md deleted file mode 100644 index 101721eb7..000000000 --- a/v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/contract.SystemContractMock.md +++ /dev/null @@ -1,131 +0,0 @@ -# SystemContractMock -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/testing/SystemContractMock.sol) - -**Inherits:** -[SystemContractErrors](/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md) - - -## State Variables -### gasPriceByChainId - -```solidity -mapping(uint256 => uint256) public gasPriceByChainId; -``` - - -### gasCoinZRC20ByChainId - -```solidity -mapping(uint256 => address) public gasCoinZRC20ByChainId; -``` - - -### gasZetaPoolByChainId - -```solidity -mapping(uint256 => address) public gasZetaPoolByChainId; -``` - - -### wZetaContractAddress - -```solidity -address public wZetaContractAddress; -``` - - -### uniswapv2FactoryAddress - -```solidity -address public uniswapv2FactoryAddress; -``` - - -### uniswapv2Router02Address - -```solidity -address public uniswapv2Router02Address; -``` - - -## Functions -### constructor - - -```solidity -constructor(address wzeta_, address uniswapv2Factory_, address uniswapv2Router02_); -``` - -### setGasPrice - - -```solidity -function setGasPrice(uint256 chainID, uint256 price) external; -``` - -### setGasCoinZRC20 - - -```solidity -function setGasCoinZRC20(uint256 chainID, address zrc20) external; -``` - -### setWZETAContractAddress - - -```solidity -function setWZETAContractAddress(address addr) external; -``` - -### sortTokens - - -```solidity -function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1); -``` - -### uniswapv2PairFor - - -```solidity -function uniswapv2PairFor(address factory, address tokenA, address tokenB) public pure returns (address pair); -``` - -### onCrossChainCall - - -```solidity -function onCrossChainCall(address target, address zrc20, uint256 amount, bytes calldata message) external; -``` - -## Events -### SystemContractDeployed - -```solidity -event SystemContractDeployed(); -``` - -### SetGasPrice - -```solidity -event SetGasPrice(uint256, uint256); -``` - -### SetGasCoin - -```solidity -event SetGasCoin(uint256, address); -``` - -### SetGasZetaPool - -```solidity -event SetGasZetaPool(uint256, address); -``` - -### SetWZeta - -```solidity -event SetWZeta(address); -``` - diff --git a/v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/interface.SystemContractErrors.md b/v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/interface.SystemContractErrors.md deleted file mode 100644 index 62e35e40b..000000000 --- a/v1/docs/src/contracts/zevm/testing/SystemContractMock.sol/interface.SystemContractErrors.md +++ /dev/null @@ -1,29 +0,0 @@ -# SystemContractErrors -[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/211e1d1303ec9b17c54dd015449852d1d240bf4f/contracts/zevm/testing/SystemContractMock.sol) - - -## Errors -### CallerIsNotFungibleModule - -```solidity -error CallerIsNotFungibleModule(); -``` - -### InvalidTarget - -```solidity -error InvalidTarget(); -``` - -### CantBeIdenticalAddresses - -```solidity -error CantBeIdenticalAddresses(); -``` - -### CantBeZeroAddress - -```solidity -error CantBeZeroAddress(); -``` - diff --git a/v1/hardhat.config.ts b/v1/hardhat.config.ts deleted file mode 100644 index 7c071b7ab..000000000 --- a/v1/hardhat.config.ts +++ /dev/null @@ -1,92 +0,0 @@ -import "@nomiclabs/hardhat-waffle"; -import "@nomicfoundation/hardhat-verify"; -import "@typechain/hardhat"; -import "tsconfig-paths/register"; -import "hardhat-abi-exporter"; -import "uniswap-v2-deploy-plugin"; -import "solidity-coverage"; -import "hardhat-gas-reporter"; -import "./tasks/addresses"; -import "@openzeppelin/hardhat-upgrades"; - -import { getHardhatConfigNetworks } from "@zetachain/networks"; -import * as dotenv from "dotenv"; -import type { HardhatUserConfig } from "hardhat/types"; - -dotenv.config(); - -const config: HardhatUserConfig = { - //@ts-ignore - etherscan: { - apiKey: { - amoy_testnet: process.env.POLYGONSCAN_API_KEY || "", - base_mainnet: process.env.BASESCAN_API_KEY || "", - base_testnet: process.env.BASESCAN_API_KEY || "", - // BSC - bsc: process.env.BSCSCAN_API_KEY || "", - - bscTestnet: process.env.BSCSCAN_API_KEY || "", - // ETH - goerli: process.env.ETHERSCAN_API_KEY || "", - mainnet: process.env.ETHERSCAN_API_KEY || "", - }, - //@ts-ignore - customChains: [ - { - chainId: 80002, - network: "amoy_testnet", - urls: { - apiURL: "https://api-amoy.polygonscan.com/api", - browserURL: "https://amoy.polygonscan.com", - }, - }, - { - chainId: 84532, - network: "base_testnet", - urls: { - apiURL: "https://api-sepolia.basescan.org/api", - browserURL: "https://sepolia.basescan.org/", - }, - }, - { - chainId: 8453, - network: "base_mainnet", - urls: { - apiURL: "https://api.basescan.org/api", - browserURL: "https://basescan.org/", - }, - }, - ], - }, - networks: { - ...getHardhatConfigNetworks(), - hardhat: {}, - }, - solidity: { - compilers: [ - { version: "0.4.19" /** For zevm/wzeta.sol */ }, - { version: "0.5.10" /** For create2 factory */ }, - { - settings: { - optimizer: { - enabled: true, - runs: 999999, - }, - }, - version: "0.5.16", - }, - { - settings: { - optimizer: { - enabled: true, - runs: 999999, - }, - }, - version: "0.6.6" /** For uniswap v2 */, - }, - { version: "0.7.6" /** For uniswap v3 */ }, - { version: "0.8.7" }, - ], - }, -}; -export default config; diff --git a/v1/lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers.ts b/v1/lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers.ts deleted file mode 100644 index 610772f74..000000000 --- a/v1/lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Provider, TransactionReceipt } from "@ethersproject/providers"; -import { ImmutableCreate2Factory__factory } from "@typechain-types"; -import { ethers, Signer } from "ethers"; - -export const buildBytecode = (constructorTypes: any[], constructorArgs: any[], contractBytecode: string) => - `${contractBytecode}${encodeParams(constructorTypes, constructorArgs).slice(2)}`; - -export const buildCreate2Address = (saltHex: string, byteCode: string, factoryAddress: string) => { - const payload = ethers.utils.keccak256( - `0x${["ff", factoryAddress, saltHex, ethers.utils.keccak256(byteCode)].map((x) => x.replace(/0x/, "")).join("")}` - ); - - return `0x${payload.slice(-40)}`.toLowerCase(); -}; - -export const numberToUint256 = (value: number) => { - const hex = value.toString(16); - return `0x${"0".repeat(64 - hex.length)}${hex}`; -}; - -export const saltToHex = (salt: string, signerAddress: string) => { - let salthex = ethers.utils.formatBytes32String(salt); - return `${signerAddress}${salthex.slice(2)}`.substring(0, salthex.length); -}; - -export const encodeParam = (dataType: any, data: any) => { - const abiCoder = ethers.utils.defaultAbiCoder; - return abiCoder.encode([dataType], [data]); -}; - -export const encodeParams = (dataTypes: any[], data: any[]) => { - const abiCoder = ethers.utils.defaultAbiCoder; - return abiCoder.encode(dataTypes, data); -}; - -export async function deployContractToAddress({ - factoryAddress, - salt, - contractBytecode, - constructorTypes = [] as string[], - constructorArgs = [] as any[], - signer, - transferOwner = false, -}: { - constructorArgs?: any[]; - constructorTypes?: string[]; - contractBytecode: string; - factoryAddress: string; - salt: string; - signer: Signer; - transferOwner?: boolean; -}) { - const factory = ImmutableCreate2Factory__factory.connect(factoryAddress, signer); - const bytecode = buildBytecode(constructorTypes, constructorArgs, contractBytecode); - - const computedAddr = await factory.findCreate2Address(salt, bytecode); - const call = transferOwner ? factory.safeCreate2AndTransfer : factory.safeCreate2; - const tx = await call(salt, bytecode, { - gasLimit: 6000000, - }); - const result = await tx.wait(); - - return { - address: computedAddr as string, - receipt: result as TransactionReceipt, - txHash: result.transactionHash as string, - }; -} - -/** - * Determines if there's a contract deployed on the provided address. - */ -export async function isDeployed(address: string, provider: Provider) { - const code = await provider.getCode(address); - return code.slice(2).length > 0; -} diff --git a/v1/lib/address.helpers.ts b/v1/lib/address.helpers.ts deleted file mode 100644 index 3ddc8a330..000000000 --- a/v1/lib/address.helpers.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ZetaProtocolNetwork } from "./address.tools"; - -export declare type TestAddress = "dai" | "usdc"; - -export const getTestAddress = (address: TestAddress, networkName: ZetaProtocolNetwork): string => { - if (networkName !== "eth_mainnet") throw new Error("Invalid network name"); - if (address === "dai") { - return "0x6b175474e89094c44da98b954eedeac495271d0f"; - } else if (address === "usdc") { - return "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"; - } - - throw new Error(`Unknown external address ${address} for network ${networkName}`); -}; diff --git a/v1/lib/address.tools.ts b/v1/lib/address.tools.ts deleted file mode 100644 index 147680715..000000000 --- a/v1/lib/address.tools.ts +++ /dev/null @@ -1,104 +0,0 @@ -import addresses from "../data/addresses.json"; - -export declare type ZetaProtocolAddress = - | "connector" - | "erc20Custody" - | "immutableCreate2Factory" - | "tss" - | "tssUpdater" - | "zetaToken" - | "zetaTokenConsumerUniV2" - | "zetaTokenConsumerUniV3"; - -export const zetaProtocolAddress: ZetaProtocolAddress[] = [ - "connector", - "erc20Custody", - "immutableCreate2Factory", - "tss", - "tssUpdater", - "zetaToken", - "zetaTokenConsumerUniV2", - "zetaTokenConsumerUniV3", -]; -export const isZetaProtocolAddress = (str: string): str is ZetaProtocolAddress => - zetaProtocolAddress.includes(str as ZetaProtocolAddress); - -export declare type ZetaZEVMAddress = - | "fungibleModule" - | "systemContract" - | "uniswapv2Factory" - | "uniswapv2Router02" - | "zrc20"; - -export declare type ZetaProtocolTestNetwork = - | "amoy_testnet" - | "bsc_testnet" - | "btc_testnet" - | "sepolia_testnet" - | "base_testnet" - | "zeta_testnet"; - -export const zetaProtocolTestNetworks: ZetaProtocolTestNetwork[] = [ - "amoy_testnet", - "bsc_testnet", - "btc_testnet", - "sepolia_testnet", - "base_testnet", - "zeta_testnet", -]; - -export declare type NonZetaAddress = - | "uniswapV2Factory" - | "uniswapV2Router02" - | "uniswapV3Factory" - | "uniswapV3Router" - | "weth9"; - -export const nonZetaAddress: NonZetaAddress[] = [ - "uniswapV2Factory", - "uniswapV2Router02", - "uniswapV3Router", - "uniswapV3Factory", - "weth9", -]; - -export declare type ZetaProtocolMainNetwork = - | "bsc_mainnet" - | "btc_mainnet" - | "eth_mainnet" - | "polygon_mainnet" - | "base_mainnet" - | "zeta_mainnet"; - -export const zetaProtocolMainNetworks: ZetaProtocolMainNetwork[] = [ - "bsc_mainnet", - "btc_mainnet", - "eth_mainnet", - "polygon_mainnet", - "base_mainnet", - "zeta_mainnet", -]; - -export declare type ZetaProtocolNetwork = ZetaProtocolMainNetwork | ZetaProtocolTestNetwork; -export const zetaProtocolNetworks: ZetaProtocolNetwork[] = [...zetaProtocolTestNetworks, ...zetaProtocolMainNetworks]; - -export declare type ZetaProtocolEnvironment = "mainnet" | "testnet"; - -export const isProtocolNetworkName = (str: string): str is ZetaProtocolNetwork => - zetaProtocolNetworks.includes(str as ZetaProtocolNetwork); - -export const isTestnetNetwork = (network: string): boolean => { - return zetaProtocolTestNetworks.includes(network as ZetaProtocolTestNetwork); -}; - -export const isMainnetNetwork = (network: string): boolean => { - return zetaProtocolMainNetworks.includes(network as ZetaProtocolMainNetwork); -}; - -export const getZRC20Address = (network: ZetaProtocolNetwork): string => { - return (addresses["zevm"] as any)[network]["zrc20"]; -}; - -export const getNonZetaAddress = (address: NonZetaAddress, network: ZetaProtocolNetwork): string => { - return (addresses["non_zeta"] as any)[network][address]; -}; diff --git a/v1/lib/addresses.ts b/v1/lib/addresses.ts deleted file mode 100644 index 0d2127cc9..000000000 --- a/v1/lib/addresses.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { getChainId } from "@zetachain/networks"; - -import mainnet from "../data/addresses.mainnet.json"; -import testnet from "../data/addresses.testnet.json"; -import { ParamChainName, ParamSymbol, ParamType } from "./types"; - -export const getAddress = (type: ParamType, network: ParamChainName, symbol?: ParamSymbol) => { - const networks = [...testnet, ...mainnet]; - let address; - if (type !== "zrc20" && symbol) { - throw new Error("Symbol is only supported when ParamType is zrc20"); - } - if (type === "zrc20" && !symbol) { - // for backwards compatibility - const chainId = getChainId(network); - address = networks.find((n: any) => { - return n.foreign_chain_id === chainId?.toString() && n.type === type && n.coin_type === "gas"; - }); - } else { - address = networks.find((n: any) => { - return n.chain_name === network && n.type === type && n.symbol === symbol; - }); - } - return address?.address; -}; diff --git a/v1/lib/contracts.constants.ts b/v1/lib/contracts.constants.ts deleted file mode 100644 index ee736cad3..000000000 --- a/v1/lib/contracts.constants.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { parseEther } from "ethers/lib/utils"; - -export const ZETA_INITIAL_SUPPLY = 2_100_000_000; - -export const MAX_ETH_ADDRESS = "0xffffffffffffffffffffffffffffffffffffffff"; - -// dev: this values should be calculated using get-salt script -const SALT_NUMBERS = { - polygon_mainnet: { - zetaConnector: "0", - zetaConsumer: "0", - zetaERC20Custody: "0", - zetaToken: "0", - }, - base_mainnet: { - zetaConnector: "0", - zetaConsumer: "0", - zetaERC20Custody: "0", - zetaToken: "0", - }, - baobab_testnet: { - zetaConnector: "71733", - zetaConsumer: "0", - zetaERC20Custody: "195084", - zetaToken: "29265", - }, - bsc_mainnet: { - zetaConnector: "71733", - zetaConsumer: "0", - zetaERC20Custody: "195084", - zetaToken: "29265", - }, - bsc_testnet: { - zetaConnector: "71733", - zetaConsumer: "0", - zetaERC20Custody: "195084", - zetaToken: "29265", - }, - btc_testnet: { - zetaConnector: "", - zetaConsumer: "", - zetaERC20Custody: "", - zetaToken: "", - }, - eth_mainnet: { - zetaConnector: "84286", - zetaConsumer: "0", - zetaERC20Custody: "926526", - zetaToken: "0", - }, - goerli_testnet: { - zetaConnector: "1414", - zetaConsumer: "0", - zetaERC20Custody: "87967", - zetaToken: "84108", - }, - mumbai_testnet: { - zetaConnector: "71733", - zetaConsumer: "0", - zetaERC20Custody: "195084", - zetaToken: "29265", - }, - sepolia_testnet: { - zetaConnector: "1414", - zetaConsumer: "0", - zetaERC20Custody: "87967", - zetaToken: "84108", - }, - zeta_testnet: { - zetaConnector: "71733", - zetaConsumer: "0", - zetaERC20Custody: "195084", - zetaToken: "29265", - }, - base_testnet: { - zetaConnector: "0", - zetaConsumer: "0", - zetaERC20Custody: "0", - zetaToken: "0", - } -}; - -export const getSaltNumber = (contractName: string, networkName: string) => { - const saltNumber = SALT_NUMBERS[networkName][contractName]; - - if (!saltNumber) { - throw new Error(`Salt number for ${contractName} on ${networkName} is not defined.`); - } - - return saltNumber; -}; - -export const ERC20_CUSTODY_ZETA_FEE = "0"; -export const ERC20_CUSTODY_ZETA_MAX_FEE = parseEther("1000"); diff --git a/v1/lib/contracts.helpers.ts b/v1/lib/contracts.helpers.ts deleted file mode 100644 index f1ded15ea..000000000 --- a/v1/lib/contracts.helpers.ts +++ /dev/null @@ -1,189 +0,0 @@ -import { - ERC20Custody, - ERC20Custody__factory as ERC20CustodyFactory, - ImmutableCreate2Factory, - ImmutableCreate2Factory__factory, - ZetaConnectorBase, - ZetaConnectorBase__factory as ZetaConnectorBaseFactory, - ZetaConnectorEth, - ZetaConnectorEth__factory as ZetaConnectorEthFactory, - ZetaConnectorNonEth, - ZetaConnectorNonEth__factory as ZetaConnectorNonEthFactory, - ZetaEth, - ZetaEth__factory as ZetaEthFactory, - ZetaInteractorMock, - ZetaInteractorMock__factory as ZetaInteractorMockFactory, - ZetaNonEth, - ZetaNonEth__factory as ZetaNonEthFactory, - ZetaReceiverMock, - ZetaReceiverMock__factory as ZetaReceiverMockFactory, - ZetaTokenConsumerUniV2, - ZetaTokenConsumerUniV2__factory as ZetaTokenConsumerUniV2Factory, - ZetaTokenConsumerUniV3, - ZetaTokenConsumerUniV3__factory as ZetaTokenConsumerUniV3Factory, -} from "@typechain-types"; -import { BaseContract, ContractFactory } from "ethers"; -import { ethers } from "hardhat"; - -export const isEthNetworkName = (networkName: string) => - networkName === "eth-localnet" || - networkName === "goerli_testnet" || - networkName === "sepolia_testnet" || - networkName === "eth_mainnet"; - -export const deployZetaConnectorBase = async ({ args }: { args: Parameters }) => { - const Factory = (await ethers.getContractFactory("ZetaConnectorBase")) as ZetaConnectorBaseFactory; - - const zetaConnectorContract = (await Factory.deploy(...args)) as ZetaConnectorBase; - - await zetaConnectorContract.deployed(); - - return zetaConnectorContract; -}; - -export const deployZetaConnectorEth = async ({ args }: { args: Parameters }) => { - const Factory = (await ethers.getContractFactory("ZetaConnectorEth")) as ZetaConnectorEthFactory; - - const zetaConnectorContract = (await Factory.deploy(...args)) as ZetaConnectorEth; - - await zetaConnectorContract.deployed(); - - return zetaConnectorContract; -}; - -export const deployZetaConnectorNonEth = async ({ - args, -}: { - args: Parameters; -}) => { - const Factory = (await ethers.getContractFactory("ZetaConnectorNonEth")) as ZetaConnectorNonEthFactory; - - const zetaConnectorContract = (await Factory.deploy(...args)) as ZetaConnectorNonEth; - - await zetaConnectorContract.deployed(); - - return zetaConnectorContract; -}; - -export const deployERC20Custody = async ({ args }: { args: Parameters }) => { - const Factory = (await ethers.getContractFactory("ERC20Custody")) as ERC20CustodyFactory; - - const ERC20CustodyContract = (await Factory.deploy(...args)) as ERC20Custody; - - await ERC20CustodyContract.deployed(); - - return ERC20CustodyContract; -}; - -export const deployZetaReceiverMock = async () => { - const Factory = (await ethers.getContractFactory("ZetaReceiverMock")) as ZetaReceiverMockFactory; - - const zetaReceiverMock = (await Factory.deploy()) as ZetaReceiverMock; - - await zetaReceiverMock.deployed(); - - return zetaReceiverMock; -}; - -export const deployZetaEth = async ({ args }: { args: Parameters }) => { - const Factory = (await ethers.getContractFactory("ZetaEth")) as ZetaEthFactory; - - const zetaEthContract = (await Factory.deploy(...args)) as ZetaEth; - - await zetaEthContract.deployed(); - - return zetaEthContract; -}; - -export const deployZetaNonEth = async ({ args }: { args: Parameters }) => { - const Factory = (await ethers.getContractFactory("ZetaNonEth")) as ZetaNonEthFactory; - - const zetaNonEthContract = (await Factory.deploy(...args)) as ZetaNonEth; - - await zetaNonEthContract.deployed(); - - return zetaNonEthContract; -}; - -export const deployImmutableCreate2Factory = async () => { - const Factory = (await ethers.getContractFactory("ImmutableCreate2Factory")) as ImmutableCreate2Factory__factory; - - const ImmutableCreate2FactoryContract = (await Factory.deploy()) as ImmutableCreate2Factory; - - await ImmutableCreate2FactoryContract.deployed(); - - return ImmutableCreate2FactoryContract; -}; - -export const getZetaConnectorEth = async (params: GetContractParams) => - getContract({ - contractName: "ZetaConnectorEth", - ...params, - }); - -export const getZetaConnectorNonEth = async (params: GetContractParams) => - getContract({ - contractName: "ZetaConnectorNonEth", - ...params, - }); - -export const getZetaFactoryNonEth = async (params: GetContractParams) => - await getContract({ - contractName: "ZetaNonEth", - ...params, - }); - -export const getZetaFactoryEth = async (params: GetContractParams) => - await getContract({ - contractName: "ZetaNonEth", - ...params, - }); - -export const getZetaInteractorMock = async (zetaToken: string) => - getContract({ - contractName: "ZetaInteractorMock", - deployParams: [zetaToken], - }); - -export const getZetaTokenConsumerUniV2Strategy = async (params: GetContractParams) => - getContract({ - contractName: "ZetaTokenConsumerUniV2", - ...params, - }); - -export const getZetaTokenConsumerUniV3Strategy = async (params: GetContractParams) => - getContract({ - contractName: "ZetaTokenConsumerUniV3", - ...params, - }); - -export type GetContractParams = - | { - deployParams: Parameters; - existingContractAddress?: null; - } - | { - deployParams?: null; - existingContractAddress: string; - }; - -export const getContract = async ({ - contractName, - deployParams, - existingContractAddress, -}: GetContractParams & { - contractName: string; -}): Promise => { - const ContractFactory = (await ethers.getContractFactory(contractName)) as Factory; - - const isGetExistingContract = Boolean(existingContractAddress); - if (isGetExistingContract) { - console.log("Getting existing contract from address:", existingContractAddress); - return ContractFactory.attach(existingContractAddress!) as Contract; - } - - const contract = (await ContractFactory.deploy(...deployParams!)) as Contract; - await contract.deployed(); - - return contract; -}; diff --git a/v1/lib/deterministic-deploy.helpers.ts b/v1/lib/deterministic-deploy.helpers.ts deleted file mode 100644 index b2d3ce962..000000000 --- a/v1/lib/deterministic-deploy.helpers.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { BigNumber } from "ethers"; -import { getAddress } from "lib"; - -import { MAX_ETH_ADDRESS } from "../lib/contracts.constants"; -import { - buildBytecode, - buildCreate2Address, - saltToHex, -} from "../lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers"; -import { ZetaProtocolNetwork } from "./address.tools"; - -export const calculateBestSalt = async ( - maxIterations: BigNumber, - deployerAddress: string, - constructorTypes: string[], - constructorArgs: string[], - contractBytecode: string, - network: ZetaProtocolNetwork -) => { - const immutableCreate2Factory = getAddress("immutableCreate2Factory", network); - - let minAddress = MAX_ETH_ADDRESS; - let minAddressSalt = ""; - let minIndex = BigNumber.from(0); - - for (let i = BigNumber.from(0); i.lt(maxIterations); i = i.add(BigNumber.from(1))) { - const saltStr = i.toHexString(); - const salthex = saltToHex(saltStr, deployerAddress); - - const bytecode = buildBytecode(constructorTypes, constructorArgs, contractBytecode); - const expectedAddress = buildCreate2Address(salthex, bytecode, immutableCreate2Factory); - if (expectedAddress < minAddress) { - minAddress = expectedAddress; - minAddressSalt = saltStr; - minIndex = i; - console.log(minAddress, minAddressSalt, i.toString()); - } - if (i.mod(10000).isZero()) { - console.log("step", i.toString()); - } - } - - console.log(minAddress, minAddressSalt, minIndex.toString()); -}; diff --git a/v1/lib/index.ts b/v1/lib/index.ts deleted file mode 100644 index 0e1ccbec9..000000000 --- a/v1/lib/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { default as mainnet } from "../data/addresses.mainnet.json"; -export { default as testnet } from "../data/addresses.testnet.json"; -export * from "./address.tools"; -export * from "./addresses"; -export * from "./types"; diff --git a/v1/lib/types.ts b/v1/lib/types.ts deleted file mode 100644 index 96d32d45a..000000000 --- a/v1/lib/types.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type ParamSymbol = "USDC.BSC" | "USDC.ETH" | "BTC.BTC" | "PEPE.ETH" | "BNB.BSC" | "SHIB.ETH" | "USDT.ETH" | "USDT.BSC" | "POL.POLYGON" | "DAI.ETH" | "ETH.ETH" | "USDT.POL" | "USDC.POL" | "sETH.SEPOLIA" | "USDC" | "gETH" | "ETH.BASESEPOLIA" | "tMATIC" | "tBTC" | "MATIC.AMOY" | "USDC.SEPOLIA" | "tBNB"; -export type ParamChainName = "eth_mainnet" | "bsc_mainnet" | "polygon_mainnet" | "zeta_mainnet" | "btc_mainnet" | "bsc_testnet" | "zeta_testnet" | "btc_testnet" | "amoy_testnet" | "base_sepolia" | "sepolia_testnet"; -export type ParamType = "connector" | "erc20Custody" | "pauser" | "tss" | "tssUpdater" | "uniswapV2Factory" | "uniswapV2Router02" | "uniswapV3Factory" | "uniswapV3Router" | "weth9" | "zetaToken" | "fungibleModule" | "systemContract" | "zrc20" | "zetaTokenConsumerUniV3"; - diff --git a/v1/package.json b/v1/package.json deleted file mode 100644 index 15047f1b6..000000000 --- a/v1/package.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "author": "zetachain", - "devDependencies": { - "@changesets/cli": "^2.23.1", - "@ethersproject/abi": "^5.4.7", - "@ethersproject/providers": "^5.4.7", - "@nomicfoundation/hardhat-chai-matchers": "^1.0.6", - "@nomicfoundation/hardhat-network-helpers": "^1.0.0", - "@nomicfoundation/hardhat-toolbox": "^2.0.0", - "@nomicfoundation/hardhat-verify": "2.0.3", - "@nomiclabs/hardhat-ethers": "^2.0.5", - "@nomiclabs/hardhat-waffle": "^2.0.3", - "@openzeppelin/contracts": "^4.8.3", - "@openzeppelin/contracts-upgradeable": "^4.8.3", - "@openzeppelin/hardhat-upgrades": "1.28.0", - "@typechain/ethers-v5": "^10.1.0", - "@typechain/hardhat": "^6.1.2", - "@types/chai": "^4.3.1", - "@types/inquirer": "^8.2.1", - "@types/lodash": "^4.17.6", - "@types/mocha": "^10.0.1", - "@types/node": "^17.0.25", - "@typescript-eslint/eslint-plugin": "^5.20.0", - "@typescript-eslint/parser": "^5.20.0", - "@uniswap/v2-core": "^1.0.1", - "@uniswap/v2-periphery": "^1.1.0-beta.0", - "@uniswap/v3-periphery": "^1.4.3", - "@zetachain/networks": "^9.0.0", - "axios": "^1.6.5", - "chai": "^4.3.6", - "concurrently": "^8.2.2", - "cpx": "^1.5.0", - "cross-env": "^7.0.3", - "del-cli": "^5.0.0", - "dotenv": "^16.0.0", - "eslint": "^8.13.0", - "eslint-config-prettier": "^8.5.0", - "eslint-config-standard": "^17.0.0", - "eslint-import-resolver-typescript": "^2.7.1", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-promise": "^6.0.0", - "eslint-plugin-simple-import-sort": "7.0.0", - "eslint-plugin-sort-keys-fix": "1.1.2", - "eslint-plugin-typescript-sort-keys": "2.1.0", - "ethereum-waffle": "^4.0.9", - "ethereumjs-utils": "^5.2.5", - "ethers": "5.6.8", - "hardhat": "^2.22.12", - "hardhat-abi-exporter": "^2.10.1", - "hardhat-gas-reporter": "^1.0.9", - "inquirer": "^8.2.4", - "lodash": "^4.17.21", - "mocha": "^10.2.0", - "solhint": "^5.0.1", - "solidity-coverage": "^0.8.12", - "ts-mocha": "^10.0.0", - "ts-node": "10.8.1", - "tsconfig-paths": "^3.14.1", - "typechain": "^8.1.0", - "typescript": "^4.6.3", - "uniswap-v2-deploy-plugin": "^0.0.4", - "wait-on": "^7.2.0" - }, - "files": [ - "contracts", - "abi", - "dist" - ], - "keywords": [], - "license": "MIT", - "main": "./dist/lib/index.js", - "name": "@zetachain/protocol-contracts", - "packageManager": "yarn@1.22.21", - "publishConfig": { - "access": "public", - "registry": "https://registry.npmjs.org/" - }, - "scripts": { - "build": "yarn compile && npx del-cli dist abi && npx tsc || true && npx del-cli './dist/typechain-types/**/*.js' && npx cpx './data/**/*' dist/data && npx cpx './artifacts/contracts/**/*' ./abi && npx del-cli './abi/**/*.dbg.json'", - "compile": "npx hardhat compile --force", - "generate": "yarn compile && ./scripts/generate_go.sh || true && ./scripts/generate_addresses.sh && yarn lint:fix", - "lint": "npx eslint . --ext .js,.ts --ignore-pattern lib/", - "lint:fix": "npx eslint . --ext .js,.ts,.json --fix --ignore-pattern coverage/ --ignore-pattern coverage.json --ignore-pattern lib/ --ignore-pattern out --ignore-pattern cache_forge/", - "lint:sol": "solhint 'contracts/**/*.sol'", - "prepublishOnly": "yarn build", - "test": "npx hardhat test", - "tsc:watch": "npx tsc --watch" - }, - "types": "./dist/lib/index.d.ts", - "version": "0.0.8" -} diff --git a/v1/pkg/contracts/evm/erc20custody.sol/erc20custody.go b/v1/pkg/contracts/evm/erc20custody.sol/erc20custody.go deleted file mode 100644 index 0564dfecc..000000000 --- a/v1/pkg/contracts/evm/erc20custody.sol/erc20custody.go +++ /dev/null @@ -1,1868 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package erc20custody - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ERC20CustodyMetaData contains all meta data concerning the ERC20Custody contract. -var ERC20CustodyMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"TSSAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"TSSAddressUpdater_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaFee_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zetaMaxFee_\",\"type\":\"uint256\"},{\"internalType\":\"contractIERC20\",\"name\":\"zeta_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidSender\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTSSUpdater\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IsPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotPaused\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotWhitelisted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroFee\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZetaMaxFeeExceeded\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"recipient\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"TSSAddressUpdater_\",\"type\":\"address\"}],\"name\":\"RenouncedTSSUpdater\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"Unwhitelisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"TSSAddress_\",\"type\":\"address\"}],\"name\":\"UpdatedTSSAddress\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaFee_\",\"type\":\"uint256\"}],\"name\":\"UpdatedZetaFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"Whitelisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"TSSAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TSSAddressUpdater\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"recipient\",\"type\":\"bytes\"},{\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceTSSAddressUpdater\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"unwhitelist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"TSSAddress_\",\"type\":\"address\"}],\"name\":\"updateTSSAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"zetaFee_\",\"type\":\"uint256\"}],\"name\":\"updateZetaFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"whitelist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"whitelisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"contractIERC20\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zeta\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaMaxFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60c06040523480156200001157600080fd5b50604051620021a0380380620021a0833981810160405281019062000037919062000156565b6001600081905550846001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826003819055508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508160808181525050505050505062000283565b600081519050620001228162000235565b92915050565b60008151905062000139816200024f565b92915050565b600081519050620001508162000269565b92915050565b600080600080600060a0868803121562000175576200017462000230565b5b6000620001858882890162000111565b9550506020620001988882890162000111565b9450506040620001ab888289016200013f565b9350506060620001be888289016200013f565b9250506080620001d18882890162000128565b9150509295509295909350565b6000620001eb8262000206565b9050919050565b6000620001ff82620001de565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b6200024081620001de565b81146200024c57600080fd5b50565b6200025a81620001f2565b81146200026657600080fd5b50565b620002748162000226565b81146200028057600080fd5b50565b60805160a05160601c611edf620002c160003960008181610dca01528181610e31015261102d01526000818161042d0152610c310152611edf6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80639b19251a11610097578063e5408cfa11610066578063e5408cfa1461024d578063e609055e1461026b578063e8f9cb3a14610287578063ed11692b146102a557610100565b80639b19251a146101c9578063d936547e146101e5578063d9caed1214610215578063de2f6c5e1461023157610100565b80637bdaded3116100d35780637bdaded3146101695780638456cb5914610187578063950837aa146101915780639a590427146101ad57610100565b80633f4ba83a1461010557806353ee30a31461010f57806354b61e811461012d5780635c975abb1461014b575b600080fd5b61010d6102af565b005b6101176103ce565b6040516101249190611a04565b60405180910390f35b6101356103f2565b6040516101429190611a04565b60405180910390f35b610153610418565b6040516101609190611a7f565b60405180910390f35b61017161042b565b60405161017e9190611ba0565b60405180910390f35b61018f61044f565b005b6101ab60048036038101906101a691906116b3565b6105f5565b005b6101c760048036038101906101c29190611807565b61075c565b005b6101e360048036038101906101de9190611807565b61087f565b005b6101ff60048036038101906101fa9190611807565b6109a2565b60405161020c9190611a7f565b60405180910390f35b61022f600480360381019061022a91906116e0565b6109c2565b005b61024b60048036038101906102469190611834565b610b6f565b005b610255610cca565b6040516102629190611ba0565b60405180910390f35b61028560048036038101906102809190611760565b610cd0565b005b61028f61102b565b60405161029c9190611ae3565b60405180910390f35b6102ad61104f565b005b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610334576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff1661037a576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336040516103c49190611a04565b60405180910390a1565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104d4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff161561051b576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156105a2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336040516105eb9190611a04565b60405180910390a1565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461067b576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106e2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fcd2958db8285a532edf298cbe1aa28ea3fb5ec82461253f9a8c1477924e29947816040516107519190611a04565b60405180910390a150565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e1576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f51085ddf9ebdded84b76e829eb58c4078e4b5bdf97d9a94723f336039da4679160405160405180910390a250565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610904576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167faab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a5460405160405180910390a250565b60046020528060005260406000206000915054906101000a900460ff1681565b6109ca6111f6565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a4f576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ad2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610afd83828473ffffffffffffffffffffffffffffffffffffffff166112469092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb83604051610b5a9190611ba0565b60405180910390a3610b6a6112cc565b505050565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bf4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415610c2f576040517faf13986d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610c89576040517fc1be451300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806003819055507f6d2d8e313fbaf76898bb9fa55e4b52525e49c7d7182d0874f97bd9076e81d52381604051610cbf9190611ba0565b60405180910390a150565b60035481565b610cd86111f6565b600160009054906101000a900460ff1615610d1f576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610da2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060035414158015610e025750600073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614155b15610e7757610e763360018054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b5b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eb29190611a04565b60206040518083038186803b158015610eca57600080fd5b505afa158015610ede573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f029190611861565b9050610f313330868873ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b8473ffffffffffffffffffffffffffffffffffffffff167f1dafa057cc5c3bccb5ad974129a2bccd3c74002d9dfd7062404ba9523b18d6ae8888848973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fa59190611a04565b60206040518083038186803b158015610fbd57600080fd5b505afa158015610fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff59190611861565b610fff9190611bfe565b8787604051611012959493929190611a9a565b60405180910390a2506110236112cc565b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d5576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561115c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f39ac266bfc011581be62c138d96e4e8782812013bb66fffb4cd207f4bfee3777336040516111ec9190611a04565b60405180910390a1565b6002600054141561123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123390611b80565b60405180910390fd5b6002600081905550565b6112c78363a9059cbb60e01b8484604051602401611265929190611a56565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b505050565b6001600081905550565b611359846323b872dd60e01b8585856040516024016112f793929190611a1f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b50505050565b60006113c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114269092919063ffffffff16565b905060008151111561142157808060200190518101906113e19190611733565b611420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141790611b60565b60405180910390fd5b5b505050565b6060611435848460008561143e565b90509392505050565b606082471015611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90611b20565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114ac91906119ed565b60006040518083038185875af1925050503d80600081146114e9576040519150601f19603f3d011682016040523d82523d6000602084013e6114ee565b606091505b50915091506114ff8783838761150b565b92505050949350505050565b6060831561156e576000835114156115665761152685611581565b611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c90611b40565b60405180910390fd5b5b829050611579565b61157883836115a4565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115b75781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb9190611afe565b60405180910390fd5b60008135905061160381611e4d565b92915050565b60008151905061161881611e64565b92915050565b60008083601f84011261163457611633611d38565b5b8235905067ffffffffffffffff81111561165157611650611d33565b5b60208301915083600182028301111561166d5761166c611d3d565b5b9250929050565b60008135905061168381611e7b565b92915050565b60008135905061169881611e92565b92915050565b6000815190506116ad81611e92565b92915050565b6000602082840312156116c9576116c8611d47565b5b60006116d7848285016115f4565b91505092915050565b6000806000606084860312156116f9576116f8611d47565b5b6000611707868287016115f4565b935050602061171886828701611674565b925050604061172986828701611689565b9150509250925092565b60006020828403121561174957611748611d47565b5b600061175784828501611609565b91505092915050565b6000806000806000806080878903121561177d5761177c611d47565b5b600087013567ffffffffffffffff81111561179b5761179a611d42565b5b6117a789828a0161161e565b965096505060206117ba89828a01611674565b94505060406117cb89828a01611689565b935050606087013567ffffffffffffffff8111156117ec576117eb611d42565b5b6117f889828a0161161e565b92509250509295509295509295565b60006020828403121561181d5761181c611d47565b5b600061182b84828501611674565b91505092915050565b60006020828403121561184a57611849611d47565b5b600061185884828501611689565b91505092915050565b60006020828403121561187757611876611d47565b5b60006118858482850161169e565b91505092915050565b61189781611c32565b82525050565b6118a681611c44565b82525050565b60006118b88385611bd1565b93506118c5838584611cc2565b6118ce83611d4c565b840190509392505050565b60006118e482611bbb565b6118ee8185611be2565b93506118fe818560208601611cd1565b80840191505092915050565b61191381611c8c565b82525050565b600061192482611bc6565b61192e8185611bed565b935061193e818560208601611cd1565b61194781611d4c565b840191505092915050565b600061195f602683611bed565b915061196a82611d5d565b604082019050919050565b6000611982601d83611bed565b915061198d82611dac565b602082019050919050565b60006119a5602a83611bed565b91506119b082611dd5565b604082019050919050565b60006119c8601f83611bed565b91506119d382611e24565b602082019050919050565b6119e781611c82565b82525050565b60006119f982846118d9565b915081905092915050565b6000602082019050611a19600083018461188e565b92915050565b6000606082019050611a34600083018661188e565b611a41602083018561188e565b611a4e60408301846119de565b949350505050565b6000604082019050611a6b600083018561188e565b611a7860208301846119de565b9392505050565b6000602082019050611a94600083018461189d565b92915050565b60006060820190508181036000830152611ab58187896118ac565b9050611ac460208301866119de565b8181036040830152611ad78184866118ac565b90509695505050505050565b6000602082019050611af8600083018461190a565b92915050565b60006020820190508181036000830152611b188184611919565b905092915050565b60006020820190508181036000830152611b3981611952565b9050919050565b60006020820190508181036000830152611b5981611975565b9050919050565b60006020820190508181036000830152611b7981611998565b9050919050565b60006020820190508181036000830152611b99816119bb565b9050919050565b6000602082019050611bb560008301846119de565b92915050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611c0982611c82565b9150611c1483611c82565b925082821015611c2757611c26611d04565b5b828203905092915050565b6000611c3d82611c62565b9050919050565b60008115159050919050565b6000611c5b82611c32565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611c9782611c9e565b9050919050565b6000611ca982611cb0565b9050919050565b6000611cbb82611c62565b9050919050565b82818337600083830152505050565b60005b83811015611cef578082015181840152602081019050611cd4565b83811115611cfe576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b611e5681611c32565b8114611e6157600080fd5b50565b611e6d81611c44565b8114611e7857600080fd5b50565b611e8481611c50565b8114611e8f57600080fd5b50565b611e9b81611c82565b8114611ea657600080fd5b5056fea26469706673582212205768544075d85a56b1d380f8fcc0c8829b8a656c656277c25c81c31608d9e4ef64736f6c63430008070033", -} - -// ERC20CustodyABI is the input ABI used to generate the binding from. -// Deprecated: Use ERC20CustodyMetaData.ABI instead. -var ERC20CustodyABI = ERC20CustodyMetaData.ABI - -// ERC20CustodyBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ERC20CustodyMetaData.Bin instead. -var ERC20CustodyBin = ERC20CustodyMetaData.Bin - -// DeployERC20Custody deploys a new Ethereum contract, binding an instance of ERC20Custody to it. -func DeployERC20Custody(auth *bind.TransactOpts, backend bind.ContractBackend, TSSAddress_ common.Address, TSSAddressUpdater_ common.Address, zetaFee_ *big.Int, zetaMaxFee_ *big.Int, zeta_ common.Address) (common.Address, *types.Transaction, *ERC20Custody, error) { - parsed, err := ERC20CustodyMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ERC20CustodyBin), backend, TSSAddress_, TSSAddressUpdater_, zetaFee_, zetaMaxFee_, zeta_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ERC20Custody{ERC20CustodyCaller: ERC20CustodyCaller{contract: contract}, ERC20CustodyTransactor: ERC20CustodyTransactor{contract: contract}, ERC20CustodyFilterer: ERC20CustodyFilterer{contract: contract}}, nil -} - -// ERC20Custody is an auto generated Go binding around an Ethereum contract. -type ERC20Custody struct { - ERC20CustodyCaller // Read-only binding to the contract - ERC20CustodyTransactor // Write-only binding to the contract - ERC20CustodyFilterer // Log filterer for contract events -} - -// ERC20CustodyCaller is an auto generated read-only Go binding around an Ethereum contract. -type ERC20CustodyCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20CustodyTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ERC20CustodyTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20CustodyFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ERC20CustodyFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20CustodySession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ERC20CustodySession struct { - Contract *ERC20Custody // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20CustodyCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ERC20CustodyCallerSession struct { - Contract *ERC20CustodyCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ERC20CustodyTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ERC20CustodyTransactorSession struct { - Contract *ERC20CustodyTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20CustodyRaw is an auto generated low-level Go binding around an Ethereum contract. -type ERC20CustodyRaw struct { - Contract *ERC20Custody // Generic contract binding to access the raw methods on -} - -// ERC20CustodyCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ERC20CustodyCallerRaw struct { - Contract *ERC20CustodyCaller // Generic read-only contract binding to access the raw methods on -} - -// ERC20CustodyTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ERC20CustodyTransactorRaw struct { - Contract *ERC20CustodyTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewERC20Custody creates a new instance of ERC20Custody, bound to a specific deployed contract. -func NewERC20Custody(address common.Address, backend bind.ContractBackend) (*ERC20Custody, error) { - contract, err := bindERC20Custody(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ERC20Custody{ERC20CustodyCaller: ERC20CustodyCaller{contract: contract}, ERC20CustodyTransactor: ERC20CustodyTransactor{contract: contract}, ERC20CustodyFilterer: ERC20CustodyFilterer{contract: contract}}, nil -} - -// NewERC20CustodyCaller creates a new read-only instance of ERC20Custody, bound to a specific deployed contract. -func NewERC20CustodyCaller(address common.Address, caller bind.ContractCaller) (*ERC20CustodyCaller, error) { - contract, err := bindERC20Custody(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ERC20CustodyCaller{contract: contract}, nil -} - -// NewERC20CustodyTransactor creates a new write-only instance of ERC20Custody, bound to a specific deployed contract. -func NewERC20CustodyTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20CustodyTransactor, error) { - contract, err := bindERC20Custody(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ERC20CustodyTransactor{contract: contract}, nil -} - -// NewERC20CustodyFilterer creates a new log filterer instance of ERC20Custody, bound to a specific deployed contract. -func NewERC20CustodyFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20CustodyFilterer, error) { - contract, err := bindERC20Custody(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ERC20CustodyFilterer{contract: contract}, nil -} - -// bindERC20Custody binds a generic wrapper to an already deployed contract. -func bindERC20Custody(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ERC20CustodyMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20Custody *ERC20CustodyRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20Custody.Contract.ERC20CustodyCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20Custody *ERC20CustodyRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Custody.Contract.ERC20CustodyTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20Custody *ERC20CustodyRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20Custody.Contract.ERC20CustodyTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20Custody *ERC20CustodyCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20Custody.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20Custody *ERC20CustodyTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Custody.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20Custody *ERC20CustodyTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20Custody.Contract.contract.Transact(opts, method, params...) -} - -// TSSAddress is a free data retrieval call binding the contract method 0x53ee30a3. -// -// Solidity: function TSSAddress() view returns(address) -func (_ERC20Custody *ERC20CustodyCaller) TSSAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ERC20Custody.contract.Call(opts, &out, "TSSAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TSSAddress is a free data retrieval call binding the contract method 0x53ee30a3. -// -// Solidity: function TSSAddress() view returns(address) -func (_ERC20Custody *ERC20CustodySession) TSSAddress() (common.Address, error) { - return _ERC20Custody.Contract.TSSAddress(&_ERC20Custody.CallOpts) -} - -// TSSAddress is a free data retrieval call binding the contract method 0x53ee30a3. -// -// Solidity: function TSSAddress() view returns(address) -func (_ERC20Custody *ERC20CustodyCallerSession) TSSAddress() (common.Address, error) { - return _ERC20Custody.Contract.TSSAddress(&_ERC20Custody.CallOpts) -} - -// TSSAddressUpdater is a free data retrieval call binding the contract method 0x54b61e81. -// -// Solidity: function TSSAddressUpdater() view returns(address) -func (_ERC20Custody *ERC20CustodyCaller) TSSAddressUpdater(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ERC20Custody.contract.Call(opts, &out, "TSSAddressUpdater") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TSSAddressUpdater is a free data retrieval call binding the contract method 0x54b61e81. -// -// Solidity: function TSSAddressUpdater() view returns(address) -func (_ERC20Custody *ERC20CustodySession) TSSAddressUpdater() (common.Address, error) { - return _ERC20Custody.Contract.TSSAddressUpdater(&_ERC20Custody.CallOpts) -} - -// TSSAddressUpdater is a free data retrieval call binding the contract method 0x54b61e81. -// -// Solidity: function TSSAddressUpdater() view returns(address) -func (_ERC20Custody *ERC20CustodyCallerSession) TSSAddressUpdater() (common.Address, error) { - return _ERC20Custody.Contract.TSSAddressUpdater(&_ERC20Custody.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ERC20Custody *ERC20CustodyCaller) Paused(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ERC20Custody.contract.Call(opts, &out, "paused") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ERC20Custody *ERC20CustodySession) Paused() (bool, error) { - return _ERC20Custody.Contract.Paused(&_ERC20Custody.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ERC20Custody *ERC20CustodyCallerSession) Paused() (bool, error) { - return _ERC20Custody.Contract.Paused(&_ERC20Custody.CallOpts) -} - -// Whitelisted is a free data retrieval call binding the contract method 0xd936547e. -// -// Solidity: function whitelisted(address ) view returns(bool) -func (_ERC20Custody *ERC20CustodyCaller) Whitelisted(opts *bind.CallOpts, arg0 common.Address) (bool, error) { - var out []interface{} - err := _ERC20Custody.contract.Call(opts, &out, "whitelisted", arg0) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// Whitelisted is a free data retrieval call binding the contract method 0xd936547e. -// -// Solidity: function whitelisted(address ) view returns(bool) -func (_ERC20Custody *ERC20CustodySession) Whitelisted(arg0 common.Address) (bool, error) { - return _ERC20Custody.Contract.Whitelisted(&_ERC20Custody.CallOpts, arg0) -} - -// Whitelisted is a free data retrieval call binding the contract method 0xd936547e. -// -// Solidity: function whitelisted(address ) view returns(bool) -func (_ERC20Custody *ERC20CustodyCallerSession) Whitelisted(arg0 common.Address) (bool, error) { - return _ERC20Custody.Contract.Whitelisted(&_ERC20Custody.CallOpts, arg0) -} - -// Zeta is a free data retrieval call binding the contract method 0xe8f9cb3a. -// -// Solidity: function zeta() view returns(address) -func (_ERC20Custody *ERC20CustodyCaller) Zeta(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ERC20Custody.contract.Call(opts, &out, "zeta") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Zeta is a free data retrieval call binding the contract method 0xe8f9cb3a. -// -// Solidity: function zeta() view returns(address) -func (_ERC20Custody *ERC20CustodySession) Zeta() (common.Address, error) { - return _ERC20Custody.Contract.Zeta(&_ERC20Custody.CallOpts) -} - -// Zeta is a free data retrieval call binding the contract method 0xe8f9cb3a. -// -// Solidity: function zeta() view returns(address) -func (_ERC20Custody *ERC20CustodyCallerSession) Zeta() (common.Address, error) { - return _ERC20Custody.Contract.Zeta(&_ERC20Custody.CallOpts) -} - -// ZetaFee is a free data retrieval call binding the contract method 0xe5408cfa. -// -// Solidity: function zetaFee() view returns(uint256) -func (_ERC20Custody *ERC20CustodyCaller) ZetaFee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ERC20Custody.contract.Call(opts, &out, "zetaFee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// ZetaFee is a free data retrieval call binding the contract method 0xe5408cfa. -// -// Solidity: function zetaFee() view returns(uint256) -func (_ERC20Custody *ERC20CustodySession) ZetaFee() (*big.Int, error) { - return _ERC20Custody.Contract.ZetaFee(&_ERC20Custody.CallOpts) -} - -// ZetaFee is a free data retrieval call binding the contract method 0xe5408cfa. -// -// Solidity: function zetaFee() view returns(uint256) -func (_ERC20Custody *ERC20CustodyCallerSession) ZetaFee() (*big.Int, error) { - return _ERC20Custody.Contract.ZetaFee(&_ERC20Custody.CallOpts) -} - -// ZetaMaxFee is a free data retrieval call binding the contract method 0x7bdaded3. -// -// Solidity: function zetaMaxFee() view returns(uint256) -func (_ERC20Custody *ERC20CustodyCaller) ZetaMaxFee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ERC20Custody.contract.Call(opts, &out, "zetaMaxFee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// ZetaMaxFee is a free data retrieval call binding the contract method 0x7bdaded3. -// -// Solidity: function zetaMaxFee() view returns(uint256) -func (_ERC20Custody *ERC20CustodySession) ZetaMaxFee() (*big.Int, error) { - return _ERC20Custody.Contract.ZetaMaxFee(&_ERC20Custody.CallOpts) -} - -// ZetaMaxFee is a free data retrieval call binding the contract method 0x7bdaded3. -// -// Solidity: function zetaMaxFee() view returns(uint256) -func (_ERC20Custody *ERC20CustodyCallerSession) ZetaMaxFee() (*big.Int, error) { - return _ERC20Custody.Contract.ZetaMaxFee(&_ERC20Custody.CallOpts) -} - -// Deposit is a paid mutator transaction binding the contract method 0xe609055e. -// -// Solidity: function deposit(bytes recipient, address asset, uint256 amount, bytes message) returns() -func (_ERC20Custody *ERC20CustodyTransactor) Deposit(opts *bind.TransactOpts, recipient []byte, asset common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "deposit", recipient, asset, amount, message) -} - -// Deposit is a paid mutator transaction binding the contract method 0xe609055e. -// -// Solidity: function deposit(bytes recipient, address asset, uint256 amount, bytes message) returns() -func (_ERC20Custody *ERC20CustodySession) Deposit(recipient []byte, asset common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _ERC20Custody.Contract.Deposit(&_ERC20Custody.TransactOpts, recipient, asset, amount, message) -} - -// Deposit is a paid mutator transaction binding the contract method 0xe609055e. -// -// Solidity: function deposit(bytes recipient, address asset, uint256 amount, bytes message) returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) Deposit(recipient []byte, asset common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _ERC20Custody.Contract.Deposit(&_ERC20Custody.TransactOpts, recipient, asset, amount, message) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ERC20Custody *ERC20CustodyTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "pause") -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ERC20Custody *ERC20CustodySession) Pause() (*types.Transaction, error) { - return _ERC20Custody.Contract.Pause(&_ERC20Custody.TransactOpts) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) Pause() (*types.Transaction, error) { - return _ERC20Custody.Contract.Pause(&_ERC20Custody.TransactOpts) -} - -// RenounceTSSAddressUpdater is a paid mutator transaction binding the contract method 0xed11692b. -// -// Solidity: function renounceTSSAddressUpdater() returns() -func (_ERC20Custody *ERC20CustodyTransactor) RenounceTSSAddressUpdater(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "renounceTSSAddressUpdater") -} - -// RenounceTSSAddressUpdater is a paid mutator transaction binding the contract method 0xed11692b. -// -// Solidity: function renounceTSSAddressUpdater() returns() -func (_ERC20Custody *ERC20CustodySession) RenounceTSSAddressUpdater() (*types.Transaction, error) { - return _ERC20Custody.Contract.RenounceTSSAddressUpdater(&_ERC20Custody.TransactOpts) -} - -// RenounceTSSAddressUpdater is a paid mutator transaction binding the contract method 0xed11692b. -// -// Solidity: function renounceTSSAddressUpdater() returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) RenounceTSSAddressUpdater() (*types.Transaction, error) { - return _ERC20Custody.Contract.RenounceTSSAddressUpdater(&_ERC20Custody.TransactOpts) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ERC20Custody *ERC20CustodyTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "unpause") -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ERC20Custody *ERC20CustodySession) Unpause() (*types.Transaction, error) { - return _ERC20Custody.Contract.Unpause(&_ERC20Custody.TransactOpts) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) Unpause() (*types.Transaction, error) { - return _ERC20Custody.Contract.Unpause(&_ERC20Custody.TransactOpts) -} - -// Unwhitelist is a paid mutator transaction binding the contract method 0x9a590427. -// -// Solidity: function unwhitelist(address asset) returns() -func (_ERC20Custody *ERC20CustodyTransactor) Unwhitelist(opts *bind.TransactOpts, asset common.Address) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "unwhitelist", asset) -} - -// Unwhitelist is a paid mutator transaction binding the contract method 0x9a590427. -// -// Solidity: function unwhitelist(address asset) returns() -func (_ERC20Custody *ERC20CustodySession) Unwhitelist(asset common.Address) (*types.Transaction, error) { - return _ERC20Custody.Contract.Unwhitelist(&_ERC20Custody.TransactOpts, asset) -} - -// Unwhitelist is a paid mutator transaction binding the contract method 0x9a590427. -// -// Solidity: function unwhitelist(address asset) returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) Unwhitelist(asset common.Address) (*types.Transaction, error) { - return _ERC20Custody.Contract.Unwhitelist(&_ERC20Custody.TransactOpts, asset) -} - -// UpdateTSSAddress is a paid mutator transaction binding the contract method 0x950837aa. -// -// Solidity: function updateTSSAddress(address TSSAddress_) returns() -func (_ERC20Custody *ERC20CustodyTransactor) UpdateTSSAddress(opts *bind.TransactOpts, TSSAddress_ common.Address) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "updateTSSAddress", TSSAddress_) -} - -// UpdateTSSAddress is a paid mutator transaction binding the contract method 0x950837aa. -// -// Solidity: function updateTSSAddress(address TSSAddress_) returns() -func (_ERC20Custody *ERC20CustodySession) UpdateTSSAddress(TSSAddress_ common.Address) (*types.Transaction, error) { - return _ERC20Custody.Contract.UpdateTSSAddress(&_ERC20Custody.TransactOpts, TSSAddress_) -} - -// UpdateTSSAddress is a paid mutator transaction binding the contract method 0x950837aa. -// -// Solidity: function updateTSSAddress(address TSSAddress_) returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) UpdateTSSAddress(TSSAddress_ common.Address) (*types.Transaction, error) { - return _ERC20Custody.Contract.UpdateTSSAddress(&_ERC20Custody.TransactOpts, TSSAddress_) -} - -// UpdateZetaFee is a paid mutator transaction binding the contract method 0xde2f6c5e. -// -// Solidity: function updateZetaFee(uint256 zetaFee_) returns() -func (_ERC20Custody *ERC20CustodyTransactor) UpdateZetaFee(opts *bind.TransactOpts, zetaFee_ *big.Int) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "updateZetaFee", zetaFee_) -} - -// UpdateZetaFee is a paid mutator transaction binding the contract method 0xde2f6c5e. -// -// Solidity: function updateZetaFee(uint256 zetaFee_) returns() -func (_ERC20Custody *ERC20CustodySession) UpdateZetaFee(zetaFee_ *big.Int) (*types.Transaction, error) { - return _ERC20Custody.Contract.UpdateZetaFee(&_ERC20Custody.TransactOpts, zetaFee_) -} - -// UpdateZetaFee is a paid mutator transaction binding the contract method 0xde2f6c5e. -// -// Solidity: function updateZetaFee(uint256 zetaFee_) returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) UpdateZetaFee(zetaFee_ *big.Int) (*types.Transaction, error) { - return _ERC20Custody.Contract.UpdateZetaFee(&_ERC20Custody.TransactOpts, zetaFee_) -} - -// Whitelist is a paid mutator transaction binding the contract method 0x9b19251a. -// -// Solidity: function whitelist(address asset) returns() -func (_ERC20Custody *ERC20CustodyTransactor) Whitelist(opts *bind.TransactOpts, asset common.Address) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "whitelist", asset) -} - -// Whitelist is a paid mutator transaction binding the contract method 0x9b19251a. -// -// Solidity: function whitelist(address asset) returns() -func (_ERC20Custody *ERC20CustodySession) Whitelist(asset common.Address) (*types.Transaction, error) { - return _ERC20Custody.Contract.Whitelist(&_ERC20Custody.TransactOpts, asset) -} - -// Whitelist is a paid mutator transaction binding the contract method 0x9b19251a. -// -// Solidity: function whitelist(address asset) returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) Whitelist(asset common.Address) (*types.Transaction, error) { - return _ERC20Custody.Contract.Whitelist(&_ERC20Custody.TransactOpts, asset) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xd9caed12. -// -// Solidity: function withdraw(address recipient, address asset, uint256 amount) returns() -func (_ERC20Custody *ERC20CustodyTransactor) Withdraw(opts *bind.TransactOpts, recipient common.Address, asset common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Custody.contract.Transact(opts, "withdraw", recipient, asset, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xd9caed12. -// -// Solidity: function withdraw(address recipient, address asset, uint256 amount) returns() -func (_ERC20Custody *ERC20CustodySession) Withdraw(recipient common.Address, asset common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Custody.Contract.Withdraw(&_ERC20Custody.TransactOpts, recipient, asset, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xd9caed12. -// -// Solidity: function withdraw(address recipient, address asset, uint256 amount) returns() -func (_ERC20Custody *ERC20CustodyTransactorSession) Withdraw(recipient common.Address, asset common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Custody.Contract.Withdraw(&_ERC20Custody.TransactOpts, recipient, asset, amount) -} - -// ERC20CustodyDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the ERC20Custody contract. -type ERC20CustodyDepositedIterator struct { - Event *ERC20CustodyDeposited // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyDepositedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyDeposited) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyDepositedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyDepositedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyDeposited represents a Deposited event raised by the ERC20Custody contract. -type ERC20CustodyDeposited struct { - Recipient []byte - Asset common.Address - Amount *big.Int - Message []byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDeposited is a free log retrieval operation binding the contract event 0x1dafa057cc5c3bccb5ad974129a2bccd3c74002d9dfd7062404ba9523b18d6ae. -// -// Solidity: event Deposited(bytes recipient, address indexed asset, uint256 amount, bytes message) -func (_ERC20Custody *ERC20CustodyFilterer) FilterDeposited(opts *bind.FilterOpts, asset []common.Address) (*ERC20CustodyDepositedIterator, error) { - - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "Deposited", assetRule) - if err != nil { - return nil, err - } - return &ERC20CustodyDepositedIterator{contract: _ERC20Custody.contract, event: "Deposited", logs: logs, sub: sub}, nil -} - -// WatchDeposited is a free log subscription operation binding the contract event 0x1dafa057cc5c3bccb5ad974129a2bccd3c74002d9dfd7062404ba9523b18d6ae. -// -// Solidity: event Deposited(bytes recipient, address indexed asset, uint256 amount, bytes message) -func (_ERC20Custody *ERC20CustodyFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *ERC20CustodyDeposited, asset []common.Address) (event.Subscription, error) { - - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "Deposited", assetRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyDeposited) - if err := _ERC20Custody.contract.UnpackLog(event, "Deposited", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDeposited is a log parse operation binding the contract event 0x1dafa057cc5c3bccb5ad974129a2bccd3c74002d9dfd7062404ba9523b18d6ae. -// -// Solidity: event Deposited(bytes recipient, address indexed asset, uint256 amount, bytes message) -func (_ERC20Custody *ERC20CustodyFilterer) ParseDeposited(log types.Log) (*ERC20CustodyDeposited, error) { - event := new(ERC20CustodyDeposited) - if err := _ERC20Custody.contract.UnpackLog(event, "Deposited", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the ERC20Custody contract. -type ERC20CustodyPausedIterator struct { - Event *ERC20CustodyPaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyPausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyPaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyPaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyPausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyPausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyPaused represents a Paused event raised by the ERC20Custody contract. -type ERC20CustodyPaused struct { - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address sender) -func (_ERC20Custody *ERC20CustodyFilterer) FilterPaused(opts *bind.FilterOpts) (*ERC20CustodyPausedIterator, error) { - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "Paused") - if err != nil { - return nil, err - } - return &ERC20CustodyPausedIterator{contract: _ERC20Custody.contract, event: "Paused", logs: logs, sub: sub}, nil -} - -// WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address sender) -func (_ERC20Custody *ERC20CustodyFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ERC20CustodyPaused) (event.Subscription, error) { - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "Paused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyPaused) - if err := _ERC20Custody.contract.UnpackLog(event, "Paused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address sender) -func (_ERC20Custody *ERC20CustodyFilterer) ParsePaused(log types.Log) (*ERC20CustodyPaused, error) { - event := new(ERC20CustodyPaused) - if err := _ERC20Custody.contract.UnpackLog(event, "Paused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyRenouncedTSSUpdaterIterator is returned from FilterRenouncedTSSUpdater and is used to iterate over the raw logs and unpacked data for RenouncedTSSUpdater events raised by the ERC20Custody contract. -type ERC20CustodyRenouncedTSSUpdaterIterator struct { - Event *ERC20CustodyRenouncedTSSUpdater // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyRenouncedTSSUpdaterIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyRenouncedTSSUpdater) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyRenouncedTSSUpdater) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyRenouncedTSSUpdaterIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyRenouncedTSSUpdaterIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyRenouncedTSSUpdater represents a RenouncedTSSUpdater event raised by the ERC20Custody contract. -type ERC20CustodyRenouncedTSSUpdater struct { - TSSAddressUpdater common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterRenouncedTSSUpdater is a free log retrieval operation binding the contract event 0x39ac266bfc011581be62c138d96e4e8782812013bb66fffb4cd207f4bfee3777. -// -// Solidity: event RenouncedTSSUpdater(address TSSAddressUpdater_) -func (_ERC20Custody *ERC20CustodyFilterer) FilterRenouncedTSSUpdater(opts *bind.FilterOpts) (*ERC20CustodyRenouncedTSSUpdaterIterator, error) { - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "RenouncedTSSUpdater") - if err != nil { - return nil, err - } - return &ERC20CustodyRenouncedTSSUpdaterIterator{contract: _ERC20Custody.contract, event: "RenouncedTSSUpdater", logs: logs, sub: sub}, nil -} - -// WatchRenouncedTSSUpdater is a free log subscription operation binding the contract event 0x39ac266bfc011581be62c138d96e4e8782812013bb66fffb4cd207f4bfee3777. -// -// Solidity: event RenouncedTSSUpdater(address TSSAddressUpdater_) -func (_ERC20Custody *ERC20CustodyFilterer) WatchRenouncedTSSUpdater(opts *bind.WatchOpts, sink chan<- *ERC20CustodyRenouncedTSSUpdater) (event.Subscription, error) { - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "RenouncedTSSUpdater") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyRenouncedTSSUpdater) - if err := _ERC20Custody.contract.UnpackLog(event, "RenouncedTSSUpdater", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseRenouncedTSSUpdater is a log parse operation binding the contract event 0x39ac266bfc011581be62c138d96e4e8782812013bb66fffb4cd207f4bfee3777. -// -// Solidity: event RenouncedTSSUpdater(address TSSAddressUpdater_) -func (_ERC20Custody *ERC20CustodyFilterer) ParseRenouncedTSSUpdater(log types.Log) (*ERC20CustodyRenouncedTSSUpdater, error) { - event := new(ERC20CustodyRenouncedTSSUpdater) - if err := _ERC20Custody.contract.UnpackLog(event, "RenouncedTSSUpdater", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the ERC20Custody contract. -type ERC20CustodyUnpausedIterator struct { - Event *ERC20CustodyUnpaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyUnpausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyUnpausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyUnpausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyUnpaused represents a Unpaused event raised by the ERC20Custody contract. -type ERC20CustodyUnpaused struct { - Sender common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address sender) -func (_ERC20Custody *ERC20CustodyFilterer) FilterUnpaused(opts *bind.FilterOpts) (*ERC20CustodyUnpausedIterator, error) { - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return &ERC20CustodyUnpausedIterator{contract: _ERC20Custody.contract, event: "Unpaused", logs: logs, sub: sub}, nil -} - -// WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address sender) -func (_ERC20Custody *ERC20CustodyFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ERC20CustodyUnpaused) (event.Subscription, error) { - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyUnpaused) - if err := _ERC20Custody.contract.UnpackLog(event, "Unpaused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address sender) -func (_ERC20Custody *ERC20CustodyFilterer) ParseUnpaused(log types.Log) (*ERC20CustodyUnpaused, error) { - event := new(ERC20CustodyUnpaused) - if err := _ERC20Custody.contract.UnpackLog(event, "Unpaused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyUnwhitelistedIterator is returned from FilterUnwhitelisted and is used to iterate over the raw logs and unpacked data for Unwhitelisted events raised by the ERC20Custody contract. -type ERC20CustodyUnwhitelistedIterator struct { - Event *ERC20CustodyUnwhitelisted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyUnwhitelistedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUnwhitelisted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUnwhitelisted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyUnwhitelistedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyUnwhitelistedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyUnwhitelisted represents a Unwhitelisted event raised by the ERC20Custody contract. -type ERC20CustodyUnwhitelisted struct { - Asset common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUnwhitelisted is a free log retrieval operation binding the contract event 0x51085ddf9ebdded84b76e829eb58c4078e4b5bdf97d9a94723f336039da46791. -// -// Solidity: event Unwhitelisted(address indexed asset) -func (_ERC20Custody *ERC20CustodyFilterer) FilterUnwhitelisted(opts *bind.FilterOpts, asset []common.Address) (*ERC20CustodyUnwhitelistedIterator, error) { - - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "Unwhitelisted", assetRule) - if err != nil { - return nil, err - } - return &ERC20CustodyUnwhitelistedIterator{contract: _ERC20Custody.contract, event: "Unwhitelisted", logs: logs, sub: sub}, nil -} - -// WatchUnwhitelisted is a free log subscription operation binding the contract event 0x51085ddf9ebdded84b76e829eb58c4078e4b5bdf97d9a94723f336039da46791. -// -// Solidity: event Unwhitelisted(address indexed asset) -func (_ERC20Custody *ERC20CustodyFilterer) WatchUnwhitelisted(opts *bind.WatchOpts, sink chan<- *ERC20CustodyUnwhitelisted, asset []common.Address) (event.Subscription, error) { - - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "Unwhitelisted", assetRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyUnwhitelisted) - if err := _ERC20Custody.contract.UnpackLog(event, "Unwhitelisted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUnwhitelisted is a log parse operation binding the contract event 0x51085ddf9ebdded84b76e829eb58c4078e4b5bdf97d9a94723f336039da46791. -// -// Solidity: event Unwhitelisted(address indexed asset) -func (_ERC20Custody *ERC20CustodyFilterer) ParseUnwhitelisted(log types.Log) (*ERC20CustodyUnwhitelisted, error) { - event := new(ERC20CustodyUnwhitelisted) - if err := _ERC20Custody.contract.UnpackLog(event, "Unwhitelisted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyUpdatedTSSAddressIterator is returned from FilterUpdatedTSSAddress and is used to iterate over the raw logs and unpacked data for UpdatedTSSAddress events raised by the ERC20Custody contract. -type ERC20CustodyUpdatedTSSAddressIterator struct { - Event *ERC20CustodyUpdatedTSSAddress // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyUpdatedTSSAddressIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUpdatedTSSAddress) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUpdatedTSSAddress) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyUpdatedTSSAddressIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyUpdatedTSSAddressIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyUpdatedTSSAddress represents a UpdatedTSSAddress event raised by the ERC20Custody contract. -type ERC20CustodyUpdatedTSSAddress struct { - TSSAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedTSSAddress is a free log retrieval operation binding the contract event 0xcd2958db8285a532edf298cbe1aa28ea3fb5ec82461253f9a8c1477924e29947. -// -// Solidity: event UpdatedTSSAddress(address TSSAddress_) -func (_ERC20Custody *ERC20CustodyFilterer) FilterUpdatedTSSAddress(opts *bind.FilterOpts) (*ERC20CustodyUpdatedTSSAddressIterator, error) { - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "UpdatedTSSAddress") - if err != nil { - return nil, err - } - return &ERC20CustodyUpdatedTSSAddressIterator{contract: _ERC20Custody.contract, event: "UpdatedTSSAddress", logs: logs, sub: sub}, nil -} - -// WatchUpdatedTSSAddress is a free log subscription operation binding the contract event 0xcd2958db8285a532edf298cbe1aa28ea3fb5ec82461253f9a8c1477924e29947. -// -// Solidity: event UpdatedTSSAddress(address TSSAddress_) -func (_ERC20Custody *ERC20CustodyFilterer) WatchUpdatedTSSAddress(opts *bind.WatchOpts, sink chan<- *ERC20CustodyUpdatedTSSAddress) (event.Subscription, error) { - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "UpdatedTSSAddress") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyUpdatedTSSAddress) - if err := _ERC20Custody.contract.UnpackLog(event, "UpdatedTSSAddress", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedTSSAddress is a log parse operation binding the contract event 0xcd2958db8285a532edf298cbe1aa28ea3fb5ec82461253f9a8c1477924e29947. -// -// Solidity: event UpdatedTSSAddress(address TSSAddress_) -func (_ERC20Custody *ERC20CustodyFilterer) ParseUpdatedTSSAddress(log types.Log) (*ERC20CustodyUpdatedTSSAddress, error) { - event := new(ERC20CustodyUpdatedTSSAddress) - if err := _ERC20Custody.contract.UnpackLog(event, "UpdatedTSSAddress", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyUpdatedZetaFeeIterator is returned from FilterUpdatedZetaFee and is used to iterate over the raw logs and unpacked data for UpdatedZetaFee events raised by the ERC20Custody contract. -type ERC20CustodyUpdatedZetaFeeIterator struct { - Event *ERC20CustodyUpdatedZetaFee // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyUpdatedZetaFeeIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUpdatedZetaFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyUpdatedZetaFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyUpdatedZetaFeeIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyUpdatedZetaFeeIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyUpdatedZetaFee represents a UpdatedZetaFee event raised by the ERC20Custody contract. -type ERC20CustodyUpdatedZetaFee struct { - ZetaFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedZetaFee is a free log retrieval operation binding the contract event 0x6d2d8e313fbaf76898bb9fa55e4b52525e49c7d7182d0874f97bd9076e81d523. -// -// Solidity: event UpdatedZetaFee(uint256 zetaFee_) -func (_ERC20Custody *ERC20CustodyFilterer) FilterUpdatedZetaFee(opts *bind.FilterOpts) (*ERC20CustodyUpdatedZetaFeeIterator, error) { - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "UpdatedZetaFee") - if err != nil { - return nil, err - } - return &ERC20CustodyUpdatedZetaFeeIterator{contract: _ERC20Custody.contract, event: "UpdatedZetaFee", logs: logs, sub: sub}, nil -} - -// WatchUpdatedZetaFee is a free log subscription operation binding the contract event 0x6d2d8e313fbaf76898bb9fa55e4b52525e49c7d7182d0874f97bd9076e81d523. -// -// Solidity: event UpdatedZetaFee(uint256 zetaFee_) -func (_ERC20Custody *ERC20CustodyFilterer) WatchUpdatedZetaFee(opts *bind.WatchOpts, sink chan<- *ERC20CustodyUpdatedZetaFee) (event.Subscription, error) { - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "UpdatedZetaFee") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyUpdatedZetaFee) - if err := _ERC20Custody.contract.UnpackLog(event, "UpdatedZetaFee", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedZetaFee is a log parse operation binding the contract event 0x6d2d8e313fbaf76898bb9fa55e4b52525e49c7d7182d0874f97bd9076e81d523. -// -// Solidity: event UpdatedZetaFee(uint256 zetaFee_) -func (_ERC20Custody *ERC20CustodyFilterer) ParseUpdatedZetaFee(log types.Log) (*ERC20CustodyUpdatedZetaFee, error) { - event := new(ERC20CustodyUpdatedZetaFee) - if err := _ERC20Custody.contract.UnpackLog(event, "UpdatedZetaFee", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyWhitelistedIterator is returned from FilterWhitelisted and is used to iterate over the raw logs and unpacked data for Whitelisted events raised by the ERC20Custody contract. -type ERC20CustodyWhitelistedIterator struct { - Event *ERC20CustodyWhitelisted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyWhitelistedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyWhitelisted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyWhitelisted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyWhitelistedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyWhitelistedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyWhitelisted represents a Whitelisted event raised by the ERC20Custody contract. -type ERC20CustodyWhitelisted struct { - Asset common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWhitelisted is a free log retrieval operation binding the contract event 0xaab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a54. -// -// Solidity: event Whitelisted(address indexed asset) -func (_ERC20Custody *ERC20CustodyFilterer) FilterWhitelisted(opts *bind.FilterOpts, asset []common.Address) (*ERC20CustodyWhitelistedIterator, error) { - - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "Whitelisted", assetRule) - if err != nil { - return nil, err - } - return &ERC20CustodyWhitelistedIterator{contract: _ERC20Custody.contract, event: "Whitelisted", logs: logs, sub: sub}, nil -} - -// WatchWhitelisted is a free log subscription operation binding the contract event 0xaab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a54. -// -// Solidity: event Whitelisted(address indexed asset) -func (_ERC20Custody *ERC20CustodyFilterer) WatchWhitelisted(opts *bind.WatchOpts, sink chan<- *ERC20CustodyWhitelisted, asset []common.Address) (event.Subscription, error) { - - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "Whitelisted", assetRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyWhitelisted) - if err := _ERC20Custody.contract.UnpackLog(event, "Whitelisted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWhitelisted is a log parse operation binding the contract event 0xaab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a54. -// -// Solidity: event Whitelisted(address indexed asset) -func (_ERC20Custody *ERC20CustodyFilterer) ParseWhitelisted(log types.Log) (*ERC20CustodyWhitelisted, error) { - event := new(ERC20CustodyWhitelisted) - if err := _ERC20Custody.contract.UnpackLog(event, "Whitelisted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20CustodyWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the ERC20Custody contract. -type ERC20CustodyWithdrawnIterator struct { - Event *ERC20CustodyWithdrawn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20CustodyWithdrawnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20CustodyWithdrawn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20CustodyWithdrawnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20CustodyWithdrawnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20CustodyWithdrawn represents a Withdrawn event raised by the ERC20Custody contract. -type ERC20CustodyWithdrawn struct { - Recipient common.Address - Asset common.Address - Amount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWithdrawn is a free log retrieval operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb. -// -// Solidity: event Withdrawn(address indexed recipient, address indexed asset, uint256 amount) -func (_ERC20Custody *ERC20CustodyFilterer) FilterWithdrawn(opts *bind.FilterOpts, recipient []common.Address, asset []common.Address) (*ERC20CustodyWithdrawnIterator, error) { - - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.FilterLogs(opts, "Withdrawn", recipientRule, assetRule) - if err != nil { - return nil, err - } - return &ERC20CustodyWithdrawnIterator{contract: _ERC20Custody.contract, event: "Withdrawn", logs: logs, sub: sub}, nil -} - -// WatchWithdrawn is a free log subscription operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb. -// -// Solidity: event Withdrawn(address indexed recipient, address indexed asset, uint256 amount) -func (_ERC20Custody *ERC20CustodyFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *ERC20CustodyWithdrawn, recipient []common.Address, asset []common.Address) (event.Subscription, error) { - - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - var assetRule []interface{} - for _, assetItem := range asset { - assetRule = append(assetRule, assetItem) - } - - logs, sub, err := _ERC20Custody.contract.WatchLogs(opts, "Withdrawn", recipientRule, assetRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20CustodyWithdrawn) - if err := _ERC20Custody.contract.UnpackLog(event, "Withdrawn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWithdrawn is a log parse operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb. -// -// Solidity: event Withdrawn(address indexed recipient, address indexed asset, uint256 amount) -func (_ERC20Custody *ERC20CustodyFilterer) ParseWithdrawn(log types.Log) (*ERC20CustodyWithdrawn, error) { - event := new(ERC20CustodyWithdrawn) - if err := _ERC20Custody.contract.UnpackLog(event, "Withdrawn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/interfaces/connectorerrors.sol/connectorerrors.go b/v1/pkg/contracts/evm/interfaces/connectorerrors.sol/connectorerrors.go deleted file mode 100644 index b003ee003..000000000 --- a/v1/pkg/contracts/evm/interfaces/connectorerrors.sol/connectorerrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package connectorerrors - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ConnectorErrorsMetaData contains all meta data concerning the ConnectorErrors contract. -var ConnectorErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotPauser\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTss\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssOrUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSupply\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxSupply\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZetaTransferError\",\"type\":\"error\"}]", -} - -// ConnectorErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ConnectorErrorsMetaData.ABI instead. -var ConnectorErrorsABI = ConnectorErrorsMetaData.ABI - -// ConnectorErrors is an auto generated Go binding around an Ethereum contract. -type ConnectorErrors struct { - ConnectorErrorsCaller // Read-only binding to the contract - ConnectorErrorsTransactor // Write-only binding to the contract - ConnectorErrorsFilterer // Log filterer for contract events -} - -// ConnectorErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ConnectorErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ConnectorErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ConnectorErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ConnectorErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ConnectorErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ConnectorErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ConnectorErrorsSession struct { - Contract *ConnectorErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ConnectorErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ConnectorErrorsCallerSession struct { - Contract *ConnectorErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ConnectorErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ConnectorErrorsTransactorSession struct { - Contract *ConnectorErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ConnectorErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ConnectorErrorsRaw struct { - Contract *ConnectorErrors // Generic contract binding to access the raw methods on -} - -// ConnectorErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ConnectorErrorsCallerRaw struct { - Contract *ConnectorErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ConnectorErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ConnectorErrorsTransactorRaw struct { - Contract *ConnectorErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewConnectorErrors creates a new instance of ConnectorErrors, bound to a specific deployed contract. -func NewConnectorErrors(address common.Address, backend bind.ContractBackend) (*ConnectorErrors, error) { - contract, err := bindConnectorErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ConnectorErrors{ConnectorErrorsCaller: ConnectorErrorsCaller{contract: contract}, ConnectorErrorsTransactor: ConnectorErrorsTransactor{contract: contract}, ConnectorErrorsFilterer: ConnectorErrorsFilterer{contract: contract}}, nil -} - -// NewConnectorErrorsCaller creates a new read-only instance of ConnectorErrors, bound to a specific deployed contract. -func NewConnectorErrorsCaller(address common.Address, caller bind.ContractCaller) (*ConnectorErrorsCaller, error) { - contract, err := bindConnectorErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ConnectorErrorsCaller{contract: contract}, nil -} - -// NewConnectorErrorsTransactor creates a new write-only instance of ConnectorErrors, bound to a specific deployed contract. -func NewConnectorErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ConnectorErrorsTransactor, error) { - contract, err := bindConnectorErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ConnectorErrorsTransactor{contract: contract}, nil -} - -// NewConnectorErrorsFilterer creates a new log filterer instance of ConnectorErrors, bound to a specific deployed contract. -func NewConnectorErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ConnectorErrorsFilterer, error) { - contract, err := bindConnectorErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ConnectorErrorsFilterer{contract: contract}, nil -} - -// bindConnectorErrors binds a generic wrapper to an already deployed contract. -func bindConnectorErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ConnectorErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ConnectorErrors *ConnectorErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ConnectorErrors.Contract.ConnectorErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ConnectorErrors *ConnectorErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ConnectorErrors.Contract.ConnectorErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ConnectorErrors *ConnectorErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ConnectorErrors.Contract.ConnectorErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ConnectorErrors *ConnectorErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ConnectorErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ConnectorErrors *ConnectorErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ConnectorErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ConnectorErrors *ConnectorErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ConnectorErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/interfaces/zetaerrors.sol/zetaerrors.go b/v1/pkg/contracts/evm/interfaces/zetaerrors.sol/zetaerrors.go deleted file mode 100644 index b2b263371..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetaerrors.sol/zetaerrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetaerrors - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaErrorsMetaData contains all meta data concerning the ZetaErrors contract. -var ZetaErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotConnector\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTss\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssOrUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssUpdater\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZetaTransferError\",\"type\":\"error\"}]", -} - -// ZetaErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaErrorsMetaData.ABI instead. -var ZetaErrorsABI = ZetaErrorsMetaData.ABI - -// ZetaErrors is an auto generated Go binding around an Ethereum contract. -type ZetaErrors struct { - ZetaErrorsCaller // Read-only binding to the contract - ZetaErrorsTransactor // Write-only binding to the contract - ZetaErrorsFilterer // Log filterer for contract events -} - -// ZetaErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaErrorsSession struct { - Contract *ZetaErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaErrorsCallerSession struct { - Contract *ZetaErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaErrorsTransactorSession struct { - Contract *ZetaErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaErrorsRaw struct { - Contract *ZetaErrors // Generic contract binding to access the raw methods on -} - -// ZetaErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaErrorsCallerRaw struct { - Contract *ZetaErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaErrorsTransactorRaw struct { - Contract *ZetaErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaErrors creates a new instance of ZetaErrors, bound to a specific deployed contract. -func NewZetaErrors(address common.Address, backend bind.ContractBackend) (*ZetaErrors, error) { - contract, err := bindZetaErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaErrors{ZetaErrorsCaller: ZetaErrorsCaller{contract: contract}, ZetaErrorsTransactor: ZetaErrorsTransactor{contract: contract}, ZetaErrorsFilterer: ZetaErrorsFilterer{contract: contract}}, nil -} - -// NewZetaErrorsCaller creates a new read-only instance of ZetaErrors, bound to a specific deployed contract. -func NewZetaErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaErrorsCaller, error) { - contract, err := bindZetaErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaErrorsCaller{contract: contract}, nil -} - -// NewZetaErrorsTransactor creates a new write-only instance of ZetaErrors, bound to a specific deployed contract. -func NewZetaErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaErrorsTransactor, error) { - contract, err := bindZetaErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaErrorsTransactor{contract: contract}, nil -} - -// NewZetaErrorsFilterer creates a new log filterer instance of ZetaErrors, bound to a specific deployed contract. -func NewZetaErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaErrorsFilterer, error) { - contract, err := bindZetaErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaErrorsFilterer{contract: contract}, nil -} - -// bindZetaErrors binds a generic wrapper to an already deployed contract. -func bindZetaErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaErrors *ZetaErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaErrors.Contract.ZetaErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaErrors *ZetaErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaErrors.Contract.ZetaErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaErrors *ZetaErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaErrors.Contract.ZetaErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaErrors *ZetaErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaErrors *ZetaErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaErrors *ZetaErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/interfaces/zetainteractorerrors.sol/zetainteractorerrors.go b/v1/pkg/contracts/evm/interfaces/zetainteractorerrors.sol/zetainteractorerrors.go deleted file mode 100644 index d410cfe76..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetainteractorerrors.sol/zetainteractorerrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainteractorerrors - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInteractorErrorsMetaData contains all meta data concerning the ZetaInteractorErrors contract. -var ZetaInteractorErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"InvalidCaller\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidDestinationChainId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZetaMessageCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZetaRevertCall\",\"type\":\"error\"}]", -} - -// ZetaInteractorErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaInteractorErrorsMetaData.ABI instead. -var ZetaInteractorErrorsABI = ZetaInteractorErrorsMetaData.ABI - -// ZetaInteractorErrors is an auto generated Go binding around an Ethereum contract. -type ZetaInteractorErrors struct { - ZetaInteractorErrorsCaller // Read-only binding to the contract - ZetaInteractorErrorsTransactor // Write-only binding to the contract - ZetaInteractorErrorsFilterer // Log filterer for contract events -} - -// ZetaInteractorErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaInteractorErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaInteractorErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaInteractorErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaInteractorErrorsSession struct { - Contract *ZetaInteractorErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInteractorErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaInteractorErrorsCallerSession struct { - Contract *ZetaInteractorErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaInteractorErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaInteractorErrorsTransactorSession struct { - Contract *ZetaInteractorErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInteractorErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaInteractorErrorsRaw struct { - Contract *ZetaInteractorErrors // Generic contract binding to access the raw methods on -} - -// ZetaInteractorErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaInteractorErrorsCallerRaw struct { - Contract *ZetaInteractorErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaInteractorErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaInteractorErrorsTransactorRaw struct { - Contract *ZetaInteractorErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaInteractorErrors creates a new instance of ZetaInteractorErrors, bound to a specific deployed contract. -func NewZetaInteractorErrors(address common.Address, backend bind.ContractBackend) (*ZetaInteractorErrors, error) { - contract, err := bindZetaInteractorErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaInteractorErrors{ZetaInteractorErrorsCaller: ZetaInteractorErrorsCaller{contract: contract}, ZetaInteractorErrorsTransactor: ZetaInteractorErrorsTransactor{contract: contract}, ZetaInteractorErrorsFilterer: ZetaInteractorErrorsFilterer{contract: contract}}, nil -} - -// NewZetaInteractorErrorsCaller creates a new read-only instance of ZetaInteractorErrors, bound to a specific deployed contract. -func NewZetaInteractorErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaInteractorErrorsCaller, error) { - contract, err := bindZetaInteractorErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaInteractorErrorsCaller{contract: contract}, nil -} - -// NewZetaInteractorErrorsTransactor creates a new write-only instance of ZetaInteractorErrors, bound to a specific deployed contract. -func NewZetaInteractorErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaInteractorErrorsTransactor, error) { - contract, err := bindZetaInteractorErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaInteractorErrorsTransactor{contract: contract}, nil -} - -// NewZetaInteractorErrorsFilterer creates a new log filterer instance of ZetaInteractorErrors, bound to a specific deployed contract. -func NewZetaInteractorErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaInteractorErrorsFilterer, error) { - contract, err := bindZetaInteractorErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaInteractorErrorsFilterer{contract: contract}, nil -} - -// bindZetaInteractorErrors binds a generic wrapper to an already deployed contract. -func bindZetaInteractorErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaInteractorErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInteractorErrors *ZetaInteractorErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInteractorErrors.Contract.ZetaInteractorErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInteractorErrors *ZetaInteractorErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractorErrors.Contract.ZetaInteractorErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInteractorErrors *ZetaInteractorErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInteractorErrors.Contract.ZetaInteractorErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInteractorErrors *ZetaInteractorErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInteractorErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInteractorErrors *ZetaInteractorErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractorErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInteractorErrors *ZetaInteractorErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInteractorErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetacommonerrors.go b/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetacommonerrors.go deleted file mode 100644 index 3560d1bc3..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetacommonerrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainterfaces - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaCommonErrorsMetaData contains all meta data concerning the ZetaCommonErrors contract. -var ZetaCommonErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"}]", -} - -// ZetaCommonErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaCommonErrorsMetaData.ABI instead. -var ZetaCommonErrorsABI = ZetaCommonErrorsMetaData.ABI - -// ZetaCommonErrors is an auto generated Go binding around an Ethereum contract. -type ZetaCommonErrors struct { - ZetaCommonErrorsCaller // Read-only binding to the contract - ZetaCommonErrorsTransactor // Write-only binding to the contract - ZetaCommonErrorsFilterer // Log filterer for contract events -} - -// ZetaCommonErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaCommonErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaCommonErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaCommonErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaCommonErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaCommonErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaCommonErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaCommonErrorsSession struct { - Contract *ZetaCommonErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaCommonErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaCommonErrorsCallerSession struct { - Contract *ZetaCommonErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaCommonErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaCommonErrorsTransactorSession struct { - Contract *ZetaCommonErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaCommonErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaCommonErrorsRaw struct { - Contract *ZetaCommonErrors // Generic contract binding to access the raw methods on -} - -// ZetaCommonErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaCommonErrorsCallerRaw struct { - Contract *ZetaCommonErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaCommonErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaCommonErrorsTransactorRaw struct { - Contract *ZetaCommonErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaCommonErrors creates a new instance of ZetaCommonErrors, bound to a specific deployed contract. -func NewZetaCommonErrors(address common.Address, backend bind.ContractBackend) (*ZetaCommonErrors, error) { - contract, err := bindZetaCommonErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaCommonErrors{ZetaCommonErrorsCaller: ZetaCommonErrorsCaller{contract: contract}, ZetaCommonErrorsTransactor: ZetaCommonErrorsTransactor{contract: contract}, ZetaCommonErrorsFilterer: ZetaCommonErrorsFilterer{contract: contract}}, nil -} - -// NewZetaCommonErrorsCaller creates a new read-only instance of ZetaCommonErrors, bound to a specific deployed contract. -func NewZetaCommonErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaCommonErrorsCaller, error) { - contract, err := bindZetaCommonErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaCommonErrorsCaller{contract: contract}, nil -} - -// NewZetaCommonErrorsTransactor creates a new write-only instance of ZetaCommonErrors, bound to a specific deployed contract. -func NewZetaCommonErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaCommonErrorsTransactor, error) { - contract, err := bindZetaCommonErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaCommonErrorsTransactor{contract: contract}, nil -} - -// NewZetaCommonErrorsFilterer creates a new log filterer instance of ZetaCommonErrors, bound to a specific deployed contract. -func NewZetaCommonErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaCommonErrorsFilterer, error) { - contract, err := bindZetaCommonErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaCommonErrorsFilterer{contract: contract}, nil -} - -// bindZetaCommonErrors binds a generic wrapper to an already deployed contract. -func bindZetaCommonErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaCommonErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaCommonErrors *ZetaCommonErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaCommonErrors.Contract.ZetaCommonErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaCommonErrors *ZetaCommonErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaCommonErrors.Contract.ZetaCommonErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaCommonErrors *ZetaCommonErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaCommonErrors.Contract.ZetaCommonErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaCommonErrors *ZetaCommonErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaCommonErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaCommonErrors *ZetaCommonErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaCommonErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaCommonErrors *ZetaCommonErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaCommonErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetaconnector.go b/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetaconnector.go deleted file mode 100644 index f894d6e5a..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetaconnector.go +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainterfaces - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesSendInput is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesSendInput struct { - DestinationChainId *big.Int - DestinationAddress []byte - DestinationGasLimit *big.Int - Message []byte - ZetaValueAndGas *big.Int - ZetaParams []byte -} - -// ZetaConnectorMetaData contains all meta data concerning the ZetaConnector contract. -var ZetaConnectorMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.SendInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ZetaConnectorABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaConnectorMetaData.ABI instead. -var ZetaConnectorABI = ZetaConnectorMetaData.ABI - -// ZetaConnector is an auto generated Go binding around an Ethereum contract. -type ZetaConnector struct { - ZetaConnectorCaller // Read-only binding to the contract - ZetaConnectorTransactor // Write-only binding to the contract - ZetaConnectorFilterer // Log filterer for contract events -} - -// ZetaConnectorCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaConnectorCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaConnectorTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaConnectorFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaConnectorSession struct { - Contract *ZetaConnector // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaConnectorCallerSession struct { - Contract *ZetaConnectorCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaConnectorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaConnectorTransactorSession struct { - Contract *ZetaConnectorTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaConnectorRaw struct { - Contract *ZetaConnector // Generic contract binding to access the raw methods on -} - -// ZetaConnectorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaConnectorCallerRaw struct { - Contract *ZetaConnectorCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaConnectorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaConnectorTransactorRaw struct { - Contract *ZetaConnectorTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaConnector creates a new instance of ZetaConnector, bound to a specific deployed contract. -func NewZetaConnector(address common.Address, backend bind.ContractBackend) (*ZetaConnector, error) { - contract, err := bindZetaConnector(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaConnector{ZetaConnectorCaller: ZetaConnectorCaller{contract: contract}, ZetaConnectorTransactor: ZetaConnectorTransactor{contract: contract}, ZetaConnectorFilterer: ZetaConnectorFilterer{contract: contract}}, nil -} - -// NewZetaConnectorCaller creates a new read-only instance of ZetaConnector, bound to a specific deployed contract. -func NewZetaConnectorCaller(address common.Address, caller bind.ContractCaller) (*ZetaConnectorCaller, error) { - contract, err := bindZetaConnector(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorCaller{contract: contract}, nil -} - -// NewZetaConnectorTransactor creates a new write-only instance of ZetaConnector, bound to a specific deployed contract. -func NewZetaConnectorTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaConnectorTransactor, error) { - contract, err := bindZetaConnector(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorTransactor{contract: contract}, nil -} - -// NewZetaConnectorFilterer creates a new log filterer instance of ZetaConnector, bound to a specific deployed contract. -func NewZetaConnectorFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaConnectorFilterer, error) { - contract, err := bindZetaConnector(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaConnectorFilterer{contract: contract}, nil -} - -// bindZetaConnector binds a generic wrapper to an already deployed contract. -func bindZetaConnector(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaConnectorMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnector *ZetaConnectorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnector.Contract.ZetaConnectorCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnector *ZetaConnectorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnector.Contract.ZetaConnectorTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnector *ZetaConnectorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnector.Contract.ZetaConnectorTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnector *ZetaConnectorCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnector.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnector *ZetaConnectorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnector.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnector *ZetaConnectorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnector.Contract.contract.Transact(opts, method, params...) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnector *ZetaConnectorTransactor) Send(opts *bind.TransactOpts, input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnector.contract.Transact(opts, "send", input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnector *ZetaConnectorSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnector.Contract.Send(&_ZetaConnector.TransactOpts, input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnector *ZetaConnectorTransactorSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnector.Contract.Send(&_ZetaConnector.TransactOpts, input) -} diff --git a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetainterfaces.go b/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetainterfaces.go deleted file mode 100644 index fe6eef5b9..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetainterfaces.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainterfaces - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesMetaData contains all meta data concerning the ZetaInterfaces contract. -var ZetaInterfacesMetaData = &bind.MetaData{ - ABI: "[]", -} - -// ZetaInterfacesABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaInterfacesMetaData.ABI instead. -var ZetaInterfacesABI = ZetaInterfacesMetaData.ABI - -// ZetaInterfaces is an auto generated Go binding around an Ethereum contract. -type ZetaInterfaces struct { - ZetaInterfacesCaller // Read-only binding to the contract - ZetaInterfacesTransactor // Write-only binding to the contract - ZetaInterfacesFilterer // Log filterer for contract events -} - -// ZetaInterfacesCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaInterfacesCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInterfacesTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaInterfacesTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInterfacesFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaInterfacesFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInterfacesSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaInterfacesSession struct { - Contract *ZetaInterfaces // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInterfacesCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaInterfacesCallerSession struct { - Contract *ZetaInterfacesCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaInterfacesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaInterfacesTransactorSession struct { - Contract *ZetaInterfacesTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInterfacesRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaInterfacesRaw struct { - Contract *ZetaInterfaces // Generic contract binding to access the raw methods on -} - -// ZetaInterfacesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaInterfacesCallerRaw struct { - Contract *ZetaInterfacesCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaInterfacesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaInterfacesTransactorRaw struct { - Contract *ZetaInterfacesTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaInterfaces creates a new instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfaces(address common.Address, backend bind.ContractBackend) (*ZetaInterfaces, error) { - contract, err := bindZetaInterfaces(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaInterfaces{ZetaInterfacesCaller: ZetaInterfacesCaller{contract: contract}, ZetaInterfacesTransactor: ZetaInterfacesTransactor{contract: contract}, ZetaInterfacesFilterer: ZetaInterfacesFilterer{contract: contract}}, nil -} - -// NewZetaInterfacesCaller creates a new read-only instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfacesCaller(address common.Address, caller bind.ContractCaller) (*ZetaInterfacesCaller, error) { - contract, err := bindZetaInterfaces(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaInterfacesCaller{contract: contract}, nil -} - -// NewZetaInterfacesTransactor creates a new write-only instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfacesTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaInterfacesTransactor, error) { - contract, err := bindZetaInterfaces(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaInterfacesTransactor{contract: contract}, nil -} - -// NewZetaInterfacesFilterer creates a new log filterer instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfacesFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaInterfacesFilterer, error) { - contract, err := bindZetaInterfaces(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaInterfacesFilterer{contract: contract}, nil -} - -// bindZetaInterfaces binds a generic wrapper to an already deployed contract. -func bindZetaInterfaces(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaInterfacesMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInterfaces *ZetaInterfacesRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInterfaces.Contract.ZetaInterfacesCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInterfaces *ZetaInterfacesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.ZetaInterfacesTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInterfaces *ZetaInterfacesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.ZetaInterfacesTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInterfaces *ZetaInterfacesCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInterfaces.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInterfaces *ZetaInterfacesTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInterfaces *ZetaInterfacesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetareceiver.go b/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetareceiver.go deleted file mode 100644 index 20dbd4ca0..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetareceiver.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainterfaces - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesZetaMessage is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaMessage struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte -} - -// ZetaInterfacesZetaRevert is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaRevert struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationAddress []byte - DestinationChainId *big.Int - RemainingZetaValue *big.Int - Message []byte -} - -// ZetaReceiverMetaData contains all meta data concerning the ZetaReceiver contract. -var ZetaReceiverMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaMessage\",\"name\":\"zetaMessage\",\"type\":\"tuple\"}],\"name\":\"onZetaMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaRevert\",\"name\":\"zetaRevert\",\"type\":\"tuple\"}],\"name\":\"onZetaRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ZetaReceiverABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaReceiverMetaData.ABI instead. -var ZetaReceiverABI = ZetaReceiverMetaData.ABI - -// ZetaReceiver is an auto generated Go binding around an Ethereum contract. -type ZetaReceiver struct { - ZetaReceiverCaller // Read-only binding to the contract - ZetaReceiverTransactor // Write-only binding to the contract - ZetaReceiverFilterer // Log filterer for contract events -} - -// ZetaReceiverCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaReceiverCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaReceiverTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaReceiverFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaReceiverSession struct { - Contract *ZetaReceiver // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaReceiverCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaReceiverCallerSession struct { - Contract *ZetaReceiverCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaReceiverTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaReceiverTransactorSession struct { - Contract *ZetaReceiverTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaReceiverRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaReceiverRaw struct { - Contract *ZetaReceiver // Generic contract binding to access the raw methods on -} - -// ZetaReceiverCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaReceiverCallerRaw struct { - Contract *ZetaReceiverCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaReceiverTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaReceiverTransactorRaw struct { - Contract *ZetaReceiverTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaReceiver creates a new instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiver(address common.Address, backend bind.ContractBackend) (*ZetaReceiver, error) { - contract, err := bindZetaReceiver(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaReceiver{ZetaReceiverCaller: ZetaReceiverCaller{contract: contract}, ZetaReceiverTransactor: ZetaReceiverTransactor{contract: contract}, ZetaReceiverFilterer: ZetaReceiverFilterer{contract: contract}}, nil -} - -// NewZetaReceiverCaller creates a new read-only instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiverCaller(address common.Address, caller bind.ContractCaller) (*ZetaReceiverCaller, error) { - contract, err := bindZetaReceiver(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaReceiverCaller{contract: contract}, nil -} - -// NewZetaReceiverTransactor creates a new write-only instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiverTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaReceiverTransactor, error) { - contract, err := bindZetaReceiver(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaReceiverTransactor{contract: contract}, nil -} - -// NewZetaReceiverFilterer creates a new log filterer instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiverFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaReceiverFilterer, error) { - contract, err := bindZetaReceiver(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaReceiverFilterer{contract: contract}, nil -} - -// bindZetaReceiver binds a generic wrapper to an already deployed contract. -func bindZetaReceiver(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaReceiverMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaReceiver *ZetaReceiverRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaReceiver.Contract.ZetaReceiverCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaReceiver *ZetaReceiverRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaReceiver.Contract.ZetaReceiverTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaReceiver *ZetaReceiverRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaReceiver.Contract.ZetaReceiverTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaReceiver *ZetaReceiverCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaReceiver.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaReceiver *ZetaReceiverTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaReceiver.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaReceiver *ZetaReceiverTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaReceiver.Contract.contract.Transact(opts, method, params...) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiver *ZetaReceiverTransactor) OnZetaMessage(opts *bind.TransactOpts, zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiver.contract.Transact(opts, "onZetaMessage", zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiver *ZetaReceiverSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaMessage(&_ZetaReceiver.TransactOpts, zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiver *ZetaReceiverTransactorSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaMessage(&_ZetaReceiver.TransactOpts, zetaMessage) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiver *ZetaReceiverTransactor) OnZetaRevert(opts *bind.TransactOpts, zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiver.contract.Transact(opts, "onZetaRevert", zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiver *ZetaReceiverSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaRevert(&_ZetaReceiver.TransactOpts, zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiver *ZetaReceiverTransactorSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaRevert(&_ZetaReceiver.TransactOpts, zetaRevert) -} diff --git a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetatokenconsumer.go b/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetatokenconsumer.go deleted file mode 100644 index 5a1a03a80..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetainterfaces.sol/zetatokenconsumer.go +++ /dev/null @@ -1,838 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainterfaces - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerMetaData contains all meta data concerning the ZetaTokenConsumer contract. -var ZetaTokenConsumerMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"EthExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"TokenExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForEth\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForToken\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getEthFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"outputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getTokenFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"}],\"name\":\"getZetaFromEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getZetaFromToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasZetaLiquidity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// ZetaTokenConsumerABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerMetaData.ABI instead. -var ZetaTokenConsumerABI = ZetaTokenConsumerMetaData.ABI - -// ZetaTokenConsumer is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumer struct { - ZetaTokenConsumerCaller // Read-only binding to the contract - ZetaTokenConsumerTransactor // Write-only binding to the contract - ZetaTokenConsumerFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerSession struct { - Contract *ZetaTokenConsumer // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerCallerSession struct { - Contract *ZetaTokenConsumerCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerTransactorSession struct { - Contract *ZetaTokenConsumerTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerRaw struct { - Contract *ZetaTokenConsumer // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerCallerRaw struct { - Contract *ZetaTokenConsumerCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTransactorRaw struct { - Contract *ZetaTokenConsumerTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumer creates a new instance of ZetaTokenConsumer, bound to a specific deployed contract. -func NewZetaTokenConsumer(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumer, error) { - contract, err := bindZetaTokenConsumer(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumer{ZetaTokenConsumerCaller: ZetaTokenConsumerCaller{contract: contract}, ZetaTokenConsumerTransactor: ZetaTokenConsumerTransactor{contract: contract}, ZetaTokenConsumerFilterer: ZetaTokenConsumerFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerCaller creates a new read-only instance of ZetaTokenConsumer, bound to a specific deployed contract. -func NewZetaTokenConsumerCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerCaller, error) { - contract, err := bindZetaTokenConsumer(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerTransactor creates a new write-only instance of ZetaTokenConsumer, bound to a specific deployed contract. -func NewZetaTokenConsumerTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerTransactor, error) { - contract, err := bindZetaTokenConsumer(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerFilterer creates a new log filterer instance of ZetaTokenConsumer, bound to a specific deployed contract. -func NewZetaTokenConsumerFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerFilterer, error) { - contract, err := bindZetaTokenConsumer(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumer binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumer(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumer *ZetaTokenConsumerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumer.Contract.ZetaTokenConsumerCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumer *ZetaTokenConsumerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.ZetaTokenConsumerTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumer *ZetaTokenConsumerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.ZetaTokenConsumerTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumer *ZetaTokenConsumerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumer.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.contract.Transact(opts, method, params...) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumer *ZetaTokenConsumerCaller) HasZetaLiquidity(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaTokenConsumer.contract.Call(opts, &out, "hasZetaLiquidity") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumer *ZetaTokenConsumerSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumer.Contract.HasZetaLiquidity(&_ZetaTokenConsumer.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumer *ZetaTokenConsumerCallerSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumer.Contract.HasZetaLiquidity(&_ZetaTokenConsumer.CallOpts) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactor) GetEthFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.contract.Transact(opts, "getEthFromZeta", destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetEthFromZeta(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactorSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetEthFromZeta(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactor) GetTokenFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.contract.Transact(opts, "getTokenFromZeta", destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetTokenFromZeta(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactorSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetTokenFromZeta(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactor) GetZetaFromEth(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.contract.Transact(opts, "getZetaFromEth", destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetZetaFromEth(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactorSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetZetaFromEth(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactor) GetZetaFromToken(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.contract.Transact(opts, "getZetaFromToken", destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetZetaFromToken(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumer *ZetaTokenConsumerTransactorSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumer.Contract.GetZetaFromToken(&_ZetaTokenConsumer.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// ZetaTokenConsumerEthExchangedForZetaIterator is returned from FilterEthExchangedForZeta and is used to iterate over the raw logs and unpacked data for EthExchangedForZeta events raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerEthExchangedForZetaIterator struct { - Event *ZetaTokenConsumerEthExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerEthExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerEthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerEthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerEthExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerEthExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerEthExchangedForZeta represents a EthExchangedForZeta event raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerEthExchangedForZeta struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterEthExchangedForZeta is a free log retrieval operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) FilterEthExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerEthExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.FilterLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerEthExchangedForZetaIterator{contract: _ZetaTokenConsumer.contract, event: "EthExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchEthExchangedForZeta is a free log subscription operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) WatchEthExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerEthExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.WatchLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerEthExchangedForZeta) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseEthExchangedForZeta is a log parse operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) ParseEthExchangedForZeta(log types.Log) (*ZetaTokenConsumerEthExchangedForZeta, error) { - event := new(ZetaTokenConsumerEthExchangedForZeta) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerTokenExchangedForZetaIterator is returned from FilterTokenExchangedForZeta and is used to iterate over the raw logs and unpacked data for TokenExchangedForZeta events raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerTokenExchangedForZetaIterator struct { - Event *ZetaTokenConsumerTokenExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerTokenExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerTokenExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerTokenExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerTokenExchangedForZeta represents a TokenExchangedForZeta event raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerTokenExchangedForZeta struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTokenExchangedForZeta is a free log retrieval operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) FilterTokenExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerTokenExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.FilterLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTokenExchangedForZetaIterator{contract: _ZetaTokenConsumer.contract, event: "TokenExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchTokenExchangedForZeta is a free log subscription operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) WatchTokenExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerTokenExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.WatchLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerTokenExchangedForZeta) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTokenExchangedForZeta is a log parse operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) ParseTokenExchangedForZeta(log types.Log) (*ZetaTokenConsumerTokenExchangedForZeta, error) { - event := new(ZetaTokenConsumerTokenExchangedForZeta) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerZetaExchangedForEthIterator is returned from FilterZetaExchangedForEth and is used to iterate over the raw logs and unpacked data for ZetaExchangedForEth events raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerZetaExchangedForEthIterator struct { - Event *ZetaTokenConsumerZetaExchangedForEth // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerZetaExchangedForEthIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerZetaExchangedForEthIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerZetaExchangedForEthIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerZetaExchangedForEth represents a ZetaExchangedForEth event raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerZetaExchangedForEth struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForEth is a free log retrieval operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) FilterZetaExchangedForEth(opts *bind.FilterOpts) (*ZetaTokenConsumerZetaExchangedForEthIterator, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.FilterLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZetaExchangedForEthIterator{contract: _ZetaTokenConsumer.contract, event: "ZetaExchangedForEth", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForEth is a free log subscription operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) WatchZetaExchangedForEth(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerZetaExchangedForEth) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.WatchLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerZetaExchangedForEth) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForEth is a log parse operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) ParseZetaExchangedForEth(log types.Log) (*ZetaTokenConsumerZetaExchangedForEth, error) { - event := new(ZetaTokenConsumerZetaExchangedForEth) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerZetaExchangedForTokenIterator is returned from FilterZetaExchangedForToken and is used to iterate over the raw logs and unpacked data for ZetaExchangedForToken events raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerZetaExchangedForTokenIterator struct { - Event *ZetaTokenConsumerZetaExchangedForToken // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerZetaExchangedForTokenIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerZetaExchangedForTokenIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerZetaExchangedForTokenIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerZetaExchangedForToken represents a ZetaExchangedForToken event raised by the ZetaTokenConsumer contract. -type ZetaTokenConsumerZetaExchangedForToken struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForToken is a free log retrieval operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) FilterZetaExchangedForToken(opts *bind.FilterOpts) (*ZetaTokenConsumerZetaExchangedForTokenIterator, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.FilterLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZetaExchangedForTokenIterator{contract: _ZetaTokenConsumer.contract, event: "ZetaExchangedForToken", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForToken is a free log subscription operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) WatchZetaExchangedForToken(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerZetaExchangedForToken) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumer.contract.WatchLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerZetaExchangedForToken) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForToken is a log parse operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumer *ZetaTokenConsumerFilterer) ParseZetaExchangedForToken(log types.Log) (*ZetaTokenConsumerZetaExchangedForToken, error) { - event := new(ZetaTokenConsumerZetaExchangedForToken) - if err := _ZetaTokenConsumer.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/interfaces/zetanonethinterface.sol/zetanonethinterface.go b/v1/pkg/contracts/evm/interfaces/zetanonethinterface.sol/zetanonethinterface.go deleted file mode 100644 index 7c55c86b0..000000000 --- a/v1/pkg/contracts/evm/interfaces/zetanonethinterface.sol/zetanonethinterface.go +++ /dev/null @@ -1,687 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetanonethinterface - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaNonEthInterfaceMetaData contains all meta data concerning the ZetaNonEthInterface contract. -var ZetaNonEthInterfaceMetaData = &bind.MetaData{ - 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\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"mintee\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"mint\",\"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\"}]", -} - -// ZetaNonEthInterfaceABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaNonEthInterfaceMetaData.ABI instead. -var ZetaNonEthInterfaceABI = ZetaNonEthInterfaceMetaData.ABI - -// ZetaNonEthInterface is an auto generated Go binding around an Ethereum contract. -type ZetaNonEthInterface struct { - ZetaNonEthInterfaceCaller // Read-only binding to the contract - ZetaNonEthInterfaceTransactor // Write-only binding to the contract - ZetaNonEthInterfaceFilterer // Log filterer for contract events -} - -// ZetaNonEthInterfaceCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaNonEthInterfaceCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaNonEthInterfaceTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaNonEthInterfaceTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaNonEthInterfaceFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaNonEthInterfaceFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaNonEthInterfaceSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaNonEthInterfaceSession struct { - Contract *ZetaNonEthInterface // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaNonEthInterfaceCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaNonEthInterfaceCallerSession struct { - Contract *ZetaNonEthInterfaceCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaNonEthInterfaceTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaNonEthInterfaceTransactorSession struct { - Contract *ZetaNonEthInterfaceTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaNonEthInterfaceRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaNonEthInterfaceRaw struct { - Contract *ZetaNonEthInterface // Generic contract binding to access the raw methods on -} - -// ZetaNonEthInterfaceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaNonEthInterfaceCallerRaw struct { - Contract *ZetaNonEthInterfaceCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaNonEthInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaNonEthInterfaceTransactorRaw struct { - Contract *ZetaNonEthInterfaceTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaNonEthInterface creates a new instance of ZetaNonEthInterface, bound to a specific deployed contract. -func NewZetaNonEthInterface(address common.Address, backend bind.ContractBackend) (*ZetaNonEthInterface, error) { - contract, err := bindZetaNonEthInterface(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaNonEthInterface{ZetaNonEthInterfaceCaller: ZetaNonEthInterfaceCaller{contract: contract}, ZetaNonEthInterfaceTransactor: ZetaNonEthInterfaceTransactor{contract: contract}, ZetaNonEthInterfaceFilterer: ZetaNonEthInterfaceFilterer{contract: contract}}, nil -} - -// NewZetaNonEthInterfaceCaller creates a new read-only instance of ZetaNonEthInterface, bound to a specific deployed contract. -func NewZetaNonEthInterfaceCaller(address common.Address, caller bind.ContractCaller) (*ZetaNonEthInterfaceCaller, error) { - contract, err := bindZetaNonEthInterface(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaNonEthInterfaceCaller{contract: contract}, nil -} - -// NewZetaNonEthInterfaceTransactor creates a new write-only instance of ZetaNonEthInterface, bound to a specific deployed contract. -func NewZetaNonEthInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaNonEthInterfaceTransactor, error) { - contract, err := bindZetaNonEthInterface(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaNonEthInterfaceTransactor{contract: contract}, nil -} - -// NewZetaNonEthInterfaceFilterer creates a new log filterer instance of ZetaNonEthInterface, bound to a specific deployed contract. -func NewZetaNonEthInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaNonEthInterfaceFilterer, error) { - contract, err := bindZetaNonEthInterface(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaNonEthInterfaceFilterer{contract: contract}, nil -} - -// bindZetaNonEthInterface binds a generic wrapper to an already deployed contract. -func bindZetaNonEthInterface(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaNonEthInterfaceMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaNonEthInterface *ZetaNonEthInterfaceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaNonEthInterface.Contract.ZetaNonEthInterfaceCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaNonEthInterface *ZetaNonEthInterfaceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.ZetaNonEthInterfaceTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaNonEthInterface *ZetaNonEthInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.ZetaNonEthInterfaceTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaNonEthInterface *ZetaNonEthInterfaceCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaNonEthInterface.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _ZetaNonEthInterface.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZetaNonEthInterface.Contract.Allowance(&_ZetaNonEthInterface.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZetaNonEthInterface.Contract.Allowance(&_ZetaNonEthInterface.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _ZetaNonEthInterface.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ZetaNonEthInterface.Contract.BalanceOf(&_ZetaNonEthInterface.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceCallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ZetaNonEthInterface.Contract.BalanceOf(&_ZetaNonEthInterface.CallOpts, account) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaNonEthInterface.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) TotalSupply() (*big.Int, error) { - return _ZetaNonEthInterface.Contract.TotalSupply(&_ZetaNonEthInterface.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceCallerSession) TotalSupply() (*big.Int, error) { - return _ZetaNonEthInterface.Contract.TotalSupply(&_ZetaNonEthInterface.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.Approve(&_ZetaNonEthInterface.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.Approve(&_ZetaNonEthInterface.TransactOpts, spender, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactor) BurnFrom(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.contract.Transact(opts, "burnFrom", account, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.BurnFrom(&_ZetaNonEthInterface.TransactOpts, account, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactorSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.BurnFrom(&_ZetaNonEthInterface.TransactOpts, account, amount) -} - -// Mint is a paid mutator transaction binding the contract method 0x1e458bee. -// -// Solidity: function mint(address mintee, uint256 value, bytes32 internalSendHash) returns() -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactor) Mint(opts *bind.TransactOpts, mintee common.Address, value *big.Int, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaNonEthInterface.contract.Transact(opts, "mint", mintee, value, internalSendHash) -} - -// Mint is a paid mutator transaction binding the contract method 0x1e458bee. -// -// Solidity: function mint(address mintee, uint256 value, bytes32 internalSendHash) returns() -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) Mint(mintee common.Address, value *big.Int, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.Mint(&_ZetaNonEthInterface.TransactOpts, mintee, value, internalSendHash) -} - -// Mint is a paid mutator transaction binding the contract method 0x1e458bee. -// -// Solidity: function mint(address mintee, uint256 value, bytes32 internalSendHash) returns() -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactorSession) Mint(mintee common.Address, value *big.Int, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.Mint(&_ZetaNonEthInterface.TransactOpts, mintee, value, internalSendHash) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.Transfer(&_ZetaNonEthInterface.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.Transfer(&_ZetaNonEthInterface.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.TransferFrom(&_ZetaNonEthInterface.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEthInterface.Contract.TransferFrom(&_ZetaNonEthInterface.TransactOpts, from, to, amount) -} - -// ZetaNonEthInterfaceApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ZetaNonEthInterface contract. -type ZetaNonEthInterfaceApprovalIterator struct { - Event *ZetaNonEthInterfaceApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthInterfaceApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthInterfaceApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthInterfaceApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthInterfaceApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthInterfaceApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthInterfaceApproval represents a Approval event raised by the ZetaNonEthInterface contract. -type ZetaNonEthInterfaceApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ZetaNonEthInterfaceApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZetaNonEthInterface.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ZetaNonEthInterfaceApprovalIterator{contract: _ZetaNonEthInterface.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZetaNonEthInterfaceApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZetaNonEthInterface.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthInterfaceApproval) - if err := _ZetaNonEthInterface.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceFilterer) ParseApproval(log types.Log) (*ZetaNonEthInterfaceApproval, error) { - event := new(ZetaNonEthInterfaceApproval) - if err := _ZetaNonEthInterface.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaNonEthInterfaceTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ZetaNonEthInterface contract. -type ZetaNonEthInterfaceTransferIterator struct { - Event *ZetaNonEthInterfaceTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthInterfaceTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthInterfaceTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthInterfaceTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthInterfaceTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthInterfaceTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthInterfaceTransfer represents a Transfer event raised by the ZetaNonEthInterface contract. -type ZetaNonEthInterfaceTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ZetaNonEthInterfaceTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZetaNonEthInterface.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ZetaNonEthInterfaceTransferIterator{contract: _ZetaNonEthInterface.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ZetaNonEthInterfaceTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZetaNonEthInterface.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthInterfaceTransfer) - if err := _ZetaNonEthInterface.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaNonEthInterface *ZetaNonEthInterfaceFilterer) ParseTransfer(log types.Log) (*ZetaNonEthInterfaceTransfer, error) { - event := new(ZetaNonEthInterfaceTransfer) - if err := _ZetaNonEthInterface.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/testing/attackercontract.sol/attackercontract.go b/v1/pkg/contracts/evm/testing/attackercontract.sol/attackercontract.go deleted file mode 100644 index 7c7840ecb..000000000 --- a/v1/pkg/contracts/evm/testing/attackercontract.sol/attackercontract.go +++ /dev/null @@ -1,318 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package attackercontract - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// AttackerContractMetaData contains all meta data concerning the AttackerContract contract. -var AttackerContractMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"victimContractAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"wzeta\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"victimMethod\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"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\"},{\"inputs\":[],\"name\":\"victimContractAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", - Bin: "0x60806040523480156200001157600080fd5b50604051620009ae380380620009ae8339818101604052810190620000379190620001a0565b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1663095ea7b360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401620000f492919062000250565b602060405180830381600087803b1580156200010f57600080fd5b505af115801562000124573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014a9190620001fc565b50806001819055505050506200031a565b6000815190506200016c81620002cc565b92915050565b6000815190506200018381620002e6565b92915050565b6000815190506200019a8162000300565b92915050565b600080600060608486031215620001bc57620001bb620002c7565b5b6000620001cc868287016200015b565b9350506020620001df868287016200015b565b9250506040620001f28682870162000189565b9150509250925092565b600060208284031215620002155762000214620002c7565b5b6000620002258482850162000172565b91505092915050565b62000239816200027d565b82525050565b6200024a81620002bd565b82525050565b60006040820190506200026760008301856200022e565b6200027660208301846200023f565b9392505050565b60006200028a826200029d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b620002d7816200027d565b8114620002e357600080fd5b50565b620002f18162000291565b8114620002fd57600080fd5b50565b6200030b81620002bd565b81146200031757600080fd5b50565b610684806200032a6000396000f3fe6080604052600436106100435760003560e01c806323b872dd1461004f57806370a082311461008c57806389bc0bb7146100c9578063a9059cbb146100f45761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100766004803603810190610071919061034c565b610131565b60405161008391906104b3565b60405180910390f35b34801561009857600080fd5b506100b360048036038101906100ae919061031f565b610146565b6040516100c0919061051d565b60405180910390f35b3480156100d557600080fd5b506100de610159565b6040516100eb9190610461565b60405180910390f35b34801561010057600080fd5b5061011b6004803603810190610116919061039f565b61017d565b60405161012891906104b3565b60405180910390f35b600061013b610191565b600190509392505050565b6000610150610191565b60009050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610187610191565b6001905092915050565b6001805414156101a8576101a36101bf565b6101bd565b600260015414156101bc576101bb61024f565b5b5b565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e609055e3060006040518363ffffffff1660e01b815260040161021b9291906104ce565b600060405180830381600087803b15801561023557600080fd5b505af1158015610249573d6000803e3d6000fd5b50505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d9caed1273f39fd6e51aad88f6f4ce6ab8827279cfffb922663060006040518463ffffffff1660e01b81526004016102c19392919061047c565b600060405180830381600087803b1580156102db57600080fd5b505af11580156102ef573d6000803e3d6000fd5b50505050565b60008135905061030481610620565b92915050565b60008135905061031981610637565b92915050565b600060208284031215610335576103346105a3565b5b6000610343848285016102f5565b91505092915050565b600080600060608486031215610365576103646105a3565b5b6000610373868287016102f5565b9350506020610384868287016102f5565b92505060406103958682870161030a565b9150509250925092565b600080604083850312156103b6576103b56105a3565b5b60006103c4858286016102f5565b92505060206103d58582860161030a565b9150509250929050565b6103e881610549565b82525050565b6103f78161055b565b82525050565b61040681610591565b82525050565b6000610419600483610538565b9150610424826105a8565b602082019050919050565b600061043c602a83610538565b9150610447826105d1565b604082019050919050565b61045b81610587565b82525050565b600060208201905061047660008301846103df565b92915050565b600060608201905061049160008301866103df565b61049e60208301856103df565b6104ab60408301846103fd565b949350505050565b60006020820190506104c860008301846103ee565b92915050565b600060808201905081810360008301526104e78161042f565b90506104f660208301856103df565b61050360408301846103fd565b81810360608301526105148161040c565b90509392505050565b60006020820190506105326000830184610452565b92915050565b600082825260208201905092915050565b600061055482610567565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061059c82610587565b9050919050565b600080fd5b7f3078303000000000000000000000000000000000000000000000000000000000600082015250565b7f307866333946643665353161616438384636463463653661423838323732373960008201527f6366664662393232363600000000000000000000000000000000000000000000602082015250565b61062981610549565b811461063457600080fd5b50565b61064081610587565b811461064b57600080fd5b5056fea264697066735822122075954d652b0eb8d814b91524c47a04c537d638cec0eda3ca0e4ee67767e1a37064736f6c63430008070033", -} - -// AttackerContractABI is the input ABI used to generate the binding from. -// Deprecated: Use AttackerContractMetaData.ABI instead. -var AttackerContractABI = AttackerContractMetaData.ABI - -// AttackerContractBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use AttackerContractMetaData.Bin instead. -var AttackerContractBin = AttackerContractMetaData.Bin - -// DeployAttackerContract deploys a new Ethereum contract, binding an instance of AttackerContract to it. -func DeployAttackerContract(auth *bind.TransactOpts, backend bind.ContractBackend, victimContractAddress_ common.Address, wzeta common.Address, victimMethod *big.Int) (common.Address, *types.Transaction, *AttackerContract, error) { - parsed, err := AttackerContractMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(AttackerContractBin), backend, victimContractAddress_, wzeta, victimMethod) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &AttackerContract{AttackerContractCaller: AttackerContractCaller{contract: contract}, AttackerContractTransactor: AttackerContractTransactor{contract: contract}, AttackerContractFilterer: AttackerContractFilterer{contract: contract}}, nil -} - -// AttackerContract is an auto generated Go binding around an Ethereum contract. -type AttackerContract struct { - AttackerContractCaller // Read-only binding to the contract - AttackerContractTransactor // Write-only binding to the contract - AttackerContractFilterer // Log filterer for contract events -} - -// AttackerContractCaller is an auto generated read-only Go binding around an Ethereum contract. -type AttackerContractCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// AttackerContractTransactor is an auto generated write-only Go binding around an Ethereum contract. -type AttackerContractTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// AttackerContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type AttackerContractFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// AttackerContractSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type AttackerContractSession struct { - Contract *AttackerContract // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// AttackerContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type AttackerContractCallerSession struct { - Contract *AttackerContractCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// AttackerContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type AttackerContractTransactorSession struct { - Contract *AttackerContractTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// AttackerContractRaw is an auto generated low-level Go binding around an Ethereum contract. -type AttackerContractRaw struct { - Contract *AttackerContract // Generic contract binding to access the raw methods on -} - -// AttackerContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type AttackerContractCallerRaw struct { - Contract *AttackerContractCaller // Generic read-only contract binding to access the raw methods on -} - -// AttackerContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type AttackerContractTransactorRaw struct { - Contract *AttackerContractTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewAttackerContract creates a new instance of AttackerContract, bound to a specific deployed contract. -func NewAttackerContract(address common.Address, backend bind.ContractBackend) (*AttackerContract, error) { - contract, err := bindAttackerContract(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &AttackerContract{AttackerContractCaller: AttackerContractCaller{contract: contract}, AttackerContractTransactor: AttackerContractTransactor{contract: contract}, AttackerContractFilterer: AttackerContractFilterer{contract: contract}}, nil -} - -// NewAttackerContractCaller creates a new read-only instance of AttackerContract, bound to a specific deployed contract. -func NewAttackerContractCaller(address common.Address, caller bind.ContractCaller) (*AttackerContractCaller, error) { - contract, err := bindAttackerContract(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &AttackerContractCaller{contract: contract}, nil -} - -// NewAttackerContractTransactor creates a new write-only instance of AttackerContract, bound to a specific deployed contract. -func NewAttackerContractTransactor(address common.Address, transactor bind.ContractTransactor) (*AttackerContractTransactor, error) { - contract, err := bindAttackerContract(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &AttackerContractTransactor{contract: contract}, nil -} - -// NewAttackerContractFilterer creates a new log filterer instance of AttackerContract, bound to a specific deployed contract. -func NewAttackerContractFilterer(address common.Address, filterer bind.ContractFilterer) (*AttackerContractFilterer, error) { - contract, err := bindAttackerContract(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &AttackerContractFilterer{contract: contract}, nil -} - -// bindAttackerContract binds a generic wrapper to an already deployed contract. -func bindAttackerContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := AttackerContractMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_AttackerContract *AttackerContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _AttackerContract.Contract.AttackerContractCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_AttackerContract *AttackerContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _AttackerContract.Contract.AttackerContractTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_AttackerContract *AttackerContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _AttackerContract.Contract.AttackerContractTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_AttackerContract *AttackerContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _AttackerContract.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_AttackerContract *AttackerContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _AttackerContract.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_AttackerContract *AttackerContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _AttackerContract.Contract.contract.Transact(opts, method, params...) -} - -// VictimContractAddress is a free data retrieval call binding the contract method 0x89bc0bb7. -// -// Solidity: function victimContractAddress() view returns(address) -func (_AttackerContract *AttackerContractCaller) VictimContractAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _AttackerContract.contract.Call(opts, &out, "victimContractAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// VictimContractAddress is a free data retrieval call binding the contract method 0x89bc0bb7. -// -// Solidity: function victimContractAddress() view returns(address) -func (_AttackerContract *AttackerContractSession) VictimContractAddress() (common.Address, error) { - return _AttackerContract.Contract.VictimContractAddress(&_AttackerContract.CallOpts) -} - -// VictimContractAddress is a free data retrieval call binding the contract method 0x89bc0bb7. -// -// Solidity: function victimContractAddress() view returns(address) -func (_AttackerContract *AttackerContractCallerSession) VictimContractAddress() (common.Address, error) { - return _AttackerContract.Contract.VictimContractAddress(&_AttackerContract.CallOpts) -} - -// BalanceOf is a paid mutator transaction binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) returns(uint256) -func (_AttackerContract *AttackerContractTransactor) BalanceOf(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error) { - return _AttackerContract.contract.Transact(opts, "balanceOf", account) -} - -// BalanceOf is a paid mutator transaction binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) returns(uint256) -func (_AttackerContract *AttackerContractSession) BalanceOf(account common.Address) (*types.Transaction, error) { - return _AttackerContract.Contract.BalanceOf(&_AttackerContract.TransactOpts, account) -} - -// BalanceOf is a paid mutator transaction binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) returns(uint256) -func (_AttackerContract *AttackerContractTransactorSession) BalanceOf(account common.Address) (*types.Transaction, error) { - return _AttackerContract.Contract.BalanceOf(&_AttackerContract.TransactOpts, account) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_AttackerContract *AttackerContractTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _AttackerContract.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_AttackerContract *AttackerContractSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _AttackerContract.Contract.Transfer(&_AttackerContract.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_AttackerContract *AttackerContractTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _AttackerContract.Contract.Transfer(&_AttackerContract.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_AttackerContract *AttackerContractTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _AttackerContract.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_AttackerContract *AttackerContractSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _AttackerContract.Contract.TransferFrom(&_AttackerContract.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_AttackerContract *AttackerContractTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _AttackerContract.Contract.TransferFrom(&_AttackerContract.TransactOpts, from, to, amount) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_AttackerContract *AttackerContractTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _AttackerContract.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_AttackerContract *AttackerContractSession) Receive() (*types.Transaction, error) { - return _AttackerContract.Contract.Receive(&_AttackerContract.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_AttackerContract *AttackerContractTransactorSession) Receive() (*types.Transaction, error) { - return _AttackerContract.Contract.Receive(&_AttackerContract.TransactOpts) -} diff --git a/v1/pkg/contracts/evm/testing/attackercontract.sol/victim.go b/v1/pkg/contracts/evm/testing/attackercontract.sol/victim.go deleted file mode 100644 index 1aa58727b..000000000 --- a/v1/pkg/contracts/evm/testing/attackercontract.sol/victim.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package attackercontract - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// VictimMetaData contains all meta data concerning the Victim contract. -var VictimMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"recipient\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// VictimABI is the input ABI used to generate the binding from. -// Deprecated: Use VictimMetaData.ABI instead. -var VictimABI = VictimMetaData.ABI - -// Victim is an auto generated Go binding around an Ethereum contract. -type Victim struct { - VictimCaller // Read-only binding to the contract - VictimTransactor // Write-only binding to the contract - VictimFilterer // Log filterer for contract events -} - -// VictimCaller is an auto generated read-only Go binding around an Ethereum contract. -type VictimCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// VictimTransactor is an auto generated write-only Go binding around an Ethereum contract. -type VictimTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// VictimFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type VictimFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// VictimSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type VictimSession struct { - Contract *Victim // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// VictimCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type VictimCallerSession struct { - Contract *VictimCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// VictimTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type VictimTransactorSession struct { - Contract *VictimTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// VictimRaw is an auto generated low-level Go binding around an Ethereum contract. -type VictimRaw struct { - Contract *Victim // Generic contract binding to access the raw methods on -} - -// VictimCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type VictimCallerRaw struct { - Contract *VictimCaller // Generic read-only contract binding to access the raw methods on -} - -// VictimTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type VictimTransactorRaw struct { - Contract *VictimTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewVictim creates a new instance of Victim, bound to a specific deployed contract. -func NewVictim(address common.Address, backend bind.ContractBackend) (*Victim, error) { - contract, err := bindVictim(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Victim{VictimCaller: VictimCaller{contract: contract}, VictimTransactor: VictimTransactor{contract: contract}, VictimFilterer: VictimFilterer{contract: contract}}, nil -} - -// NewVictimCaller creates a new read-only instance of Victim, bound to a specific deployed contract. -func NewVictimCaller(address common.Address, caller bind.ContractCaller) (*VictimCaller, error) { - contract, err := bindVictim(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &VictimCaller{contract: contract}, nil -} - -// NewVictimTransactor creates a new write-only instance of Victim, bound to a specific deployed contract. -func NewVictimTransactor(address common.Address, transactor bind.ContractTransactor) (*VictimTransactor, error) { - contract, err := bindVictim(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &VictimTransactor{contract: contract}, nil -} - -// NewVictimFilterer creates a new log filterer instance of Victim, bound to a specific deployed contract. -func NewVictimFilterer(address common.Address, filterer bind.ContractFilterer) (*VictimFilterer, error) { - contract, err := bindVictim(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &VictimFilterer{contract: contract}, nil -} - -// bindVictim binds a generic wrapper to an already deployed contract. -func bindVictim(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := VictimMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Victim *VictimRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Victim.Contract.VictimCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Victim *VictimRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Victim.Contract.VictimTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Victim *VictimRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Victim.Contract.VictimTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Victim *VictimCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Victim.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Victim *VictimTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Victim.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Victim *VictimTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Victim.Contract.contract.Transact(opts, method, params...) -} - -// Deposit is a paid mutator transaction binding the contract method 0xe609055e. -// -// Solidity: function deposit(bytes recipient, address asset, uint256 amount, bytes message) returns() -func (_Victim *VictimTransactor) Deposit(opts *bind.TransactOpts, recipient []byte, asset common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _Victim.contract.Transact(opts, "deposit", recipient, asset, amount, message) -} - -// Deposit is a paid mutator transaction binding the contract method 0xe609055e. -// -// Solidity: function deposit(bytes recipient, address asset, uint256 amount, bytes message) returns() -func (_Victim *VictimSession) Deposit(recipient []byte, asset common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _Victim.Contract.Deposit(&_Victim.TransactOpts, recipient, asset, amount, message) -} - -// Deposit is a paid mutator transaction binding the contract method 0xe609055e. -// -// Solidity: function deposit(bytes recipient, address asset, uint256 amount, bytes message) returns() -func (_Victim *VictimTransactorSession) Deposit(recipient []byte, asset common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _Victim.Contract.Deposit(&_Victim.TransactOpts, recipient, asset, amount, message) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xd9caed12. -// -// Solidity: function withdraw(address recipient, address asset, uint256 amount) returns() -func (_Victim *VictimTransactor) Withdraw(opts *bind.TransactOpts, recipient common.Address, asset common.Address, amount *big.Int) (*types.Transaction, error) { - return _Victim.contract.Transact(opts, "withdraw", recipient, asset, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xd9caed12. -// -// Solidity: function withdraw(address recipient, address asset, uint256 amount) returns() -func (_Victim *VictimSession) Withdraw(recipient common.Address, asset common.Address, amount *big.Int) (*types.Transaction, error) { - return _Victim.Contract.Withdraw(&_Victim.TransactOpts, recipient, asset, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xd9caed12. -// -// Solidity: function withdraw(address recipient, address asset, uint256 amount) returns() -func (_Victim *VictimTransactorSession) Withdraw(recipient common.Address, asset common.Address, amount *big.Int) (*types.Transaction, error) { - return _Victim.Contract.Withdraw(&_Victim.TransactOpts, recipient, asset, amount) -} diff --git a/v1/pkg/contracts/evm/testing/erc20mock.sol/erc20mock.go b/v1/pkg/contracts/evm/testing/erc20mock.sol/erc20mock.go deleted file mode 100644 index cd791a512..000000000 --- a/v1/pkg/contracts/evm/testing/erc20mock.sol/erc20mock.go +++ /dev/null @@ -1,802 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package erc20mock - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ERC20MockMetaData contains all meta data concerning the ERC20Mock contract. -var ERC20MockMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"initialSupply\",\"type\":\"uint256\"}],\"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\"}]", - Bin: "0x60806040523480156200001157600080fd5b5060405162001beb38038062001beb833981810160405281019062000037919062000393565b838381600390805190602001906200005192919062000237565b5080600490805190602001906200006a92919062000237565b505050620000ac8262000082620000b660201b60201c565b60ff16600a620000939190620005e2565b83620000a091906200071f565b620000bf60201b60201c565b505050506200097c565b60006012905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000129906200047b565b60405180910390fd5b62000146600083836200022d60201b60201c565b80600260008282546200015a91906200052a565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200020d91906200049d565b60405180910390a362000229600083836200023260201b60201c565b5050565b505050565b505050565b8280546200024590620007f4565b90600052602060002090601f016020900481019282620002695760008555620002b5565b82601f106200028457805160ff1916838001178555620002b5565b82800160010185558215620002b5579182015b82811115620002b457825182559160200191906001019062000297565b5b509050620002c49190620002c8565b5090565b5b80821115620002e3576000816000905550600101620002c9565b5090565b6000620002fe620002f884620004e3565b620004ba565b9050828152602081018484840111156200031d576200031c620008f2565b5b6200032a848285620007be565b509392505050565b600081519050620003438162000948565b92915050565b600082601f830112620003615762000360620008ed565b5b815162000373848260208601620002e7565b91505092915050565b6000815190506200038d8162000962565b92915050565b60008060008060808587031215620003b057620003af620008fc565b5b600085015167ffffffffffffffff811115620003d157620003d0620008f7565b5b620003df8782880162000349565b945050602085015167ffffffffffffffff811115620004035762000402620008f7565b5b620004118782880162000349565b9350506040620004248782880162000332565b925050606062000437878288016200037c565b91505092959194509250565b600062000452601f8362000519565b91506200045f826200091f565b602082019050919050565b6200047581620007b4565b82525050565b60006020820190508181036000830152620004968162000443565b9050919050565b6000602082019050620004b460008301846200046a565b92915050565b6000620004c6620004d9565b9050620004d482826200082a565b919050565b6000604051905090565b600067ffffffffffffffff821115620005015762000500620008be565b5b6200050c8262000901565b9050602081019050919050565b600082825260208201905092915050565b60006200053782620007b4565b91506200054483620007b4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200057c576200057b62000860565b5b828201905092915050565b6000808291508390505b6001851115620005d957808604811115620005b157620005b062000860565b5b6001851615620005c15780820291505b8081029050620005d18562000912565b945062000591565b94509492505050565b6000620005ef82620007b4565b9150620005fc83620007b4565b92506200062b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000633565b905092915050565b60008262000645576001905062000718565b8162000655576000905062000718565b81600181146200066e57600281146200067957620006af565b600191505062000718565b60ff8411156200068e576200068d62000860565b5b8360020a915084821115620006a857620006a762000860565b5b5062000718565b5060208310610133831016604e8410600b8410161715620006e95782820a905083811115620006e357620006e262000860565b5b62000718565b620006f8848484600162000587565b9250905081840481111562000712576200071162000860565b5b81810290505b9392505050565b60006200072c82620007b4565b91506200073983620007b4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000775576200077462000860565b5b828202905092915050565b60006200078d8262000794565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620007de578082015181840152602081019050620007c1565b83811115620007ee576000848401525b50505050565b600060028204905060018216806200080d57607f821691505b602082108114156200082457620008236200088f565b5b50919050565b620008358262000901565b810181811067ffffffffffffffff82111715620008575762000856620008be565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620009538162000780565b81146200095f57600080fd5b50565b6200096d81620007b4565b81146200097957600080fd5b50565b61125f806200098c6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea26469706673582212206e7d4645203c528cb4c5c20b28a6d1615134cd17e709cf6083e931dfc154394964736f6c63430008070033", -} - -// ERC20MockABI is the input ABI used to generate the binding from. -// Deprecated: Use ERC20MockMetaData.ABI instead. -var ERC20MockABI = ERC20MockMetaData.ABI - -// ERC20MockBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ERC20MockMetaData.Bin instead. -var ERC20MockBin = ERC20MockMetaData.Bin - -// DeployERC20Mock deploys a new Ethereum contract, binding an instance of ERC20Mock to it. -func DeployERC20Mock(auth *bind.TransactOpts, backend bind.ContractBackend, name string, symbol string, creator common.Address, initialSupply *big.Int) (common.Address, *types.Transaction, *ERC20Mock, error) { - parsed, err := ERC20MockMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ERC20MockBin), backend, name, symbol, creator, initialSupply) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ERC20Mock{ERC20MockCaller: ERC20MockCaller{contract: contract}, ERC20MockTransactor: ERC20MockTransactor{contract: contract}, ERC20MockFilterer: ERC20MockFilterer{contract: contract}}, nil -} - -// ERC20Mock is an auto generated Go binding around an Ethereum contract. -type ERC20Mock struct { - ERC20MockCaller // Read-only binding to the contract - ERC20MockTransactor // Write-only binding to the contract - ERC20MockFilterer // Log filterer for contract events -} - -// ERC20MockCaller is an auto generated read-only Go binding around an Ethereum contract. -type ERC20MockCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20MockTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ERC20MockTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20MockFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ERC20MockFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20MockSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ERC20MockSession struct { - Contract *ERC20Mock // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20MockCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ERC20MockCallerSession struct { - Contract *ERC20MockCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ERC20MockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ERC20MockTransactorSession struct { - Contract *ERC20MockTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20MockRaw is an auto generated low-level Go binding around an Ethereum contract. -type ERC20MockRaw struct { - Contract *ERC20Mock // Generic contract binding to access the raw methods on -} - -// ERC20MockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ERC20MockCallerRaw struct { - Contract *ERC20MockCaller // Generic read-only contract binding to access the raw methods on -} - -// ERC20MockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ERC20MockTransactorRaw struct { - Contract *ERC20MockTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewERC20Mock creates a new instance of ERC20Mock, bound to a specific deployed contract. -func NewERC20Mock(address common.Address, backend bind.ContractBackend) (*ERC20Mock, error) { - contract, err := bindERC20Mock(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ERC20Mock{ERC20MockCaller: ERC20MockCaller{contract: contract}, ERC20MockTransactor: ERC20MockTransactor{contract: contract}, ERC20MockFilterer: ERC20MockFilterer{contract: contract}}, nil -} - -// NewERC20MockCaller creates a new read-only instance of ERC20Mock, bound to a specific deployed contract. -func NewERC20MockCaller(address common.Address, caller bind.ContractCaller) (*ERC20MockCaller, error) { - contract, err := bindERC20Mock(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ERC20MockCaller{contract: contract}, nil -} - -// NewERC20MockTransactor creates a new write-only instance of ERC20Mock, bound to a specific deployed contract. -func NewERC20MockTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20MockTransactor, error) { - contract, err := bindERC20Mock(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ERC20MockTransactor{contract: contract}, nil -} - -// NewERC20MockFilterer creates a new log filterer instance of ERC20Mock, bound to a specific deployed contract. -func NewERC20MockFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20MockFilterer, error) { - contract, err := bindERC20Mock(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ERC20MockFilterer{contract: contract}, nil -} - -// bindERC20Mock binds a generic wrapper to an already deployed contract. -func bindERC20Mock(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ERC20MockMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20Mock *ERC20MockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20Mock.Contract.ERC20MockCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20Mock *ERC20MockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Mock.Contract.ERC20MockTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20Mock *ERC20MockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20Mock.Contract.ERC20MockTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20Mock *ERC20MockCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20Mock.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20Mock *ERC20MockTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Mock.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20Mock *ERC20MockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20Mock.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20Mock *ERC20MockCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _ERC20Mock.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20Mock *ERC20MockSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ERC20Mock.Contract.Allowance(&_ERC20Mock.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20Mock *ERC20MockCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ERC20Mock.Contract.Allowance(&_ERC20Mock.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20Mock *ERC20MockCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _ERC20Mock.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20Mock *ERC20MockSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ERC20Mock.Contract.BalanceOf(&_ERC20Mock.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20Mock *ERC20MockCallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ERC20Mock.Contract.BalanceOf(&_ERC20Mock.CallOpts, account) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20Mock *ERC20MockCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _ERC20Mock.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20Mock *ERC20MockSession) Decimals() (uint8, error) { - return _ERC20Mock.Contract.Decimals(&_ERC20Mock.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20Mock *ERC20MockCallerSession) Decimals() (uint8, error) { - return _ERC20Mock.Contract.Decimals(&_ERC20Mock.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20Mock *ERC20MockCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ERC20Mock.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20Mock *ERC20MockSession) Name() (string, error) { - return _ERC20Mock.Contract.Name(&_ERC20Mock.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20Mock *ERC20MockCallerSession) Name() (string, error) { - return _ERC20Mock.Contract.Name(&_ERC20Mock.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20Mock *ERC20MockCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ERC20Mock.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20Mock *ERC20MockSession) Symbol() (string, error) { - return _ERC20Mock.Contract.Symbol(&_ERC20Mock.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20Mock *ERC20MockCallerSession) Symbol() (string, error) { - return _ERC20Mock.Contract.Symbol(&_ERC20Mock.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20Mock *ERC20MockCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ERC20Mock.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20Mock *ERC20MockSession) TotalSupply() (*big.Int, error) { - return _ERC20Mock.Contract.TotalSupply(&_ERC20Mock.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20Mock *ERC20MockCallerSession) TotalSupply() (*big.Int, error) { - return _ERC20Mock.Contract.TotalSupply(&_ERC20Mock.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.Approve(&_ERC20Mock.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.Approve(&_ERC20Mock.TransactOpts, spender, amount) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20Mock *ERC20MockTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20Mock.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20Mock *ERC20MockSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.DecreaseAllowance(&_ERC20Mock.TransactOpts, spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20Mock *ERC20MockTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.DecreaseAllowance(&_ERC20Mock.TransactOpts, spender, subtractedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20Mock *ERC20MockTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20Mock.contract.Transact(opts, "increaseAllowance", spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20Mock *ERC20MockSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.IncreaseAllowance(&_ERC20Mock.TransactOpts, spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20Mock *ERC20MockTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.IncreaseAllowance(&_ERC20Mock.TransactOpts, spender, addedValue) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.Transfer(&_ERC20Mock.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.Transfer(&_ERC20Mock.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.TransferFrom(&_ERC20Mock.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20Mock *ERC20MockTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Mock.Contract.TransferFrom(&_ERC20Mock.TransactOpts, from, to, amount) -} - -// ERC20MockApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20Mock contract. -type ERC20MockApprovalIterator struct { - Event *ERC20MockApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20MockApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20MockApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20MockApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20MockApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20MockApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20MockApproval represents a Approval event raised by the ERC20Mock contract. -type ERC20MockApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20Mock *ERC20MockFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20MockApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ERC20Mock.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ERC20MockApprovalIterator{contract: _ERC20Mock.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20Mock *ERC20MockFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20MockApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ERC20Mock.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20MockApproval) - if err := _ERC20Mock.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20Mock *ERC20MockFilterer) ParseApproval(log types.Log) (*ERC20MockApproval, error) { - event := new(ERC20MockApproval) - if err := _ERC20Mock.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20MockTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20Mock contract. -type ERC20MockTransferIterator struct { - Event *ERC20MockTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20MockTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20MockTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20MockTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20MockTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20MockTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20MockTransfer represents a Transfer event raised by the ERC20Mock contract. -type ERC20MockTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20Mock *ERC20MockFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20MockTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ERC20Mock.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ERC20MockTransferIterator{contract: _ERC20Mock.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20Mock *ERC20MockFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20MockTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ERC20Mock.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20MockTransfer) - if err := _ERC20Mock.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20Mock *ERC20MockFilterer) ParseTransfer(log types.Log) (*ERC20MockTransfer, error) { - event := new(ERC20MockTransfer) - if err := _ERC20Mock.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/inonfungiblepositionmanager.go b/v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/inonfungiblepositionmanager.go deleted file mode 100644 index ac9cf2070..000000000 --- a/v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/inonfungiblepositionmanager.go +++ /dev/null @@ -1,864 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package testuniswapv3contracts - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// INonfungiblePositionManagerCollectParams is an auto generated low-level Go binding around an user-defined struct. -type INonfungiblePositionManagerCollectParams struct { - TokenId *big.Int - Recipient common.Address - Amount0Max *big.Int - Amount1Max *big.Int -} - -// INonfungiblePositionManagerDecreaseLiquidityParams is an auto generated low-level Go binding around an user-defined struct. -type INonfungiblePositionManagerDecreaseLiquidityParams struct { - TokenId *big.Int - Liquidity *big.Int - Amount0Min *big.Int - Amount1Min *big.Int - Deadline *big.Int -} - -// INonfungiblePositionManagerIncreaseLiquidityParams is an auto generated low-level Go binding around an user-defined struct. -type INonfungiblePositionManagerIncreaseLiquidityParams struct { - TokenId *big.Int - Amount0Desired *big.Int - Amount1Desired *big.Int - Amount0Min *big.Int - Amount1Min *big.Int - Deadline *big.Int -} - -// INonfungiblePositionManagerMintParams is an auto generated low-level Go binding around an user-defined struct. -type INonfungiblePositionManagerMintParams struct { - Token0 common.Address - Token1 common.Address - Fee *big.Int - TickLower *big.Int - TickUpper *big.Int - Amount0Desired *big.Int - Amount1Desired *big.Int - Amount0Min *big.Int - Amount1Min *big.Int - Recipient common.Address - Deadline *big.Int -} - -// INonfungiblePositionManagerMetaData contains all meta data concerning the INonfungiblePositionManager contract. -var INonfungiblePositionManagerMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"DecreaseLiquidity\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"IncreaseLiquidity\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"amount0Max\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Max\",\"type\":\"uint128\"}],\"internalType\":\"structINonfungiblePositionManager.CollectParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount0Min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"internalType\":\"structINonfungiblePositionManager.DecreaseLiquidityParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"decreaseLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount0Desired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Desired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount0Min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"internalType\":\"structINonfungiblePositionManager.IncreaseLiquidityParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"increaseLiquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint256\",\"name\":\"amount0Desired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Desired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount0Min\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Min\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"internalType\":\"structINonfungiblePositionManager.MintParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint96\",\"name\":\"nonce\",\"type\":\"uint96\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside0LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside1LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// INonfungiblePositionManagerABI is the input ABI used to generate the binding from. -// Deprecated: Use INonfungiblePositionManagerMetaData.ABI instead. -var INonfungiblePositionManagerABI = INonfungiblePositionManagerMetaData.ABI - -// INonfungiblePositionManager is an auto generated Go binding around an Ethereum contract. -type INonfungiblePositionManager struct { - INonfungiblePositionManagerCaller // Read-only binding to the contract - INonfungiblePositionManagerTransactor // Write-only binding to the contract - INonfungiblePositionManagerFilterer // Log filterer for contract events -} - -// INonfungiblePositionManagerCaller is an auto generated read-only Go binding around an Ethereum contract. -type INonfungiblePositionManagerCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// INonfungiblePositionManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. -type INonfungiblePositionManagerTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// INonfungiblePositionManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type INonfungiblePositionManagerFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// INonfungiblePositionManagerSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type INonfungiblePositionManagerSession struct { - Contract *INonfungiblePositionManager // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// INonfungiblePositionManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type INonfungiblePositionManagerCallerSession struct { - Contract *INonfungiblePositionManagerCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// INonfungiblePositionManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type INonfungiblePositionManagerTransactorSession struct { - Contract *INonfungiblePositionManagerTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// INonfungiblePositionManagerRaw is an auto generated low-level Go binding around an Ethereum contract. -type INonfungiblePositionManagerRaw struct { - Contract *INonfungiblePositionManager // Generic contract binding to access the raw methods on -} - -// INonfungiblePositionManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type INonfungiblePositionManagerCallerRaw struct { - Contract *INonfungiblePositionManagerCaller // Generic read-only contract binding to access the raw methods on -} - -// INonfungiblePositionManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type INonfungiblePositionManagerTransactorRaw struct { - Contract *INonfungiblePositionManagerTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewINonfungiblePositionManager creates a new instance of INonfungiblePositionManager, bound to a specific deployed contract. -func NewINonfungiblePositionManager(address common.Address, backend bind.ContractBackend) (*INonfungiblePositionManager, error) { - contract, err := bindINonfungiblePositionManager(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &INonfungiblePositionManager{INonfungiblePositionManagerCaller: INonfungiblePositionManagerCaller{contract: contract}, INonfungiblePositionManagerTransactor: INonfungiblePositionManagerTransactor{contract: contract}, INonfungiblePositionManagerFilterer: INonfungiblePositionManagerFilterer{contract: contract}}, nil -} - -// NewINonfungiblePositionManagerCaller creates a new read-only instance of INonfungiblePositionManager, bound to a specific deployed contract. -func NewINonfungiblePositionManagerCaller(address common.Address, caller bind.ContractCaller) (*INonfungiblePositionManagerCaller, error) { - contract, err := bindINonfungiblePositionManager(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &INonfungiblePositionManagerCaller{contract: contract}, nil -} - -// NewINonfungiblePositionManagerTransactor creates a new write-only instance of INonfungiblePositionManager, bound to a specific deployed contract. -func NewINonfungiblePositionManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*INonfungiblePositionManagerTransactor, error) { - contract, err := bindINonfungiblePositionManager(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &INonfungiblePositionManagerTransactor{contract: contract}, nil -} - -// NewINonfungiblePositionManagerFilterer creates a new log filterer instance of INonfungiblePositionManager, bound to a specific deployed contract. -func NewINonfungiblePositionManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*INonfungiblePositionManagerFilterer, error) { - contract, err := bindINonfungiblePositionManager(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &INonfungiblePositionManagerFilterer{contract: contract}, nil -} - -// bindINonfungiblePositionManager binds a generic wrapper to an already deployed contract. -func bindINonfungiblePositionManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := INonfungiblePositionManagerMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_INonfungiblePositionManager *INonfungiblePositionManagerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _INonfungiblePositionManager.Contract.INonfungiblePositionManagerCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_INonfungiblePositionManager *INonfungiblePositionManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.INonfungiblePositionManagerTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_INonfungiblePositionManager *INonfungiblePositionManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.INonfungiblePositionManagerTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_INonfungiblePositionManager *INonfungiblePositionManagerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _INonfungiblePositionManager.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.contract.Transact(opts, method, params...) -} - -// Positions is a free data retrieval call binding the contract method 0x99fbab88. -// -// Solidity: function positions(uint256 tokenId) view returns(uint96 nonce, address operator, address token0, address token1, uint24 fee, int24 tickLower, int24 tickUpper, uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerCaller) Positions(opts *bind.CallOpts, tokenId *big.Int) (struct { - Nonce *big.Int - Operator common.Address - Token0 common.Address - Token1 common.Address - Fee *big.Int - TickLower *big.Int - TickUpper *big.Int - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - var out []interface{} - err := _INonfungiblePositionManager.contract.Call(opts, &out, "positions", tokenId) - - outstruct := new(struct { - Nonce *big.Int - Operator common.Address - Token0 common.Address - Token1 common.Address - Fee *big.Int - TickLower *big.Int - TickUpper *big.Int - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.Nonce = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Operator = *abi.ConvertType(out[1], new(common.Address)).(*common.Address) - outstruct.Token0 = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) - outstruct.Token1 = *abi.ConvertType(out[3], new(common.Address)).(*common.Address) - outstruct.Fee = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int) - outstruct.TickLower = *abi.ConvertType(out[5], new(*big.Int)).(**big.Int) - outstruct.TickUpper = *abi.ConvertType(out[6], new(*big.Int)).(**big.Int) - outstruct.Liquidity = *abi.ConvertType(out[7], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthInside0LastX128 = *abi.ConvertType(out[8], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthInside1LastX128 = *abi.ConvertType(out[9], new(*big.Int)).(**big.Int) - outstruct.TokensOwed0 = *abi.ConvertType(out[10], new(*big.Int)).(**big.Int) - outstruct.TokensOwed1 = *abi.ConvertType(out[11], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// Positions is a free data retrieval call binding the contract method 0x99fbab88. -// -// Solidity: function positions(uint256 tokenId) view returns(uint96 nonce, address operator, address token0, address token1, uint24 fee, int24 tickLower, int24 tickUpper, uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerSession) Positions(tokenId *big.Int) (struct { - Nonce *big.Int - Operator common.Address - Token0 common.Address - Token1 common.Address - Fee *big.Int - TickLower *big.Int - TickUpper *big.Int - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - return _INonfungiblePositionManager.Contract.Positions(&_INonfungiblePositionManager.CallOpts, tokenId) -} - -// Positions is a free data retrieval call binding the contract method 0x99fbab88. -// -// Solidity: function positions(uint256 tokenId) view returns(uint96 nonce, address operator, address token0, address token1, uint24 fee, int24 tickLower, int24 tickUpper, uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerCallerSession) Positions(tokenId *big.Int) (struct { - Nonce *big.Int - Operator common.Address - Token0 common.Address - Token1 common.Address - Fee *big.Int - TickLower *big.Int - TickUpper *big.Int - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - return _INonfungiblePositionManager.Contract.Positions(&_INonfungiblePositionManager.CallOpts, tokenId) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 tokenId) payable returns() -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error) { - return _INonfungiblePositionManager.contract.Transact(opts, "burn", tokenId) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 tokenId) payable returns() -func (_INonfungiblePositionManager *INonfungiblePositionManagerSession) Burn(tokenId *big.Int) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.Burn(&_INonfungiblePositionManager.TransactOpts, tokenId) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 tokenId) payable returns() -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.Burn(&_INonfungiblePositionManager.TransactOpts, tokenId) -} - -// Collect is a paid mutator transaction binding the contract method 0xfc6f7865. -// -// Solidity: function collect((uint256,address,uint128,uint128) params) payable returns(uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactor) Collect(opts *bind.TransactOpts, params INonfungiblePositionManagerCollectParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.contract.Transact(opts, "collect", params) -} - -// Collect is a paid mutator transaction binding the contract method 0xfc6f7865. -// -// Solidity: function collect((uint256,address,uint128,uint128) params) payable returns(uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerSession) Collect(params INonfungiblePositionManagerCollectParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.Collect(&_INonfungiblePositionManager.TransactOpts, params) -} - -// Collect is a paid mutator transaction binding the contract method 0xfc6f7865. -// -// Solidity: function collect((uint256,address,uint128,uint128) params) payable returns(uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactorSession) Collect(params INonfungiblePositionManagerCollectParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.Collect(&_INonfungiblePositionManager.TransactOpts, params) -} - -// DecreaseLiquidity is a paid mutator transaction binding the contract method 0x0c49ccbe. -// -// Solidity: function decreaseLiquidity((uint256,uint128,uint256,uint256,uint256) params) payable returns(uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactor) DecreaseLiquidity(opts *bind.TransactOpts, params INonfungiblePositionManagerDecreaseLiquidityParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.contract.Transact(opts, "decreaseLiquidity", params) -} - -// DecreaseLiquidity is a paid mutator transaction binding the contract method 0x0c49ccbe. -// -// Solidity: function decreaseLiquidity((uint256,uint128,uint256,uint256,uint256) params) payable returns(uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerSession) DecreaseLiquidity(params INonfungiblePositionManagerDecreaseLiquidityParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.DecreaseLiquidity(&_INonfungiblePositionManager.TransactOpts, params) -} - -// DecreaseLiquidity is a paid mutator transaction binding the contract method 0x0c49ccbe. -// -// Solidity: function decreaseLiquidity((uint256,uint128,uint256,uint256,uint256) params) payable returns(uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactorSession) DecreaseLiquidity(params INonfungiblePositionManagerDecreaseLiquidityParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.DecreaseLiquidity(&_INonfungiblePositionManager.TransactOpts, params) -} - -// IncreaseLiquidity is a paid mutator transaction binding the contract method 0x219f5d17. -// -// Solidity: function increaseLiquidity((uint256,uint256,uint256,uint256,uint256,uint256) params) payable returns(uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactor) IncreaseLiquidity(opts *bind.TransactOpts, params INonfungiblePositionManagerIncreaseLiquidityParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.contract.Transact(opts, "increaseLiquidity", params) -} - -// IncreaseLiquidity is a paid mutator transaction binding the contract method 0x219f5d17. -// -// Solidity: function increaseLiquidity((uint256,uint256,uint256,uint256,uint256,uint256) params) payable returns(uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerSession) IncreaseLiquidity(params INonfungiblePositionManagerIncreaseLiquidityParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.IncreaseLiquidity(&_INonfungiblePositionManager.TransactOpts, params) -} - -// IncreaseLiquidity is a paid mutator transaction binding the contract method 0x219f5d17. -// -// Solidity: function increaseLiquidity((uint256,uint256,uint256,uint256,uint256,uint256) params) payable returns(uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactorSession) IncreaseLiquidity(params INonfungiblePositionManagerIncreaseLiquidityParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.IncreaseLiquidity(&_INonfungiblePositionManager.TransactOpts, params) -} - -// Mint is a paid mutator transaction binding the contract method 0x88316456. -// -// Solidity: function mint((address,address,uint24,int24,int24,uint256,uint256,uint256,uint256,address,uint256) params) payable returns(uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactor) Mint(opts *bind.TransactOpts, params INonfungiblePositionManagerMintParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.contract.Transact(opts, "mint", params) -} - -// Mint is a paid mutator transaction binding the contract method 0x88316456. -// -// Solidity: function mint((address,address,uint24,int24,int24,uint256,uint256,uint256,uint256,address,uint256) params) payable returns(uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerSession) Mint(params INonfungiblePositionManagerMintParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.Mint(&_INonfungiblePositionManager.TransactOpts, params) -} - -// Mint is a paid mutator transaction binding the contract method 0x88316456. -// -// Solidity: function mint((address,address,uint24,int24,int24,uint256,uint256,uint256,uint256,address,uint256) params) payable returns(uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerTransactorSession) Mint(params INonfungiblePositionManagerMintParams) (*types.Transaction, error) { - return _INonfungiblePositionManager.Contract.Mint(&_INonfungiblePositionManager.TransactOpts, params) -} - -// INonfungiblePositionManagerCollectIterator is returned from FilterCollect and is used to iterate over the raw logs and unpacked data for Collect events raised by the INonfungiblePositionManager contract. -type INonfungiblePositionManagerCollectIterator struct { - Event *INonfungiblePositionManagerCollect // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *INonfungiblePositionManagerCollectIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(INonfungiblePositionManagerCollect) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(INonfungiblePositionManagerCollect) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *INonfungiblePositionManagerCollectIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *INonfungiblePositionManagerCollectIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// INonfungiblePositionManagerCollect represents a Collect event raised by the INonfungiblePositionManager contract. -type INonfungiblePositionManagerCollect struct { - TokenId *big.Int - Recipient common.Address - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollect is a free log retrieval operation binding the contract event 0x40d0efd1a53d60ecbf40971b9daf7dc90178c3aadc7aab1765632738fa8b8f01. -// -// Solidity: event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) FilterCollect(opts *bind.FilterOpts, tokenId []*big.Int) (*INonfungiblePositionManagerCollectIterator, error) { - - var tokenIdRule []interface{} - for _, tokenIdItem := range tokenId { - tokenIdRule = append(tokenIdRule, tokenIdItem) - } - - logs, sub, err := _INonfungiblePositionManager.contract.FilterLogs(opts, "Collect", tokenIdRule) - if err != nil { - return nil, err - } - return &INonfungiblePositionManagerCollectIterator{contract: _INonfungiblePositionManager.contract, event: "Collect", logs: logs, sub: sub}, nil -} - -// WatchCollect is a free log subscription operation binding the contract event 0x40d0efd1a53d60ecbf40971b9daf7dc90178c3aadc7aab1765632738fa8b8f01. -// -// Solidity: event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) WatchCollect(opts *bind.WatchOpts, sink chan<- *INonfungiblePositionManagerCollect, tokenId []*big.Int) (event.Subscription, error) { - - var tokenIdRule []interface{} - for _, tokenIdItem := range tokenId { - tokenIdRule = append(tokenIdRule, tokenIdItem) - } - - logs, sub, err := _INonfungiblePositionManager.contract.WatchLogs(opts, "Collect", tokenIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(INonfungiblePositionManagerCollect) - if err := _INonfungiblePositionManager.contract.UnpackLog(event, "Collect", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollect is a log parse operation binding the contract event 0x40d0efd1a53d60ecbf40971b9daf7dc90178c3aadc7aab1765632738fa8b8f01. -// -// Solidity: event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) ParseCollect(log types.Log) (*INonfungiblePositionManagerCollect, error) { - event := new(INonfungiblePositionManagerCollect) - if err := _INonfungiblePositionManager.contract.UnpackLog(event, "Collect", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// INonfungiblePositionManagerDecreaseLiquidityIterator is returned from FilterDecreaseLiquidity and is used to iterate over the raw logs and unpacked data for DecreaseLiquidity events raised by the INonfungiblePositionManager contract. -type INonfungiblePositionManagerDecreaseLiquidityIterator struct { - Event *INonfungiblePositionManagerDecreaseLiquidity // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *INonfungiblePositionManagerDecreaseLiquidityIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(INonfungiblePositionManagerDecreaseLiquidity) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(INonfungiblePositionManagerDecreaseLiquidity) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *INonfungiblePositionManagerDecreaseLiquidityIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *INonfungiblePositionManagerDecreaseLiquidityIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// INonfungiblePositionManagerDecreaseLiquidity represents a DecreaseLiquidity event raised by the INonfungiblePositionManager contract. -type INonfungiblePositionManagerDecreaseLiquidity struct { - TokenId *big.Int - Liquidity *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDecreaseLiquidity is a free log retrieval operation binding the contract event 0x26f6a048ee9138f2c0ce266f322cb99228e8d619ae2bff30c67f8dcf9d2377b4. -// -// Solidity: event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) FilterDecreaseLiquidity(opts *bind.FilterOpts, tokenId []*big.Int) (*INonfungiblePositionManagerDecreaseLiquidityIterator, error) { - - var tokenIdRule []interface{} - for _, tokenIdItem := range tokenId { - tokenIdRule = append(tokenIdRule, tokenIdItem) - } - - logs, sub, err := _INonfungiblePositionManager.contract.FilterLogs(opts, "DecreaseLiquidity", tokenIdRule) - if err != nil { - return nil, err - } - return &INonfungiblePositionManagerDecreaseLiquidityIterator{contract: _INonfungiblePositionManager.contract, event: "DecreaseLiquidity", logs: logs, sub: sub}, nil -} - -// WatchDecreaseLiquidity is a free log subscription operation binding the contract event 0x26f6a048ee9138f2c0ce266f322cb99228e8d619ae2bff30c67f8dcf9d2377b4. -// -// Solidity: event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) WatchDecreaseLiquidity(opts *bind.WatchOpts, sink chan<- *INonfungiblePositionManagerDecreaseLiquidity, tokenId []*big.Int) (event.Subscription, error) { - - var tokenIdRule []interface{} - for _, tokenIdItem := range tokenId { - tokenIdRule = append(tokenIdRule, tokenIdItem) - } - - logs, sub, err := _INonfungiblePositionManager.contract.WatchLogs(opts, "DecreaseLiquidity", tokenIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(INonfungiblePositionManagerDecreaseLiquidity) - if err := _INonfungiblePositionManager.contract.UnpackLog(event, "DecreaseLiquidity", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDecreaseLiquidity is a log parse operation binding the contract event 0x26f6a048ee9138f2c0ce266f322cb99228e8d619ae2bff30c67f8dcf9d2377b4. -// -// Solidity: event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) ParseDecreaseLiquidity(log types.Log) (*INonfungiblePositionManagerDecreaseLiquidity, error) { - event := new(INonfungiblePositionManagerDecreaseLiquidity) - if err := _INonfungiblePositionManager.contract.UnpackLog(event, "DecreaseLiquidity", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// INonfungiblePositionManagerIncreaseLiquidityIterator is returned from FilterIncreaseLiquidity and is used to iterate over the raw logs and unpacked data for IncreaseLiquidity events raised by the INonfungiblePositionManager contract. -type INonfungiblePositionManagerIncreaseLiquidityIterator struct { - Event *INonfungiblePositionManagerIncreaseLiquidity // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *INonfungiblePositionManagerIncreaseLiquidityIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(INonfungiblePositionManagerIncreaseLiquidity) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(INonfungiblePositionManagerIncreaseLiquidity) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *INonfungiblePositionManagerIncreaseLiquidityIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *INonfungiblePositionManagerIncreaseLiquidityIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// INonfungiblePositionManagerIncreaseLiquidity represents a IncreaseLiquidity event raised by the INonfungiblePositionManager contract. -type INonfungiblePositionManagerIncreaseLiquidity struct { - TokenId *big.Int - Liquidity *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterIncreaseLiquidity is a free log retrieval operation binding the contract event 0x3067048beee31b25b2f1681f88dac838c8bba36af25bfb2b7cf7473a5847e35f. -// -// Solidity: event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) FilterIncreaseLiquidity(opts *bind.FilterOpts, tokenId []*big.Int) (*INonfungiblePositionManagerIncreaseLiquidityIterator, error) { - - var tokenIdRule []interface{} - for _, tokenIdItem := range tokenId { - tokenIdRule = append(tokenIdRule, tokenIdItem) - } - - logs, sub, err := _INonfungiblePositionManager.contract.FilterLogs(opts, "IncreaseLiquidity", tokenIdRule) - if err != nil { - return nil, err - } - return &INonfungiblePositionManagerIncreaseLiquidityIterator{contract: _INonfungiblePositionManager.contract, event: "IncreaseLiquidity", logs: logs, sub: sub}, nil -} - -// WatchIncreaseLiquidity is a free log subscription operation binding the contract event 0x3067048beee31b25b2f1681f88dac838c8bba36af25bfb2b7cf7473a5847e35f. -// -// Solidity: event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) WatchIncreaseLiquidity(opts *bind.WatchOpts, sink chan<- *INonfungiblePositionManagerIncreaseLiquidity, tokenId []*big.Int) (event.Subscription, error) { - - var tokenIdRule []interface{} - for _, tokenIdItem := range tokenId { - tokenIdRule = append(tokenIdRule, tokenIdItem) - } - - logs, sub, err := _INonfungiblePositionManager.contract.WatchLogs(opts, "IncreaseLiquidity", tokenIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(INonfungiblePositionManagerIncreaseLiquidity) - if err := _INonfungiblePositionManager.contract.UnpackLog(event, "IncreaseLiquidity", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseIncreaseLiquidity is a log parse operation binding the contract event 0x3067048beee31b25b2f1681f88dac838c8bba36af25bfb2b7cf7473a5847e35f. -// -// Solidity: event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1) -func (_INonfungiblePositionManager *INonfungiblePositionManagerFilterer) ParseIncreaseLiquidity(log types.Log) (*INonfungiblePositionManagerIncreaseLiquidity, error) { - event := new(INonfungiblePositionManagerIncreaseLiquidity) - if err := _INonfungiblePositionManager.contract.UnpackLog(event, "IncreaseLiquidity", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/ipoolinitializer.go b/v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/ipoolinitializer.go deleted file mode 100644 index 33da23e48..000000000 --- a/v1/pkg/contracts/evm/testing/testuniswapv3contracts.sol/ipoolinitializer.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package testuniswapv3contracts - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IPoolInitializerMetaData contains all meta data concerning the IPoolInitializer contract. -var IPoolInitializerMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"createAndInitializePoolIfNecessary\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]", -} - -// IPoolInitializerABI is the input ABI used to generate the binding from. -// Deprecated: Use IPoolInitializerMetaData.ABI instead. -var IPoolInitializerABI = IPoolInitializerMetaData.ABI - -// IPoolInitializer is an auto generated Go binding around an Ethereum contract. -type IPoolInitializer struct { - IPoolInitializerCaller // Read-only binding to the contract - IPoolInitializerTransactor // Write-only binding to the contract - IPoolInitializerFilterer // Log filterer for contract events -} - -// IPoolInitializerCaller is an auto generated read-only Go binding around an Ethereum contract. -type IPoolInitializerCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IPoolInitializerTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IPoolInitializerTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IPoolInitializerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IPoolInitializerFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IPoolInitializerSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IPoolInitializerSession struct { - Contract *IPoolInitializer // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IPoolInitializerCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IPoolInitializerCallerSession struct { - Contract *IPoolInitializerCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IPoolInitializerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IPoolInitializerTransactorSession struct { - Contract *IPoolInitializerTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IPoolInitializerRaw is an auto generated low-level Go binding around an Ethereum contract. -type IPoolInitializerRaw struct { - Contract *IPoolInitializer // Generic contract binding to access the raw methods on -} - -// IPoolInitializerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IPoolInitializerCallerRaw struct { - Contract *IPoolInitializerCaller // Generic read-only contract binding to access the raw methods on -} - -// IPoolInitializerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IPoolInitializerTransactorRaw struct { - Contract *IPoolInitializerTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIPoolInitializer creates a new instance of IPoolInitializer, bound to a specific deployed contract. -func NewIPoolInitializer(address common.Address, backend bind.ContractBackend) (*IPoolInitializer, error) { - contract, err := bindIPoolInitializer(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IPoolInitializer{IPoolInitializerCaller: IPoolInitializerCaller{contract: contract}, IPoolInitializerTransactor: IPoolInitializerTransactor{contract: contract}, IPoolInitializerFilterer: IPoolInitializerFilterer{contract: contract}}, nil -} - -// NewIPoolInitializerCaller creates a new read-only instance of IPoolInitializer, bound to a specific deployed contract. -func NewIPoolInitializerCaller(address common.Address, caller bind.ContractCaller) (*IPoolInitializerCaller, error) { - contract, err := bindIPoolInitializer(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IPoolInitializerCaller{contract: contract}, nil -} - -// NewIPoolInitializerTransactor creates a new write-only instance of IPoolInitializer, bound to a specific deployed contract. -func NewIPoolInitializerTransactor(address common.Address, transactor bind.ContractTransactor) (*IPoolInitializerTransactor, error) { - contract, err := bindIPoolInitializer(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IPoolInitializerTransactor{contract: contract}, nil -} - -// NewIPoolInitializerFilterer creates a new log filterer instance of IPoolInitializer, bound to a specific deployed contract. -func NewIPoolInitializerFilterer(address common.Address, filterer bind.ContractFilterer) (*IPoolInitializerFilterer, error) { - contract, err := bindIPoolInitializer(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IPoolInitializerFilterer{contract: contract}, nil -} - -// bindIPoolInitializer binds a generic wrapper to an already deployed contract. -func bindIPoolInitializer(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IPoolInitializerMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IPoolInitializer *IPoolInitializerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IPoolInitializer.Contract.IPoolInitializerCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IPoolInitializer *IPoolInitializerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IPoolInitializer.Contract.IPoolInitializerTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IPoolInitializer *IPoolInitializerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IPoolInitializer.Contract.IPoolInitializerTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IPoolInitializer *IPoolInitializerCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IPoolInitializer.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IPoolInitializer *IPoolInitializerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IPoolInitializer.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IPoolInitializer *IPoolInitializerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IPoolInitializer.Contract.contract.Transact(opts, method, params...) -} - -// CreateAndInitializePoolIfNecessary is a paid mutator transaction binding the contract method 0x13ead562. -// -// Solidity: function createAndInitializePoolIfNecessary(address token0, address token1, uint24 fee, uint160 sqrtPriceX96) payable returns(address pool) -func (_IPoolInitializer *IPoolInitializerTransactor) CreateAndInitializePoolIfNecessary(opts *bind.TransactOpts, token0 common.Address, token1 common.Address, fee *big.Int, sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IPoolInitializer.contract.Transact(opts, "createAndInitializePoolIfNecessary", token0, token1, fee, sqrtPriceX96) -} - -// CreateAndInitializePoolIfNecessary is a paid mutator transaction binding the contract method 0x13ead562. -// -// Solidity: function createAndInitializePoolIfNecessary(address token0, address token1, uint24 fee, uint160 sqrtPriceX96) payable returns(address pool) -func (_IPoolInitializer *IPoolInitializerSession) CreateAndInitializePoolIfNecessary(token0 common.Address, token1 common.Address, fee *big.Int, sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IPoolInitializer.Contract.CreateAndInitializePoolIfNecessary(&_IPoolInitializer.TransactOpts, token0, token1, fee, sqrtPriceX96) -} - -// CreateAndInitializePoolIfNecessary is a paid mutator transaction binding the contract method 0x13ead562. -// -// Solidity: function createAndInitializePoolIfNecessary(address token0, address token1, uint24 fee, uint160 sqrtPriceX96) payable returns(address pool) -func (_IPoolInitializer *IPoolInitializerTransactorSession) CreateAndInitializePoolIfNecessary(token0 common.Address, token1 common.Address, fee *big.Int, sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IPoolInitializer.Contract.CreateAndInitializePoolIfNecessary(&_IPoolInitializer.TransactOpts, token0, token1, fee, sqrtPriceX96) -} diff --git a/v1/pkg/contracts/evm/testing/zetainteractormock.sol/zetainteractormock.go b/v1/pkg/contracts/evm/testing/zetainteractormock.sol/zetainteractormock.go deleted file mode 100644 index a5f6a8cd1..000000000 --- a/v1/pkg/contracts/evm/testing/zetainteractormock.sol/zetainteractormock.go +++ /dev/null @@ -1,778 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainteractormock - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesZetaMessage is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaMessage struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte -} - -// ZetaInterfacesZetaRevert is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaRevert struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationAddress []byte - DestinationChainId *big.Int - RemainingZetaValue *big.Int - Message []byte -} - -// ZetaInteractorMockMetaData contains all meta data concerning the ZetaInteractorMock contract. -var ZetaInteractorMockMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaConnectorAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"InvalidCaller\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidDestinationChainId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZetaMessageCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZetaRevertCall\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"connector\",\"outputs\":[{\"internalType\":\"contractZetaConnector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"interactorsByChainId\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaMessage\",\"name\":\"zetaMessage\",\"type\":\"tuple\"}],\"name\":\"onZetaMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaRevert\",\"name\":\"zetaRevert\",\"type\":\"tuple\"}],\"name\":\"onZetaRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"contractAddress\",\"type\":\"bytes\"}],\"name\":\"setInteractorByChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", - Bin: "0x60c06040523480156200001157600080fd5b50604051620011dc380380620011dc833981810160405281019062000037919062000228565b80620000586200004c6200010760201b60201c565b6200010f60201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000c0576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b46608081815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620002ad565b600033905090565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556200014a816200014d60201b620005601760201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620002228162000293565b92915050565b6000602082840312156200024157620002406200028e565b5b6000620002518482850162000211565b91505092915050565b600062000267826200026e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200029e816200025a565b8114620002aa57600080fd5b50565b60805160a05160601c610f02620002da6000396000818161043e0152610626015260005050610f026000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806379ba50971161006657806379ba50971461013157806383f3084f1461013b5780638da5cb5b14610159578063e30c397814610177578063f2fde38b146101955761009e565b80632618143f146100a35780633749c51a146100d35780633ff0693c146100ef5780634fd3f7d71461010b578063715018a614610127575b600080fd5b6100bd60048036038101906100b8919061098d565b6101b1565b6040516100ca9190610ba6565b60405180910390f35b6100ed60048036038101906100e891906108fb565b610251565b005b61010960048036038101906101049190610944565b6102e7565b005b610125600480360381019061012091906109ba565b61036b565b005b61012f61039b565b005b6101396103af565b005b61014361043c565b6040516101509190610bc8565b60405180910390f35b610161610460565b60405161016e9190610b8b565b60405180910390f35b61017f610489565b60405161018c9190610b8b565b60405180910390f35b6101af60048036038101906101aa91906108ce565b6104b3565b005b600260205280600052604060002060009150905080546101d090610d87565b80601f01602080910402602001604051908101604052809291908181526020018280546101fc90610d87565b80156102495780601f1061021e57610100808354040283529160200191610249565b820191906000526020600020905b81548152906001019060200180831161022c57829003601f168201915b505050505081565b8061025a610624565b600260008260200135815260200190815260200160002060405161027e9190610b74565b60405180910390208180600001906102969190610c23565b6040516102a4929190610b5b565b6040518091039020146102e3576040517fb473eb0a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b806102f0610624565b3073ffffffffffffffffffffffffffffffffffffffff1681600001602081019061031a91906108ce565b73ffffffffffffffffffffffffffffffffffffffff1614610367576040517fc03e9c3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6103736106b6565b818160026000868152602001908152602001600020919061039592919061076d565b50505050565b6103a36106b6565b6103ad6000610734565b565b60006103b9610765565b90508073ffffffffffffffffffffffffffffffffffffffff166103da610489565b73ffffffffffffffffffffffffffffffffffffffff1614610430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042790610be3565b60405180910390fd5b61043981610734565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6104bb6106b6565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1661051b610460565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106b457336040517fcbd9d2e00000000000000000000000000000000000000000000000000000000081526004016106ab9190610b8b565b60405180910390fd5b565b6106be610765565b73ffffffffffffffffffffffffffffffffffffffff166106dc610460565b73ffffffffffffffffffffffffffffffffffffffff1614610732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072990610c03565b60405180910390fd5b565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561076281610560565b50565b600033905090565b82805461077990610d87565b90600052602060002090601f01602090048101928261079b57600085556107e2565b82601f106107b457803560ff19168380011785556107e2565b828001600101855582156107e2579182015b828111156107e15782358255916020019190600101906107c6565b5b5090506107ef91906107f3565b5090565b5b8082111561080c5760008160009055506001016107f4565b5090565b60008135905061081f81610e9e565b92915050565b60008083601f84011261083b5761083a610ded565b5b8235905067ffffffffffffffff81111561085857610857610de8565b5b60208301915083600182028301111561087457610873610e01565b5b9250929050565b600060a0828403121561089157610890610df7565b5b81905092915050565b600060c082840312156108b0576108af610df7565b5b81905092915050565b6000813590506108c881610eb5565b92915050565b6000602082840312156108e4576108e3610e10565b5b60006108f284828501610810565b91505092915050565b60006020828403121561091157610910610e10565b5b600082013567ffffffffffffffff81111561092f5761092e610e0b565b5b61093b8482850161087b565b91505092915050565b60006020828403121561095a57610959610e10565b5b600082013567ffffffffffffffff81111561097857610977610e0b565b5b6109848482850161089a565b91505092915050565b6000602082840312156109a3576109a2610e10565b5b60006109b1848285016108b9565b91505092915050565b6000806000604084860312156109d3576109d2610e10565b5b60006109e1868287016108b9565b935050602084013567ffffffffffffffff811115610a0257610a01610e0b565b5b610a0e86828701610825565b92509250509250925092565b610a2381610cd3565b82525050565b6000610a358385610cb7565b9350610a42838584610d45565b82840190509392505050565b6000610a5982610c9b565b610a638185610ca6565b9350610a73818560208601610d54565b610a7c81610e15565b840191505092915050565b60008154610a9481610d87565b610a9e8186610cb7565b94506001821660008114610ab95760018114610aca57610afd565b60ff19831686528186019350610afd565b610ad385610c86565b60005b83811015610af557815481890152600182019150602081019050610ad6565b838801955050505b50505092915050565b610b0f81610d0f565b82525050565b6000610b22602983610cc2565b9150610b2d82610e26565b604082019050919050565b6000610b45602083610cc2565b9150610b5082610e75565b602082019050919050565b6000610b68828486610a29565b91508190509392505050565b6000610b808284610a87565b915081905092915050565b6000602082019050610ba06000830184610a1a565b92915050565b60006020820190508181036000830152610bc08184610a4e565b905092915050565b6000602082019050610bdd6000830184610b06565b92915050565b60006020820190508181036000830152610bfc81610b15565b9050919050565b60006020820190508181036000830152610c1c81610b38565b9050919050565b60008083356001602003843603038112610c4057610c3f610dfc565b5b80840192508235915067ffffffffffffffff821115610c6257610c61610df2565b5b602083019250600182023603831315610c7e57610c7d610e06565b5b509250929050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000610cde82610ce5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610d1a82610d21565b9050919050565b6000610d2c82610d33565b9050919050565b6000610d3e82610ce5565b9050919050565b82818337600083830152505050565b60005b83811015610d72578082015181840152602081019050610d57565b83811115610d81576000848401525b50505050565b60006002820490506001821680610d9f57607f821691505b60208210811415610db357610db2610db9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060008201527f6e6577206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b610ea781610cd3565b8114610eb257600080fd5b50565b610ebe81610d05565b8114610ec957600080fd5b5056fea2646970667358221220639370598d8dcad7cc48e15d248474209bfbec01023d8ed4d055453bab66415464736f6c63430008070033", -} - -// ZetaInteractorMockABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaInteractorMockMetaData.ABI instead. -var ZetaInteractorMockABI = ZetaInteractorMockMetaData.ABI - -// ZetaInteractorMockBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaInteractorMockMetaData.Bin instead. -var ZetaInteractorMockBin = ZetaInteractorMockMetaData.Bin - -// DeployZetaInteractorMock deploys a new Ethereum contract, binding an instance of ZetaInteractorMock to it. -func DeployZetaInteractorMock(auth *bind.TransactOpts, backend bind.ContractBackend, zetaConnectorAddress common.Address) (common.Address, *types.Transaction, *ZetaInteractorMock, error) { - parsed, err := ZetaInteractorMockMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaInteractorMockBin), backend, zetaConnectorAddress) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaInteractorMock{ZetaInteractorMockCaller: ZetaInteractorMockCaller{contract: contract}, ZetaInteractorMockTransactor: ZetaInteractorMockTransactor{contract: contract}, ZetaInteractorMockFilterer: ZetaInteractorMockFilterer{contract: contract}}, nil -} - -// ZetaInteractorMock is an auto generated Go binding around an Ethereum contract. -type ZetaInteractorMock struct { - ZetaInteractorMockCaller // Read-only binding to the contract - ZetaInteractorMockTransactor // Write-only binding to the contract - ZetaInteractorMockFilterer // Log filterer for contract events -} - -// ZetaInteractorMockCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaInteractorMockCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorMockTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaInteractorMockTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorMockFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaInteractorMockFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorMockSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaInteractorMockSession struct { - Contract *ZetaInteractorMock // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInteractorMockCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaInteractorMockCallerSession struct { - Contract *ZetaInteractorMockCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaInteractorMockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaInteractorMockTransactorSession struct { - Contract *ZetaInteractorMockTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInteractorMockRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaInteractorMockRaw struct { - Contract *ZetaInteractorMock // Generic contract binding to access the raw methods on -} - -// ZetaInteractorMockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaInteractorMockCallerRaw struct { - Contract *ZetaInteractorMockCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaInteractorMockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaInteractorMockTransactorRaw struct { - Contract *ZetaInteractorMockTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaInteractorMock creates a new instance of ZetaInteractorMock, bound to a specific deployed contract. -func NewZetaInteractorMock(address common.Address, backend bind.ContractBackend) (*ZetaInteractorMock, error) { - contract, err := bindZetaInteractorMock(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaInteractorMock{ZetaInteractorMockCaller: ZetaInteractorMockCaller{contract: contract}, ZetaInteractorMockTransactor: ZetaInteractorMockTransactor{contract: contract}, ZetaInteractorMockFilterer: ZetaInteractorMockFilterer{contract: contract}}, nil -} - -// NewZetaInteractorMockCaller creates a new read-only instance of ZetaInteractorMock, bound to a specific deployed contract. -func NewZetaInteractorMockCaller(address common.Address, caller bind.ContractCaller) (*ZetaInteractorMockCaller, error) { - contract, err := bindZetaInteractorMock(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaInteractorMockCaller{contract: contract}, nil -} - -// NewZetaInteractorMockTransactor creates a new write-only instance of ZetaInteractorMock, bound to a specific deployed contract. -func NewZetaInteractorMockTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaInteractorMockTransactor, error) { - contract, err := bindZetaInteractorMock(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaInteractorMockTransactor{contract: contract}, nil -} - -// NewZetaInteractorMockFilterer creates a new log filterer instance of ZetaInteractorMock, bound to a specific deployed contract. -func NewZetaInteractorMockFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaInteractorMockFilterer, error) { - contract, err := bindZetaInteractorMock(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaInteractorMockFilterer{contract: contract}, nil -} - -// bindZetaInteractorMock binds a generic wrapper to an already deployed contract. -func bindZetaInteractorMock(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaInteractorMockMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInteractorMock *ZetaInteractorMockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInteractorMock.Contract.ZetaInteractorMockCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInteractorMock *ZetaInteractorMockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.ZetaInteractorMockTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInteractorMock *ZetaInteractorMockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.ZetaInteractorMockTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInteractorMock *ZetaInteractorMockCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInteractorMock.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInteractorMock *ZetaInteractorMockTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInteractorMock *ZetaInteractorMockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.contract.Transact(opts, method, params...) -} - -// Connector is a free data retrieval call binding the contract method 0x83f3084f. -// -// Solidity: function connector() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockCaller) Connector(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaInteractorMock.contract.Call(opts, &out, "connector") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Connector is a free data retrieval call binding the contract method 0x83f3084f. -// -// Solidity: function connector() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockSession) Connector() (common.Address, error) { - return _ZetaInteractorMock.Contract.Connector(&_ZetaInteractorMock.CallOpts) -} - -// Connector is a free data retrieval call binding the contract method 0x83f3084f. -// -// Solidity: function connector() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockCallerSession) Connector() (common.Address, error) { - return _ZetaInteractorMock.Contract.Connector(&_ZetaInteractorMock.CallOpts) -} - -// InteractorsByChainId is a free data retrieval call binding the contract method 0x2618143f. -// -// Solidity: function interactorsByChainId(uint256 ) view returns(bytes) -func (_ZetaInteractorMock *ZetaInteractorMockCaller) InteractorsByChainId(opts *bind.CallOpts, arg0 *big.Int) ([]byte, error) { - var out []interface{} - err := _ZetaInteractorMock.contract.Call(opts, &out, "interactorsByChainId", arg0) - - if err != nil { - return *new([]byte), err - } - - out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte) - - return out0, err - -} - -// InteractorsByChainId is a free data retrieval call binding the contract method 0x2618143f. -// -// Solidity: function interactorsByChainId(uint256 ) view returns(bytes) -func (_ZetaInteractorMock *ZetaInteractorMockSession) InteractorsByChainId(arg0 *big.Int) ([]byte, error) { - return _ZetaInteractorMock.Contract.InteractorsByChainId(&_ZetaInteractorMock.CallOpts, arg0) -} - -// InteractorsByChainId is a free data retrieval call binding the contract method 0x2618143f. -// -// Solidity: function interactorsByChainId(uint256 ) view returns(bytes) -func (_ZetaInteractorMock *ZetaInteractorMockCallerSession) InteractorsByChainId(arg0 *big.Int) ([]byte, error) { - return _ZetaInteractorMock.Contract.InteractorsByChainId(&_ZetaInteractorMock.CallOpts, arg0) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaInteractorMock.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockSession) Owner() (common.Address, error) { - return _ZetaInteractorMock.Contract.Owner(&_ZetaInteractorMock.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockCallerSession) Owner() (common.Address, error) { - return _ZetaInteractorMock.Contract.Owner(&_ZetaInteractorMock.CallOpts) -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaInteractorMock.contract.Call(opts, &out, "pendingOwner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockSession) PendingOwner() (common.Address, error) { - return _ZetaInteractorMock.Contract.PendingOwner(&_ZetaInteractorMock.CallOpts) -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_ZetaInteractorMock *ZetaInteractorMockCallerSession) PendingOwner() (common.Address, error) { - return _ZetaInteractorMock.Contract.PendingOwner(&_ZetaInteractorMock.CallOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractorMock.contract.Transact(opts, "acceptOwnership") -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_ZetaInteractorMock *ZetaInteractorMockSession) AcceptOwnership() (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.AcceptOwnership(&_ZetaInteractorMock.TransactOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.AcceptOwnership(&_ZetaInteractorMock.TransactOpts) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactor) OnZetaMessage(opts *bind.TransactOpts, zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaInteractorMock.contract.Transact(opts, "onZetaMessage", zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaInteractorMock *ZetaInteractorMockSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.OnZetaMessage(&_ZetaInteractorMock.TransactOpts, zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactorSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.OnZetaMessage(&_ZetaInteractorMock.TransactOpts, zetaMessage) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactor) OnZetaRevert(opts *bind.TransactOpts, zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaInteractorMock.contract.Transact(opts, "onZetaRevert", zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaInteractorMock *ZetaInteractorMockSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.OnZetaRevert(&_ZetaInteractorMock.TransactOpts, zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactorSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.OnZetaRevert(&_ZetaInteractorMock.TransactOpts, zetaRevert) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractorMock.contract.Transact(opts, "renounceOwnership") -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZetaInteractorMock *ZetaInteractorMockSession) RenounceOwnership() (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.RenounceOwnership(&_ZetaInteractorMock.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.RenounceOwnership(&_ZetaInteractorMock.TransactOpts) -} - -// SetInteractorByChainId is a paid mutator transaction binding the contract method 0x4fd3f7d7. -// -// Solidity: function setInteractorByChainId(uint256 destinationChainId, bytes contractAddress) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactor) SetInteractorByChainId(opts *bind.TransactOpts, destinationChainId *big.Int, contractAddress []byte) (*types.Transaction, error) { - return _ZetaInteractorMock.contract.Transact(opts, "setInteractorByChainId", destinationChainId, contractAddress) -} - -// SetInteractorByChainId is a paid mutator transaction binding the contract method 0x4fd3f7d7. -// -// Solidity: function setInteractorByChainId(uint256 destinationChainId, bytes contractAddress) returns() -func (_ZetaInteractorMock *ZetaInteractorMockSession) SetInteractorByChainId(destinationChainId *big.Int, contractAddress []byte) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.SetInteractorByChainId(&_ZetaInteractorMock.TransactOpts, destinationChainId, contractAddress) -} - -// SetInteractorByChainId is a paid mutator transaction binding the contract method 0x4fd3f7d7. -// -// Solidity: function setInteractorByChainId(uint256 destinationChainId, bytes contractAddress) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactorSession) SetInteractorByChainId(destinationChainId *big.Int, contractAddress []byte) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.SetInteractorByChainId(&_ZetaInteractorMock.TransactOpts, destinationChainId, contractAddress) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _ZetaInteractorMock.contract.Transact(opts, "transferOwnership", newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZetaInteractorMock *ZetaInteractorMockSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.TransferOwnership(&_ZetaInteractorMock.TransactOpts, newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZetaInteractorMock *ZetaInteractorMockTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZetaInteractorMock.Contract.TransferOwnership(&_ZetaInteractorMock.TransactOpts, newOwner) -} - -// ZetaInteractorMockOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the ZetaInteractorMock contract. -type ZetaInteractorMockOwnershipTransferStartedIterator struct { - Event *ZetaInteractorMockOwnershipTransferStarted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaInteractorMockOwnershipTransferStartedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorMockOwnershipTransferStarted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorMockOwnershipTransferStarted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaInteractorMockOwnershipTransferStartedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaInteractorMockOwnershipTransferStartedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaInteractorMockOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the ZetaInteractorMock contract. -type ZetaInteractorMockOwnershipTransferStarted struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractorMock *ZetaInteractorMockFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ZetaInteractorMockOwnershipTransferStartedIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractorMock.contract.FilterLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &ZetaInteractorMockOwnershipTransferStartedIterator{contract: _ZetaInteractorMock.contract, event: "OwnershipTransferStarted", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractorMock *ZetaInteractorMockFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *ZetaInteractorMockOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractorMock.contract.WatchLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaInteractorMockOwnershipTransferStarted) - if err := _ZetaInteractorMock.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractorMock *ZetaInteractorMockFilterer) ParseOwnershipTransferStarted(log types.Log) (*ZetaInteractorMockOwnershipTransferStarted, error) { - event := new(ZetaInteractorMockOwnershipTransferStarted) - if err := _ZetaInteractorMock.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaInteractorMockOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ZetaInteractorMock contract. -type ZetaInteractorMockOwnershipTransferredIterator struct { - Event *ZetaInteractorMockOwnershipTransferred // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaInteractorMockOwnershipTransferredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorMockOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorMockOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaInteractorMockOwnershipTransferredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaInteractorMockOwnershipTransferredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaInteractorMockOwnershipTransferred represents a OwnershipTransferred event raised by the ZetaInteractorMock contract. -type ZetaInteractorMockOwnershipTransferred struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractorMock *ZetaInteractorMockFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ZetaInteractorMockOwnershipTransferredIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractorMock.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &ZetaInteractorMockOwnershipTransferredIterator{contract: _ZetaInteractorMock.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractorMock *ZetaInteractorMockFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ZetaInteractorMockOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractorMock.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaInteractorMockOwnershipTransferred) - if err := _ZetaInteractorMock.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractorMock *ZetaInteractorMockFilterer) ParseOwnershipTransferred(log types.Log) (*ZetaInteractorMockOwnershipTransferred, error) { - event := new(ZetaInteractorMockOwnershipTransferred) - if err := _ZetaInteractorMock.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/testing/zetareceivermock.sol/zetareceivermock.go b/v1/pkg/contracts/evm/testing/zetareceivermock.sol/zetareceivermock.go deleted file mode 100644 index 0007dc5a0..000000000 --- a/v1/pkg/contracts/evm/testing/zetareceivermock.sol/zetareceivermock.go +++ /dev/null @@ -1,532 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetareceivermock - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesZetaMessage is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaMessage struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte -} - -// ZetaInterfacesZetaRevert is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaRevert struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationAddress []byte - DestinationChainId *big.Int - RemainingZetaValue *big.Int - Message []byte -} - -// ZetaReceiverMockMetaData contains all meta data concerning the ZetaReceiverMock contract. -var ZetaReceiverMockMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"}],\"name\":\"MockOnZetaMessage\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"}],\"name\":\"MockOnZetaRevert\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaMessage\",\"name\":\"zetaMessage\",\"type\":\"tuple\"}],\"name\":\"onZetaMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaRevert\",\"name\":\"zetaRevert\",\"type\":\"tuple\"}],\"name\":\"onZetaRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", - Bin: "0x608060405234801561001057600080fd5b506102d5806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633749c51a1461003b5780633ff0693c14610057575b600080fd5b6100556004803603810190610050919061018b565b610073565b005b610071600480360381019061006c91906101d4565b6100bf565b005b7f72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e8160400160208101906100a7919061015e565b6040516100b4919061022c565b60405180910390a150565b7f53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc48160000160208101906100f3919061015e565b604051610100919061022c565b60405180910390a150565b60008135905061011a81610288565b92915050565b600060a0828403121561013657610135610279565b5b81905092915050565b600060c0828403121561015557610154610279565b5b81905092915050565b60006020828403121561017457610173610283565b5b60006101828482850161010b565b91505092915050565b6000602082840312156101a1576101a0610283565b5b600082013567ffffffffffffffff8111156101bf576101be61027e565b5b6101cb84828501610120565b91505092915050565b6000602082840312156101ea576101e9610283565b5b600082013567ffffffffffffffff8111156102085761020761027e565b5b6102148482850161013f565b91505092915050565b61022681610247565b82525050565b6000602082019050610241600083018461021d565b92915050565b600061025282610259565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b600080fd5b600080fd5b61029181610247565b811461029c57600080fd5b5056fea26469706673582212206d3535c1f777f93a6d105378513b52ef987ededd64b301e5cc1914be4e5ba14564736f6c63430008070033", -} - -// ZetaReceiverMockABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaReceiverMockMetaData.ABI instead. -var ZetaReceiverMockABI = ZetaReceiverMockMetaData.ABI - -// ZetaReceiverMockBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaReceiverMockMetaData.Bin instead. -var ZetaReceiverMockBin = ZetaReceiverMockMetaData.Bin - -// DeployZetaReceiverMock deploys a new Ethereum contract, binding an instance of ZetaReceiverMock to it. -func DeployZetaReceiverMock(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ZetaReceiverMock, error) { - parsed, err := ZetaReceiverMockMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaReceiverMockBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaReceiverMock{ZetaReceiverMockCaller: ZetaReceiverMockCaller{contract: contract}, ZetaReceiverMockTransactor: ZetaReceiverMockTransactor{contract: contract}, ZetaReceiverMockFilterer: ZetaReceiverMockFilterer{contract: contract}}, nil -} - -// ZetaReceiverMock is an auto generated Go binding around an Ethereum contract. -type ZetaReceiverMock struct { - ZetaReceiverMockCaller // Read-only binding to the contract - ZetaReceiverMockTransactor // Write-only binding to the contract - ZetaReceiverMockFilterer // Log filterer for contract events -} - -// ZetaReceiverMockCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaReceiverMockCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverMockTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaReceiverMockTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverMockFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaReceiverMockFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverMockSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaReceiverMockSession struct { - Contract *ZetaReceiverMock // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaReceiverMockCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaReceiverMockCallerSession struct { - Contract *ZetaReceiverMockCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaReceiverMockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaReceiverMockTransactorSession struct { - Contract *ZetaReceiverMockTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaReceiverMockRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaReceiverMockRaw struct { - Contract *ZetaReceiverMock // Generic contract binding to access the raw methods on -} - -// ZetaReceiverMockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaReceiverMockCallerRaw struct { - Contract *ZetaReceiverMockCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaReceiverMockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaReceiverMockTransactorRaw struct { - Contract *ZetaReceiverMockTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaReceiverMock creates a new instance of ZetaReceiverMock, bound to a specific deployed contract. -func NewZetaReceiverMock(address common.Address, backend bind.ContractBackend) (*ZetaReceiverMock, error) { - contract, err := bindZetaReceiverMock(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaReceiverMock{ZetaReceiverMockCaller: ZetaReceiverMockCaller{contract: contract}, ZetaReceiverMockTransactor: ZetaReceiverMockTransactor{contract: contract}, ZetaReceiverMockFilterer: ZetaReceiverMockFilterer{contract: contract}}, nil -} - -// NewZetaReceiverMockCaller creates a new read-only instance of ZetaReceiverMock, bound to a specific deployed contract. -func NewZetaReceiverMockCaller(address common.Address, caller bind.ContractCaller) (*ZetaReceiverMockCaller, error) { - contract, err := bindZetaReceiverMock(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaReceiverMockCaller{contract: contract}, nil -} - -// NewZetaReceiverMockTransactor creates a new write-only instance of ZetaReceiverMock, bound to a specific deployed contract. -func NewZetaReceiverMockTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaReceiverMockTransactor, error) { - contract, err := bindZetaReceiverMock(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaReceiverMockTransactor{contract: contract}, nil -} - -// NewZetaReceiverMockFilterer creates a new log filterer instance of ZetaReceiverMock, bound to a specific deployed contract. -func NewZetaReceiverMockFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaReceiverMockFilterer, error) { - contract, err := bindZetaReceiverMock(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaReceiverMockFilterer{contract: contract}, nil -} - -// bindZetaReceiverMock binds a generic wrapper to an already deployed contract. -func bindZetaReceiverMock(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaReceiverMockMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaReceiverMock *ZetaReceiverMockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaReceiverMock.Contract.ZetaReceiverMockCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaReceiverMock *ZetaReceiverMockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.ZetaReceiverMockTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaReceiverMock *ZetaReceiverMockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.ZetaReceiverMockTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaReceiverMock *ZetaReceiverMockCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaReceiverMock.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaReceiverMock *ZetaReceiverMockTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaReceiverMock *ZetaReceiverMockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.contract.Transact(opts, method, params...) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiverMock *ZetaReceiverMockTransactor) OnZetaMessage(opts *bind.TransactOpts, zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiverMock.contract.Transact(opts, "onZetaMessage", zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiverMock *ZetaReceiverMockSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.OnZetaMessage(&_ZetaReceiverMock.TransactOpts, zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiverMock *ZetaReceiverMockTransactorSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.OnZetaMessage(&_ZetaReceiverMock.TransactOpts, zetaMessage) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiverMock *ZetaReceiverMockTransactor) OnZetaRevert(opts *bind.TransactOpts, zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiverMock.contract.Transact(opts, "onZetaRevert", zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiverMock *ZetaReceiverMockSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.OnZetaRevert(&_ZetaReceiverMock.TransactOpts, zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiverMock *ZetaReceiverMockTransactorSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiverMock.Contract.OnZetaRevert(&_ZetaReceiverMock.TransactOpts, zetaRevert) -} - -// ZetaReceiverMockMockOnZetaMessageIterator is returned from FilterMockOnZetaMessage and is used to iterate over the raw logs and unpacked data for MockOnZetaMessage events raised by the ZetaReceiverMock contract. -type ZetaReceiverMockMockOnZetaMessageIterator struct { - Event *ZetaReceiverMockMockOnZetaMessage // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaReceiverMockMockOnZetaMessageIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaReceiverMockMockOnZetaMessage) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaReceiverMockMockOnZetaMessage) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaReceiverMockMockOnZetaMessageIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaReceiverMockMockOnZetaMessageIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaReceiverMockMockOnZetaMessage represents a MockOnZetaMessage event raised by the ZetaReceiverMock contract. -type ZetaReceiverMockMockOnZetaMessage struct { - DestinationAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMockOnZetaMessage is a free log retrieval operation binding the contract event 0x72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e. -// -// Solidity: event MockOnZetaMessage(address destinationAddress) -func (_ZetaReceiverMock *ZetaReceiverMockFilterer) FilterMockOnZetaMessage(opts *bind.FilterOpts) (*ZetaReceiverMockMockOnZetaMessageIterator, error) { - - logs, sub, err := _ZetaReceiverMock.contract.FilterLogs(opts, "MockOnZetaMessage") - if err != nil { - return nil, err - } - return &ZetaReceiverMockMockOnZetaMessageIterator{contract: _ZetaReceiverMock.contract, event: "MockOnZetaMessage", logs: logs, sub: sub}, nil -} - -// WatchMockOnZetaMessage is a free log subscription operation binding the contract event 0x72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e. -// -// Solidity: event MockOnZetaMessage(address destinationAddress) -func (_ZetaReceiverMock *ZetaReceiverMockFilterer) WatchMockOnZetaMessage(opts *bind.WatchOpts, sink chan<- *ZetaReceiverMockMockOnZetaMessage) (event.Subscription, error) { - - logs, sub, err := _ZetaReceiverMock.contract.WatchLogs(opts, "MockOnZetaMessage") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaReceiverMockMockOnZetaMessage) - if err := _ZetaReceiverMock.contract.UnpackLog(event, "MockOnZetaMessage", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMockOnZetaMessage is a log parse operation binding the contract event 0x72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e. -// -// Solidity: event MockOnZetaMessage(address destinationAddress) -func (_ZetaReceiverMock *ZetaReceiverMockFilterer) ParseMockOnZetaMessage(log types.Log) (*ZetaReceiverMockMockOnZetaMessage, error) { - event := new(ZetaReceiverMockMockOnZetaMessage) - if err := _ZetaReceiverMock.contract.UnpackLog(event, "MockOnZetaMessage", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaReceiverMockMockOnZetaRevertIterator is returned from FilterMockOnZetaRevert and is used to iterate over the raw logs and unpacked data for MockOnZetaRevert events raised by the ZetaReceiverMock contract. -type ZetaReceiverMockMockOnZetaRevertIterator struct { - Event *ZetaReceiverMockMockOnZetaRevert // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaReceiverMockMockOnZetaRevertIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaReceiverMockMockOnZetaRevert) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaReceiverMockMockOnZetaRevert) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaReceiverMockMockOnZetaRevertIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaReceiverMockMockOnZetaRevertIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaReceiverMockMockOnZetaRevert represents a MockOnZetaRevert event raised by the ZetaReceiverMock contract. -type ZetaReceiverMockMockOnZetaRevert struct { - ZetaTxSenderAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMockOnZetaRevert is a free log retrieval operation binding the contract event 0x53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc4. -// -// Solidity: event MockOnZetaRevert(address zetaTxSenderAddress) -func (_ZetaReceiverMock *ZetaReceiverMockFilterer) FilterMockOnZetaRevert(opts *bind.FilterOpts) (*ZetaReceiverMockMockOnZetaRevertIterator, error) { - - logs, sub, err := _ZetaReceiverMock.contract.FilterLogs(opts, "MockOnZetaRevert") - if err != nil { - return nil, err - } - return &ZetaReceiverMockMockOnZetaRevertIterator{contract: _ZetaReceiverMock.contract, event: "MockOnZetaRevert", logs: logs, sub: sub}, nil -} - -// WatchMockOnZetaRevert is a free log subscription operation binding the contract event 0x53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc4. -// -// Solidity: event MockOnZetaRevert(address zetaTxSenderAddress) -func (_ZetaReceiverMock *ZetaReceiverMockFilterer) WatchMockOnZetaRevert(opts *bind.WatchOpts, sink chan<- *ZetaReceiverMockMockOnZetaRevert) (event.Subscription, error) { - - logs, sub, err := _ZetaReceiverMock.contract.WatchLogs(opts, "MockOnZetaRevert") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaReceiverMockMockOnZetaRevert) - if err := _ZetaReceiverMock.contract.UnpackLog(event, "MockOnZetaRevert", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMockOnZetaRevert is a log parse operation binding the contract event 0x53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc4. -// -// Solidity: event MockOnZetaRevert(address zetaTxSenderAddress) -func (_ZetaReceiverMock *ZetaReceiverMockFilterer) ParseMockOnZetaRevert(log types.Log) (*ZetaReceiverMockMockOnZetaRevert, error) { - event := new(ZetaReceiverMockMockOnZetaRevert) - if err := _ZetaReceiverMock.contract.UnpackLog(event, "MockOnZetaRevert", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/immutablecreate2factory.go b/v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/immutablecreate2factory.go deleted file mode 100644 index f1140f799..000000000 --- a/v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/immutablecreate2factory.go +++ /dev/null @@ -1,338 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package immutablecreate2factory - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ImmutableCreate2FactoryMetaData contains all meta data concerning the ImmutableCreate2Factory contract. -var ImmutableCreate2FactoryMetaData = &bind.MetaData{ - ABI: "[{\"constant\":true,\"inputs\":[{\"name\":\"deploymentAddress\",\"type\":\"address\"}],\"name\":\"hasBeenDeployed\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"salt\",\"type\":\"bytes32\"},{\"name\":\"initializationCode\",\"type\":\"bytes\"}],\"name\":\"safeCreate2AndTransfer\",\"outputs\":[{\"name\":\"deploymentAddress\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"salt\",\"type\":\"bytes32\"},{\"name\":\"initializationCode\",\"type\":\"bytes\"}],\"name\":\"safeCreate2\",\"outputs\":[{\"name\":\"deploymentAddress\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"salt\",\"type\":\"bytes32\"},{\"name\":\"initCode\",\"type\":\"bytes\"}],\"name\":\"findCreate2Address\",\"outputs\":[{\"name\":\"deploymentAddress\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"salt\",\"type\":\"bytes32\"},{\"name\":\"initCodeHash\",\"type\":\"bytes32\"}],\"name\":\"findCreate2AddressViaHash\",\"outputs\":[{\"name\":\"deploymentAddress\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x608060405234801561001057600080fd5b50610c54806100206000396000f3fe60806040526004361061004a5760003560e01c806308508b8f1461004f57806329346003146100b857806364e030871461017b57806385cf97ab14610280578063a49a7c9014610350575b600080fd5b34801561005b57600080fd5b5061009e6004803603602081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103d5565b604051808215151515815260200191505060405180910390f35b610139600480360360408110156100ce57600080fd5b8101908080359060200190929190803590602001906401000000008111156100f557600080fd5b82018360208201111561010757600080fd5b8035906020019184600183028401116401000000008311171561012957600080fd5b909192939192939050505061042a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61023e6004803603604081101561019157600080fd5b8101908080359060200190929190803590602001906401000000008111156101b857600080fd5b8201836020820111156101ca57600080fd5b803590602001918460018302840111640100000000831117156101ec57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506105cf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561028c57600080fd5b5061030e600480360360408110156102a357600080fd5b8101908080359060200190929190803590602001906401000000008111156102ca57600080fd5b8201836020820111156102dc57600080fd5b803590602001918460018302840111640100000000831117156102fe57600080fd5b9091929391929390505050610698565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561035c57600080fd5b506103936004803603604081101561037357600080fd5b8101908080359060200190929190803590602001909291905050506107be565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000833373ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff16148061048b5750600060601b6bffffffffffffffffffffffff1916816bffffffffffffffffffffffff1916145b6104e0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526045815260200180610b956045913960600191505060405180910390fd5b61052e8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506108b4565b91508173ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156105af57600080fd5b505af11580156105c3573d6000803e3d6000fd5b50505050509392505050565b6000823373ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff1614806106305750600060601b6bffffffffffffffffffffffff1916816bffffffffffffffffffffffff1916145b610685576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526045815260200180610b956045913960600191505060405180910390fd5b61068f84846108b4565b91505092915050565b6000308484846040516020018083838082843780830192505050925050506040516020818303038152906040528051906020012060405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c90506000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156107b657600090506107b7565b5b9392505050565b600030838360405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c90506000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156108ad57600090506108ae565b5b92915050565b6000606082905060003085836040516020018082805190602001908083835b602083106108f657805182526020820191506020810190506020830392506108d3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012060405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c90506000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610a63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f815260200180610b56603f913960400191505060405180910390fd5b81602001825186818334f5945050508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526046815260200180610bda6046913960600191505060405180910390fd5b60016000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050509291505056fe496e76616c696420636f6e7472616374206372656174696f6e202d20636f6e74726163742068617320616c7265616479206265656e206465706c6f7965642e496e76616c69642073616c74202d206669727374203230206279746573206f66207468652073616c74206d757374206d617463682063616c6c696e6720616464726573732e4661696c656420746f206465706c6f7920636f6e7472616374207573696e672070726f76696465642073616c7420616e6420696e697469616c697a6174696f6e20636f64652ea265627a7a72305820df6f8cf8f81946679a805d41e12170a28006ccfb64bce758c74108440cc9337b64736f6c634300050a0032", -} - -// ImmutableCreate2FactoryABI is the input ABI used to generate the binding from. -// Deprecated: Use ImmutableCreate2FactoryMetaData.ABI instead. -var ImmutableCreate2FactoryABI = ImmutableCreate2FactoryMetaData.ABI - -// ImmutableCreate2FactoryBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ImmutableCreate2FactoryMetaData.Bin instead. -var ImmutableCreate2FactoryBin = ImmutableCreate2FactoryMetaData.Bin - -// DeployImmutableCreate2Factory deploys a new Ethereum contract, binding an instance of ImmutableCreate2Factory to it. -func DeployImmutableCreate2Factory(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ImmutableCreate2Factory, error) { - parsed, err := ImmutableCreate2FactoryMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ImmutableCreate2FactoryBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ImmutableCreate2Factory{ImmutableCreate2FactoryCaller: ImmutableCreate2FactoryCaller{contract: contract}, ImmutableCreate2FactoryTransactor: ImmutableCreate2FactoryTransactor{contract: contract}, ImmutableCreate2FactoryFilterer: ImmutableCreate2FactoryFilterer{contract: contract}}, nil -} - -// ImmutableCreate2Factory is an auto generated Go binding around an Ethereum contract. -type ImmutableCreate2Factory struct { - ImmutableCreate2FactoryCaller // Read-only binding to the contract - ImmutableCreate2FactoryTransactor // Write-only binding to the contract - ImmutableCreate2FactoryFilterer // Log filterer for contract events -} - -// ImmutableCreate2FactoryCaller is an auto generated read-only Go binding around an Ethereum contract. -type ImmutableCreate2FactoryCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ImmutableCreate2FactoryTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ImmutableCreate2FactoryTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ImmutableCreate2FactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ImmutableCreate2FactoryFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ImmutableCreate2FactorySession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ImmutableCreate2FactorySession struct { - Contract *ImmutableCreate2Factory // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ImmutableCreate2FactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ImmutableCreate2FactoryCallerSession struct { - Contract *ImmutableCreate2FactoryCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ImmutableCreate2FactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ImmutableCreate2FactoryTransactorSession struct { - Contract *ImmutableCreate2FactoryTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ImmutableCreate2FactoryRaw is an auto generated low-level Go binding around an Ethereum contract. -type ImmutableCreate2FactoryRaw struct { - Contract *ImmutableCreate2Factory // Generic contract binding to access the raw methods on -} - -// ImmutableCreate2FactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ImmutableCreate2FactoryCallerRaw struct { - Contract *ImmutableCreate2FactoryCaller // Generic read-only contract binding to access the raw methods on -} - -// ImmutableCreate2FactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ImmutableCreate2FactoryTransactorRaw struct { - Contract *ImmutableCreate2FactoryTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewImmutableCreate2Factory creates a new instance of ImmutableCreate2Factory, bound to a specific deployed contract. -func NewImmutableCreate2Factory(address common.Address, backend bind.ContractBackend) (*ImmutableCreate2Factory, error) { - contract, err := bindImmutableCreate2Factory(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ImmutableCreate2Factory{ImmutableCreate2FactoryCaller: ImmutableCreate2FactoryCaller{contract: contract}, ImmutableCreate2FactoryTransactor: ImmutableCreate2FactoryTransactor{contract: contract}, ImmutableCreate2FactoryFilterer: ImmutableCreate2FactoryFilterer{contract: contract}}, nil -} - -// NewImmutableCreate2FactoryCaller creates a new read-only instance of ImmutableCreate2Factory, bound to a specific deployed contract. -func NewImmutableCreate2FactoryCaller(address common.Address, caller bind.ContractCaller) (*ImmutableCreate2FactoryCaller, error) { - contract, err := bindImmutableCreate2Factory(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ImmutableCreate2FactoryCaller{contract: contract}, nil -} - -// NewImmutableCreate2FactoryTransactor creates a new write-only instance of ImmutableCreate2Factory, bound to a specific deployed contract. -func NewImmutableCreate2FactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*ImmutableCreate2FactoryTransactor, error) { - contract, err := bindImmutableCreate2Factory(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ImmutableCreate2FactoryTransactor{contract: contract}, nil -} - -// NewImmutableCreate2FactoryFilterer creates a new log filterer instance of ImmutableCreate2Factory, bound to a specific deployed contract. -func NewImmutableCreate2FactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*ImmutableCreate2FactoryFilterer, error) { - contract, err := bindImmutableCreate2Factory(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ImmutableCreate2FactoryFilterer{contract: contract}, nil -} - -// bindImmutableCreate2Factory binds a generic wrapper to an already deployed contract. -func bindImmutableCreate2Factory(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ImmutableCreate2FactoryMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ImmutableCreate2Factory.Contract.ImmutableCreate2FactoryCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.ImmutableCreate2FactoryTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.ImmutableCreate2FactoryTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ImmutableCreate2Factory.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.contract.Transact(opts, method, params...) -} - -// FindCreate2Address is a free data retrieval call binding the contract method 0x85cf97ab. -// -// Solidity: function findCreate2Address(bytes32 salt, bytes initCode) view returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryCaller) FindCreate2Address(opts *bind.CallOpts, salt [32]byte, initCode []byte) (common.Address, error) { - var out []interface{} - err := _ImmutableCreate2Factory.contract.Call(opts, &out, "findCreate2Address", salt, initCode) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FindCreate2Address is a free data retrieval call binding the contract method 0x85cf97ab. -// -// Solidity: function findCreate2Address(bytes32 salt, bytes initCode) view returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactorySession) FindCreate2Address(salt [32]byte, initCode []byte) (common.Address, error) { - return _ImmutableCreate2Factory.Contract.FindCreate2Address(&_ImmutableCreate2Factory.CallOpts, salt, initCode) -} - -// FindCreate2Address is a free data retrieval call binding the contract method 0x85cf97ab. -// -// Solidity: function findCreate2Address(bytes32 salt, bytes initCode) view returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryCallerSession) FindCreate2Address(salt [32]byte, initCode []byte) (common.Address, error) { - return _ImmutableCreate2Factory.Contract.FindCreate2Address(&_ImmutableCreate2Factory.CallOpts, salt, initCode) -} - -// FindCreate2AddressViaHash is a free data retrieval call binding the contract method 0xa49a7c90. -// -// Solidity: function findCreate2AddressViaHash(bytes32 salt, bytes32 initCodeHash) view returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryCaller) FindCreate2AddressViaHash(opts *bind.CallOpts, salt [32]byte, initCodeHash [32]byte) (common.Address, error) { - var out []interface{} - err := _ImmutableCreate2Factory.contract.Call(opts, &out, "findCreate2AddressViaHash", salt, initCodeHash) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FindCreate2AddressViaHash is a free data retrieval call binding the contract method 0xa49a7c90. -// -// Solidity: function findCreate2AddressViaHash(bytes32 salt, bytes32 initCodeHash) view returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactorySession) FindCreate2AddressViaHash(salt [32]byte, initCodeHash [32]byte) (common.Address, error) { - return _ImmutableCreate2Factory.Contract.FindCreate2AddressViaHash(&_ImmutableCreate2Factory.CallOpts, salt, initCodeHash) -} - -// FindCreate2AddressViaHash is a free data retrieval call binding the contract method 0xa49a7c90. -// -// Solidity: function findCreate2AddressViaHash(bytes32 salt, bytes32 initCodeHash) view returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryCallerSession) FindCreate2AddressViaHash(salt [32]byte, initCodeHash [32]byte) (common.Address, error) { - return _ImmutableCreate2Factory.Contract.FindCreate2AddressViaHash(&_ImmutableCreate2Factory.CallOpts, salt, initCodeHash) -} - -// HasBeenDeployed is a free data retrieval call binding the contract method 0x08508b8f. -// -// Solidity: function hasBeenDeployed(address deploymentAddress) view returns(bool) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryCaller) HasBeenDeployed(opts *bind.CallOpts, deploymentAddress common.Address) (bool, error) { - var out []interface{} - err := _ImmutableCreate2Factory.contract.Call(opts, &out, "hasBeenDeployed", deploymentAddress) - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasBeenDeployed is a free data retrieval call binding the contract method 0x08508b8f. -// -// Solidity: function hasBeenDeployed(address deploymentAddress) view returns(bool) -func (_ImmutableCreate2Factory *ImmutableCreate2FactorySession) HasBeenDeployed(deploymentAddress common.Address) (bool, error) { - return _ImmutableCreate2Factory.Contract.HasBeenDeployed(&_ImmutableCreate2Factory.CallOpts, deploymentAddress) -} - -// HasBeenDeployed is a free data retrieval call binding the contract method 0x08508b8f. -// -// Solidity: function hasBeenDeployed(address deploymentAddress) view returns(bool) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryCallerSession) HasBeenDeployed(deploymentAddress common.Address) (bool, error) { - return _ImmutableCreate2Factory.Contract.HasBeenDeployed(&_ImmutableCreate2Factory.CallOpts, deploymentAddress) -} - -// SafeCreate2 is a paid mutator transaction binding the contract method 0x64e03087. -// -// Solidity: function safeCreate2(bytes32 salt, bytes initializationCode) payable returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryTransactor) SafeCreate2(opts *bind.TransactOpts, salt [32]byte, initializationCode []byte) (*types.Transaction, error) { - return _ImmutableCreate2Factory.contract.Transact(opts, "safeCreate2", salt, initializationCode) -} - -// SafeCreate2 is a paid mutator transaction binding the contract method 0x64e03087. -// -// Solidity: function safeCreate2(bytes32 salt, bytes initializationCode) payable returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactorySession) SafeCreate2(salt [32]byte, initializationCode []byte) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.SafeCreate2(&_ImmutableCreate2Factory.TransactOpts, salt, initializationCode) -} - -// SafeCreate2 is a paid mutator transaction binding the contract method 0x64e03087. -// -// Solidity: function safeCreate2(bytes32 salt, bytes initializationCode) payable returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryTransactorSession) SafeCreate2(salt [32]byte, initializationCode []byte) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.SafeCreate2(&_ImmutableCreate2Factory.TransactOpts, salt, initializationCode) -} - -// SafeCreate2AndTransfer is a paid mutator transaction binding the contract method 0x29346003. -// -// Solidity: function safeCreate2AndTransfer(bytes32 salt, bytes initializationCode) payable returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryTransactor) SafeCreate2AndTransfer(opts *bind.TransactOpts, salt [32]byte, initializationCode []byte) (*types.Transaction, error) { - return _ImmutableCreate2Factory.contract.Transact(opts, "safeCreate2AndTransfer", salt, initializationCode) -} - -// SafeCreate2AndTransfer is a paid mutator transaction binding the contract method 0x29346003. -// -// Solidity: function safeCreate2AndTransfer(bytes32 salt, bytes initializationCode) payable returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactorySession) SafeCreate2AndTransfer(salt [32]byte, initializationCode []byte) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.SafeCreate2AndTransfer(&_ImmutableCreate2Factory.TransactOpts, salt, initializationCode) -} - -// SafeCreate2AndTransfer is a paid mutator transaction binding the contract method 0x29346003. -// -// Solidity: function safeCreate2AndTransfer(bytes32 salt, bytes initializationCode) payable returns(address deploymentAddress) -func (_ImmutableCreate2Factory *ImmutableCreate2FactoryTransactorSession) SafeCreate2AndTransfer(salt [32]byte, initializationCode []byte) (*types.Transaction, error) { - return _ImmutableCreate2Factory.Contract.SafeCreate2AndTransfer(&_ImmutableCreate2Factory.TransactOpts, salt, initializationCode) -} diff --git a/v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/ownable.go b/v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/ownable.go deleted file mode 100644 index 5b66bb1b3..000000000 --- a/v1/pkg/contracts/evm/tools/immutablecreate2factory.sol/ownable.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package immutablecreate2factory - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// OwnableMetaData contains all meta data concerning the Ownable contract. -var OwnableMetaData = &bind.MetaData{ - ABI: "[{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// OwnableABI is the input ABI used to generate the binding from. -// Deprecated: Use OwnableMetaData.ABI instead. -var OwnableABI = OwnableMetaData.ABI - -// Ownable is an auto generated Go binding around an Ethereum contract. -type Ownable struct { - OwnableCaller // Read-only binding to the contract - OwnableTransactor // Write-only binding to the contract - OwnableFilterer // Log filterer for contract events -} - -// OwnableCaller is an auto generated read-only Go binding around an Ethereum contract. -type OwnableCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// OwnableTransactor is an auto generated write-only Go binding around an Ethereum contract. -type OwnableTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// OwnableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type OwnableFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// OwnableSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type OwnableSession struct { - Contract *Ownable // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// OwnableCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type OwnableCallerSession struct { - Contract *OwnableCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// OwnableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type OwnableTransactorSession struct { - Contract *OwnableTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// OwnableRaw is an auto generated low-level Go binding around an Ethereum contract. -type OwnableRaw struct { - Contract *Ownable // Generic contract binding to access the raw methods on -} - -// OwnableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type OwnableCallerRaw struct { - Contract *OwnableCaller // Generic read-only contract binding to access the raw methods on -} - -// OwnableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type OwnableTransactorRaw struct { - Contract *OwnableTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewOwnable creates a new instance of Ownable, bound to a specific deployed contract. -func NewOwnable(address common.Address, backend bind.ContractBackend) (*Ownable, error) { - contract, err := bindOwnable(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Ownable{OwnableCaller: OwnableCaller{contract: contract}, OwnableTransactor: OwnableTransactor{contract: contract}, OwnableFilterer: OwnableFilterer{contract: contract}}, nil -} - -// NewOwnableCaller creates a new read-only instance of Ownable, bound to a specific deployed contract. -func NewOwnableCaller(address common.Address, caller bind.ContractCaller) (*OwnableCaller, error) { - contract, err := bindOwnable(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &OwnableCaller{contract: contract}, nil -} - -// NewOwnableTransactor creates a new write-only instance of Ownable, bound to a specific deployed contract. -func NewOwnableTransactor(address common.Address, transactor bind.ContractTransactor) (*OwnableTransactor, error) { - contract, err := bindOwnable(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &OwnableTransactor{contract: contract}, nil -} - -// NewOwnableFilterer creates a new log filterer instance of Ownable, bound to a specific deployed contract. -func NewOwnableFilterer(address common.Address, filterer bind.ContractFilterer) (*OwnableFilterer, error) { - contract, err := bindOwnable(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &OwnableFilterer{contract: contract}, nil -} - -// bindOwnable binds a generic wrapper to an already deployed contract. -func bindOwnable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := OwnableMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Ownable *OwnableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Ownable.Contract.OwnableCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Ownable *OwnableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable.Contract.OwnableTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Ownable *OwnableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Ownable.Contract.OwnableTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Ownable *OwnableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Ownable.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Ownable *OwnableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Ownable *OwnableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Ownable.Contract.contract.Transact(opts, method, params...) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _Ownable.contract.Transact(opts, "transferOwnership", newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable *OwnableSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner) -} diff --git a/v1/pkg/contracts/evm/tools/interfaces/tridentconcentratedliquiditypoolfactory.sol/concentratedliquiditypoolfactory.go b/v1/pkg/contracts/evm/tools/interfaces/tridentconcentratedliquiditypoolfactory.sol/concentratedliquiditypoolfactory.go deleted file mode 100644 index 96c102f2f..000000000 --- a/v1/pkg/contracts/evm/tools/interfaces/tridentconcentratedliquiditypoolfactory.sol/concentratedliquiditypoolfactory.go +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package tridentconcentratedliquiditypoolfactory - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ConcentratedLiquidityPoolFactoryMetaData contains all meta data concerning the ConcentratedLiquidityPoolFactory contract. -var ConcentratedLiquidityPoolFactoryMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"startIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"count\",\"type\":\"uint256\"}],\"name\":\"getPools\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"pairPools\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// ConcentratedLiquidityPoolFactoryABI is the input ABI used to generate the binding from. -// Deprecated: Use ConcentratedLiquidityPoolFactoryMetaData.ABI instead. -var ConcentratedLiquidityPoolFactoryABI = ConcentratedLiquidityPoolFactoryMetaData.ABI - -// ConcentratedLiquidityPoolFactory is an auto generated Go binding around an Ethereum contract. -type ConcentratedLiquidityPoolFactory struct { - ConcentratedLiquidityPoolFactoryCaller // Read-only binding to the contract - ConcentratedLiquidityPoolFactoryTransactor // Write-only binding to the contract - ConcentratedLiquidityPoolFactoryFilterer // Log filterer for contract events -} - -// ConcentratedLiquidityPoolFactoryCaller is an auto generated read-only Go binding around an Ethereum contract. -type ConcentratedLiquidityPoolFactoryCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ConcentratedLiquidityPoolFactoryTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ConcentratedLiquidityPoolFactoryTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ConcentratedLiquidityPoolFactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ConcentratedLiquidityPoolFactoryFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ConcentratedLiquidityPoolFactorySession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ConcentratedLiquidityPoolFactorySession struct { - Contract *ConcentratedLiquidityPoolFactory // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ConcentratedLiquidityPoolFactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ConcentratedLiquidityPoolFactoryCallerSession struct { - Contract *ConcentratedLiquidityPoolFactoryCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ConcentratedLiquidityPoolFactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ConcentratedLiquidityPoolFactoryTransactorSession struct { - Contract *ConcentratedLiquidityPoolFactoryTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ConcentratedLiquidityPoolFactoryRaw is an auto generated low-level Go binding around an Ethereum contract. -type ConcentratedLiquidityPoolFactoryRaw struct { - Contract *ConcentratedLiquidityPoolFactory // Generic contract binding to access the raw methods on -} - -// ConcentratedLiquidityPoolFactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ConcentratedLiquidityPoolFactoryCallerRaw struct { - Contract *ConcentratedLiquidityPoolFactoryCaller // Generic read-only contract binding to access the raw methods on -} - -// ConcentratedLiquidityPoolFactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ConcentratedLiquidityPoolFactoryTransactorRaw struct { - Contract *ConcentratedLiquidityPoolFactoryTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewConcentratedLiquidityPoolFactory creates a new instance of ConcentratedLiquidityPoolFactory, bound to a specific deployed contract. -func NewConcentratedLiquidityPoolFactory(address common.Address, backend bind.ContractBackend) (*ConcentratedLiquidityPoolFactory, error) { - contract, err := bindConcentratedLiquidityPoolFactory(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ConcentratedLiquidityPoolFactory{ConcentratedLiquidityPoolFactoryCaller: ConcentratedLiquidityPoolFactoryCaller{contract: contract}, ConcentratedLiquidityPoolFactoryTransactor: ConcentratedLiquidityPoolFactoryTransactor{contract: contract}, ConcentratedLiquidityPoolFactoryFilterer: ConcentratedLiquidityPoolFactoryFilterer{contract: contract}}, nil -} - -// NewConcentratedLiquidityPoolFactoryCaller creates a new read-only instance of ConcentratedLiquidityPoolFactory, bound to a specific deployed contract. -func NewConcentratedLiquidityPoolFactoryCaller(address common.Address, caller bind.ContractCaller) (*ConcentratedLiquidityPoolFactoryCaller, error) { - contract, err := bindConcentratedLiquidityPoolFactory(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ConcentratedLiquidityPoolFactoryCaller{contract: contract}, nil -} - -// NewConcentratedLiquidityPoolFactoryTransactor creates a new write-only instance of ConcentratedLiquidityPoolFactory, bound to a specific deployed contract. -func NewConcentratedLiquidityPoolFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*ConcentratedLiquidityPoolFactoryTransactor, error) { - contract, err := bindConcentratedLiquidityPoolFactory(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ConcentratedLiquidityPoolFactoryTransactor{contract: contract}, nil -} - -// NewConcentratedLiquidityPoolFactoryFilterer creates a new log filterer instance of ConcentratedLiquidityPoolFactory, bound to a specific deployed contract. -func NewConcentratedLiquidityPoolFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*ConcentratedLiquidityPoolFactoryFilterer, error) { - contract, err := bindConcentratedLiquidityPoolFactory(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ConcentratedLiquidityPoolFactoryFilterer{contract: contract}, nil -} - -// bindConcentratedLiquidityPoolFactory binds a generic wrapper to an already deployed contract. -func bindConcentratedLiquidityPoolFactory(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ConcentratedLiquidityPoolFactoryMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ConcentratedLiquidityPoolFactory.Contract.ConcentratedLiquidityPoolFactoryCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ConcentratedLiquidityPoolFactory.Contract.ConcentratedLiquidityPoolFactoryTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ConcentratedLiquidityPoolFactory.Contract.ConcentratedLiquidityPoolFactoryTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ConcentratedLiquidityPoolFactory.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ConcentratedLiquidityPoolFactory.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ConcentratedLiquidityPoolFactory.Contract.contract.Transact(opts, method, params...) -} - -// GetPools is a free data retrieval call binding the contract method 0x71a25812. -// -// Solidity: function getPools(address token0, address token1, uint256 startIndex, uint256 count) view returns(address[] pairPools) -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryCaller) GetPools(opts *bind.CallOpts, token0 common.Address, token1 common.Address, startIndex *big.Int, count *big.Int) ([]common.Address, error) { - var out []interface{} - err := _ConcentratedLiquidityPoolFactory.contract.Call(opts, &out, "getPools", token0, token1, startIndex, count) - - if err != nil { - return *new([]common.Address), err - } - - out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) - - return out0, err - -} - -// GetPools is a free data retrieval call binding the contract method 0x71a25812. -// -// Solidity: function getPools(address token0, address token1, uint256 startIndex, uint256 count) view returns(address[] pairPools) -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactorySession) GetPools(token0 common.Address, token1 common.Address, startIndex *big.Int, count *big.Int) ([]common.Address, error) { - return _ConcentratedLiquidityPoolFactory.Contract.GetPools(&_ConcentratedLiquidityPoolFactory.CallOpts, token0, token1, startIndex, count) -} - -// GetPools is a free data retrieval call binding the contract method 0x71a25812. -// -// Solidity: function getPools(address token0, address token1, uint256 startIndex, uint256 count) view returns(address[] pairPools) -func (_ConcentratedLiquidityPoolFactory *ConcentratedLiquidityPoolFactoryCallerSession) GetPools(token0 common.Address, token1 common.Address, startIndex *big.Int, count *big.Int) ([]common.Address, error) { - return _ConcentratedLiquidityPoolFactory.Contract.GetPools(&_ConcentratedLiquidityPoolFactory.CallOpts, token0, token1, startIndex, count) -} diff --git a/v1/pkg/contracts/evm/tools/interfaces/tridentipoolrouter.sol/ipoolrouter.go b/v1/pkg/contracts/evm/tools/interfaces/tridentipoolrouter.sol/ipoolrouter.go deleted file mode 100644 index a829cc0de..000000000 --- a/v1/pkg/contracts/evm/tools/interfaces/tridentipoolrouter.sol/ipoolrouter.go +++ /dev/null @@ -1,326 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package tridentipoolrouter - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IPoolRouterExactInputParams is an auto generated low-level Go binding around an user-defined struct. -type IPoolRouterExactInputParams struct { - TokenIn common.Address - AmountIn *big.Int - AmountOutMinimum *big.Int - Path []common.Address - To common.Address - Unwrap bool -} - -// IPoolRouterExactInputSingleParams is an auto generated low-level Go binding around an user-defined struct. -type IPoolRouterExactInputSingleParams struct { - TokenIn common.Address - AmountIn *big.Int - AmountOutMinimum *big.Int - Pool common.Address - To common.Address - Unwrap bool -} - -// IPoolRouterExactOutputParams is an auto generated low-level Go binding around an user-defined struct. -type IPoolRouterExactOutputParams struct { - TokenIn common.Address - AmountOut *big.Int - AmountInMaximum *big.Int - Path []common.Address - To common.Address - Unwrap bool -} - -// IPoolRouterExactOutputSingleParams is an auto generated low-level Go binding around an user-defined struct. -type IPoolRouterExactOutputSingleParams struct { - TokenIn common.Address - AmountOut *big.Int - AmountInMaximum *big.Int - Pool common.Address - To common.Address - Unwrap bool -} - -// IPoolRouterMetaData contains all meta data concerning the IPoolRouter contract. -var IPoolRouterMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactInputParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactOutputParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"unwrap\",\"type\":\"bool\"}],\"internalType\":\"structIPoolRouter.ExactOutputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactOutputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"sweep\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]", -} - -// IPoolRouterABI is the input ABI used to generate the binding from. -// Deprecated: Use IPoolRouterMetaData.ABI instead. -var IPoolRouterABI = IPoolRouterMetaData.ABI - -// IPoolRouter is an auto generated Go binding around an Ethereum contract. -type IPoolRouter struct { - IPoolRouterCaller // Read-only binding to the contract - IPoolRouterTransactor // Write-only binding to the contract - IPoolRouterFilterer // Log filterer for contract events -} - -// IPoolRouterCaller is an auto generated read-only Go binding around an Ethereum contract. -type IPoolRouterCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IPoolRouterTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IPoolRouterTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IPoolRouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IPoolRouterFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IPoolRouterSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IPoolRouterSession struct { - Contract *IPoolRouter // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IPoolRouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IPoolRouterCallerSession struct { - Contract *IPoolRouterCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IPoolRouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IPoolRouterTransactorSession struct { - Contract *IPoolRouterTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IPoolRouterRaw is an auto generated low-level Go binding around an Ethereum contract. -type IPoolRouterRaw struct { - Contract *IPoolRouter // Generic contract binding to access the raw methods on -} - -// IPoolRouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IPoolRouterCallerRaw struct { - Contract *IPoolRouterCaller // Generic read-only contract binding to access the raw methods on -} - -// IPoolRouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IPoolRouterTransactorRaw struct { - Contract *IPoolRouterTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIPoolRouter creates a new instance of IPoolRouter, bound to a specific deployed contract. -func NewIPoolRouter(address common.Address, backend bind.ContractBackend) (*IPoolRouter, error) { - contract, err := bindIPoolRouter(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IPoolRouter{IPoolRouterCaller: IPoolRouterCaller{contract: contract}, IPoolRouterTransactor: IPoolRouterTransactor{contract: contract}, IPoolRouterFilterer: IPoolRouterFilterer{contract: contract}}, nil -} - -// NewIPoolRouterCaller creates a new read-only instance of IPoolRouter, bound to a specific deployed contract. -func NewIPoolRouterCaller(address common.Address, caller bind.ContractCaller) (*IPoolRouterCaller, error) { - contract, err := bindIPoolRouter(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IPoolRouterCaller{contract: contract}, nil -} - -// NewIPoolRouterTransactor creates a new write-only instance of IPoolRouter, bound to a specific deployed contract. -func NewIPoolRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*IPoolRouterTransactor, error) { - contract, err := bindIPoolRouter(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IPoolRouterTransactor{contract: contract}, nil -} - -// NewIPoolRouterFilterer creates a new log filterer instance of IPoolRouter, bound to a specific deployed contract. -func NewIPoolRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*IPoolRouterFilterer, error) { - contract, err := bindIPoolRouter(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IPoolRouterFilterer{contract: contract}, nil -} - -// bindIPoolRouter binds a generic wrapper to an already deployed contract. -func bindIPoolRouter(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IPoolRouterMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IPoolRouter *IPoolRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IPoolRouter.Contract.IPoolRouterCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IPoolRouter *IPoolRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IPoolRouter.Contract.IPoolRouterTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IPoolRouter *IPoolRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IPoolRouter.Contract.IPoolRouterTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IPoolRouter *IPoolRouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IPoolRouter.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IPoolRouter *IPoolRouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IPoolRouter.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IPoolRouter *IPoolRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IPoolRouter.Contract.contract.Transact(opts, method, params...) -} - -// ExactInput is a paid mutator transaction binding the contract method 0x363a9dba. -// -// Solidity: function exactInput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountOut) -func (_IPoolRouter *IPoolRouterTransactor) ExactInput(opts *bind.TransactOpts, params IPoolRouterExactInputParams) (*types.Transaction, error) { - return _IPoolRouter.contract.Transact(opts, "exactInput", params) -} - -// ExactInput is a paid mutator transaction binding the contract method 0x363a9dba. -// -// Solidity: function exactInput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountOut) -func (_IPoolRouter *IPoolRouterSession) ExactInput(params IPoolRouterExactInputParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactInput(&_IPoolRouter.TransactOpts, params) -} - -// ExactInput is a paid mutator transaction binding the contract method 0x363a9dba. -// -// Solidity: function exactInput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountOut) -func (_IPoolRouter *IPoolRouterTransactorSession) ExactInput(params IPoolRouterExactInputParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactInput(&_IPoolRouter.TransactOpts, params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0xc07f5c32. -// -// Solidity: function exactInputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountOut) -func (_IPoolRouter *IPoolRouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params IPoolRouterExactInputSingleParams) (*types.Transaction, error) { - return _IPoolRouter.contract.Transact(opts, "exactInputSingle", params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0xc07f5c32. -// -// Solidity: function exactInputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountOut) -func (_IPoolRouter *IPoolRouterSession) ExactInputSingle(params IPoolRouterExactInputSingleParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactInputSingle(&_IPoolRouter.TransactOpts, params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0xc07f5c32. -// -// Solidity: function exactInputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountOut) -func (_IPoolRouter *IPoolRouterTransactorSession) ExactInputSingle(params IPoolRouterExactInputSingleParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactInputSingle(&_IPoolRouter.TransactOpts, params) -} - -// ExactOutput is a paid mutator transaction binding the contract method 0xbee20e05. -// -// Solidity: function exactOutput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountIn) -func (_IPoolRouter *IPoolRouterTransactor) ExactOutput(opts *bind.TransactOpts, params IPoolRouterExactOutputParams) (*types.Transaction, error) { - return _IPoolRouter.contract.Transact(opts, "exactOutput", params) -} - -// ExactOutput is a paid mutator transaction binding the contract method 0xbee20e05. -// -// Solidity: function exactOutput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountIn) -func (_IPoolRouter *IPoolRouterSession) ExactOutput(params IPoolRouterExactOutputParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactOutput(&_IPoolRouter.TransactOpts, params) -} - -// ExactOutput is a paid mutator transaction binding the contract method 0xbee20e05. -// -// Solidity: function exactOutput((address,uint256,uint256,address[],address,bool) params) payable returns(uint256 amountIn) -func (_IPoolRouter *IPoolRouterTransactorSession) ExactOutput(params IPoolRouterExactOutputParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactOutput(&_IPoolRouter.TransactOpts, params) -} - -// ExactOutputSingle is a paid mutator transaction binding the contract method 0x54c1b650. -// -// Solidity: function exactOutputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountIn) -func (_IPoolRouter *IPoolRouterTransactor) ExactOutputSingle(opts *bind.TransactOpts, params IPoolRouterExactOutputSingleParams) (*types.Transaction, error) { - return _IPoolRouter.contract.Transact(opts, "exactOutputSingle", params) -} - -// ExactOutputSingle is a paid mutator transaction binding the contract method 0x54c1b650. -// -// Solidity: function exactOutputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountIn) -func (_IPoolRouter *IPoolRouterSession) ExactOutputSingle(params IPoolRouterExactOutputSingleParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactOutputSingle(&_IPoolRouter.TransactOpts, params) -} - -// ExactOutputSingle is a paid mutator transaction binding the contract method 0x54c1b650. -// -// Solidity: function exactOutputSingle((address,uint256,uint256,address,address,bool) params) payable returns(uint256 amountIn) -func (_IPoolRouter *IPoolRouterTransactorSession) ExactOutputSingle(params IPoolRouterExactOutputSingleParams) (*types.Transaction, error) { - return _IPoolRouter.Contract.ExactOutputSingle(&_IPoolRouter.TransactOpts, params) -} - -// Sweep is a paid mutator transaction binding the contract method 0xdc2c256f. -// -// Solidity: function sweep(address token, uint256 amount, address recipient) payable returns() -func (_IPoolRouter *IPoolRouterTransactor) Sweep(opts *bind.TransactOpts, token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error) { - return _IPoolRouter.contract.Transact(opts, "sweep", token, amount, recipient) -} - -// Sweep is a paid mutator transaction binding the contract method 0xdc2c256f. -// -// Solidity: function sweep(address token, uint256 amount, address recipient) payable returns() -func (_IPoolRouter *IPoolRouterSession) Sweep(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error) { - return _IPoolRouter.Contract.Sweep(&_IPoolRouter.TransactOpts, token, amount, recipient) -} - -// Sweep is a paid mutator transaction binding the contract method 0xdc2c256f. -// -// Solidity: function sweep(address token, uint256 amount, address recipient) payable returns() -func (_IPoolRouter *IPoolRouterTransactorSession) Sweep(token common.Address, amount *big.Int, recipient common.Address) (*types.Transaction, error) { - return _IPoolRouter.Contract.Sweep(&_IPoolRouter.TransactOpts, token, amount, recipient) -} diff --git a/v1/pkg/contracts/evm/tools/zetainteractor.sol/zetainteractor.go b/v1/pkg/contracts/evm/tools/zetainteractor.sol/zetainteractor.go deleted file mode 100644 index 183d90fe1..000000000 --- a/v1/pkg/contracts/evm/tools/zetainteractor.sol/zetainteractor.go +++ /dev/null @@ -1,695 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetainteractor - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInteractorMetaData contains all meta data concerning the ZetaInteractor contract. -var ZetaInteractorMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"InvalidCaller\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidDestinationChainId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZetaMessageCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidZetaRevertCall\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"connector\",\"outputs\":[{\"internalType\":\"contractZetaConnector\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"interactorsByChainId\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"contractAddress\",\"type\":\"bytes\"}],\"name\":\"setInteractorByChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ZetaInteractorABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaInteractorMetaData.ABI instead. -var ZetaInteractorABI = ZetaInteractorMetaData.ABI - -// ZetaInteractor is an auto generated Go binding around an Ethereum contract. -type ZetaInteractor struct { - ZetaInteractorCaller // Read-only binding to the contract - ZetaInteractorTransactor // Write-only binding to the contract - ZetaInteractorFilterer // Log filterer for contract events -} - -// ZetaInteractorCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaInteractorCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaInteractorTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaInteractorFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInteractorSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaInteractorSession struct { - Contract *ZetaInteractor // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInteractorCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaInteractorCallerSession struct { - Contract *ZetaInteractorCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaInteractorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaInteractorTransactorSession struct { - Contract *ZetaInteractorTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInteractorRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaInteractorRaw struct { - Contract *ZetaInteractor // Generic contract binding to access the raw methods on -} - -// ZetaInteractorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaInteractorCallerRaw struct { - Contract *ZetaInteractorCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaInteractorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaInteractorTransactorRaw struct { - Contract *ZetaInteractorTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaInteractor creates a new instance of ZetaInteractor, bound to a specific deployed contract. -func NewZetaInteractor(address common.Address, backend bind.ContractBackend) (*ZetaInteractor, error) { - contract, err := bindZetaInteractor(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaInteractor{ZetaInteractorCaller: ZetaInteractorCaller{contract: contract}, ZetaInteractorTransactor: ZetaInteractorTransactor{contract: contract}, ZetaInteractorFilterer: ZetaInteractorFilterer{contract: contract}}, nil -} - -// NewZetaInteractorCaller creates a new read-only instance of ZetaInteractor, bound to a specific deployed contract. -func NewZetaInteractorCaller(address common.Address, caller bind.ContractCaller) (*ZetaInteractorCaller, error) { - contract, err := bindZetaInteractor(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaInteractorCaller{contract: contract}, nil -} - -// NewZetaInteractorTransactor creates a new write-only instance of ZetaInteractor, bound to a specific deployed contract. -func NewZetaInteractorTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaInteractorTransactor, error) { - contract, err := bindZetaInteractor(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaInteractorTransactor{contract: contract}, nil -} - -// NewZetaInteractorFilterer creates a new log filterer instance of ZetaInteractor, bound to a specific deployed contract. -func NewZetaInteractorFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaInteractorFilterer, error) { - contract, err := bindZetaInteractor(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaInteractorFilterer{contract: contract}, nil -} - -// bindZetaInteractor binds a generic wrapper to an already deployed contract. -func bindZetaInteractor(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaInteractorMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInteractor *ZetaInteractorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInteractor.Contract.ZetaInteractorCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInteractor *ZetaInteractorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractor.Contract.ZetaInteractorTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInteractor *ZetaInteractorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInteractor.Contract.ZetaInteractorTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInteractor *ZetaInteractorCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInteractor.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInteractor *ZetaInteractorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractor.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInteractor *ZetaInteractorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInteractor.Contract.contract.Transact(opts, method, params...) -} - -// Connector is a free data retrieval call binding the contract method 0x83f3084f. -// -// Solidity: function connector() view returns(address) -func (_ZetaInteractor *ZetaInteractorCaller) Connector(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaInteractor.contract.Call(opts, &out, "connector") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Connector is a free data retrieval call binding the contract method 0x83f3084f. -// -// Solidity: function connector() view returns(address) -func (_ZetaInteractor *ZetaInteractorSession) Connector() (common.Address, error) { - return _ZetaInteractor.Contract.Connector(&_ZetaInteractor.CallOpts) -} - -// Connector is a free data retrieval call binding the contract method 0x83f3084f. -// -// Solidity: function connector() view returns(address) -func (_ZetaInteractor *ZetaInteractorCallerSession) Connector() (common.Address, error) { - return _ZetaInteractor.Contract.Connector(&_ZetaInteractor.CallOpts) -} - -// InteractorsByChainId is a free data retrieval call binding the contract method 0x2618143f. -// -// Solidity: function interactorsByChainId(uint256 ) view returns(bytes) -func (_ZetaInteractor *ZetaInteractorCaller) InteractorsByChainId(opts *bind.CallOpts, arg0 *big.Int) ([]byte, error) { - var out []interface{} - err := _ZetaInteractor.contract.Call(opts, &out, "interactorsByChainId", arg0) - - if err != nil { - return *new([]byte), err - } - - out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte) - - return out0, err - -} - -// InteractorsByChainId is a free data retrieval call binding the contract method 0x2618143f. -// -// Solidity: function interactorsByChainId(uint256 ) view returns(bytes) -func (_ZetaInteractor *ZetaInteractorSession) InteractorsByChainId(arg0 *big.Int) ([]byte, error) { - return _ZetaInteractor.Contract.InteractorsByChainId(&_ZetaInteractor.CallOpts, arg0) -} - -// InteractorsByChainId is a free data retrieval call binding the contract method 0x2618143f. -// -// Solidity: function interactorsByChainId(uint256 ) view returns(bytes) -func (_ZetaInteractor *ZetaInteractorCallerSession) InteractorsByChainId(arg0 *big.Int) ([]byte, error) { - return _ZetaInteractor.Contract.InteractorsByChainId(&_ZetaInteractor.CallOpts, arg0) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZetaInteractor *ZetaInteractorCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaInteractor.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZetaInteractor *ZetaInteractorSession) Owner() (common.Address, error) { - return _ZetaInteractor.Contract.Owner(&_ZetaInteractor.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_ZetaInteractor *ZetaInteractorCallerSession) Owner() (common.Address, error) { - return _ZetaInteractor.Contract.Owner(&_ZetaInteractor.CallOpts) -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_ZetaInteractor *ZetaInteractorCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaInteractor.contract.Call(opts, &out, "pendingOwner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_ZetaInteractor *ZetaInteractorSession) PendingOwner() (common.Address, error) { - return _ZetaInteractor.Contract.PendingOwner(&_ZetaInteractor.CallOpts) -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_ZetaInteractor *ZetaInteractorCallerSession) PendingOwner() (common.Address, error) { - return _ZetaInteractor.Contract.PendingOwner(&_ZetaInteractor.CallOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_ZetaInteractor *ZetaInteractorTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractor.contract.Transact(opts, "acceptOwnership") -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_ZetaInteractor *ZetaInteractorSession) AcceptOwnership() (*types.Transaction, error) { - return _ZetaInteractor.Contract.AcceptOwnership(&_ZetaInteractor.TransactOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_ZetaInteractor *ZetaInteractorTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _ZetaInteractor.Contract.AcceptOwnership(&_ZetaInteractor.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZetaInteractor *ZetaInteractorTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInteractor.contract.Transact(opts, "renounceOwnership") -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZetaInteractor *ZetaInteractorSession) RenounceOwnership() (*types.Transaction, error) { - return _ZetaInteractor.Contract.RenounceOwnership(&_ZetaInteractor.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_ZetaInteractor *ZetaInteractorTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _ZetaInteractor.Contract.RenounceOwnership(&_ZetaInteractor.TransactOpts) -} - -// SetInteractorByChainId is a paid mutator transaction binding the contract method 0x4fd3f7d7. -// -// Solidity: function setInteractorByChainId(uint256 destinationChainId, bytes contractAddress) returns() -func (_ZetaInteractor *ZetaInteractorTransactor) SetInteractorByChainId(opts *bind.TransactOpts, destinationChainId *big.Int, contractAddress []byte) (*types.Transaction, error) { - return _ZetaInteractor.contract.Transact(opts, "setInteractorByChainId", destinationChainId, contractAddress) -} - -// SetInteractorByChainId is a paid mutator transaction binding the contract method 0x4fd3f7d7. -// -// Solidity: function setInteractorByChainId(uint256 destinationChainId, bytes contractAddress) returns() -func (_ZetaInteractor *ZetaInteractorSession) SetInteractorByChainId(destinationChainId *big.Int, contractAddress []byte) (*types.Transaction, error) { - return _ZetaInteractor.Contract.SetInteractorByChainId(&_ZetaInteractor.TransactOpts, destinationChainId, contractAddress) -} - -// SetInteractorByChainId is a paid mutator transaction binding the contract method 0x4fd3f7d7. -// -// Solidity: function setInteractorByChainId(uint256 destinationChainId, bytes contractAddress) returns() -func (_ZetaInteractor *ZetaInteractorTransactorSession) SetInteractorByChainId(destinationChainId *big.Int, contractAddress []byte) (*types.Transaction, error) { - return _ZetaInteractor.Contract.SetInteractorByChainId(&_ZetaInteractor.TransactOpts, destinationChainId, contractAddress) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZetaInteractor *ZetaInteractorTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _ZetaInteractor.contract.Transact(opts, "transferOwnership", newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZetaInteractor *ZetaInteractorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZetaInteractor.Contract.TransferOwnership(&_ZetaInteractor.TransactOpts, newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_ZetaInteractor *ZetaInteractorTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _ZetaInteractor.Contract.TransferOwnership(&_ZetaInteractor.TransactOpts, newOwner) -} - -// ZetaInteractorOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the ZetaInteractor contract. -type ZetaInteractorOwnershipTransferStartedIterator struct { - Event *ZetaInteractorOwnershipTransferStarted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaInteractorOwnershipTransferStartedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorOwnershipTransferStarted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorOwnershipTransferStarted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaInteractorOwnershipTransferStartedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaInteractorOwnershipTransferStartedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaInteractorOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the ZetaInteractor contract. -type ZetaInteractorOwnershipTransferStarted struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractor *ZetaInteractorFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ZetaInteractorOwnershipTransferStartedIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractor.contract.FilterLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &ZetaInteractorOwnershipTransferStartedIterator{contract: _ZetaInteractor.contract, event: "OwnershipTransferStarted", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractor *ZetaInteractorFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *ZetaInteractorOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractor.contract.WatchLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaInteractorOwnershipTransferStarted) - if err := _ZetaInteractor.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractor *ZetaInteractorFilterer) ParseOwnershipTransferStarted(log types.Log) (*ZetaInteractorOwnershipTransferStarted, error) { - event := new(ZetaInteractorOwnershipTransferStarted) - if err := _ZetaInteractor.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaInteractorOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the ZetaInteractor contract. -type ZetaInteractorOwnershipTransferredIterator struct { - Event *ZetaInteractorOwnershipTransferred // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaInteractorOwnershipTransferredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaInteractorOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaInteractorOwnershipTransferredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaInteractorOwnershipTransferredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaInteractorOwnershipTransferred represents a OwnershipTransferred event raised by the ZetaInteractor contract. -type ZetaInteractorOwnershipTransferred struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractor *ZetaInteractorFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ZetaInteractorOwnershipTransferredIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractor.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &ZetaInteractorOwnershipTransferredIterator{contract: _ZetaInteractor.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractor *ZetaInteractorFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ZetaInteractorOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _ZetaInteractor.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaInteractorOwnershipTransferred) - if err := _ZetaInteractor.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_ZetaInteractor *ZetaInteractorFilterer) ParseOwnershipTransferred(log types.Log) (*ZetaInteractorOwnershipTransferred, error) { - event := new(ZetaInteractorOwnershipTransferred) - if err := _ZetaInteractor.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/iswaprouterpancake.go b/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/iswaprouterpancake.go deleted file mode 100644 index df6236ee1..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/iswaprouterpancake.go +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumerpancakev3 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ISwapRouterPancakeExactInputParams is an auto generated low-level Go binding around an user-defined struct. -type ISwapRouterPancakeExactInputParams struct { - Path []byte - Recipient common.Address - AmountIn *big.Int - AmountOutMinimum *big.Int -} - -// ISwapRouterPancakeExactInputSingleParams is an auto generated low-level Go binding around an user-defined struct. -type ISwapRouterPancakeExactInputSingleParams struct { - TokenIn common.Address - TokenOut common.Address - Fee *big.Int - Recipient common.Address - AmountIn *big.Int - AmountOutMinimum *big.Int - SqrtPriceLimitX96 *big.Int -} - -// ISwapRouterPancakeMetaData contains all meta data concerning the ISwapRouterPancake contract. -var ISwapRouterPancakeMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"}],\"internalType\":\"structISwapRouterPancake.ExactInputParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structISwapRouterPancake.ExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ISwapRouterPancakeABI is the input ABI used to generate the binding from. -// Deprecated: Use ISwapRouterPancakeMetaData.ABI instead. -var ISwapRouterPancakeABI = ISwapRouterPancakeMetaData.ABI - -// ISwapRouterPancake is an auto generated Go binding around an Ethereum contract. -type ISwapRouterPancake struct { - ISwapRouterPancakeCaller // Read-only binding to the contract - ISwapRouterPancakeTransactor // Write-only binding to the contract - ISwapRouterPancakeFilterer // Log filterer for contract events -} - -// ISwapRouterPancakeCaller is an auto generated read-only Go binding around an Ethereum contract. -type ISwapRouterPancakeCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISwapRouterPancakeTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ISwapRouterPancakeTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISwapRouterPancakeFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ISwapRouterPancakeFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISwapRouterPancakeSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ISwapRouterPancakeSession struct { - Contract *ISwapRouterPancake // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ISwapRouterPancakeCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ISwapRouterPancakeCallerSession struct { - Contract *ISwapRouterPancakeCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ISwapRouterPancakeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ISwapRouterPancakeTransactorSession struct { - Contract *ISwapRouterPancakeTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ISwapRouterPancakeRaw is an auto generated low-level Go binding around an Ethereum contract. -type ISwapRouterPancakeRaw struct { - Contract *ISwapRouterPancake // Generic contract binding to access the raw methods on -} - -// ISwapRouterPancakeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ISwapRouterPancakeCallerRaw struct { - Contract *ISwapRouterPancakeCaller // Generic read-only contract binding to access the raw methods on -} - -// ISwapRouterPancakeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ISwapRouterPancakeTransactorRaw struct { - Contract *ISwapRouterPancakeTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewISwapRouterPancake creates a new instance of ISwapRouterPancake, bound to a specific deployed contract. -func NewISwapRouterPancake(address common.Address, backend bind.ContractBackend) (*ISwapRouterPancake, error) { - contract, err := bindISwapRouterPancake(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ISwapRouterPancake{ISwapRouterPancakeCaller: ISwapRouterPancakeCaller{contract: contract}, ISwapRouterPancakeTransactor: ISwapRouterPancakeTransactor{contract: contract}, ISwapRouterPancakeFilterer: ISwapRouterPancakeFilterer{contract: contract}}, nil -} - -// NewISwapRouterPancakeCaller creates a new read-only instance of ISwapRouterPancake, bound to a specific deployed contract. -func NewISwapRouterPancakeCaller(address common.Address, caller bind.ContractCaller) (*ISwapRouterPancakeCaller, error) { - contract, err := bindISwapRouterPancake(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ISwapRouterPancakeCaller{contract: contract}, nil -} - -// NewISwapRouterPancakeTransactor creates a new write-only instance of ISwapRouterPancake, bound to a specific deployed contract. -func NewISwapRouterPancakeTransactor(address common.Address, transactor bind.ContractTransactor) (*ISwapRouterPancakeTransactor, error) { - contract, err := bindISwapRouterPancake(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ISwapRouterPancakeTransactor{contract: contract}, nil -} - -// NewISwapRouterPancakeFilterer creates a new log filterer instance of ISwapRouterPancake, bound to a specific deployed contract. -func NewISwapRouterPancakeFilterer(address common.Address, filterer bind.ContractFilterer) (*ISwapRouterPancakeFilterer, error) { - contract, err := bindISwapRouterPancake(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ISwapRouterPancakeFilterer{contract: contract}, nil -} - -// bindISwapRouterPancake binds a generic wrapper to an already deployed contract. -func bindISwapRouterPancake(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ISwapRouterPancakeMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ISwapRouterPancake *ISwapRouterPancakeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ISwapRouterPancake.Contract.ISwapRouterPancakeCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ISwapRouterPancake *ISwapRouterPancakeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.ISwapRouterPancakeTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ISwapRouterPancake *ISwapRouterPancakeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.ISwapRouterPancakeTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ISwapRouterPancake *ISwapRouterPancakeCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ISwapRouterPancake.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ISwapRouterPancake *ISwapRouterPancakeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ISwapRouterPancake *ISwapRouterPancakeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.contract.Transact(opts, method, params...) -} - -// ExactInput is a paid mutator transaction binding the contract method 0xb858183f. -// -// Solidity: function exactInput((bytes,address,uint256,uint256) params) payable returns(uint256 amountOut) -func (_ISwapRouterPancake *ISwapRouterPancakeTransactor) ExactInput(opts *bind.TransactOpts, params ISwapRouterPancakeExactInputParams) (*types.Transaction, error) { - return _ISwapRouterPancake.contract.Transact(opts, "exactInput", params) -} - -// ExactInput is a paid mutator transaction binding the contract method 0xb858183f. -// -// Solidity: function exactInput((bytes,address,uint256,uint256) params) payable returns(uint256 amountOut) -func (_ISwapRouterPancake *ISwapRouterPancakeSession) ExactInput(params ISwapRouterPancakeExactInputParams) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.ExactInput(&_ISwapRouterPancake.TransactOpts, params) -} - -// ExactInput is a paid mutator transaction binding the contract method 0xb858183f. -// -// Solidity: function exactInput((bytes,address,uint256,uint256) params) payable returns(uint256 amountOut) -func (_ISwapRouterPancake *ISwapRouterPancakeTransactorSession) ExactInput(params ISwapRouterPancakeExactInputParams) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.ExactInput(&_ISwapRouterPancake.TransactOpts, params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0x04e45aaf. -// -// Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint160) params) payable returns(uint256 amountOut) -func (_ISwapRouterPancake *ISwapRouterPancakeTransactor) ExactInputSingle(opts *bind.TransactOpts, params ISwapRouterPancakeExactInputSingleParams) (*types.Transaction, error) { - return _ISwapRouterPancake.contract.Transact(opts, "exactInputSingle", params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0x04e45aaf. -// -// Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint160) params) payable returns(uint256 amountOut) -func (_ISwapRouterPancake *ISwapRouterPancakeSession) ExactInputSingle(params ISwapRouterPancakeExactInputSingleParams) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.ExactInputSingle(&_ISwapRouterPancake.TransactOpts, params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0x04e45aaf. -// -// Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint160) params) payable returns(uint256 amountOut) -func (_ISwapRouterPancake *ISwapRouterPancakeTransactorSession) ExactInputSingle(params ISwapRouterPancakeExactInputSingleParams) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.ExactInputSingle(&_ISwapRouterPancake.TransactOpts, params) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_ISwapRouterPancake *ISwapRouterPancakeTransactor) UniswapV3SwapCallback(opts *bind.TransactOpts, amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _ISwapRouterPancake.contract.Transact(opts, "uniswapV3SwapCallback", amount0Delta, amount1Delta, data) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_ISwapRouterPancake *ISwapRouterPancakeSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.UniswapV3SwapCallback(&_ISwapRouterPancake.TransactOpts, amount0Delta, amount1Delta, data) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_ISwapRouterPancake *ISwapRouterPancakeTransactorSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _ISwapRouterPancake.Contract.UniswapV3SwapCallback(&_ISwapRouterPancake.TransactOpts, amount0Delta, amount1Delta, data) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/weth9.go b/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/weth9.go deleted file mode 100644 index 9268e000d..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/weth9.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumerpancakev3 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// WETH9MetaData contains all meta data concerning the WETH9 contract. -var WETH9MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// WETH9ABI is the input ABI used to generate the binding from. -// Deprecated: Use WETH9MetaData.ABI instead. -var WETH9ABI = WETH9MetaData.ABI - -// WETH9 is an auto generated Go binding around an Ethereum contract. -type WETH9 struct { - WETH9Caller // Read-only binding to the contract - WETH9Transactor // Write-only binding to the contract - WETH9Filterer // Log filterer for contract events -} - -// WETH9Caller is an auto generated read-only Go binding around an Ethereum contract. -type WETH9Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Transactor is an auto generated write-only Go binding around an Ethereum contract. -type WETH9Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type WETH9Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type WETH9Session struct { - Contract *WETH9 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type WETH9CallerSession struct { - Contract *WETH9Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// WETH9TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type WETH9TransactorSession struct { - Contract *WETH9Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9Raw is an auto generated low-level Go binding around an Ethereum contract. -type WETH9Raw struct { - Contract *WETH9 // Generic contract binding to access the raw methods on -} - -// WETH9CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type WETH9CallerRaw struct { - Contract *WETH9Caller // Generic read-only contract binding to access the raw methods on -} - -// WETH9TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type WETH9TransactorRaw struct { - Contract *WETH9Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewWETH9 creates a new instance of WETH9, bound to a specific deployed contract. -func NewWETH9(address common.Address, backend bind.ContractBackend) (*WETH9, error) { - contract, err := bindWETH9(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &WETH9{WETH9Caller: WETH9Caller{contract: contract}, WETH9Transactor: WETH9Transactor{contract: contract}, WETH9Filterer: WETH9Filterer{contract: contract}}, nil -} - -// NewWETH9Caller creates a new read-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Caller(address common.Address, caller bind.ContractCaller) (*WETH9Caller, error) { - contract, err := bindWETH9(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &WETH9Caller{contract: contract}, nil -} - -// NewWETH9Transactor creates a new write-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Transactor(address common.Address, transactor bind.ContractTransactor) (*WETH9Transactor, error) { - contract, err := bindWETH9(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &WETH9Transactor{contract: contract}, nil -} - -// NewWETH9Filterer creates a new log filterer instance of WETH9, bound to a specific deployed contract. -func NewWETH9Filterer(address common.Address, filterer bind.ContractFilterer) (*WETH9Filterer, error) { - contract, err := bindWETH9(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &WETH9Filterer{contract: contract}, nil -} - -// bindWETH9 binds a generic wrapper to an already deployed contract. -func bindWETH9(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := WETH9MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.WETH9Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transact(opts, method, params...) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Transactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "withdraw", wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Session) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9TransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumerpancakev3.go b/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumerpancakev3.go deleted file mode 100644 index 91912db2e..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumerpancakev3.go +++ /dev/null @@ -1,1067 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumerpancakev3 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerPancakeV3MetaData contains all meta data concerning the ZetaTokenConsumerPancakeV3 contract. -var ZetaTokenConsumerPancakeV3MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pancakeV3Router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapV3Factory_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"WETH9Address_\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"zetaPoolFee_\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"tokenPoolFee_\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"EthExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"TokenExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForEth\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForToken\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"WETH9Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getEthFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"outputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getTokenFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"}],\"name\":\"getZetaFromEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getZetaFromToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasZetaLiquidity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pancakeV3Router\",\"outputs\":[{\"internalType\":\"contractISwapRouterPancake\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenPoolFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapV3Factory\",\"outputs\":[{\"internalType\":\"contractIUniswapV3Factory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaPoolFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", - Bin: "0x6101406040523480156200001257600080fd5b506040516200288c3803806200288c83398181016040528101906200003891906200028a565b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161480620000a05750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b80620000d85750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b80620001105750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1562000148576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508473ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1660601b815250508373ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508162ffffff1660808162ffffff1660e81b815250508062ffffff1660a08162ffffff1660e81b81525050505050505050620003a2565b6000815190506200026d816200036e565b92915050565b600081519050620002848162000388565b92915050565b60008060008060008060c08789031215620002aa57620002a962000369565b5b6000620002ba89828a016200025c565b9650506020620002cd89828a016200025c565b9550506040620002e089828a016200025c565b9450506060620002f389828a016200025c565b93505060806200030689828a0162000273565b92505060a06200031989828a0162000273565b9150509295509295509295565b600062000333826200033a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b600080fd5b620003798162000326565b81146200038557600080fd5b50565b62000393816200035a565b81146200039f57600080fd5b50565b60805160e81c60a05160e81c60c05160601c60e05160601c6101005160601c6101205160601c6123b6620004d660003960008181610d340152610d7f01526000818161045c0152818161067c015281816107a8015281816109b401528181610b13015281816110f80152818161124401526113530152600081816103ae0152818161054e015281816107350152818161096a015281816109d601528181610a2901528181610ddc015281816110ae0152818161111a015261116d015260008181610372015281816106f301528181610a6501528181610bc001528181610dbb015281816111af01526113770152600081816106d201528181610d5801526111d00152600081816103ea015281816107140152818161089d01528181610aa101528181610dfd015261118e01526123b66000f3fe6080604052600436106100a05760003560e01c80635b549182116100645780635b549182146101ac5780635d9dfdde146101d757806380801f8414610202578063a53fb10b1461022d578063c27745dd1461026a578063c469cf1414610295576100a7565b8063013b2ff8146100ac57806321e093b1146100dc5780632405620a146101075780633cbd70051461014457806354c49a2a1461016f576100a7565b366100a757005b600080fd5b6100c660048036038101906100c191906118c0565b6102c0565b6040516100d39190612030565b60405180910390f35b3480156100e857600080fd5b506100f161054c565b6040516100fe9190611dd3565b60405180910390f35b34801561011357600080fd5b5061012e60048036038101906101299190611900565b610570565b60405161013b9190612030565b60405180910390f35b34801561015057600080fd5b5061015961089b565b6040516101669190612015565b60405180910390f35b34801561017b57600080fd5b5061019660048036038101906101919190611967565b6108bf565b6040516101a39190612030565b60405180910390f35b3480156101b857600080fd5b506101c1610d32565b6040516101ce9190611f1b565b60405180910390f35b3480156101e357600080fd5b506101ec610d56565b6040516101f99190612015565b60405180910390f35b34801561020e57600080fd5b50610217610d7a565b6040516102249190611ee5565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190611900565b610f6b565b6040516102619190612030565b60405180910390f35b34801561027657600080fd5b5061027f611351565b60405161028c9190611f00565b60405180910390f35b3480156102a157600080fd5b506102aa611375565b6040516102b79190611dd3565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610328576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000341415610363576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518060e001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001348152602001848152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166304e45aaf34846040518363ffffffff1660e01b81526004016104b49190611ffa565b6020604051808303818588803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105069190611a14565b90507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161053992919061204b565b60405180910390a1809250505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806105d85750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561060f576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561064a576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106773330848673ffffffffffffffffffffffffffffffffffffffff16611399909392919063ffffffff16565b6106c27f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166114229092919063ffffffff16565b60006040518060800160405280857f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000604051602001610768959493929190611d48565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b858183f836040518263ffffffff1660e01b81526004016107ff9190611fd8565b602060405180830381600087803b15801561081957600080fd5b505af115801561082d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108519190611a14565b90507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f85858360405161088693929190611eae565b60405180910390a18092505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610927576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610962576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109af3330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611399909392919063ffffffff16565b610a1a7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166114229092919063ffffffff16565b60006040518060e001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff168152602001848152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166304e45aaf836040518263ffffffff1660e01b8152600401610b6a9190611ffa565b602060405180830381600087803b158015610b8457600080fd5b505af1158015610b98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbc9190611a14565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610c179190612030565b600060405180830381600087803b158015610c3157600080fd5b505af1158015610c45573d6000803e3d6000fd5b505050507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8482604051610c7a92919061204b565b60405180910390a160008673ffffffffffffffffffffffffffffffffffffffff1682604051610ca890611dbe565b60006040518083038185875af1925050503d8060008114610ce5576040519150601f19603f3d011682016040523d82523d6000602084013e610cea565b606091505b5050905080610d25576040517f3794aeaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8193505050509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631698ee827f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518463ffffffff1660e01b8152600401610e3a93929190611e17565b60206040518083038186803b158015610e5257600080fd5b505afa158015610e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8a9190611893565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ecb576000915050610f68565b600081905060008173ffffffffffffffffffffffffffffffffffffffff16631a6865026040518163ffffffff1660e01b815260040160206040518083038186803b158015610f1857600080fd5b505afa158015610f2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5091906119e7565b6fffffffffffffffffffffffffffffffff1611925050505b90565b60008060009054906101000a900460ff1615610fb3576040517f29f745a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110345750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561106b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156110a6576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110f33330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611399909392919063ffffffff16565b61115e7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166114229092919063ffffffff16565b600060405180608001604052807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089604051602001611204959493929190611d48565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b858183f836040518263ffffffff1660e01b815260040161129b9190611fd8565b602060405180830381600087803b1580156112b557600080fd5b505af11580156112c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ed9190611a14565b90507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b85858360405161132293929190611eae565b60405180910390a1809250505060008060006101000a81548160ff021916908315150217905550949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b61141c846323b872dd60e01b8585856040516024016113ba93929190611e4e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611580565b50505050565b60008114806114bb575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401611469929190611dee565b60206040518083038186803b15801561148157600080fd5b505afa158015611495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b99190611a14565b145b6114fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f190611fb8565b60405180910390fd5b61157b8363095ea7b360e01b8484604051602401611519929190611e85565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611580565b505050565b60006115e2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116479092919063ffffffff16565b9050600081511115611642578080602001905181019061160291906119ba565b611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163890611f98565b60405180910390fd5b5b505050565b6060611656848460008561165f565b90509392505050565b6060824710156116a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169b90611f58565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116cd9190611da7565b60006040518083038185875af1925050503d806000811461170a576040519150601f19603f3d011682016040523d82523d6000602084013e61170f565b606091505b50915091506117208783838761172c565b92505050949350505050565b6060831561178f5760008351141561178757611747856117a2565b611786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177d90611f78565b60405180910390fd5b5b82905061179a565b61179983836117c5565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156117d85781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c9190611f36565b60405180910390fd5b60008135905061182481612324565b92915050565b60008151905061183981612324565b92915050565b60008151905061184e8161233b565b92915050565b60008151905061186381612352565b92915050565b60008135905061187881612369565b92915050565b60008151905061188d81612369565b92915050565b6000602082840312156118a9576118a86121db565b5b60006118b78482850161182a565b91505092915050565b600080604083850312156118d7576118d66121db565b5b60006118e585828601611815565b92505060206118f685828601611869565b9150509250929050565b6000806000806080858703121561191a576119196121db565b5b600061192887828801611815565b945050602061193987828801611869565b935050604061194a87828801611815565b925050606061195b87828801611869565b91505092959194509250565b6000806000606084860312156119805761197f6121db565b5b600061198e86828701611815565b935050602061199f86828701611869565b92505060406119b086828701611869565b9150509250925092565b6000602082840312156119d0576119cf6121db565b5b60006119de8482850161183f565b91505092915050565b6000602082840312156119fd576119fc6121db565b5b6000611a0b84828501611854565b91505092915050565b600060208284031215611a2a57611a296121db565b5b6000611a388482850161187e565b91505092915050565b611a4a816120b7565b82525050565b611a59816120b7565b82525050565b611a70611a6b826120b7565b6121a5565b82525050565b611a7f816120c9565b82525050565b6000611a9082612074565b611a9a818561208a565b9350611aaa818560208601612172565b611ab3816121e0565b840191505092915050565b6000611ac982612074565b611ad3818561209b565b9350611ae3818560208601612172565b80840191505092915050565b611af88161212a565b82525050565b611b078161213c565b82525050565b6000611b188261207f565b611b2281856120a6565b9350611b32818560208601612172565b611b3b816121e0565b840191505092915050565b6000611b536026836120a6565b9150611b5e8261220b565b604082019050919050565b6000611b7660008361209b565b9150611b818261225a565b600082019050919050565b6000611b99601d836120a6565b9150611ba48261225d565b602082019050919050565b6000611bbc602a836120a6565b9150611bc782612286565b604082019050919050565b6000611bdf6036836120a6565b9150611bea826122d5565b604082019050919050565b60006080830160008301518482036000860152611c128282611a85565b9150506020830151611c276020860182611a41565b506040830151611c3a6040860182611d2a565b506060830151611c4d6060860182611d2a565b508091505092915050565b60e082016000820151611c6e6000850182611a41565b506020820151611c816020850182611a41565b506040820151611c946040850182611cf5565b506060820151611ca76060850182611a41565b506080820151611cba6080850182611d2a565b5060a0820151611ccd60a0850182611d2a565b5060c0820151611ce060c0850182611ce6565b50505050565b611cef816120f1565b82525050565b611cfe81612111565b82525050565b611d0d81612111565b82525050565b611d24611d1f82612111565b6121c9565b82525050565b611d3381612120565b82525050565b611d4281612120565b82525050565b6000611d548288611a5f565b601482019150611d648287611d13565b600382019150611d748286611a5f565b601482019150611d848285611d13565b600382019150611d948284611a5f565b6014820191508190509695505050505050565b6000611db38284611abe565b915081905092915050565b6000611dc982611b69565b9150819050919050565b6000602082019050611de86000830184611a50565b92915050565b6000604082019050611e036000830185611a50565b611e106020830184611a50565b9392505050565b6000606082019050611e2c6000830186611a50565b611e396020830185611a50565b611e466040830184611d04565b949350505050565b6000606082019050611e636000830186611a50565b611e706020830185611a50565b611e7d6040830184611d39565b949350505050565b6000604082019050611e9a6000830185611a50565b611ea76020830184611d39565b9392505050565b6000606082019050611ec36000830186611a50565b611ed06020830185611d39565b611edd6040830184611d39565b949350505050565b6000602082019050611efa6000830184611a76565b92915050565b6000602082019050611f156000830184611aef565b92915050565b6000602082019050611f306000830184611afe565b92915050565b60006020820190508181036000830152611f508184611b0d565b905092915050565b60006020820190508181036000830152611f7181611b46565b9050919050565b60006020820190508181036000830152611f9181611b8c565b9050919050565b60006020820190508181036000830152611fb181611baf565b9050919050565b60006020820190508181036000830152611fd181611bd2565b9050919050565b60006020820190508181036000830152611ff28184611bf5565b905092915050565b600060e08201905061200f6000830184611c58565b92915050565b600060208201905061202a6000830184611d04565b92915050565b60006020820190506120456000830184611d39565b92915050565b60006040820190506120606000830185611d39565b61206d6020830184611d39565b9392505050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006120c2826120f1565b9050919050565b60008115159050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b60006121358261214e565b9050919050565b60006121478261214e565b9050919050565b600061215982612160565b9050919050565b600061216b826120f1565b9050919050565b60005b83811015612190578082015181840152602081019050612175565b8381111561219f576000848401525b50505050565b60006121b0826121b7565b9050919050565b60006121c2826121fe565b9050919050565b60006121d4826121f1565b9050919050565b600080fd5b6000601f19601f8301169050919050565b60008160e81b9050919050565b60008160601b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b61232d816120b7565b811461233857600080fd5b50565b612344816120c9565b811461234f57600080fd5b50565b61235b816120d5565b811461236657600080fd5b50565b61237281612120565b811461237d57600080fd5b5056fea26469706673582212208a18b8a2abc958aa0cad934a5005344d1b05623bd9c3bfa606e20b2e17df210364736f6c63430008070033", -} - -// ZetaTokenConsumerPancakeV3ABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerPancakeV3MetaData.ABI instead. -var ZetaTokenConsumerPancakeV3ABI = ZetaTokenConsumerPancakeV3MetaData.ABI - -// ZetaTokenConsumerPancakeV3Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaTokenConsumerPancakeV3MetaData.Bin instead. -var ZetaTokenConsumerPancakeV3Bin = ZetaTokenConsumerPancakeV3MetaData.Bin - -// DeployZetaTokenConsumerPancakeV3 deploys a new Ethereum contract, binding an instance of ZetaTokenConsumerPancakeV3 to it. -func DeployZetaTokenConsumerPancakeV3(auth *bind.TransactOpts, backend bind.ContractBackend, zetaToken_ common.Address, pancakeV3Router_ common.Address, uniswapV3Factory_ common.Address, WETH9Address_ common.Address, zetaPoolFee_ *big.Int, tokenPoolFee_ *big.Int) (common.Address, *types.Transaction, *ZetaTokenConsumerPancakeV3, error) { - parsed, err := ZetaTokenConsumerPancakeV3MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaTokenConsumerPancakeV3Bin), backend, zetaToken_, pancakeV3Router_, uniswapV3Factory_, WETH9Address_, zetaPoolFee_, tokenPoolFee_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaTokenConsumerPancakeV3{ZetaTokenConsumerPancakeV3Caller: ZetaTokenConsumerPancakeV3Caller{contract: contract}, ZetaTokenConsumerPancakeV3Transactor: ZetaTokenConsumerPancakeV3Transactor{contract: contract}, ZetaTokenConsumerPancakeV3Filterer: ZetaTokenConsumerPancakeV3Filterer{contract: contract}}, nil -} - -// ZetaTokenConsumerPancakeV3 is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerPancakeV3 struct { - ZetaTokenConsumerPancakeV3Caller // Read-only binding to the contract - ZetaTokenConsumerPancakeV3Transactor // Write-only binding to the contract - ZetaTokenConsumerPancakeV3Filterer // Log filterer for contract events -} - -// ZetaTokenConsumerPancakeV3Caller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerPancakeV3Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerPancakeV3Transactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerPancakeV3Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerPancakeV3Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerPancakeV3Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerPancakeV3Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerPancakeV3Session struct { - Contract *ZetaTokenConsumerPancakeV3 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerPancakeV3CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerPancakeV3CallerSession struct { - Contract *ZetaTokenConsumerPancakeV3Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerPancakeV3TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerPancakeV3TransactorSession struct { - Contract *ZetaTokenConsumerPancakeV3Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerPancakeV3Raw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerPancakeV3Raw struct { - Contract *ZetaTokenConsumerPancakeV3 // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerPancakeV3CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerPancakeV3CallerRaw struct { - Contract *ZetaTokenConsumerPancakeV3Caller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerPancakeV3TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerPancakeV3TransactorRaw struct { - Contract *ZetaTokenConsumerPancakeV3Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerPancakeV3 creates a new instance of ZetaTokenConsumerPancakeV3, bound to a specific deployed contract. -func NewZetaTokenConsumerPancakeV3(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerPancakeV3, error) { - contract, err := bindZetaTokenConsumerPancakeV3(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3{ZetaTokenConsumerPancakeV3Caller: ZetaTokenConsumerPancakeV3Caller{contract: contract}, ZetaTokenConsumerPancakeV3Transactor: ZetaTokenConsumerPancakeV3Transactor{contract: contract}, ZetaTokenConsumerPancakeV3Filterer: ZetaTokenConsumerPancakeV3Filterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerPancakeV3Caller creates a new read-only instance of ZetaTokenConsumerPancakeV3, bound to a specific deployed contract. -func NewZetaTokenConsumerPancakeV3Caller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerPancakeV3Caller, error) { - contract, err := bindZetaTokenConsumerPancakeV3(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3Caller{contract: contract}, nil -} - -// NewZetaTokenConsumerPancakeV3Transactor creates a new write-only instance of ZetaTokenConsumerPancakeV3, bound to a specific deployed contract. -func NewZetaTokenConsumerPancakeV3Transactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerPancakeV3Transactor, error) { - contract, err := bindZetaTokenConsumerPancakeV3(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3Transactor{contract: contract}, nil -} - -// NewZetaTokenConsumerPancakeV3Filterer creates a new log filterer instance of ZetaTokenConsumerPancakeV3, bound to a specific deployed contract. -func NewZetaTokenConsumerPancakeV3Filterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerPancakeV3Filterer, error) { - contract, err := bindZetaTokenConsumerPancakeV3(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3Filterer{contract: contract}, nil -} - -// bindZetaTokenConsumerPancakeV3 binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerPancakeV3(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerPancakeV3MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerPancakeV3.Contract.ZetaTokenConsumerPancakeV3Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.ZetaTokenConsumerPancakeV3Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.ZetaTokenConsumerPancakeV3Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerPancakeV3.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.contract.Transact(opts, method, params...) -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Caller) WETH9Address(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerPancakeV3.contract.Call(opts, &out, "WETH9Address") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) WETH9Address() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.WETH9Address(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerSession) WETH9Address() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.WETH9Address(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Caller) HasZetaLiquidity(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaTokenConsumerPancakeV3.contract.Call(opts, &out, "hasZetaLiquidity") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerPancakeV3.Contract.HasZetaLiquidity(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerPancakeV3.Contract.HasZetaLiquidity(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// PancakeV3Router is a free data retrieval call binding the contract method 0xc27745dd. -// -// Solidity: function pancakeV3Router() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Caller) PancakeV3Router(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerPancakeV3.contract.Call(opts, &out, "pancakeV3Router") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PancakeV3Router is a free data retrieval call binding the contract method 0xc27745dd. -// -// Solidity: function pancakeV3Router() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) PancakeV3Router() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.PancakeV3Router(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// PancakeV3Router is a free data retrieval call binding the contract method 0xc27745dd. -// -// Solidity: function pancakeV3Router() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerSession) PancakeV3Router() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.PancakeV3Router(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// TokenPoolFee is a free data retrieval call binding the contract method 0x5d9dfdde. -// -// Solidity: function tokenPoolFee() view returns(uint24) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Caller) TokenPoolFee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaTokenConsumerPancakeV3.contract.Call(opts, &out, "tokenPoolFee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TokenPoolFee is a free data retrieval call binding the contract method 0x5d9dfdde. -// -// Solidity: function tokenPoolFee() view returns(uint24) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) TokenPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerPancakeV3.Contract.TokenPoolFee(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// TokenPoolFee is a free data retrieval call binding the contract method 0x5d9dfdde. -// -// Solidity: function tokenPoolFee() view returns(uint24) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerSession) TokenPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerPancakeV3.Contract.TokenPoolFee(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// UniswapV3Factory is a free data retrieval call binding the contract method 0x5b549182. -// -// Solidity: function uniswapV3Factory() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Caller) UniswapV3Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerPancakeV3.contract.Call(opts, &out, "uniswapV3Factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// UniswapV3Factory is a free data retrieval call binding the contract method 0x5b549182. -// -// Solidity: function uniswapV3Factory() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) UniswapV3Factory() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.UniswapV3Factory(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// UniswapV3Factory is a free data retrieval call binding the contract method 0x5b549182. -// -// Solidity: function uniswapV3Factory() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerSession) UniswapV3Factory() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.UniswapV3Factory(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// ZetaPoolFee is a free data retrieval call binding the contract method 0x3cbd7005. -// -// Solidity: function zetaPoolFee() view returns(uint24) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Caller) ZetaPoolFee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaTokenConsumerPancakeV3.contract.Call(opts, &out, "zetaPoolFee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// ZetaPoolFee is a free data retrieval call binding the contract method 0x3cbd7005. -// -// Solidity: function zetaPoolFee() view returns(uint24) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) ZetaPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerPancakeV3.Contract.ZetaPoolFee(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// ZetaPoolFee is a free data retrieval call binding the contract method 0x3cbd7005. -// -// Solidity: function zetaPoolFee() view returns(uint24) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerSession) ZetaPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerPancakeV3.Contract.ZetaPoolFee(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Caller) ZetaToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerPancakeV3.contract.Call(opts, &out, "zetaToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.ZetaToken(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3CallerSession) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerPancakeV3.Contract.ZetaToken(&_ZetaTokenConsumerPancakeV3.CallOpts) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Transactor) GetEthFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.contract.Transact(opts, "getEthFromZeta", destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetEthFromZeta(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3TransactorSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetEthFromZeta(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Transactor) GetTokenFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.contract.Transact(opts, "getTokenFromZeta", destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetTokenFromZeta(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3TransactorSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetTokenFromZeta(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Transactor) GetZetaFromEth(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.contract.Transact(opts, "getZetaFromEth", destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetZetaFromEth(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3TransactorSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetZetaFromEth(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Transactor) GetZetaFromToken(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.contract.Transact(opts, "getZetaFromToken", destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetZetaFromToken(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3TransactorSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.GetZetaFromToken(&_ZetaTokenConsumerPancakeV3.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Session) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.Receive(&_ZetaTokenConsumerPancakeV3.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3TransactorSession) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerPancakeV3.Contract.Receive(&_ZetaTokenConsumerPancakeV3.TransactOpts) -} - -// ZetaTokenConsumerPancakeV3EthExchangedForZetaIterator is returned from FilterEthExchangedForZeta and is used to iterate over the raw logs and unpacked data for EthExchangedForZeta events raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3EthExchangedForZetaIterator struct { - Event *ZetaTokenConsumerPancakeV3EthExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerPancakeV3EthExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3EthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3EthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerPancakeV3EthExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerPancakeV3EthExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerPancakeV3EthExchangedForZeta represents a EthExchangedForZeta event raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3EthExchangedForZeta struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterEthExchangedForZeta is a free log retrieval operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) FilterEthExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerPancakeV3EthExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.FilterLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3EthExchangedForZetaIterator{contract: _ZetaTokenConsumerPancakeV3.contract, event: "EthExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchEthExchangedForZeta is a free log subscription operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) WatchEthExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerPancakeV3EthExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.WatchLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerPancakeV3EthExchangedForZeta) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseEthExchangedForZeta is a log parse operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) ParseEthExchangedForZeta(log types.Log) (*ZetaTokenConsumerPancakeV3EthExchangedForZeta, error) { - event := new(ZetaTokenConsumerPancakeV3EthExchangedForZeta) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerPancakeV3TokenExchangedForZetaIterator is returned from FilterTokenExchangedForZeta and is used to iterate over the raw logs and unpacked data for TokenExchangedForZeta events raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3TokenExchangedForZetaIterator struct { - Event *ZetaTokenConsumerPancakeV3TokenExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerPancakeV3TokenExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3TokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3TokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerPancakeV3TokenExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerPancakeV3TokenExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerPancakeV3TokenExchangedForZeta represents a TokenExchangedForZeta event raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3TokenExchangedForZeta struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTokenExchangedForZeta is a free log retrieval operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) FilterTokenExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerPancakeV3TokenExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.FilterLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3TokenExchangedForZetaIterator{contract: _ZetaTokenConsumerPancakeV3.contract, event: "TokenExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchTokenExchangedForZeta is a free log subscription operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) WatchTokenExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerPancakeV3TokenExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.WatchLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerPancakeV3TokenExchangedForZeta) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTokenExchangedForZeta is a log parse operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) ParseTokenExchangedForZeta(log types.Log) (*ZetaTokenConsumerPancakeV3TokenExchangedForZeta, error) { - event := new(ZetaTokenConsumerPancakeV3TokenExchangedForZeta) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerPancakeV3ZetaExchangedForEthIterator is returned from FilterZetaExchangedForEth and is used to iterate over the raw logs and unpacked data for ZetaExchangedForEth events raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3ZetaExchangedForEthIterator struct { - Event *ZetaTokenConsumerPancakeV3ZetaExchangedForEth // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerPancakeV3ZetaExchangedForEthIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3ZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3ZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerPancakeV3ZetaExchangedForEthIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerPancakeV3ZetaExchangedForEthIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerPancakeV3ZetaExchangedForEth represents a ZetaExchangedForEth event raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3ZetaExchangedForEth struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForEth is a free log retrieval operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) FilterZetaExchangedForEth(opts *bind.FilterOpts) (*ZetaTokenConsumerPancakeV3ZetaExchangedForEthIterator, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.FilterLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3ZetaExchangedForEthIterator{contract: _ZetaTokenConsumerPancakeV3.contract, event: "ZetaExchangedForEth", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForEth is a free log subscription operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) WatchZetaExchangedForEth(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerPancakeV3ZetaExchangedForEth) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.WatchLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerPancakeV3ZetaExchangedForEth) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForEth is a log parse operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) ParseZetaExchangedForEth(log types.Log) (*ZetaTokenConsumerPancakeV3ZetaExchangedForEth, error) { - event := new(ZetaTokenConsumerPancakeV3ZetaExchangedForEth) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerPancakeV3ZetaExchangedForTokenIterator is returned from FilterZetaExchangedForToken and is used to iterate over the raw logs and unpacked data for ZetaExchangedForToken events raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3ZetaExchangedForTokenIterator struct { - Event *ZetaTokenConsumerPancakeV3ZetaExchangedForToken // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerPancakeV3ZetaExchangedForTokenIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3ZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerPancakeV3ZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerPancakeV3ZetaExchangedForTokenIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerPancakeV3ZetaExchangedForTokenIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerPancakeV3ZetaExchangedForToken represents a ZetaExchangedForToken event raised by the ZetaTokenConsumerPancakeV3 contract. -type ZetaTokenConsumerPancakeV3ZetaExchangedForToken struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForToken is a free log retrieval operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) FilterZetaExchangedForToken(opts *bind.FilterOpts) (*ZetaTokenConsumerPancakeV3ZetaExchangedForTokenIterator, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.FilterLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerPancakeV3ZetaExchangedForTokenIterator{contract: _ZetaTokenConsumerPancakeV3.contract, event: "ZetaExchangedForToken", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForToken is a free log subscription operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) WatchZetaExchangedForToken(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerPancakeV3ZetaExchangedForToken) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerPancakeV3.contract.WatchLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerPancakeV3ZetaExchangedForToken) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForToken is a log parse operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerPancakeV3 *ZetaTokenConsumerPancakeV3Filterer) ParseZetaExchangedForToken(log types.Log) (*ZetaTokenConsumerPancakeV3ZetaExchangedForToken, error) { - event := new(ZetaTokenConsumerPancakeV3ZetaExchangedForToken) - if err := _ZetaTokenConsumerPancakeV3.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumeruniv3errors.go b/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumeruniv3errors.go deleted file mode 100644 index 65658391d..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumerpancakev3.strategy.sol/zetatokenconsumeruniv3errors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumerpancakev3 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerUniV3ErrorsMetaData contains all meta data concerning the ZetaTokenConsumerUniV3Errors contract. -var ZetaTokenConsumerUniV3ErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"}]", -} - -// ZetaTokenConsumerUniV3ErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerUniV3ErrorsMetaData.ABI instead. -var ZetaTokenConsumerUniV3ErrorsABI = ZetaTokenConsumerUniV3ErrorsMetaData.ABI - -// ZetaTokenConsumerUniV3Errors is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3Errors struct { - ZetaTokenConsumerUniV3ErrorsCaller // Read-only binding to the contract - ZetaTokenConsumerUniV3ErrorsTransactor // Write-only binding to the contract - ZetaTokenConsumerUniV3ErrorsFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerUniV3ErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3ErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3ErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerUniV3ErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3ErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerUniV3ErrorsSession struct { - Contract *ZetaTokenConsumerUniV3Errors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV3ErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerUniV3ErrorsCallerSession struct { - Contract *ZetaTokenConsumerUniV3ErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerUniV3ErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerUniV3ErrorsTransactorSession struct { - Contract *ZetaTokenConsumerUniV3ErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV3ErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsRaw struct { - Contract *ZetaTokenConsumerUniV3Errors // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV3ErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsCallerRaw struct { - Contract *ZetaTokenConsumerUniV3ErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV3ErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsTransactorRaw struct { - Contract *ZetaTokenConsumerUniV3ErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerUniV3Errors creates a new instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3Errors(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerUniV3Errors, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3Errors{ZetaTokenConsumerUniV3ErrorsCaller: ZetaTokenConsumerUniV3ErrorsCaller{contract: contract}, ZetaTokenConsumerUniV3ErrorsTransactor: ZetaTokenConsumerUniV3ErrorsTransactor{contract: contract}, ZetaTokenConsumerUniV3ErrorsFilterer: ZetaTokenConsumerUniV3ErrorsFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerUniV3ErrorsCaller creates a new read-only instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3ErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerUniV3ErrorsCaller, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ErrorsCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV3ErrorsTransactor creates a new write-only instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3ErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerUniV3ErrorsTransactor, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ErrorsTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV3ErrorsFilterer creates a new log filterer instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3ErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerUniV3ErrorsFilterer, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ErrorsFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumerUniV3Errors binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerUniV3Errors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerUniV3ErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV3Errors.Contract.ZetaTokenConsumerUniV3ErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.ZetaTokenConsumerUniV3ErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.ZetaTokenConsumerUniV3ErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV3Errors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/weth9.go b/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/weth9.go deleted file mode 100644 index b81ea2157..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/weth9.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumertrident - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// WETH9MetaData contains all meta data concerning the WETH9 contract. -var WETH9MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"depositTo\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"withdrawTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// WETH9ABI is the input ABI used to generate the binding from. -// Deprecated: Use WETH9MetaData.ABI instead. -var WETH9ABI = WETH9MetaData.ABI - -// WETH9 is an auto generated Go binding around an Ethereum contract. -type WETH9 struct { - WETH9Caller // Read-only binding to the contract - WETH9Transactor // Write-only binding to the contract - WETH9Filterer // Log filterer for contract events -} - -// WETH9Caller is an auto generated read-only Go binding around an Ethereum contract. -type WETH9Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Transactor is an auto generated write-only Go binding around an Ethereum contract. -type WETH9Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type WETH9Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type WETH9Session struct { - Contract *WETH9 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type WETH9CallerSession struct { - Contract *WETH9Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// WETH9TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type WETH9TransactorSession struct { - Contract *WETH9Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9Raw is an auto generated low-level Go binding around an Ethereum contract. -type WETH9Raw struct { - Contract *WETH9 // Generic contract binding to access the raw methods on -} - -// WETH9CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type WETH9CallerRaw struct { - Contract *WETH9Caller // Generic read-only contract binding to access the raw methods on -} - -// WETH9TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type WETH9TransactorRaw struct { - Contract *WETH9Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewWETH9 creates a new instance of WETH9, bound to a specific deployed contract. -func NewWETH9(address common.Address, backend bind.ContractBackend) (*WETH9, error) { - contract, err := bindWETH9(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &WETH9{WETH9Caller: WETH9Caller{contract: contract}, WETH9Transactor: WETH9Transactor{contract: contract}, WETH9Filterer: WETH9Filterer{contract: contract}}, nil -} - -// NewWETH9Caller creates a new read-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Caller(address common.Address, caller bind.ContractCaller) (*WETH9Caller, error) { - contract, err := bindWETH9(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &WETH9Caller{contract: contract}, nil -} - -// NewWETH9Transactor creates a new write-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Transactor(address common.Address, transactor bind.ContractTransactor) (*WETH9Transactor, error) { - contract, err := bindWETH9(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &WETH9Transactor{contract: contract}, nil -} - -// NewWETH9Filterer creates a new log filterer instance of WETH9, bound to a specific deployed contract. -func NewWETH9Filterer(address common.Address, filterer bind.ContractFilterer) (*WETH9Filterer, error) { - contract, err := bindWETH9(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &WETH9Filterer{contract: contract}, nil -} - -// bindWETH9 binds a generic wrapper to an already deployed contract. -func bindWETH9(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := WETH9MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.WETH9Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transact(opts, method, params...) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_WETH9 *WETH9Transactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "deposit") -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_WETH9 *WETH9Session) Deposit() (*types.Transaction, error) { - return _WETH9.Contract.Deposit(&_WETH9.TransactOpts) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_WETH9 *WETH9TransactorSession) Deposit() (*types.Transaction, error) { - return _WETH9.Contract.Deposit(&_WETH9.TransactOpts) -} - -// DepositTo is a paid mutator transaction binding the contract method 0xb760faf9. -// -// Solidity: function depositTo(address to) payable returns() -func (_WETH9 *WETH9Transactor) DepositTo(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "depositTo", to) -} - -// DepositTo is a paid mutator transaction binding the contract method 0xb760faf9. -// -// Solidity: function depositTo(address to) payable returns() -func (_WETH9 *WETH9Session) DepositTo(to common.Address) (*types.Transaction, error) { - return _WETH9.Contract.DepositTo(&_WETH9.TransactOpts, to) -} - -// DepositTo is a paid mutator transaction binding the contract method 0xb760faf9. -// -// Solidity: function depositTo(address to) payable returns() -func (_WETH9 *WETH9TransactorSession) DepositTo(to common.Address) (*types.Transaction, error) { - return _WETH9.Contract.DepositTo(&_WETH9.TransactOpts, to) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Transactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "withdraw", wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Session) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9TransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} - -// WithdrawTo is a paid mutator transaction binding the contract method 0x205c2878. -// -// Solidity: function withdrawTo(address to, uint256 value) returns() -func (_WETH9 *WETH9Transactor) WithdrawTo(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "withdrawTo", to, value) -} - -// WithdrawTo is a paid mutator transaction binding the contract method 0x205c2878. -// -// Solidity: function withdrawTo(address to, uint256 value) returns() -func (_WETH9 *WETH9Session) WithdrawTo(to common.Address, value *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.WithdrawTo(&_WETH9.TransactOpts, to, value) -} - -// WithdrawTo is a paid mutator transaction binding the contract method 0x205c2878. -// -// Solidity: function withdrawTo(address to, uint256 value) returns() -func (_WETH9 *WETH9TransactorSession) WithdrawTo(to common.Address, value *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.WithdrawTo(&_WETH9.TransactOpts, to, value) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertrident.go b/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertrident.go deleted file mode 100644 index 178c35991..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertrident.go +++ /dev/null @@ -1,974 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumertrident - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerTridentMetaData contains all meta data concerning the ZetaTokenConsumerTrident contract. -var ZetaTokenConsumerTridentMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapV3Router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"WETH9Address_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"poolFactory_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"EthExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"TokenExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForEth\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForToken\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getEthFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"outputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getTokenFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"}],\"name\":\"getZetaFromEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getZetaFromToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasZetaLiquidity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolFactory\",\"outputs\":[{\"internalType\":\"contractConcentratedLiquidityPoolFactory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tridentRouter\",\"outputs\":[{\"internalType\":\"contractIPoolRouter\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", - Bin: "0x6101006040523480156200001257600080fd5b5060405162002b5a38038062002b5a833981810160405281019062000038919062000245565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000a05750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000d85750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80620001105750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000148576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505050506200030a565b6000815190506200023f81620002f0565b92915050565b60008060008060808587031215620002625762000261620002eb565b5b600062000272878288016200022e565b945050602062000285878288016200022e565b935050604062000298878288016200022e565b9250506060620002ab878288016200022e565b91505092959194509250565b6000620002c482620002cb565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620002fb81620002b7565b81146200030757600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6127466200041460003960008181610316015281816107000152818161080c01528181610b4201528181610d14015281816111e301526112cf0152600081816104620152818161068501528181610a4801528181610c5901528181610e7f01528181610f7401528181611128015261152b0152600081816102ea01528181610557015281816107dc01528181610c0f01528181610c7b01528181610cc701528181610dd9015281816110de0152818161114a0152818161119601526114b60152600081816102c9015281816106d4015281816107bb01528181610ce8015281816111b7015261129e01526127466000f3fe60806040526004361061007f5760003560e01c806354c49a2a1161004e57806354c49a2a1461014e57806364b5528a1461018b57806380801f84146101b6578063a53fb10b146101e157610086565b8063013b2ff81461008b57806321e093b1146100bb5780632405620a146100e65780634219dc401461012357610086565b3661008657005b600080fd5b6100a560048036038101906100a09190611c10565b61021e565b6040516100b2919061231a565b60405180910390f35b3480156100c757600080fd5b506100d0610555565b6040516100dd91906120ca565b60405180910390f35b3480156100f257600080fd5b5061010d60048036038101906101089190611c50565b610579565b60405161011a919061231a565b60405180910390f35b34801561012f57600080fd5b50610138610b40565b6040516101459190612205565b60405180910390f35b34801561015a57600080fd5b5061017560048036038101906101709190611cb7565b610b64565b604051610182919061231a565b60405180910390f35b34801561019757600080fd5b506101a0610f72565b6040516101ad9190612220565b60405180910390f35b3480156101c257600080fd5b506101cb610f96565b6040516101d891906121ea565b60405180910390f35b3480156101ed57600080fd5b5061020860048036038101906102039190611c50565b610f9b565b604051610215919061231a565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610286576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003414156102c1576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061030e7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b8152600401610375949392919061210e565b60006040518083038186803b15801561038d57600080fd5b505afa1580156103a1573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906103ca9190611d0a565b905060006040518060c00160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020013481526020018781526020018360008151811061041657610415612532565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c07f5c3234846040518363ffffffff1660e01b81526004016104ba91906122ff565b6020604051808303818588803b1580156104d357600080fd5b505af11580156104e7573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061050c9190611d80565b90507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161053f929190612335565b60405180910390a1809550505050505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806105e15750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610618576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610653576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106803330848673ffffffffffffffffffffffffffffffffffffffff1661168d909392919063ffffffff16565b6106cb7f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166117169092919063ffffffff16565b6000806106f8857f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b815260040161075f949392919061210e565b60006040518083038186803b15801561077757600080fd5b505afa15801561078b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906107b49190611d0a565b90506108007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b809350819450505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128585600060016040518563ffffffff1660e01b815260040161086b949392919061210e565b60006040518083038186803b15801561088357600080fd5b505afa158015610897573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906108c09190611d0a565b90506000600267ffffffffffffffff8111156108df576108de612561565b5b60405190808252806020026020018201604052801561090d5781602001602082028036833780820191505090505b5090508260008151811061092457610923612532565b5b6020026020010151816000815181106109405761093f612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508160008151811061098e5761098d612532565b5b6020026020010151816001815181106109aa576109a9612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060006040518060c001604052808a73ffffffffffffffffffffffffffffffffffffffff1681526020018981526020018b81526020018381526020018c73ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663363a9dba836040518263ffffffff1660e01b8152600401610a9f91906122dd565b602060405180830381600087803b158015610ab957600080fd5b505af1158015610acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af19190611d80565b90507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f8a8a83604051610b26939291906121b3565b60405180910390a180975050505050505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610bcc576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610c07576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c543330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661168d909392919063ffffffff16565b610cbf7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166117169092919063ffffffff16565b600080610d0c7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b8152600401610d73949392919061210e565b60006040518083038186803b158015610d8b57600080fd5b505afa158015610d9f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610dc89190611d0a565b905060006040518060c001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16815260200187815260200188815260200183600081518110610e3357610e32612532565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff16815260200160011515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c07f5c32836040518263ffffffff1660e01b8152600401610ed691906122ff565b602060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f289190611d80565b90507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8782604051610f5b929190612335565b60405180910390a180955050505050509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600090565b60008060009054906101000a900460ff1615610fe3576040517f29f745a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110645750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561109b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156110d6576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111233330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661168d909392919063ffffffff16565b61118e7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166117169092919063ffffffff16565b6000806111db7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b8152600401611242949392919061210e565b60006040518083038186803b15801561125a57600080fd5b505afa15801561126e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906112979190611d0a565b90506112c37f00000000000000000000000000000000000000000000000000000000000000008761163d565b809350819450505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128585600060016040518563ffffffff1660e01b815260040161132e949392919061210e565b60006040518083038186803b15801561134657600080fd5b505afa15801561135a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906113839190611d0a565b90506000600267ffffffffffffffff8111156113a2576113a1612561565b5b6040519080825280602002602001820160405280156113d05781602001602082028036833780820191505090505b509050826000815181106113e7576113e6612532565b5b60200260200101518160008151811061140357611402612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508160008151811061145157611450612532565b5b60200260200101518160018151811061146d5761146c612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060006040518060c001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020018981526020018b81526020018381526020018c73ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663363a9dba836040518263ffffffff1660e01b815260040161158291906122dd565b602060405180830381600087803b15801561159c57600080fd5b505af11580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190611d80565b90507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b8a8a83604051611609939291906121b3565b60405180910390a18097505050505050505060008060006101000a81548160ff021916908315150217905550949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16101561167f57838391509150611686565b8284915091505b9250929050565b611710846323b872dd60e01b8585856040516024016116ae93929190612153565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611874565b50505050565b60008114806117af575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161175d9291906120e5565b60206040518083038186803b15801561177557600080fd5b505afa158015611789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ad9190611d80565b145b6117ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e5906122bd565b60405180910390fd5b61186f8363095ea7b360e01b848460405160240161180d92919061218a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611874565b505050565b60006118d6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661193b9092919063ffffffff16565b905060008151111561193657808060200190518101906118f69190611d53565b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c9061229d565b60405180910390fd5b5b505050565b606061194a8484600085611953565b90509392505050565b606082471015611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f9061225d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516119c191906120b3565b60006040518083038185875af1925050503d80600081146119fe576040519150601f19603f3d011682016040523d82523d6000602084013e611a03565b606091505b5091509150611a1487838387611a20565b92505050949350505050565b60608315611a8357600083511415611a7b57611a3b85611a96565b611a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a719061227d565b60405180910390fd5b5b829050611a8e565b611a8d8383611ab9565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611acc5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b00919061223b565b60405180910390fd5b6000611b1c611b1784612383565b61235e565b90508083825260208201905082856020860282011115611b3f57611b3e612595565b5b60005b85811015611b6f5781611b558882611b8e565b845260208401935060208301925050600181019050611b42565b5050509392505050565b600081359050611b88816126cb565b92915050565b600081519050611b9d816126cb565b92915050565b600082601f830112611bb857611bb7612590565b5b8151611bc8848260208601611b09565b91505092915050565b600081519050611be0816126e2565b92915050565b600081359050611bf5816126f9565b92915050565b600081519050611c0a816126f9565b92915050565b60008060408385031215611c2757611c2661259f565b5b6000611c3585828601611b79565b9250506020611c4685828601611be6565b9150509250929050565b60008060008060808587031215611c6a57611c6961259f565b5b6000611c7887828801611b79565b9450506020611c8987828801611be6565b9350506040611c9a87828801611b79565b9250506060611cab87828801611be6565b91505092959194509250565b600080600060608486031215611cd057611ccf61259f565b5b6000611cde86828701611b79565b9350506020611cef86828701611be6565b9250506040611d0086828701611be6565b9150509250925092565b600060208284031215611d2057611d1f61259f565b5b600082015167ffffffffffffffff811115611d3e57611d3d61259a565b5b611d4a84828501611ba3565b91505092915050565b600060208284031215611d6957611d6861259f565b5b6000611d7784828501611bd1565b91505092915050565b600060208284031215611d9657611d9561259f565b5b6000611da484828501611bfb565b91505092915050565b6000611db98383611dc5565b60208301905092915050565b611dce8161241a565b82525050565b611ddd8161241a565b82525050565b6000611dee826123bf565b611df881856123ed565b9350611e03836123af565b8060005b83811015611e34578151611e1b8882611dad565b9750611e26836123e0565b925050600181019050611e07565b5085935050505092915050565b611e4a8161242c565b82525050565b611e598161242c565b82525050565b6000611e6a826123ca565b611e7481856123fe565b9350611e848185602086016124ce565b80840191505092915050565b611e9981612462565b82525050565b611ea881612474565b82525050565b611eb781612486565b82525050565b611ec681612498565b82525050565b6000611ed7826123d5565b611ee18185612409565b9350611ef18185602086016124ce565b611efa816125a4565b840191505092915050565b6000611f12602683612409565b9150611f1d826125b5565b604082019050919050565b6000611f35601d83612409565b9150611f4082612604565b602082019050919050565b6000611f58602a83612409565b9150611f638261262d565b604082019050919050565b6000611f7b603683612409565b9150611f868261267c565b604082019050919050565b600060c083016000830151611fa96000860182611dc5565b506020830151611fbc6020860182612095565b506040830151611fcf6040860182612095565b5060608301518482036060860152611fe78282611de3565b9150506080830151611ffc6080860182611dc5565b5060a083015161200f60a0860182611e41565b508091505092915050565b60c0820160008201516120306000850182611dc5565b5060208201516120436020850182612095565b5060408201516120566040850182612095565b5060608201516120696060850182611dc5565b50608082015161207c6080850182611dc5565b5060a082015161208f60a0850182611e41565b50505050565b61209e81612458565b82525050565b6120ad81612458565b82525050565b60006120bf8284611e5f565b915081905092915050565b60006020820190506120df6000830184611dd4565b92915050565b60006040820190506120fa6000830185611dd4565b6121076020830184611dd4565b9392505050565b60006080820190506121236000830187611dd4565b6121306020830186611dd4565b61213d6040830185611eae565b61214a6060830184611ebd565b95945050505050565b60006060820190506121686000830186611dd4565b6121756020830185611dd4565b61218260408301846120a4565b949350505050565b600060408201905061219f6000830185611dd4565b6121ac60208301846120a4565b9392505050565b60006060820190506121c86000830186611dd4565b6121d560208301856120a4565b6121e260408301846120a4565b949350505050565b60006020820190506121ff6000830184611e50565b92915050565b600060208201905061221a6000830184611e90565b92915050565b60006020820190506122356000830184611e9f565b92915050565b600060208201905081810360008301526122558184611ecc565b905092915050565b6000602082019050818103600083015261227681611f05565b9050919050565b6000602082019050818103600083015261229681611f28565b9050919050565b600060208201905081810360008301526122b681611f4b565b9050919050565b600060208201905081810360008301526122d681611f6e565b9050919050565b600060208201905081810360008301526122f78184611f91565b905092915050565b600060c082019050612314600083018461201a565b92915050565b600060208201905061232f60008301846120a4565b92915050565b600060408201905061234a60008301856120a4565b61235760208301846120a4565b9392505050565b6000612368612379565b90506123748282612501565b919050565b6000604051905090565b600067ffffffffffffffff82111561239e5761239d612561565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061242582612438565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061246d826124aa565b9050919050565b600061247f826124aa565b9050919050565b600061249182612458565b9050919050565b60006124a382612458565b9050919050565b60006124b5826124bc565b9050919050565b60006124c782612438565b9050919050565b60005b838110156124ec5780820151818401526020810190506124d1565b838111156124fb576000848401525b50505050565b61250a826125a4565b810181811067ffffffffffffffff8211171561252957612528612561565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6126d48161241a565b81146126df57600080fd5b50565b6126eb8161242c565b81146126f657600080fd5b50565b61270281612458565b811461270d57600080fd5b5056fea264697066735822122052bfd21f617a098a8e9f7179f87b0511ff7b45f29043d147ad39b847dabfaf1364736f6c63430008070033", -} - -// ZetaTokenConsumerTridentABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerTridentMetaData.ABI instead. -var ZetaTokenConsumerTridentABI = ZetaTokenConsumerTridentMetaData.ABI - -// ZetaTokenConsumerTridentBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaTokenConsumerTridentMetaData.Bin instead. -var ZetaTokenConsumerTridentBin = ZetaTokenConsumerTridentMetaData.Bin - -// DeployZetaTokenConsumerTrident deploys a new Ethereum contract, binding an instance of ZetaTokenConsumerTrident to it. -func DeployZetaTokenConsumerTrident(auth *bind.TransactOpts, backend bind.ContractBackend, zetaToken_ common.Address, uniswapV3Router_ common.Address, WETH9Address_ common.Address, poolFactory_ common.Address) (common.Address, *types.Transaction, *ZetaTokenConsumerTrident, error) { - parsed, err := ZetaTokenConsumerTridentMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaTokenConsumerTridentBin), backend, zetaToken_, uniswapV3Router_, WETH9Address_, poolFactory_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaTokenConsumerTrident{ZetaTokenConsumerTridentCaller: ZetaTokenConsumerTridentCaller{contract: contract}, ZetaTokenConsumerTridentTransactor: ZetaTokenConsumerTridentTransactor{contract: contract}, ZetaTokenConsumerTridentFilterer: ZetaTokenConsumerTridentFilterer{contract: contract}}, nil -} - -// ZetaTokenConsumerTrident is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerTrident struct { - ZetaTokenConsumerTridentCaller // Read-only binding to the contract - ZetaTokenConsumerTridentTransactor // Write-only binding to the contract - ZetaTokenConsumerTridentFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerTridentCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerTridentTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerTridentFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerTridentFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerTridentSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerTridentSession struct { - Contract *ZetaTokenConsumerTrident // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerTridentCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerTridentCallerSession struct { - Contract *ZetaTokenConsumerTridentCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerTridentTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerTridentTransactorSession struct { - Contract *ZetaTokenConsumerTridentTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerTridentRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentRaw struct { - Contract *ZetaTokenConsumerTrident // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerTridentCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentCallerRaw struct { - Contract *ZetaTokenConsumerTridentCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerTridentTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentTransactorRaw struct { - Contract *ZetaTokenConsumerTridentTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerTrident creates a new instance of ZetaTokenConsumerTrident, bound to a specific deployed contract. -func NewZetaTokenConsumerTrident(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerTrident, error) { - contract, err := bindZetaTokenConsumerTrident(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTrident{ZetaTokenConsumerTridentCaller: ZetaTokenConsumerTridentCaller{contract: contract}, ZetaTokenConsumerTridentTransactor: ZetaTokenConsumerTridentTransactor{contract: contract}, ZetaTokenConsumerTridentFilterer: ZetaTokenConsumerTridentFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerTridentCaller creates a new read-only instance of ZetaTokenConsumerTrident, bound to a specific deployed contract. -func NewZetaTokenConsumerTridentCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerTridentCaller, error) { - contract, err := bindZetaTokenConsumerTrident(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerTridentTransactor creates a new write-only instance of ZetaTokenConsumerTrident, bound to a specific deployed contract. -func NewZetaTokenConsumerTridentTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerTridentTransactor, error) { - contract, err := bindZetaTokenConsumerTrident(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerTridentFilterer creates a new log filterer instance of ZetaTokenConsumerTrident, bound to a specific deployed contract. -func NewZetaTokenConsumerTridentFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerTridentFilterer, error) { - contract, err := bindZetaTokenConsumerTrident(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumerTrident binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerTrident(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerTridentMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerTrident.Contract.ZetaTokenConsumerTridentCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.ZetaTokenConsumerTridentTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.ZetaTokenConsumerTridentTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerTrident.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.contract.Transact(opts, method, params...) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCaller) HasZetaLiquidity(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaTokenConsumerTrident.contract.Call(opts, &out, "hasZetaLiquidity") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerTrident.Contract.HasZetaLiquidity(&_ZetaTokenConsumerTrident.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCallerSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerTrident.Contract.HasZetaLiquidity(&_ZetaTokenConsumerTrident.CallOpts) -} - -// PoolFactory is a free data retrieval call binding the contract method 0x4219dc40. -// -// Solidity: function poolFactory() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCaller) PoolFactory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerTrident.contract.Call(opts, &out, "poolFactory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PoolFactory is a free data retrieval call binding the contract method 0x4219dc40. -// -// Solidity: function poolFactory() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) PoolFactory() (common.Address, error) { - return _ZetaTokenConsumerTrident.Contract.PoolFactory(&_ZetaTokenConsumerTrident.CallOpts) -} - -// PoolFactory is a free data retrieval call binding the contract method 0x4219dc40. -// -// Solidity: function poolFactory() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCallerSession) PoolFactory() (common.Address, error) { - return _ZetaTokenConsumerTrident.Contract.PoolFactory(&_ZetaTokenConsumerTrident.CallOpts) -} - -// TridentRouter is a free data retrieval call binding the contract method 0x64b5528a. -// -// Solidity: function tridentRouter() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCaller) TridentRouter(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerTrident.contract.Call(opts, &out, "tridentRouter") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TridentRouter is a free data retrieval call binding the contract method 0x64b5528a. -// -// Solidity: function tridentRouter() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) TridentRouter() (common.Address, error) { - return _ZetaTokenConsumerTrident.Contract.TridentRouter(&_ZetaTokenConsumerTrident.CallOpts) -} - -// TridentRouter is a free data retrieval call binding the contract method 0x64b5528a. -// -// Solidity: function tridentRouter() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCallerSession) TridentRouter() (common.Address, error) { - return _ZetaTokenConsumerTrident.Contract.TridentRouter(&_ZetaTokenConsumerTrident.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCaller) ZetaToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerTrident.contract.Call(opts, &out, "zetaToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerTrident.Contract.ZetaToken(&_ZetaTokenConsumerTrident.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentCallerSession) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerTrident.Contract.ZetaToken(&_ZetaTokenConsumerTrident.CallOpts) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactor) GetEthFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.contract.Transact(opts, "getEthFromZeta", destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetEthFromZeta(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactorSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetEthFromZeta(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactor) GetTokenFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.contract.Transact(opts, "getTokenFromZeta", destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetTokenFromZeta(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactorSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetTokenFromZeta(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactor) GetZetaFromEth(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.contract.Transact(opts, "getZetaFromEth", destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetZetaFromEth(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactorSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetZetaFromEth(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactor) GetZetaFromToken(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.contract.Transact(opts, "getZetaFromToken", destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetZetaFromToken(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactorSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.GetZetaFromToken(&_ZetaTokenConsumerTrident.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentSession) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.Receive(&_ZetaTokenConsumerTrident.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentTransactorSession) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerTrident.Contract.Receive(&_ZetaTokenConsumerTrident.TransactOpts) -} - -// ZetaTokenConsumerTridentEthExchangedForZetaIterator is returned from FilterEthExchangedForZeta and is used to iterate over the raw logs and unpacked data for EthExchangedForZeta events raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentEthExchangedForZetaIterator struct { - Event *ZetaTokenConsumerTridentEthExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerTridentEthExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentEthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentEthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerTridentEthExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerTridentEthExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerTridentEthExchangedForZeta represents a EthExchangedForZeta event raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentEthExchangedForZeta struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterEthExchangedForZeta is a free log retrieval operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) FilterEthExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerTridentEthExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.FilterLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentEthExchangedForZetaIterator{contract: _ZetaTokenConsumerTrident.contract, event: "EthExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchEthExchangedForZeta is a free log subscription operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) WatchEthExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerTridentEthExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.WatchLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerTridentEthExchangedForZeta) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseEthExchangedForZeta is a log parse operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) ParseEthExchangedForZeta(log types.Log) (*ZetaTokenConsumerTridentEthExchangedForZeta, error) { - event := new(ZetaTokenConsumerTridentEthExchangedForZeta) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerTridentTokenExchangedForZetaIterator is returned from FilterTokenExchangedForZeta and is used to iterate over the raw logs and unpacked data for TokenExchangedForZeta events raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentTokenExchangedForZetaIterator struct { - Event *ZetaTokenConsumerTridentTokenExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerTridentTokenExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentTokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentTokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerTridentTokenExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerTridentTokenExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerTridentTokenExchangedForZeta represents a TokenExchangedForZeta event raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentTokenExchangedForZeta struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTokenExchangedForZeta is a free log retrieval operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) FilterTokenExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerTridentTokenExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.FilterLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentTokenExchangedForZetaIterator{contract: _ZetaTokenConsumerTrident.contract, event: "TokenExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchTokenExchangedForZeta is a free log subscription operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) WatchTokenExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerTridentTokenExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.WatchLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerTridentTokenExchangedForZeta) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTokenExchangedForZeta is a log parse operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) ParseTokenExchangedForZeta(log types.Log) (*ZetaTokenConsumerTridentTokenExchangedForZeta, error) { - event := new(ZetaTokenConsumerTridentTokenExchangedForZeta) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerTridentZetaExchangedForEthIterator is returned from FilterZetaExchangedForEth and is used to iterate over the raw logs and unpacked data for ZetaExchangedForEth events raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentZetaExchangedForEthIterator struct { - Event *ZetaTokenConsumerTridentZetaExchangedForEth // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerTridentZetaExchangedForEthIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerTridentZetaExchangedForEthIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerTridentZetaExchangedForEthIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerTridentZetaExchangedForEth represents a ZetaExchangedForEth event raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentZetaExchangedForEth struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForEth is a free log retrieval operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) FilterZetaExchangedForEth(opts *bind.FilterOpts) (*ZetaTokenConsumerTridentZetaExchangedForEthIterator, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.FilterLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentZetaExchangedForEthIterator{contract: _ZetaTokenConsumerTrident.contract, event: "ZetaExchangedForEth", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForEth is a free log subscription operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) WatchZetaExchangedForEth(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerTridentZetaExchangedForEth) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.WatchLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerTridentZetaExchangedForEth) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForEth is a log parse operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) ParseZetaExchangedForEth(log types.Log) (*ZetaTokenConsumerTridentZetaExchangedForEth, error) { - event := new(ZetaTokenConsumerTridentZetaExchangedForEth) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerTridentZetaExchangedForTokenIterator is returned from FilterZetaExchangedForToken and is used to iterate over the raw logs and unpacked data for ZetaExchangedForToken events raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentZetaExchangedForTokenIterator struct { - Event *ZetaTokenConsumerTridentZetaExchangedForToken // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerTridentZetaExchangedForTokenIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerTridentZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerTridentZetaExchangedForTokenIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerTridentZetaExchangedForTokenIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerTridentZetaExchangedForToken represents a ZetaExchangedForToken event raised by the ZetaTokenConsumerTrident contract. -type ZetaTokenConsumerTridentZetaExchangedForToken struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForToken is a free log retrieval operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) FilterZetaExchangedForToken(opts *bind.FilterOpts) (*ZetaTokenConsumerTridentZetaExchangedForTokenIterator, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.FilterLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentZetaExchangedForTokenIterator{contract: _ZetaTokenConsumerTrident.contract, event: "ZetaExchangedForToken", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForToken is a free log subscription operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) WatchZetaExchangedForToken(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerTridentZetaExchangedForToken) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerTrident.contract.WatchLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerTridentZetaExchangedForToken) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForToken is a log parse operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerTrident *ZetaTokenConsumerTridentFilterer) ParseZetaExchangedForToken(log types.Log) (*ZetaTokenConsumerTridentZetaExchangedForToken, error) { - event := new(ZetaTokenConsumerTridentZetaExchangedForToken) - if err := _ZetaTokenConsumerTrident.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertridenterrors.go b/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertridenterrors.go deleted file mode 100644 index da4244098..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumertrident.strategy.sol/zetatokenconsumertridenterrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumertrident - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerTridentErrorsMetaData contains all meta data concerning the ZetaTokenConsumerTridentErrors contract. -var ZetaTokenConsumerTridentErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"}]", -} - -// ZetaTokenConsumerTridentErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerTridentErrorsMetaData.ABI instead. -var ZetaTokenConsumerTridentErrorsABI = ZetaTokenConsumerTridentErrorsMetaData.ABI - -// ZetaTokenConsumerTridentErrors is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentErrors struct { - ZetaTokenConsumerTridentErrorsCaller // Read-only binding to the contract - ZetaTokenConsumerTridentErrorsTransactor // Write-only binding to the contract - ZetaTokenConsumerTridentErrorsFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerTridentErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerTridentErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerTridentErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerTridentErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerTridentErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerTridentErrorsSession struct { - Contract *ZetaTokenConsumerTridentErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerTridentErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerTridentErrorsCallerSession struct { - Contract *ZetaTokenConsumerTridentErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerTridentErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerTridentErrorsTransactorSession struct { - Contract *ZetaTokenConsumerTridentErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerTridentErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentErrorsRaw struct { - Contract *ZetaTokenConsumerTridentErrors // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerTridentErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentErrorsCallerRaw struct { - Contract *ZetaTokenConsumerTridentErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerTridentErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerTridentErrorsTransactorRaw struct { - Contract *ZetaTokenConsumerTridentErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerTridentErrors creates a new instance of ZetaTokenConsumerTridentErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerTridentErrors(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerTridentErrors, error) { - contract, err := bindZetaTokenConsumerTridentErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentErrors{ZetaTokenConsumerTridentErrorsCaller: ZetaTokenConsumerTridentErrorsCaller{contract: contract}, ZetaTokenConsumerTridentErrorsTransactor: ZetaTokenConsumerTridentErrorsTransactor{contract: contract}, ZetaTokenConsumerTridentErrorsFilterer: ZetaTokenConsumerTridentErrorsFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerTridentErrorsCaller creates a new read-only instance of ZetaTokenConsumerTridentErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerTridentErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerTridentErrorsCaller, error) { - contract, err := bindZetaTokenConsumerTridentErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentErrorsCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerTridentErrorsTransactor creates a new write-only instance of ZetaTokenConsumerTridentErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerTridentErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerTridentErrorsTransactor, error) { - contract, err := bindZetaTokenConsumerTridentErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentErrorsTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerTridentErrorsFilterer creates a new log filterer instance of ZetaTokenConsumerTridentErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerTridentErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerTridentErrorsFilterer, error) { - contract, err := bindZetaTokenConsumerTridentErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerTridentErrorsFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumerTridentErrors binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerTridentErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerTridentErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerTridentErrors *ZetaTokenConsumerTridentErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerTridentErrors.Contract.ZetaTokenConsumerTridentErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerTridentErrors *ZetaTokenConsumerTridentErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerTridentErrors.Contract.ZetaTokenConsumerTridentErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerTridentErrors *ZetaTokenConsumerTridentErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerTridentErrors.Contract.ZetaTokenConsumerTridentErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerTridentErrors *ZetaTokenConsumerTridentErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerTridentErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerTridentErrors *ZetaTokenConsumerTridentErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerTridentErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerTridentErrors *ZetaTokenConsumerTridentErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerTridentErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2.go b/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2.go deleted file mode 100644 index e64f4ae51..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2.go +++ /dev/null @@ -1,891 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumeruniv2 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerUniV2MetaData contains all meta data concerning the ZetaTokenConsumerUniV2 contract. -var ZetaTokenConsumerUniV2MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapV2Router_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"EthExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"TokenExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForEth\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForToken\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getEthFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"outputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getTokenFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"}],\"name\":\"getZetaFromEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getZetaFromToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasZetaLiquidity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60e06040523480156200001157600080fd5b50604051620029a0380380620029a083398181016040528101906200003791906200024e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806200009f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15620000d7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200018c57600080fd5b505afa158015620001a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c791906200021c565b73ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620002e8565b6000815190506200021681620002ce565b92915050565b600060208284031215620002355762000234620002c9565b5b6000620002458482850162000205565b91505092915050565b60008060408385031215620002685762000267620002c9565b5b6000620002788582860162000205565b92505060206200028b8582860162000205565b9150509250929050565b6000620002a282620002a9565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620002d98162000295565b8114620002e557600080fd5b50565b60805160601c60a05160601c60c05160601c6125c9620003d76000396000818161036a015281816105ce0152818161091701528181610b4501528181610cdb01528181610f400152818161115501526114be0152600081816102f9015281816104a001528181610727015281816108a501528181610afb01528181610b6701528181610bfb01528181610ed10152818161110b015281816111770152818161125f015261138e01526000818161028a01528181610618015281816106b80152818161083601528181610c6a01528181610e62015281816111bf015281816112ce01526113fd01526125c96000f3fe6080604052600436106100555760003560e01c8063013b2ff81461005a57806321e093b11461008a5780632405620a146100b557806354c49a2a146100f257806380801f841461012f578063a53fb10b1461015a575b600080fd5b610074600480360381019061006f9190611b65565b610197565b6040516100819190612098565b60405180910390f35b34801561009657600080fd5b5061009f61049e565b6040516100ac9190611ed0565b60405180910390f35b3480156100c157600080fd5b506100dc60048036038101906100d79190611ba5565b6104c2565b6040516100e99190612098565b60405180910390f35b3480156100fe57600080fd5b5061011960048036038101906101149190611c0c565b610a50565b6040516101269190612098565b60405180910390f35b34801561013b57600080fd5b50610144610e11565b6040516101519190611fab565b60405180910390f35b34801561016657600080fd5b50610181600480360381019061017c9190611ba5565b611029565b60405161018e9190612098565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156101ff576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600034141561023a576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600267ffffffffffffffff811115610257576102566123e4565b5b6040519080825280602002602001820160405280156102855781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106102bd576102bc6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061032c5761032b6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637ff36ab53486858960c8426103b5919061223e565b6040518663ffffffff1660e01b81526004016103d494939291906120b3565b6000604051808303818588803b1580156103ed57600080fd5b505af1158015610401573d6000803e3d6000fd5b50505050506040513d6000823e3d601f19601f8201168201806040525081019061042b9190611c5f565b90506000816001845161043e9190612294565b8151811061044f5761044e6123b5565b5b602002602001015190507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161048a9291906120ff565b60405180910390a180935050505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061052a5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610561576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561059c576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105c93330848673ffffffffffffffffffffffffffffffffffffffff166115f7909392919063ffffffff16565b6106147f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166116809092919063ffffffff16565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561079957600267ffffffffffffffff811115610685576106846123e4565b5b6040519080825280602002602001820160405280156106b35781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106106eb576106ea6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061075a576107596123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610913565b600367ffffffffffffffff8111156107b4576107b36123e4565b5b6040519080825280602002602001820160405280156107e25781602001602082028036833780820191505090505b50905083816000815181106107fa576107f96123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610869576108686123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000000000000000000000000000000000000000000000816002815181106108d8576108d76123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c842610962919061223e565b6040518663ffffffff1660e01b8152600401610982959493929190612128565b600060405180830381600087803b15801561099c57600080fd5b505af11580156109b0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906109d99190611c5f565b9050600081600184516109ec9190612294565b815181106109fd576109fc6123b5565b5b602002602001015190507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f868683604051610a3a93929190611f74565b60405180910390a1809350505050949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610ab8576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610af3576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b403330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115f7909392919063ffffffff16565b610bab7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116809092919063ffffffff16565b6000600267ffffffffffffffff811115610bc857610bc76123e4565b5b604051908082528060200260200182016040528015610bf65781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610c2e57610c2d6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610c9d57610c9c6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318cbafe58587858a60c842610d26919061223e565b6040518663ffffffff1660e01b8152600401610d46959493929190612128565b600060405180830381600087803b158015610d6057600080fd5b505af1158015610d74573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610d9d9190611c5f565b905060008160018451610db09190612294565b81518110610dc157610dc06123b5565b5b602002602001015190507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8582604051610dfc9291906120ff565b60405180910390a18093505050509392505050565b600080600267ffffffffffffffff811115610e2f57610e2e6123e4565b5b604051908082528060200260200182016040528015610e5d5781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610e9557610e946123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610f0457610f036123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d06ca61f6001836040518363ffffffff1660e01b8152600401610f9a929190611fc6565b60006040518083038186803b158015610fb257600080fd5b505afa925050508015610fe857506040513d6000823e3d601f19601f82011682018060405250810190610fe59190611c5f565b60015b610ff6576000915050611026565b600081600184516110079190612294565b81518110611018576110176123b5565b5b602002602001015111925050505b90565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110915750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156110c8576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415611103576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111503330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115f7909392919063ffffffff16565b6111bb7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116809092919063ffffffff16565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561134057600267ffffffffffffffff81111561122c5761122b6123e4565b5b60405190808252806020026020018201604052801561125a5781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611292576112916123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110611301576113006123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506114ba565b600367ffffffffffffffff81111561135b5761135a6123e4565b5b6040519080825280602002602001820160405280156113895781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106113c1576113c06123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106114305761142f6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838160028151811061147f5761147e6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c842611509919061223e565b6040518663ffffffff1660e01b8152600401611529959493929190612128565b600060405180830381600087803b15801561154357600080fd5b505af1158015611557573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906115809190611c5f565b9050600081600184516115939190612294565b815181106115a4576115a36123b5565b5b602002602001015190507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b8686836040516115e193929190611f74565b60405180910390a1809350505050949350505050565b61167a846323b872dd60e01b85858560405160240161161893929190611f14565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117de565b50505050565b6000811480611719575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016116c7929190611eeb565b60206040518083038186803b1580156116df57600080fd5b505afa1580156116f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117179190611cd5565b145b611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f90612078565b60405180910390fd5b6117d98363095ea7b360e01b8484604051602401611777929190611f4b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117de565b505050565b6000611840826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118a59092919063ffffffff16565b90506000815111156118a057808060200190518101906118609190611ca8565b61189f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189690612058565b60405180910390fd5b5b505050565b60606118b484846000856118bd565b90509392505050565b606082471015611902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f990612018565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161192b9190611eb9565b60006040518083038185875af1925050503d8060008114611968576040519150601f19603f3d011682016040523d82523d6000602084013e61196d565b606091505b509150915061197e8783838761198a565b92505050949350505050565b606083156119ed576000835114156119e5576119a585611a00565b6119e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119db90612038565b60405180910390fd5b5b8290506119f8565b6119f78383611a23565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611a365781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6a9190611ff6565b60405180910390fd5b6000611a86611a81846121a7565b612182565b90508083825260208201905082856020860282011115611aa957611aa8612418565b5b60005b85811015611ad95781611abf8882611b50565b845260208401935060208301925050600181019050611aac565b5050509392505050565b600081359050611af28161254e565b92915050565b600082601f830112611b0d57611b0c612413565b5b8151611b1d848260208601611a73565b91505092915050565b600081519050611b3581612565565b92915050565b600081359050611b4a8161257c565b92915050565b600081519050611b5f8161257c565b92915050565b60008060408385031215611b7c57611b7b612422565b5b6000611b8a85828601611ae3565b9250506020611b9b85828601611b3b565b9150509250929050565b60008060008060808587031215611bbf57611bbe612422565b5b6000611bcd87828801611ae3565b9450506020611bde87828801611b3b565b9350506040611bef87828801611ae3565b9250506060611c0087828801611b3b565b91505092959194509250565b600080600060608486031215611c2557611c24612422565b5b6000611c3386828701611ae3565b9350506020611c4486828701611b3b565b9250506040611c5586828701611b3b565b9150509250925092565b600060208284031215611c7557611c74612422565b5b600082015167ffffffffffffffff811115611c9357611c9261241d565b5b611c9f84828501611af8565b91505092915050565b600060208284031215611cbe57611cbd612422565b5b6000611ccc84828501611b26565b91505092915050565b600060208284031215611ceb57611cea612422565b5b6000611cf984828501611b50565b91505092915050565b6000611d0e8383611d1a565b60208301905092915050565b611d23816122c8565b82525050565b611d32816122c8565b82525050565b6000611d43826121e3565b611d4d8185612211565b9350611d58836121d3565b8060005b83811015611d89578151611d708882611d02565b9750611d7b83612204565b925050600181019050611d5c565b5085935050505092915050565b611d9f816122da565b82525050565b6000611db0826121ee565b611dba8185612222565b9350611dca818560208601612322565b80840191505092915050565b611ddf81612310565b82525050565b6000611df0826121f9565b611dfa818561222d565b9350611e0a818560208601612322565b611e1381612427565b840191505092915050565b6000611e2b60268361222d565b9150611e3682612438565b604082019050919050565b6000611e4e601d8361222d565b9150611e5982612487565b602082019050919050565b6000611e71602a8361222d565b9150611e7c826124b0565b604082019050919050565b6000611e9460368361222d565b9150611e9f826124ff565b604082019050919050565b611eb381612306565b82525050565b6000611ec58284611da5565b915081905092915050565b6000602082019050611ee56000830184611d29565b92915050565b6000604082019050611f006000830185611d29565b611f0d6020830184611d29565b9392505050565b6000606082019050611f296000830186611d29565b611f366020830185611d29565b611f436040830184611eaa565b949350505050565b6000604082019050611f606000830185611d29565b611f6d6020830184611eaa565b9392505050565b6000606082019050611f896000830186611d29565b611f966020830185611eaa565b611fa36040830184611eaa565b949350505050565b6000602082019050611fc06000830184611d96565b92915050565b6000604082019050611fdb6000830185611dd6565b8181036020830152611fed8184611d38565b90509392505050565b600060208201905081810360008301526120108184611de5565b905092915050565b6000602082019050818103600083015261203181611e1e565b9050919050565b6000602082019050818103600083015261205181611e41565b9050919050565b6000602082019050818103600083015261207181611e64565b9050919050565b6000602082019050818103600083015261209181611e87565b9050919050565b60006020820190506120ad6000830184611eaa565b92915050565b60006080820190506120c86000830187611eaa565b81810360208301526120da8186611d38565b90506120e96040830185611d29565b6120f66060830184611eaa565b95945050505050565b60006040820190506121146000830185611eaa565b6121216020830184611eaa565b9392505050565b600060a08201905061213d6000830188611eaa565b61214a6020830187611eaa565b818103604083015261215c8186611d38565b905061216b6060830185611d29565b6121786080830184611eaa565b9695505050505050565b600061218c61219d565b90506121988282612355565b919050565b6000604051905090565b600067ffffffffffffffff8211156121c2576121c16123e4565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061224982612306565b915061225483612306565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561228957612288612386565b5b828201905092915050565b600061229f82612306565b91506122aa83612306565b9250828210156122bd576122bc612386565b5b828203905092915050565b60006122d3826122e6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061231b82612306565b9050919050565b60005b83811015612340578082015181840152602081019050612325565b8381111561234f576000848401525b50505050565b61235e82612427565b810181811067ffffffffffffffff8211171561237d5761237c6123e4565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b612557816122c8565b811461256257600080fd5b50565b61256e816122da565b811461257957600080fd5b50565b61258581612306565b811461259057600080fd5b5056fea264697066735822122043c2ef06b0d58aa4604eef6078aa0a569cff03f21dd48c315ad501590326c57264736f6c63430008070033", -} - -// ZetaTokenConsumerUniV2ABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerUniV2MetaData.ABI instead. -var ZetaTokenConsumerUniV2ABI = ZetaTokenConsumerUniV2MetaData.ABI - -// ZetaTokenConsumerUniV2Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaTokenConsumerUniV2MetaData.Bin instead. -var ZetaTokenConsumerUniV2Bin = ZetaTokenConsumerUniV2MetaData.Bin - -// DeployZetaTokenConsumerUniV2 deploys a new Ethereum contract, binding an instance of ZetaTokenConsumerUniV2 to it. -func DeployZetaTokenConsumerUniV2(auth *bind.TransactOpts, backend bind.ContractBackend, zetaToken_ common.Address, uniswapV2Router_ common.Address) (common.Address, *types.Transaction, *ZetaTokenConsumerUniV2, error) { - parsed, err := ZetaTokenConsumerUniV2MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaTokenConsumerUniV2Bin), backend, zetaToken_, uniswapV2Router_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaTokenConsumerUniV2{ZetaTokenConsumerUniV2Caller: ZetaTokenConsumerUniV2Caller{contract: contract}, ZetaTokenConsumerUniV2Transactor: ZetaTokenConsumerUniV2Transactor{contract: contract}, ZetaTokenConsumerUniV2Filterer: ZetaTokenConsumerUniV2Filterer{contract: contract}}, nil -} - -// ZetaTokenConsumerUniV2 is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2 struct { - ZetaTokenConsumerUniV2Caller // Read-only binding to the contract - ZetaTokenConsumerUniV2Transactor // Write-only binding to the contract - ZetaTokenConsumerUniV2Filterer // Log filterer for contract events -} - -// ZetaTokenConsumerUniV2Caller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV2Transactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV2Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerUniV2Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV2Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerUniV2Session struct { - Contract *ZetaTokenConsumerUniV2 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV2CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerUniV2CallerSession struct { - Contract *ZetaTokenConsumerUniV2Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerUniV2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerUniV2TransactorSession struct { - Contract *ZetaTokenConsumerUniV2Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV2Raw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2Raw struct { - Contract *ZetaTokenConsumerUniV2 // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2CallerRaw struct { - Contract *ZetaTokenConsumerUniV2Caller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2TransactorRaw struct { - Contract *ZetaTokenConsumerUniV2Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerUniV2 creates a new instance of ZetaTokenConsumerUniV2, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerUniV2, error) { - contract, err := bindZetaTokenConsumerUniV2(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2{ZetaTokenConsumerUniV2Caller: ZetaTokenConsumerUniV2Caller{contract: contract}, ZetaTokenConsumerUniV2Transactor: ZetaTokenConsumerUniV2Transactor{contract: contract}, ZetaTokenConsumerUniV2Filterer: ZetaTokenConsumerUniV2Filterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerUniV2Caller creates a new read-only instance of ZetaTokenConsumerUniV2, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2Caller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerUniV2Caller, error) { - contract, err := bindZetaTokenConsumerUniV2(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2Caller{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV2Transactor creates a new write-only instance of ZetaTokenConsumerUniV2, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2Transactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerUniV2Transactor, error) { - contract, err := bindZetaTokenConsumerUniV2(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2Transactor{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV2Filterer creates a new log filterer instance of ZetaTokenConsumerUniV2, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2Filterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerUniV2Filterer, error) { - contract, err := bindZetaTokenConsumerUniV2(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2Filterer{contract: contract}, nil -} - -// bindZetaTokenConsumerUniV2 binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerUniV2(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerUniV2MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV2.Contract.ZetaTokenConsumerUniV2Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.ZetaTokenConsumerUniV2Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.ZetaTokenConsumerUniV2Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV2.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.contract.Transact(opts, method, params...) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Caller) HasZetaLiquidity(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV2.contract.Call(opts, &out, "hasZetaLiquidity") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Session) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerUniV2.Contract.HasZetaLiquidity(&_ZetaTokenConsumerUniV2.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2CallerSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerUniV2.Contract.HasZetaLiquidity(&_ZetaTokenConsumerUniV2.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Caller) ZetaToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV2.contract.Call(opts, &out, "zetaToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Session) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerUniV2.Contract.ZetaToken(&_ZetaTokenConsumerUniV2.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2CallerSession) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerUniV2.Contract.ZetaToken(&_ZetaTokenConsumerUniV2.CallOpts) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Transactor) GetEthFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.contract.Transact(opts, "getEthFromZeta", destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Session) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetEthFromZeta(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2TransactorSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetEthFromZeta(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Transactor) GetTokenFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.contract.Transact(opts, "getTokenFromZeta", destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Session) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetTokenFromZeta(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2TransactorSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetTokenFromZeta(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Transactor) GetZetaFromEth(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.contract.Transact(opts, "getZetaFromEth", destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Session) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetZetaFromEth(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2TransactorSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetZetaFromEth(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Transactor) GetZetaFromToken(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.contract.Transact(opts, "getZetaFromToken", destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Session) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetZetaFromToken(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2TransactorSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2.Contract.GetZetaFromToken(&_ZetaTokenConsumerUniV2.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// ZetaTokenConsumerUniV2EthExchangedForZetaIterator is returned from FilterEthExchangedForZeta and is used to iterate over the raw logs and unpacked data for EthExchangedForZeta events raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2EthExchangedForZetaIterator struct { - Event *ZetaTokenConsumerUniV2EthExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV2EthExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2EthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2EthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV2EthExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV2EthExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV2EthExchangedForZeta represents a EthExchangedForZeta event raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2EthExchangedForZeta struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterEthExchangedForZeta is a free log retrieval operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) FilterEthExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV2EthExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.FilterLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2EthExchangedForZetaIterator{contract: _ZetaTokenConsumerUniV2.contract, event: "EthExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchEthExchangedForZeta is a free log subscription operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) WatchEthExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV2EthExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.WatchLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV2EthExchangedForZeta) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseEthExchangedForZeta is a log parse operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) ParseEthExchangedForZeta(log types.Log) (*ZetaTokenConsumerUniV2EthExchangedForZeta, error) { - event := new(ZetaTokenConsumerUniV2EthExchangedForZeta) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerUniV2TokenExchangedForZetaIterator is returned from FilterTokenExchangedForZeta and is used to iterate over the raw logs and unpacked data for TokenExchangedForZeta events raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2TokenExchangedForZetaIterator struct { - Event *ZetaTokenConsumerUniV2TokenExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV2TokenExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2TokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2TokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV2TokenExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV2TokenExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV2TokenExchangedForZeta represents a TokenExchangedForZeta event raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2TokenExchangedForZeta struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTokenExchangedForZeta is a free log retrieval operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) FilterTokenExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV2TokenExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.FilterLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2TokenExchangedForZetaIterator{contract: _ZetaTokenConsumerUniV2.contract, event: "TokenExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchTokenExchangedForZeta is a free log subscription operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) WatchTokenExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV2TokenExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.WatchLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV2TokenExchangedForZeta) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTokenExchangedForZeta is a log parse operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) ParseTokenExchangedForZeta(log types.Log) (*ZetaTokenConsumerUniV2TokenExchangedForZeta, error) { - event := new(ZetaTokenConsumerUniV2TokenExchangedForZeta) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerUniV2ZetaExchangedForEthIterator is returned from FilterZetaExchangedForEth and is used to iterate over the raw logs and unpacked data for ZetaExchangedForEth events raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2ZetaExchangedForEthIterator struct { - Event *ZetaTokenConsumerUniV2ZetaExchangedForEth // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV2ZetaExchangedForEthIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2ZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2ZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV2ZetaExchangedForEthIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV2ZetaExchangedForEthIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV2ZetaExchangedForEth represents a ZetaExchangedForEth event raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2ZetaExchangedForEth struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForEth is a free log retrieval operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) FilterZetaExchangedForEth(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV2ZetaExchangedForEthIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.FilterLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2ZetaExchangedForEthIterator{contract: _ZetaTokenConsumerUniV2.contract, event: "ZetaExchangedForEth", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForEth is a free log subscription operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) WatchZetaExchangedForEth(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV2ZetaExchangedForEth) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.WatchLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV2ZetaExchangedForEth) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForEth is a log parse operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) ParseZetaExchangedForEth(log types.Log) (*ZetaTokenConsumerUniV2ZetaExchangedForEth, error) { - event := new(ZetaTokenConsumerUniV2ZetaExchangedForEth) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerUniV2ZetaExchangedForTokenIterator is returned from FilterZetaExchangedForToken and is used to iterate over the raw logs and unpacked data for ZetaExchangedForToken events raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2ZetaExchangedForTokenIterator struct { - Event *ZetaTokenConsumerUniV2ZetaExchangedForToken // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV2ZetaExchangedForTokenIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2ZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV2ZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV2ZetaExchangedForTokenIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV2ZetaExchangedForTokenIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV2ZetaExchangedForToken represents a ZetaExchangedForToken event raised by the ZetaTokenConsumerUniV2 contract. -type ZetaTokenConsumerUniV2ZetaExchangedForToken struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForToken is a free log retrieval operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) FilterZetaExchangedForToken(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV2ZetaExchangedForTokenIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.FilterLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2ZetaExchangedForTokenIterator{contract: _ZetaTokenConsumerUniV2.contract, event: "ZetaExchangedForToken", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForToken is a free log subscription operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) WatchZetaExchangedForToken(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV2ZetaExchangedForToken) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV2.contract.WatchLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV2ZetaExchangedForToken) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForToken is a log parse operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV2 *ZetaTokenConsumerUniV2Filterer) ParseZetaExchangedForToken(log types.Log) (*ZetaTokenConsumerUniV2ZetaExchangedForToken, error) { - event := new(ZetaTokenConsumerUniV2ZetaExchangedForToken) - if err := _ZetaTokenConsumerUniV2.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2errors.go b/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2errors.go deleted file mode 100644 index a15bafe95..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv2.strategy.sol/zetatokenconsumeruniv2errors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumeruniv2 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerUniV2ErrorsMetaData contains all meta data concerning the ZetaTokenConsumerUniV2Errors contract. -var ZetaTokenConsumerUniV2ErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"}]", -} - -// ZetaTokenConsumerUniV2ErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerUniV2ErrorsMetaData.ABI instead. -var ZetaTokenConsumerUniV2ErrorsABI = ZetaTokenConsumerUniV2ErrorsMetaData.ABI - -// ZetaTokenConsumerUniV2Errors is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2Errors struct { - ZetaTokenConsumerUniV2ErrorsCaller // Read-only binding to the contract - ZetaTokenConsumerUniV2ErrorsTransactor // Write-only binding to the contract - ZetaTokenConsumerUniV2ErrorsFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerUniV2ErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2ErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV2ErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2ErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV2ErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerUniV2ErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV2ErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerUniV2ErrorsSession struct { - Contract *ZetaTokenConsumerUniV2Errors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV2ErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerUniV2ErrorsCallerSession struct { - Contract *ZetaTokenConsumerUniV2ErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerUniV2ErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerUniV2ErrorsTransactorSession struct { - Contract *ZetaTokenConsumerUniV2ErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV2ErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2ErrorsRaw struct { - Contract *ZetaTokenConsumerUniV2Errors // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV2ErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2ErrorsCallerRaw struct { - Contract *ZetaTokenConsumerUniV2ErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV2ErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV2ErrorsTransactorRaw struct { - Contract *ZetaTokenConsumerUniV2ErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerUniV2Errors creates a new instance of ZetaTokenConsumerUniV2Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2Errors(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerUniV2Errors, error) { - contract, err := bindZetaTokenConsumerUniV2Errors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2Errors{ZetaTokenConsumerUniV2ErrorsCaller: ZetaTokenConsumerUniV2ErrorsCaller{contract: contract}, ZetaTokenConsumerUniV2ErrorsTransactor: ZetaTokenConsumerUniV2ErrorsTransactor{contract: contract}, ZetaTokenConsumerUniV2ErrorsFilterer: ZetaTokenConsumerUniV2ErrorsFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerUniV2ErrorsCaller creates a new read-only instance of ZetaTokenConsumerUniV2Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2ErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerUniV2ErrorsCaller, error) { - contract, err := bindZetaTokenConsumerUniV2Errors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2ErrorsCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV2ErrorsTransactor creates a new write-only instance of ZetaTokenConsumerUniV2Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2ErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerUniV2ErrorsTransactor, error) { - contract, err := bindZetaTokenConsumerUniV2Errors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2ErrorsTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV2ErrorsFilterer creates a new log filterer instance of ZetaTokenConsumerUniV2Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV2ErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerUniV2ErrorsFilterer, error) { - contract, err := bindZetaTokenConsumerUniV2Errors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV2ErrorsFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumerUniV2Errors binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerUniV2Errors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerUniV2ErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV2Errors *ZetaTokenConsumerUniV2ErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV2Errors.Contract.ZetaTokenConsumerUniV2ErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV2Errors *ZetaTokenConsumerUniV2ErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2Errors.Contract.ZetaTokenConsumerUniV2ErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV2Errors *ZetaTokenConsumerUniV2ErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2Errors.Contract.ZetaTokenConsumerUniV2ErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV2Errors *ZetaTokenConsumerUniV2ErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV2Errors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV2Errors *ZetaTokenConsumerUniV2ErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2Errors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV2Errors *ZetaTokenConsumerUniV2ErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV2Errors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/weth9.go b/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/weth9.go deleted file mode 100644 index f40eaea71..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/weth9.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumeruniv3 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// WETH9MetaData contains all meta data concerning the WETH9 contract. -var WETH9MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// WETH9ABI is the input ABI used to generate the binding from. -// Deprecated: Use WETH9MetaData.ABI instead. -var WETH9ABI = WETH9MetaData.ABI - -// WETH9 is an auto generated Go binding around an Ethereum contract. -type WETH9 struct { - WETH9Caller // Read-only binding to the contract - WETH9Transactor // Write-only binding to the contract - WETH9Filterer // Log filterer for contract events -} - -// WETH9Caller is an auto generated read-only Go binding around an Ethereum contract. -type WETH9Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Transactor is an auto generated write-only Go binding around an Ethereum contract. -type WETH9Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type WETH9Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type WETH9Session struct { - Contract *WETH9 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type WETH9CallerSession struct { - Contract *WETH9Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// WETH9TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type WETH9TransactorSession struct { - Contract *WETH9Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9Raw is an auto generated low-level Go binding around an Ethereum contract. -type WETH9Raw struct { - Contract *WETH9 // Generic contract binding to access the raw methods on -} - -// WETH9CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type WETH9CallerRaw struct { - Contract *WETH9Caller // Generic read-only contract binding to access the raw methods on -} - -// WETH9TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type WETH9TransactorRaw struct { - Contract *WETH9Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewWETH9 creates a new instance of WETH9, bound to a specific deployed contract. -func NewWETH9(address common.Address, backend bind.ContractBackend) (*WETH9, error) { - contract, err := bindWETH9(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &WETH9{WETH9Caller: WETH9Caller{contract: contract}, WETH9Transactor: WETH9Transactor{contract: contract}, WETH9Filterer: WETH9Filterer{contract: contract}}, nil -} - -// NewWETH9Caller creates a new read-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Caller(address common.Address, caller bind.ContractCaller) (*WETH9Caller, error) { - contract, err := bindWETH9(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &WETH9Caller{contract: contract}, nil -} - -// NewWETH9Transactor creates a new write-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Transactor(address common.Address, transactor bind.ContractTransactor) (*WETH9Transactor, error) { - contract, err := bindWETH9(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &WETH9Transactor{contract: contract}, nil -} - -// NewWETH9Filterer creates a new log filterer instance of WETH9, bound to a specific deployed contract. -func NewWETH9Filterer(address common.Address, filterer bind.ContractFilterer) (*WETH9Filterer, error) { - contract, err := bindWETH9(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &WETH9Filterer{contract: contract}, nil -} - -// bindWETH9 binds a generic wrapper to an already deployed contract. -func bindWETH9(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := WETH9MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.WETH9Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transact(opts, method, params...) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Transactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "withdraw", wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Session) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9TransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3.go b/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3.go deleted file mode 100644 index 619e9d8b2..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3.go +++ /dev/null @@ -1,1067 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumeruniv3 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerUniV3MetaData contains all meta data concerning the ZetaTokenConsumerUniV3 contract. -var ZetaTokenConsumerUniV3MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapV3Router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapV3Factory_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"WETH9Address_\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"zetaPoolFee_\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"tokenPoolFee_\",\"type\":\"uint24\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"EthExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"TokenExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForEth\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForToken\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"WETH9Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getEthFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"outputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getTokenFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"}],\"name\":\"getZetaFromEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getZetaFromToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasZetaLiquidity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenPoolFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapV3Factory\",\"outputs\":[{\"internalType\":\"contractIUniswapV3Factory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapV3Router\",\"outputs\":[{\"internalType\":\"contractISwapRouter\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaPoolFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", - Bin: "0x6101406040523480156200001257600080fd5b50604051620029833803806200298383398181016040528101906200003891906200028a565b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161480620000a05750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b80620000d85750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b80620001105750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1562000148576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508473ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1660601b815250508373ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508162ffffff1660808162ffffff1660e81b815250508062ffffff1660a08162ffffff1660e81b81525050505050505050620003a2565b6000815190506200026d816200036e565b92915050565b600081519050620002848162000388565b92915050565b60008060008060008060c08789031215620002aa57620002a962000369565b5b6000620002ba89828a016200025c565b9650506020620002cd89828a016200025c565b9550506040620002e089828a016200025c565b9450506060620002f389828a016200025c565b93505060806200030689828a0162000273565b92505060a06200031989828a0162000273565b9150509295509295509295565b600062000333826200033a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b600080fd5b620003798162000326565b81146200038557600080fd5b50565b62000393816200035a565b81146200039f57600080fd5b50565b60805160e81c60a05160e81c60c05160601c60e05160601c6101005160601c6101205160601c6124ad620004d660003960008181610d900152610ddb01526000818161046f0152818161068f015281816107cd015281816108c2015281816109fd01528181610b6f0152818161115401526112b20152600081816103af0152818161056101528181610748015281816109b301528181610a1f01528181610a7301528181610e380152818161110a0152818161117601526111c90152600081816103730152818161070601528181610aaf01528181610c1c01528181610e170152818161120b01526113c10152600081816106e501528181610db4015261122c0152600081816103eb01528181610727015281816108e601528181610aeb01528181610e5901526111ea01526124ad6000f3fe6080604052600436106100a05760003560e01c806354c49a2a1161006457806354c49a2a1461019a5780635b549182146101d75780635d9dfdde1461020257806380801f841461022d578063a53fb10b14610258578063c469cf1414610295576100a7565b8063013b2ff8146100ac57806321e093b1146100dc5780632405620a146101075780632c76d7a6146101445780633cbd70051461016f576100a7565b366100a757005b600080fd5b6100c660048036038101906100c1919061190a565b6102c0565b6040516100d391906120a2565b60405180910390f35b3480156100e857600080fd5b506100f161055f565b6040516100fe9190611e44565b60405180910390f35b34801561011357600080fd5b5061012e6004803603810190610129919061194a565b610583565b60405161013b91906120a2565b60405180910390f35b34801561015057600080fd5b506101596108c0565b6040516101669190611f71565b60405180910390f35b34801561017b57600080fd5b506101846108e4565b6040516101919190612087565b60405180910390f35b3480156101a657600080fd5b506101c160048036038101906101bc91906119b1565b610908565b6040516101ce91906120a2565b60405180910390f35b3480156101e357600080fd5b506101ec610d8e565b6040516101f99190611f8c565b60405180910390f35b34801561020e57600080fd5b50610217610db2565b6040516102249190612087565b60405180910390f35b34801561023957600080fd5b50610242610dd6565b60405161024f9190611f56565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a919061194a565b610fc7565b60405161028c91906120a2565b60405180910390f35b3480156102a157600080fd5b506102aa6113bf565b6040516102b79190611e44565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610328576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000341415610363576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518061010001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200160c84261043d9190612129565b8152602001348152602001848152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663414bf38934846040518363ffffffff1660e01b81526004016104c7919061206b565b6020604051808303818588803b1580156104e057600080fd5b505af11580156104f4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105199190611a5e565b90507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161054c9291906120bd565b60405180910390a1809250505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806105eb5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610622576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561065d576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61068a3330848673ffffffffffffffffffffffffffffffffffffffff166113e3909392919063ffffffff16565b6106d57f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff1661146c9092919063ffffffff16565b60006040518060a00160405280857f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000060405160200161077b959493929190611db9565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200160c8426107b89190612129565b815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c04b8d59836040518263ffffffff1660e01b81526004016108249190612049565b602060405180830381600087803b15801561083e57600080fd5b505af1158015610852573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108769190611a5e565b90507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f8585836040516108ab93929190611f1f565b60405180910390a18092505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610970576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156109ab576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109f83330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166113e3909392919063ffffffff16565b610a637f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661146c9092919063ffffffff16565b60006040518061010001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff16815260200160c842610b3d9190612129565b8152602001848152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663414bf389836040518263ffffffff1660e01b8152600401610bc6919061206b565b602060405180830381600087803b158015610be057600080fd5b505af1158015610bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c189190611a5e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610c7391906120a2565b600060405180830381600087803b158015610c8d57600080fd5b505af1158015610ca1573d6000803e3d6000fd5b505050507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8482604051610cd69291906120bd565b60405180910390a160008673ffffffffffffffffffffffffffffffffffffffff1682604051610d0490611e2f565b60006040518083038185875af1925050503d8060008114610d41576040519150601f19603f3d011682016040523d82523d6000602084013e610d46565b606091505b5050905080610d81576040517f3794aeaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8193505050509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631698ee827f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518463ffffffff1660e01b8152600401610e9693929190611e88565b60206040518083038186803b158015610eae57600080fd5b505afa158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee691906118dd565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f27576000915050610fc4565b600081905060008173ffffffffffffffffffffffffffffffffffffffff16631a6865026040518163ffffffff1660e01b815260040160206040518083038186803b158015610f7457600080fd5b505afa158015610f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fac9190611a31565b6fffffffffffffffffffffffffffffffff1611925050505b90565b60008060009054906101000a900460ff161561100f576040517f29f745a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110905750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156110c7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415611102576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61114f3330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166113e3909392919063ffffffff16565b6111ba7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661146c9092919063ffffffff16565b60006040518060a001604052807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089604051602001611260959493929190611db9565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200160c84261129d9190612129565b815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c04b8d59836040518263ffffffff1660e01b81526004016113099190612049565b602060405180830381600087803b15801561132357600080fd5b505af1158015611337573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135b9190611a5e565b90507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b85858360405161139093929190611f1f565b60405180910390a1809250505060008060006101000a81548160ff021916908315150217905550949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611466846323b872dd60e01b85858560405160240161140493929190611ebf565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506115ca565b50505050565b6000811480611505575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016114b3929190611e5f565b60206040518083038186803b1580156114cb57600080fd5b505afa1580156114df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115039190611a5e565b145b611544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153b90612029565b60405180910390fd5b6115c58363095ea7b360e01b8484604051602401611563929190611ef6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506115ca565b505050565b600061162c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116919092919063ffffffff16565b905060008151111561168c578080602001905181019061164c9190611a04565b61168b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168290612009565b60405180910390fd5b5b505050565b60606116a084846000856116a9565b90509392505050565b6060824710156116ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e590611fc9565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516117179190611e18565b60006040518083038185875af1925050503d8060008114611754576040519150601f19603f3d011682016040523d82523d6000602084013e611759565b606091505b509150915061176a87838387611776565b92505050949350505050565b606083156117d9576000835114156117d157611791856117ec565b6117d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c790611fe9565b60405180910390fd5b5b8290506117e4565b6117e3838361180f565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156118225781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118569190611fa7565b60405180910390fd5b60008135905061186e8161241b565b92915050565b6000815190506118838161241b565b92915050565b60008151905061189881612432565b92915050565b6000815190506118ad81612449565b92915050565b6000813590506118c281612460565b92915050565b6000815190506118d781612460565b92915050565b6000602082840312156118f3576118f26122d2565b5b600061190184828501611874565b91505092915050565b60008060408385031215611921576119206122d2565b5b600061192f8582860161185f565b9250506020611940858286016118b3565b9150509250929050565b60008060008060808587031215611964576119636122d2565b5b60006119728782880161185f565b9450506020611983878288016118b3565b93505060406119948782880161185f565b92505060606119a5878288016118b3565b91505092959194509250565b6000806000606084860312156119ca576119c96122d2565b5b60006119d88682870161185f565b93505060206119e9868287016118b3565b92505060406119fa868287016118b3565b9150509250925092565b600060208284031215611a1a57611a196122d2565b5b6000611a2884828501611889565b91505092915050565b600060208284031215611a4757611a466122d2565b5b6000611a558482850161189e565b91505092915050565b600060208284031215611a7457611a736122d2565b5b6000611a82848285016118c8565b91505092915050565b611a948161217f565b82525050565b611aa38161217f565b82525050565b611aba611ab58261217f565b61226d565b82525050565b611ac981612191565b82525050565b6000611ada826120e6565b611ae481856120fc565b9350611af481856020860161223a565b611afd816122d7565b840191505092915050565b6000611b13826120e6565b611b1d818561210d565b9350611b2d81856020860161223a565b80840191505092915050565b611b42816121f2565b82525050565b611b5181612204565b82525050565b6000611b62826120f1565b611b6c8185612118565b9350611b7c81856020860161223a565b611b85816122d7565b840191505092915050565b6000611b9d602683612118565b9150611ba882612302565b604082019050919050565b6000611bc060008361210d565b9150611bcb82612351565b600082019050919050565b6000611be3601d83612118565b9150611bee82612354565b602082019050919050565b6000611c06602a83612118565b9150611c118261237d565b604082019050919050565b6000611c29603683612118565b9150611c34826123cc565b604082019050919050565b600060a0830160008301518482036000860152611c5c8282611acf565b9150506020830151611c716020860182611a8b565b506040830151611c846040860182611d9b565b506060830151611c976060860182611d9b565b506080830151611caa6080860182611d9b565b508091505092915050565b61010082016000820151611ccc6000850182611a8b565b506020820151611cdf6020850182611a8b565b506040820151611cf26040850182611d66565b506060820151611d056060850182611a8b565b506080820151611d186080850182611d9b565b5060a0820151611d2b60a0850182611d9b565b5060c0820151611d3e60c0850182611d9b565b5060e0820151611d5160e0850182611d57565b50505050565b611d60816121b9565b82525050565b611d6f816121d9565b82525050565b611d7e816121d9565b82525050565b611d95611d90826121d9565b612291565b82525050565b611da4816121e8565b82525050565b611db3816121e8565b82525050565b6000611dc58288611aa9565b601482019150611dd58287611d84565b600382019150611de58286611aa9565b601482019150611df58285611d84565b600382019150611e058284611aa9565b6014820191508190509695505050505050565b6000611e248284611b08565b915081905092915050565b6000611e3a82611bb3565b9150819050919050565b6000602082019050611e596000830184611a9a565b92915050565b6000604082019050611e746000830185611a9a565b611e816020830184611a9a565b9392505050565b6000606082019050611e9d6000830186611a9a565b611eaa6020830185611a9a565b611eb76040830184611d75565b949350505050565b6000606082019050611ed46000830186611a9a565b611ee16020830185611a9a565b611eee6040830184611daa565b949350505050565b6000604082019050611f0b6000830185611a9a565b611f186020830184611daa565b9392505050565b6000606082019050611f346000830186611a9a565b611f416020830185611daa565b611f4e6040830184611daa565b949350505050565b6000602082019050611f6b6000830184611ac0565b92915050565b6000602082019050611f866000830184611b39565b92915050565b6000602082019050611fa16000830184611b48565b92915050565b60006020820190508181036000830152611fc18184611b57565b905092915050565b60006020820190508181036000830152611fe281611b90565b9050919050565b6000602082019050818103600083015261200281611bd6565b9050919050565b6000602082019050818103600083015261202281611bf9565b9050919050565b6000602082019050818103600083015261204281611c1c565b9050919050565b600060208201905081810360008301526120638184611c3f565b905092915050565b6000610100820190506120816000830184611cb5565b92915050565b600060208201905061209c6000830184611d75565b92915050565b60006020820190506120b76000830184611daa565b92915050565b60006040820190506120d26000830185611daa565b6120df6020830184611daa565b9392505050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000612134826121e8565b915061213f836121e8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612174576121736122a3565b5b828201905092915050565b600061218a826121b9565b9050919050565b60008115159050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b60006121fd82612216565b9050919050565b600061220f82612216565b9050919050565b600061222182612228565b9050919050565b6000612233826121b9565b9050919050565b60005b8381101561225857808201518184015260208101905061223d565b83811115612267576000848401525b50505050565b60006122788261227f565b9050919050565b600061228a826122f5565b9050919050565b600061229c826122e8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b60008160e81b9050919050565b60008160601b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6124248161217f565b811461242f57600080fd5b50565b61243b81612191565b811461244657600080fd5b50565b6124528161219d565b811461245d57600080fd5b50565b612469816121e8565b811461247457600080fd5b5056fea2646970667358221220c207c922259dc7e5a2e16505dd6095616db7c385800d654ff7d82add8972c36764736f6c63430008070033", -} - -// ZetaTokenConsumerUniV3ABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerUniV3MetaData.ABI instead. -var ZetaTokenConsumerUniV3ABI = ZetaTokenConsumerUniV3MetaData.ABI - -// ZetaTokenConsumerUniV3Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaTokenConsumerUniV3MetaData.Bin instead. -var ZetaTokenConsumerUniV3Bin = ZetaTokenConsumerUniV3MetaData.Bin - -// DeployZetaTokenConsumerUniV3 deploys a new Ethereum contract, binding an instance of ZetaTokenConsumerUniV3 to it. -func DeployZetaTokenConsumerUniV3(auth *bind.TransactOpts, backend bind.ContractBackend, zetaToken_ common.Address, uniswapV3Router_ common.Address, uniswapV3Factory_ common.Address, WETH9Address_ common.Address, zetaPoolFee_ *big.Int, tokenPoolFee_ *big.Int) (common.Address, *types.Transaction, *ZetaTokenConsumerUniV3, error) { - parsed, err := ZetaTokenConsumerUniV3MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaTokenConsumerUniV3Bin), backend, zetaToken_, uniswapV3Router_, uniswapV3Factory_, WETH9Address_, zetaPoolFee_, tokenPoolFee_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaTokenConsumerUniV3{ZetaTokenConsumerUniV3Caller: ZetaTokenConsumerUniV3Caller{contract: contract}, ZetaTokenConsumerUniV3Transactor: ZetaTokenConsumerUniV3Transactor{contract: contract}, ZetaTokenConsumerUniV3Filterer: ZetaTokenConsumerUniV3Filterer{contract: contract}}, nil -} - -// ZetaTokenConsumerUniV3 is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3 struct { - ZetaTokenConsumerUniV3Caller // Read-only binding to the contract - ZetaTokenConsumerUniV3Transactor // Write-only binding to the contract - ZetaTokenConsumerUniV3Filterer // Log filterer for contract events -} - -// ZetaTokenConsumerUniV3Caller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3Transactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerUniV3Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerUniV3Session struct { - Contract *ZetaTokenConsumerUniV3 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV3CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerUniV3CallerSession struct { - Contract *ZetaTokenConsumerUniV3Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerUniV3TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerUniV3TransactorSession struct { - Contract *ZetaTokenConsumerUniV3Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV3Raw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3Raw struct { - Contract *ZetaTokenConsumerUniV3 // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV3CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3CallerRaw struct { - Contract *ZetaTokenConsumerUniV3Caller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV3TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3TransactorRaw struct { - Contract *ZetaTokenConsumerUniV3Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerUniV3 creates a new instance of ZetaTokenConsumerUniV3, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerUniV3, error) { - contract, err := bindZetaTokenConsumerUniV3(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3{ZetaTokenConsumerUniV3Caller: ZetaTokenConsumerUniV3Caller{contract: contract}, ZetaTokenConsumerUniV3Transactor: ZetaTokenConsumerUniV3Transactor{contract: contract}, ZetaTokenConsumerUniV3Filterer: ZetaTokenConsumerUniV3Filterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerUniV3Caller creates a new read-only instance of ZetaTokenConsumerUniV3, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3Caller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerUniV3Caller, error) { - contract, err := bindZetaTokenConsumerUniV3(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3Caller{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV3Transactor creates a new write-only instance of ZetaTokenConsumerUniV3, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3Transactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerUniV3Transactor, error) { - contract, err := bindZetaTokenConsumerUniV3(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3Transactor{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV3Filterer creates a new log filterer instance of ZetaTokenConsumerUniV3, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3Filterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerUniV3Filterer, error) { - contract, err := bindZetaTokenConsumerUniV3(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3Filterer{contract: contract}, nil -} - -// bindZetaTokenConsumerUniV3 binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerUniV3(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerUniV3MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV3.Contract.ZetaTokenConsumerUniV3Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.ZetaTokenConsumerUniV3Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.ZetaTokenConsumerUniV3Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV3.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.contract.Transact(opts, method, params...) -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Caller) WETH9Address(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV3.contract.Call(opts, &out, "WETH9Address") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) WETH9Address() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.WETH9Address(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerSession) WETH9Address() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.WETH9Address(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Caller) HasZetaLiquidity(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV3.contract.Call(opts, &out, "hasZetaLiquidity") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerUniV3.Contract.HasZetaLiquidity(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerUniV3.Contract.HasZetaLiquidity(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// TokenPoolFee is a free data retrieval call binding the contract method 0x5d9dfdde. -// -// Solidity: function tokenPoolFee() view returns(uint24) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Caller) TokenPoolFee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV3.contract.Call(opts, &out, "tokenPoolFee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TokenPoolFee is a free data retrieval call binding the contract method 0x5d9dfdde. -// -// Solidity: function tokenPoolFee() view returns(uint24) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) TokenPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerUniV3.Contract.TokenPoolFee(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// TokenPoolFee is a free data retrieval call binding the contract method 0x5d9dfdde. -// -// Solidity: function tokenPoolFee() view returns(uint24) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerSession) TokenPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerUniV3.Contract.TokenPoolFee(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// UniswapV3Factory is a free data retrieval call binding the contract method 0x5b549182. -// -// Solidity: function uniswapV3Factory() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Caller) UniswapV3Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV3.contract.Call(opts, &out, "uniswapV3Factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// UniswapV3Factory is a free data retrieval call binding the contract method 0x5b549182. -// -// Solidity: function uniswapV3Factory() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) UniswapV3Factory() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.UniswapV3Factory(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// UniswapV3Factory is a free data retrieval call binding the contract method 0x5b549182. -// -// Solidity: function uniswapV3Factory() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerSession) UniswapV3Factory() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.UniswapV3Factory(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// UniswapV3Router is a free data retrieval call binding the contract method 0x2c76d7a6. -// -// Solidity: function uniswapV3Router() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Caller) UniswapV3Router(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV3.contract.Call(opts, &out, "uniswapV3Router") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// UniswapV3Router is a free data retrieval call binding the contract method 0x2c76d7a6. -// -// Solidity: function uniswapV3Router() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) UniswapV3Router() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.UniswapV3Router(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// UniswapV3Router is a free data retrieval call binding the contract method 0x2c76d7a6. -// -// Solidity: function uniswapV3Router() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerSession) UniswapV3Router() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.UniswapV3Router(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// ZetaPoolFee is a free data retrieval call binding the contract method 0x3cbd7005. -// -// Solidity: function zetaPoolFee() view returns(uint24) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Caller) ZetaPoolFee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV3.contract.Call(opts, &out, "zetaPoolFee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// ZetaPoolFee is a free data retrieval call binding the contract method 0x3cbd7005. -// -// Solidity: function zetaPoolFee() view returns(uint24) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) ZetaPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerUniV3.Contract.ZetaPoolFee(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// ZetaPoolFee is a free data retrieval call binding the contract method 0x3cbd7005. -// -// Solidity: function zetaPoolFee() view returns(uint24) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerSession) ZetaPoolFee() (*big.Int, error) { - return _ZetaTokenConsumerUniV3.Contract.ZetaPoolFee(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Caller) ZetaToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerUniV3.contract.Call(opts, &out, "zetaToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.ZetaToken(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3CallerSession) ZetaToken() (common.Address, error) { - return _ZetaTokenConsumerUniV3.Contract.ZetaToken(&_ZetaTokenConsumerUniV3.CallOpts) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Transactor) GetEthFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.contract.Transact(opts, "getEthFromZeta", destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetEthFromZeta(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3TransactorSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetEthFromZeta(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Transactor) GetTokenFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.contract.Transact(opts, "getTokenFromZeta", destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetTokenFromZeta(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3TransactorSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetTokenFromZeta(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Transactor) GetZetaFromEth(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.contract.Transact(opts, "getZetaFromEth", destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetZetaFromEth(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3TransactorSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetZetaFromEth(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Transactor) GetZetaFromToken(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.contract.Transact(opts, "getZetaFromToken", destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetZetaFromToken(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3TransactorSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.GetZetaFromToken(&_ZetaTokenConsumerUniV3.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Session) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.Receive(&_ZetaTokenConsumerUniV3.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3TransactorSession) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3.Contract.Receive(&_ZetaTokenConsumerUniV3.TransactOpts) -} - -// ZetaTokenConsumerUniV3EthExchangedForZetaIterator is returned from FilterEthExchangedForZeta and is used to iterate over the raw logs and unpacked data for EthExchangedForZeta events raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3EthExchangedForZetaIterator struct { - Event *ZetaTokenConsumerUniV3EthExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV3EthExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3EthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3EthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV3EthExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV3EthExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV3EthExchangedForZeta represents a EthExchangedForZeta event raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3EthExchangedForZeta struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterEthExchangedForZeta is a free log retrieval operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) FilterEthExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV3EthExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.FilterLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3EthExchangedForZetaIterator{contract: _ZetaTokenConsumerUniV3.contract, event: "EthExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchEthExchangedForZeta is a free log subscription operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) WatchEthExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV3EthExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.WatchLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV3EthExchangedForZeta) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseEthExchangedForZeta is a log parse operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) ParseEthExchangedForZeta(log types.Log) (*ZetaTokenConsumerUniV3EthExchangedForZeta, error) { - event := new(ZetaTokenConsumerUniV3EthExchangedForZeta) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerUniV3TokenExchangedForZetaIterator is returned from FilterTokenExchangedForZeta and is used to iterate over the raw logs and unpacked data for TokenExchangedForZeta events raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3TokenExchangedForZetaIterator struct { - Event *ZetaTokenConsumerUniV3TokenExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV3TokenExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3TokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3TokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV3TokenExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV3TokenExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV3TokenExchangedForZeta represents a TokenExchangedForZeta event raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3TokenExchangedForZeta struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTokenExchangedForZeta is a free log retrieval operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) FilterTokenExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV3TokenExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.FilterLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3TokenExchangedForZetaIterator{contract: _ZetaTokenConsumerUniV3.contract, event: "TokenExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchTokenExchangedForZeta is a free log subscription operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) WatchTokenExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV3TokenExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.WatchLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV3TokenExchangedForZeta) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTokenExchangedForZeta is a log parse operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) ParseTokenExchangedForZeta(log types.Log) (*ZetaTokenConsumerUniV3TokenExchangedForZeta, error) { - event := new(ZetaTokenConsumerUniV3TokenExchangedForZeta) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerUniV3ZetaExchangedForEthIterator is returned from FilterZetaExchangedForEth and is used to iterate over the raw logs and unpacked data for ZetaExchangedForEth events raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3ZetaExchangedForEthIterator struct { - Event *ZetaTokenConsumerUniV3ZetaExchangedForEth // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV3ZetaExchangedForEthIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3ZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3ZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV3ZetaExchangedForEthIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV3ZetaExchangedForEthIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV3ZetaExchangedForEth represents a ZetaExchangedForEth event raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3ZetaExchangedForEth struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForEth is a free log retrieval operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) FilterZetaExchangedForEth(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV3ZetaExchangedForEthIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.FilterLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ZetaExchangedForEthIterator{contract: _ZetaTokenConsumerUniV3.contract, event: "ZetaExchangedForEth", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForEth is a free log subscription operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) WatchZetaExchangedForEth(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV3ZetaExchangedForEth) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.WatchLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV3ZetaExchangedForEth) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForEth is a log parse operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) ParseZetaExchangedForEth(log types.Log) (*ZetaTokenConsumerUniV3ZetaExchangedForEth, error) { - event := new(ZetaTokenConsumerUniV3ZetaExchangedForEth) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerUniV3ZetaExchangedForTokenIterator is returned from FilterZetaExchangedForToken and is used to iterate over the raw logs and unpacked data for ZetaExchangedForToken events raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3ZetaExchangedForTokenIterator struct { - Event *ZetaTokenConsumerUniV3ZetaExchangedForToken // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerUniV3ZetaExchangedForTokenIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3ZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerUniV3ZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerUniV3ZetaExchangedForTokenIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerUniV3ZetaExchangedForTokenIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerUniV3ZetaExchangedForToken represents a ZetaExchangedForToken event raised by the ZetaTokenConsumerUniV3 contract. -type ZetaTokenConsumerUniV3ZetaExchangedForToken struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForToken is a free log retrieval operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) FilterZetaExchangedForToken(opts *bind.FilterOpts) (*ZetaTokenConsumerUniV3ZetaExchangedForTokenIterator, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.FilterLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ZetaExchangedForTokenIterator{contract: _ZetaTokenConsumerUniV3.contract, event: "ZetaExchangedForToken", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForToken is a free log subscription operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) WatchZetaExchangedForToken(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerUniV3ZetaExchangedForToken) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerUniV3.contract.WatchLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerUniV3ZetaExchangedForToken) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForToken is a log parse operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerUniV3 *ZetaTokenConsumerUniV3Filterer) ParseZetaExchangedForToken(log types.Log) (*ZetaTokenConsumerUniV3ZetaExchangedForToken, error) { - event := new(ZetaTokenConsumerUniV3ZetaExchangedForToken) - if err := _ZetaTokenConsumerUniV3.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3errors.go b/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3errors.go deleted file mode 100644 index efa2ded22..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumeruniv3.strategy.sol/zetatokenconsumeruniv3errors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumeruniv3 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerUniV3ErrorsMetaData contains all meta data concerning the ZetaTokenConsumerUniV3Errors contract. -var ZetaTokenConsumerUniV3ErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"}]", -} - -// ZetaTokenConsumerUniV3ErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerUniV3ErrorsMetaData.ABI instead. -var ZetaTokenConsumerUniV3ErrorsABI = ZetaTokenConsumerUniV3ErrorsMetaData.ABI - -// ZetaTokenConsumerUniV3Errors is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3Errors struct { - ZetaTokenConsumerUniV3ErrorsCaller // Read-only binding to the contract - ZetaTokenConsumerUniV3ErrorsTransactor // Write-only binding to the contract - ZetaTokenConsumerUniV3ErrorsFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerUniV3ErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3ErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3ErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerUniV3ErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerUniV3ErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerUniV3ErrorsSession struct { - Contract *ZetaTokenConsumerUniV3Errors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV3ErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerUniV3ErrorsCallerSession struct { - Contract *ZetaTokenConsumerUniV3ErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerUniV3ErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerUniV3ErrorsTransactorSession struct { - Contract *ZetaTokenConsumerUniV3ErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerUniV3ErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsRaw struct { - Contract *ZetaTokenConsumerUniV3Errors // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV3ErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsCallerRaw struct { - Contract *ZetaTokenConsumerUniV3ErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerUniV3ErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerUniV3ErrorsTransactorRaw struct { - Contract *ZetaTokenConsumerUniV3ErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerUniV3Errors creates a new instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3Errors(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerUniV3Errors, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3Errors{ZetaTokenConsumerUniV3ErrorsCaller: ZetaTokenConsumerUniV3ErrorsCaller{contract: contract}, ZetaTokenConsumerUniV3ErrorsTransactor: ZetaTokenConsumerUniV3ErrorsTransactor{contract: contract}, ZetaTokenConsumerUniV3ErrorsFilterer: ZetaTokenConsumerUniV3ErrorsFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerUniV3ErrorsCaller creates a new read-only instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3ErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerUniV3ErrorsCaller, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ErrorsCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV3ErrorsTransactor creates a new write-only instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3ErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerUniV3ErrorsTransactor, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ErrorsTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerUniV3ErrorsFilterer creates a new log filterer instance of ZetaTokenConsumerUniV3Errors, bound to a specific deployed contract. -func NewZetaTokenConsumerUniV3ErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerUniV3ErrorsFilterer, error) { - contract, err := bindZetaTokenConsumerUniV3Errors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerUniV3ErrorsFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumerUniV3Errors binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerUniV3Errors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerUniV3ErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV3Errors.Contract.ZetaTokenConsumerUniV3ErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.ZetaTokenConsumerUniV3ErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.ZetaTokenConsumerUniV3ErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerUniV3Errors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerUniV3Errors *ZetaTokenConsumerUniV3ErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerUniV3Errors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevm.go b/v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevm.go deleted file mode 100644 index fcf406ff2..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevm.go +++ /dev/null @@ -1,912 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumerzevm - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerZEVMMetaData contains all meta data concerning the ZetaTokenConsumerZEVM contract. -var ZetaTokenConsumerZEVMMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"WETH9Address_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapV2Router_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZeta\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidForZEVM\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyWZETAAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OutputCantBeZeta\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"EthExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"TokenExchangedForZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForEth\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"ZetaExchangedForToken\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"WETH9Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getEthFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"outputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getTokenFromZeta\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"}],\"name\":\"getZetaFromEth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"minAmountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputTokenAmount\",\"type\":\"uint256\"}],\"name\":\"getZetaFromToken\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hasZetaLiquidity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", - Bin: "0x60c06040523480156200001157600080fd5b506040516200220938038062002209833981810160405281019062000037919062000164565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806200009f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15620000d7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620001fe565b6000815190506200015e81620001e4565b92915050565b600080604083850312156200017e576200017d620001df565b5b60006200018e858286016200014d565b9250506020620001a1858286016200014d565b9150509250929050565b6000620001b882620001bf565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620001ef81620001ab565b8114620001fb57600080fd5b50565b60805160601c60a05160601c611f7e6200028b600039600081816105a4015281816106fa01528181610cb50152610e2b0152600081816060015281816103060152818161038c015281816104ee01528181610689015281816109180152818161095f01528181610bdf01528181610c6b01528181610cd701528181610d6b0152610f660152611f7e6000f3fe6080604052600436106100595760003560e01c8063013b2ff8146100ea5780632405620a1461011a57806354c49a2a1461015757806380801f8414610194578063a53fb10b146101bf578063c469cf14146101fc576100e5565b366100e5577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e3576040517f290ee5a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b61010460048036038101906100ff919061157c565b610227565b6040516101119190611aa8565b60405180910390f35b34801561012657600080fd5b50610141600480360381019061013c91906115bc565b610412565b60405161014e9190611aa8565b60405180910390f35b34801561016357600080fd5b5061017e60048036038101906101799190611623565b610833565b60405161018b9190611aa8565b60405180910390f35b3480156101a057600080fd5b506101a9610acf565b6040516101b691906119eb565b60405180910390f35b3480156101cb57600080fd5b506101e660048036038101906101e191906115bc565b610b03565b6040516101f39190611aa8565b60405180910390f35b34801561020857600080fd5b50610211610f64565b60405161021e9190611910565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561028f576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003414156102ca576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81341015610304576040517fe2f844a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561036c57600080fd5b505af1158015610380573d6000803e3d6000fd5b50505050506103d083347f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610f889092919063ffffffff16565b7f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da113434604051610401929190611ac3565b60405180910390a134905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061047a5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156104b1576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156104ec576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610572576040517f6edfe50500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61059f3330848673ffffffffffffffffffffffffffffffffffffffff1661100e909392919063ffffffff16565b6105ea7f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166110979092919063ffffffff16565b6000600267ffffffffffffffff81111561060757610606611d96565b5b6040519080825280602002602001820160405280156106355781602001602082028036833780820191505090505b509050838160008151811061064d5761064c611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106106bc576106bb611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c8426107459190611c02565b6040518663ffffffff1660e01b8152600401610765959493929190611aec565b600060405180830381600087803b15801561077f57600080fd5b505af1158015610793573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906107bc9190611676565b9050600081600184516107cf9190611c58565b815181106107e0576107df611d67565b5b602002602001015190507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f86868360405161081d939291906119b4565b60405180910390a1809350505050949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561089b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156108d6576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82821015610910576040517fe2f844a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61095d3330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661100e909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b81526004016109b69190611aa8565b600060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b505050507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8283604051610a19929190611ac3565b60405180910390a160008473ffffffffffffffffffffffffffffffffffffffff1683604051610a47906118fb565b60006040518083038185875af1925050503d8060008114610a84576040519150601f19603f3d011682016040523d82523d6000602084013e610a89565b606091505b5050905080610ac4576040517f3794aeaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b829150509392505050565b60006040517f0e6a82b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610b6b5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610ba2576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610bdd576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c63576040517f8c51927900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cb03330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661100e909392919063ffffffff16565b610d1b7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166110979092919063ffffffff16565b6000600267ffffffffffffffff811115610d3857610d37611d96565b5b604051908082528060200260200182016040528015610d665781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610d9e57610d9d611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508381600181518110610ded57610dec611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c842610e769190611c02565b6040518663ffffffff1660e01b8152600401610e96959493929190611aec565b600060405180830381600087803b158015610eb057600080fd5b505af1158015610ec4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610eed9190611676565b905060008160018451610f009190611c58565b81518110610f1157610f10611d67565b5b602002602001015190507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b868683604051610f4e939291906119b4565b60405180910390a1809350505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6110098363a9059cbb60e01b8484604051602401610fa792919061198b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111f5565b505050565b611091846323b872dd60e01b85858560405160240161102f93929190611954565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111f5565b50505050565b6000811480611130575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016110de92919061192b565b60206040518083038186803b1580156110f657600080fd5b505afa15801561110a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112e91906116ec565b145b61116f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116690611a88565b60405180910390fd5b6111f08363095ea7b360e01b848460405160240161118e92919061198b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111f5565b505050565b6000611257826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112bc9092919063ffffffff16565b90506000815111156112b7578080602001905181019061127791906116bf565b6112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ad90611a68565b60405180910390fd5b5b505050565b60606112cb84846000856112d4565b90509392505050565b606082471015611319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131090611a28565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161134291906118e4565b60006040518083038185875af1925050503d806000811461137f576040519150601f19603f3d011682016040523d82523d6000602084013e611384565b606091505b5091509150611395878383876113a1565b92505050949350505050565b60608315611404576000835114156113fc576113bc85611417565b6113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290611a48565b60405180910390fd5b5b82905061140f565b61140e838361143a565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561144d5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114819190611a06565b60405180910390fd5b600061149d61149884611b6b565b611b46565b905080838252602082019050828560208602820111156114c0576114bf611dca565b5b60005b858110156114f057816114d68882611567565b8452602084019350602083019250506001810190506114c3565b5050509392505050565b60008135905061150981611f03565b92915050565b600082601f83011261152457611523611dc5565b5b815161153484826020860161148a565b91505092915050565b60008151905061154c81611f1a565b92915050565b60008135905061156181611f31565b92915050565b60008151905061157681611f31565b92915050565b6000806040838503121561159357611592611dd4565b5b60006115a1858286016114fa565b92505060206115b285828601611552565b9150509250929050565b600080600080608085870312156115d6576115d5611dd4565b5b60006115e4878288016114fa565b94505060206115f587828801611552565b9350506040611606878288016114fa565b925050606061161787828801611552565b91505092959194509250565b60008060006060848603121561163c5761163b611dd4565b5b600061164a868287016114fa565b935050602061165b86828701611552565b925050604061166c86828701611552565b9150509250925092565b60006020828403121561168c5761168b611dd4565b5b600082015167ffffffffffffffff8111156116aa576116a9611dcf565b5b6116b68482850161150f565b91505092915050565b6000602082840312156116d5576116d4611dd4565b5b60006116e38482850161153d565b91505092915050565b60006020828403121561170257611701611dd4565b5b600061171084828501611567565b91505092915050565b60006117258383611731565b60208301905092915050565b61173a81611c8c565b82525050565b61174981611c8c565b82525050565b600061175a82611ba7565b6117648185611bd5565b935061176f83611b97565b8060005b838110156117a05781516117878882611719565b975061179283611bc8565b925050600181019050611773565b5085935050505092915050565b6117b681611c9e565b82525050565b60006117c782611bb2565b6117d18185611be6565b93506117e1818560208601611cd4565b80840191505092915050565b60006117f882611bbd565b6118028185611bf1565b9350611812818560208601611cd4565b61181b81611dd9565b840191505092915050565b6000611833602683611bf1565b915061183e82611dea565b604082019050919050565b6000611856600083611be6565b915061186182611e39565b600082019050919050565b6000611879601d83611bf1565b915061188482611e3c565b602082019050919050565b600061189c602a83611bf1565b91506118a782611e65565b604082019050919050565b60006118bf603683611bf1565b91506118ca82611eb4565b604082019050919050565b6118de81611cca565b82525050565b60006118f082846117bc565b915081905092915050565b600061190682611849565b9150819050919050565b60006020820190506119256000830184611740565b92915050565b60006040820190506119406000830185611740565b61194d6020830184611740565b9392505050565b60006060820190506119696000830186611740565b6119766020830185611740565b61198360408301846118d5565b949350505050565b60006040820190506119a06000830185611740565b6119ad60208301846118d5565b9392505050565b60006060820190506119c96000830186611740565b6119d660208301856118d5565b6119e360408301846118d5565b949350505050565b6000602082019050611a0060008301846117ad565b92915050565b60006020820190508181036000830152611a2081846117ed565b905092915050565b60006020820190508181036000830152611a4181611826565b9050919050565b60006020820190508181036000830152611a618161186c565b9050919050565b60006020820190508181036000830152611a818161188f565b9050919050565b60006020820190508181036000830152611aa1816118b2565b9050919050565b6000602082019050611abd60008301846118d5565b92915050565b6000604082019050611ad860008301856118d5565b611ae560208301846118d5565b9392505050565b600060a082019050611b0160008301886118d5565b611b0e60208301876118d5565b8181036040830152611b20818661174f565b9050611b2f6060830185611740565b611b3c60808301846118d5565b9695505050505050565b6000611b50611b61565b9050611b5c8282611d07565b919050565b6000604051905090565b600067ffffffffffffffff821115611b8657611b85611d96565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611c0d82611cca565b9150611c1883611cca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611c4d57611c4c611d38565b5b828201905092915050565b6000611c6382611cca565b9150611c6e83611cca565b925082821015611c8157611c80611d38565b5b828203905092915050565b6000611c9782611caa565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015611cf2578082015181840152602081019050611cd7565b83811115611d01576000848401525b50505050565b611d1082611dd9565b810181811067ffffffffffffffff82111715611d2f57611d2e611d96565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b611f0c81611c8c565b8114611f1757600080fd5b50565b611f2381611c9e565b8114611f2e57600080fd5b50565b611f3a81611cca565b8114611f4557600080fd5b5056fea26469706673582212209d699fd174ff021ab8955aa2ab41ef5c683b288e3873f97ef4d0c4732ceebae264736f6c63430008070033", -} - -// ZetaTokenConsumerZEVMABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerZEVMMetaData.ABI instead. -var ZetaTokenConsumerZEVMABI = ZetaTokenConsumerZEVMMetaData.ABI - -// ZetaTokenConsumerZEVMBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaTokenConsumerZEVMMetaData.Bin instead. -var ZetaTokenConsumerZEVMBin = ZetaTokenConsumerZEVMMetaData.Bin - -// DeployZetaTokenConsumerZEVM deploys a new Ethereum contract, binding an instance of ZetaTokenConsumerZEVM to it. -func DeployZetaTokenConsumerZEVM(auth *bind.TransactOpts, backend bind.ContractBackend, WETH9Address_ common.Address, uniswapV2Router_ common.Address) (common.Address, *types.Transaction, *ZetaTokenConsumerZEVM, error) { - parsed, err := ZetaTokenConsumerZEVMMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaTokenConsumerZEVMBin), backend, WETH9Address_, uniswapV2Router_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaTokenConsumerZEVM{ZetaTokenConsumerZEVMCaller: ZetaTokenConsumerZEVMCaller{contract: contract}, ZetaTokenConsumerZEVMTransactor: ZetaTokenConsumerZEVMTransactor{contract: contract}, ZetaTokenConsumerZEVMFilterer: ZetaTokenConsumerZEVMFilterer{contract: contract}}, nil -} - -// ZetaTokenConsumerZEVM is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVM struct { - ZetaTokenConsumerZEVMCaller // Read-only binding to the contract - ZetaTokenConsumerZEVMTransactor // Write-only binding to the contract - ZetaTokenConsumerZEVMFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerZEVMCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerZEVMTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerZEVMFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerZEVMFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerZEVMSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerZEVMSession struct { - Contract *ZetaTokenConsumerZEVM // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerZEVMCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerZEVMCallerSession struct { - Contract *ZetaTokenConsumerZEVMCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerZEVMTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerZEVMTransactorSession struct { - Contract *ZetaTokenConsumerZEVMTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerZEVMRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMRaw struct { - Contract *ZetaTokenConsumerZEVM // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerZEVMCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMCallerRaw struct { - Contract *ZetaTokenConsumerZEVMCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerZEVMTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMTransactorRaw struct { - Contract *ZetaTokenConsumerZEVMTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerZEVM creates a new instance of ZetaTokenConsumerZEVM, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVM(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerZEVM, error) { - contract, err := bindZetaTokenConsumerZEVM(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVM{ZetaTokenConsumerZEVMCaller: ZetaTokenConsumerZEVMCaller{contract: contract}, ZetaTokenConsumerZEVMTransactor: ZetaTokenConsumerZEVMTransactor{contract: contract}, ZetaTokenConsumerZEVMFilterer: ZetaTokenConsumerZEVMFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerZEVMCaller creates a new read-only instance of ZetaTokenConsumerZEVM, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVMCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerZEVMCaller, error) { - contract, err := bindZetaTokenConsumerZEVM(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerZEVMTransactor creates a new write-only instance of ZetaTokenConsumerZEVM, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVMTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerZEVMTransactor, error) { - contract, err := bindZetaTokenConsumerZEVM(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerZEVMFilterer creates a new log filterer instance of ZetaTokenConsumerZEVM, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVMFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerZEVMFilterer, error) { - contract, err := bindZetaTokenConsumerZEVM(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumerZEVM binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerZEVM(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerZEVMMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerZEVM.Contract.ZetaTokenConsumerZEVMCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.ZetaTokenConsumerZEVMTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.ZetaTokenConsumerZEVMTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerZEVM.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.contract.Transact(opts, method, params...) -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMCaller) WETH9Address(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaTokenConsumerZEVM.contract.Call(opts, &out, "WETH9Address") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMSession) WETH9Address() (common.Address, error) { - return _ZetaTokenConsumerZEVM.Contract.WETH9Address(&_ZetaTokenConsumerZEVM.CallOpts) -} - -// WETH9Address is a free data retrieval call binding the contract method 0xc469cf14. -// -// Solidity: function WETH9Address() view returns(address) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMCallerSession) WETH9Address() (common.Address, error) { - return _ZetaTokenConsumerZEVM.Contract.WETH9Address(&_ZetaTokenConsumerZEVM.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMCaller) HasZetaLiquidity(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaTokenConsumerZEVM.contract.Call(opts, &out, "hasZetaLiquidity") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerZEVM.Contract.HasZetaLiquidity(&_ZetaTokenConsumerZEVM.CallOpts) -} - -// HasZetaLiquidity is a free data retrieval call binding the contract method 0x80801f84. -// -// Solidity: function hasZetaLiquidity() view returns(bool) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMCallerSession) HasZetaLiquidity() (bool, error) { - return _ZetaTokenConsumerZEVM.Contract.HasZetaLiquidity(&_ZetaTokenConsumerZEVM.CallOpts) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactor) GetEthFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.contract.Transact(opts, "getEthFromZeta", destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetEthFromZeta(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetEthFromZeta is a paid mutator transaction binding the contract method 0x54c49a2a. -// -// Solidity: function getEthFromZeta(address destinationAddress, uint256 minAmountOut, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactorSession) GetEthFromZeta(destinationAddress common.Address, minAmountOut *big.Int, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetEthFromZeta(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactor) GetTokenFromZeta(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.contract.Transact(opts, "getTokenFromZeta", destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetTokenFromZeta(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetTokenFromZeta is a paid mutator transaction binding the contract method 0xa53fb10b. -// -// Solidity: function getTokenFromZeta(address destinationAddress, uint256 minAmountOut, address outputToken, uint256 zetaTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactorSession) GetTokenFromZeta(destinationAddress common.Address, minAmountOut *big.Int, outputToken common.Address, zetaTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetTokenFromZeta(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut, outputToken, zetaTokenAmount) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactor) GetZetaFromEth(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.contract.Transact(opts, "getZetaFromEth", destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetZetaFromEth(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromEth is a paid mutator transaction binding the contract method 0x013b2ff8. -// -// Solidity: function getZetaFromEth(address destinationAddress, uint256 minAmountOut) payable returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactorSession) GetZetaFromEth(destinationAddress common.Address, minAmountOut *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetZetaFromEth(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactor) GetZetaFromToken(opts *bind.TransactOpts, destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.contract.Transact(opts, "getZetaFromToken", destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetZetaFromToken(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// GetZetaFromToken is a paid mutator transaction binding the contract method 0x2405620a. -// -// Solidity: function getZetaFromToken(address destinationAddress, uint256 minAmountOut, address inputToken, uint256 inputTokenAmount) returns(uint256) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactorSession) GetZetaFromToken(destinationAddress common.Address, minAmountOut *big.Int, inputToken common.Address, inputTokenAmount *big.Int) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.GetZetaFromToken(&_ZetaTokenConsumerZEVM.TransactOpts, destinationAddress, minAmountOut, inputToken, inputTokenAmount) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMSession) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.Receive(&_ZetaTokenConsumerZEVM.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMTransactorSession) Receive() (*types.Transaction, error) { - return _ZetaTokenConsumerZEVM.Contract.Receive(&_ZetaTokenConsumerZEVM.TransactOpts) -} - -// ZetaTokenConsumerZEVMEthExchangedForZetaIterator is returned from FilterEthExchangedForZeta and is used to iterate over the raw logs and unpacked data for EthExchangedForZeta events raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMEthExchangedForZetaIterator struct { - Event *ZetaTokenConsumerZEVMEthExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerZEVMEthExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMEthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMEthExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerZEVMEthExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerZEVMEthExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerZEVMEthExchangedForZeta represents a EthExchangedForZeta event raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMEthExchangedForZeta struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterEthExchangedForZeta is a free log retrieval operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) FilterEthExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerZEVMEthExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.FilterLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMEthExchangedForZetaIterator{contract: _ZetaTokenConsumerZEVM.contract, event: "EthExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchEthExchangedForZeta is a free log subscription operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) WatchEthExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerZEVMEthExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.WatchLogs(opts, "EthExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerZEVMEthExchangedForZeta) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseEthExchangedForZeta is a log parse operation binding the contract event 0x87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11. -// -// Solidity: event EthExchangedForZeta(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) ParseEthExchangedForZeta(log types.Log) (*ZetaTokenConsumerZEVMEthExchangedForZeta, error) { - event := new(ZetaTokenConsumerZEVMEthExchangedForZeta) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "EthExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerZEVMTokenExchangedForZetaIterator is returned from FilterTokenExchangedForZeta and is used to iterate over the raw logs and unpacked data for TokenExchangedForZeta events raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMTokenExchangedForZetaIterator struct { - Event *ZetaTokenConsumerZEVMTokenExchangedForZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerZEVMTokenExchangedForZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMTokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMTokenExchangedForZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerZEVMTokenExchangedForZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerZEVMTokenExchangedForZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerZEVMTokenExchangedForZeta represents a TokenExchangedForZeta event raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMTokenExchangedForZeta struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTokenExchangedForZeta is a free log retrieval operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) FilterTokenExchangedForZeta(opts *bind.FilterOpts) (*ZetaTokenConsumerZEVMTokenExchangedForZetaIterator, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.FilterLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMTokenExchangedForZetaIterator{contract: _ZetaTokenConsumerZEVM.contract, event: "TokenExchangedForZeta", logs: logs, sub: sub}, nil -} - -// WatchTokenExchangedForZeta is a free log subscription operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) WatchTokenExchangedForZeta(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerZEVMTokenExchangedForZeta) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.WatchLogs(opts, "TokenExchangedForZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerZEVMTokenExchangedForZeta) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTokenExchangedForZeta is a log parse operation binding the contract event 0x017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f. -// -// Solidity: event TokenExchangedForZeta(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) ParseTokenExchangedForZeta(log types.Log) (*ZetaTokenConsumerZEVMTokenExchangedForZeta, error) { - event := new(ZetaTokenConsumerZEVMTokenExchangedForZeta) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "TokenExchangedForZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerZEVMZetaExchangedForEthIterator is returned from FilterZetaExchangedForEth and is used to iterate over the raw logs and unpacked data for ZetaExchangedForEth events raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMZetaExchangedForEthIterator struct { - Event *ZetaTokenConsumerZEVMZetaExchangedForEth // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerZEVMZetaExchangedForEthIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMZetaExchangedForEth) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerZEVMZetaExchangedForEthIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerZEVMZetaExchangedForEthIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerZEVMZetaExchangedForEth represents a ZetaExchangedForEth event raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMZetaExchangedForEth struct { - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForEth is a free log retrieval operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) FilterZetaExchangedForEth(opts *bind.FilterOpts) (*ZetaTokenConsumerZEVMZetaExchangedForEthIterator, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.FilterLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMZetaExchangedForEthIterator{contract: _ZetaTokenConsumerZEVM.contract, event: "ZetaExchangedForEth", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForEth is a free log subscription operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) WatchZetaExchangedForEth(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerZEVMZetaExchangedForEth) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.WatchLogs(opts, "ZetaExchangedForEth") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerZEVMZetaExchangedForEth) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForEth is a log parse operation binding the contract event 0x74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae. -// -// Solidity: event ZetaExchangedForEth(uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) ParseZetaExchangedForEth(log types.Log) (*ZetaTokenConsumerZEVMZetaExchangedForEth, error) { - event := new(ZetaTokenConsumerZEVMZetaExchangedForEth) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "ZetaExchangedForEth", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaTokenConsumerZEVMZetaExchangedForTokenIterator is returned from FilterZetaExchangedForToken and is used to iterate over the raw logs and unpacked data for ZetaExchangedForToken events raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMZetaExchangedForTokenIterator struct { - Event *ZetaTokenConsumerZEVMZetaExchangedForToken // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaTokenConsumerZEVMZetaExchangedForTokenIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaTokenConsumerZEVMZetaExchangedForToken) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaTokenConsumerZEVMZetaExchangedForTokenIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaTokenConsumerZEVMZetaExchangedForTokenIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaTokenConsumerZEVMZetaExchangedForToken represents a ZetaExchangedForToken event raised by the ZetaTokenConsumerZEVM contract. -type ZetaTokenConsumerZEVMZetaExchangedForToken struct { - Token common.Address - AmountIn *big.Int - AmountOut *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaExchangedForToken is a free log retrieval operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) FilterZetaExchangedForToken(opts *bind.FilterOpts) (*ZetaTokenConsumerZEVMZetaExchangedForTokenIterator, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.FilterLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMZetaExchangedForTokenIterator{contract: _ZetaTokenConsumerZEVM.contract, event: "ZetaExchangedForToken", logs: logs, sub: sub}, nil -} - -// WatchZetaExchangedForToken is a free log subscription operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) WatchZetaExchangedForToken(opts *bind.WatchOpts, sink chan<- *ZetaTokenConsumerZEVMZetaExchangedForToken) (event.Subscription, error) { - - logs, sub, err := _ZetaTokenConsumerZEVM.contract.WatchLogs(opts, "ZetaExchangedForToken") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaTokenConsumerZEVMZetaExchangedForToken) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaExchangedForToken is a log parse operation binding the contract event 0x0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b. -// -// Solidity: event ZetaExchangedForToken(address token, uint256 amountIn, uint256 amountOut) -func (_ZetaTokenConsumerZEVM *ZetaTokenConsumerZEVMFilterer) ParseZetaExchangedForToken(log types.Log) (*ZetaTokenConsumerZEVMZetaExchangedForToken, error) { - event := new(ZetaTokenConsumerZEVMZetaExchangedForToken) - if err := _ZetaTokenConsumerZEVM.contract.UnpackLog(event, "ZetaExchangedForToken", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevmerrors.go b/v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevmerrors.go deleted file mode 100644 index 9886476b0..000000000 --- a/v1/pkg/contracts/evm/tools/zetatokenconsumerzevm.strategy.sol/zetatokenconsumerzevmerrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetatokenconsumerzevm - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaTokenConsumerZEVMErrorsMetaData contains all meta data concerning the ZetaTokenConsumerZEVMErrors contract. -var ZetaTokenConsumerZEVMErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"ErrorSendingETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InputCantBeZeta\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidForZEVM\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyWZETAAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OutputCantBeZeta\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyError\",\"type\":\"error\"}]", -} - -// ZetaTokenConsumerZEVMErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaTokenConsumerZEVMErrorsMetaData.ABI instead. -var ZetaTokenConsumerZEVMErrorsABI = ZetaTokenConsumerZEVMErrorsMetaData.ABI - -// ZetaTokenConsumerZEVMErrors is an auto generated Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMErrors struct { - ZetaTokenConsumerZEVMErrorsCaller // Read-only binding to the contract - ZetaTokenConsumerZEVMErrorsTransactor // Write-only binding to the contract - ZetaTokenConsumerZEVMErrorsFilterer // Log filterer for contract events -} - -// ZetaTokenConsumerZEVMErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerZEVMErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerZEVMErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaTokenConsumerZEVMErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaTokenConsumerZEVMErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaTokenConsumerZEVMErrorsSession struct { - Contract *ZetaTokenConsumerZEVMErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerZEVMErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaTokenConsumerZEVMErrorsCallerSession struct { - Contract *ZetaTokenConsumerZEVMErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaTokenConsumerZEVMErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaTokenConsumerZEVMErrorsTransactorSession struct { - Contract *ZetaTokenConsumerZEVMErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaTokenConsumerZEVMErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMErrorsRaw struct { - Contract *ZetaTokenConsumerZEVMErrors // Generic contract binding to access the raw methods on -} - -// ZetaTokenConsumerZEVMErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMErrorsCallerRaw struct { - Contract *ZetaTokenConsumerZEVMErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaTokenConsumerZEVMErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaTokenConsumerZEVMErrorsTransactorRaw struct { - Contract *ZetaTokenConsumerZEVMErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaTokenConsumerZEVMErrors creates a new instance of ZetaTokenConsumerZEVMErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVMErrors(address common.Address, backend bind.ContractBackend) (*ZetaTokenConsumerZEVMErrors, error) { - contract, err := bindZetaTokenConsumerZEVMErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMErrors{ZetaTokenConsumerZEVMErrorsCaller: ZetaTokenConsumerZEVMErrorsCaller{contract: contract}, ZetaTokenConsumerZEVMErrorsTransactor: ZetaTokenConsumerZEVMErrorsTransactor{contract: contract}, ZetaTokenConsumerZEVMErrorsFilterer: ZetaTokenConsumerZEVMErrorsFilterer{contract: contract}}, nil -} - -// NewZetaTokenConsumerZEVMErrorsCaller creates a new read-only instance of ZetaTokenConsumerZEVMErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVMErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZetaTokenConsumerZEVMErrorsCaller, error) { - contract, err := bindZetaTokenConsumerZEVMErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMErrorsCaller{contract: contract}, nil -} - -// NewZetaTokenConsumerZEVMErrorsTransactor creates a new write-only instance of ZetaTokenConsumerZEVMErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVMErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaTokenConsumerZEVMErrorsTransactor, error) { - contract, err := bindZetaTokenConsumerZEVMErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMErrorsTransactor{contract: contract}, nil -} - -// NewZetaTokenConsumerZEVMErrorsFilterer creates a new log filterer instance of ZetaTokenConsumerZEVMErrors, bound to a specific deployed contract. -func NewZetaTokenConsumerZEVMErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaTokenConsumerZEVMErrorsFilterer, error) { - contract, err := bindZetaTokenConsumerZEVMErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaTokenConsumerZEVMErrorsFilterer{contract: contract}, nil -} - -// bindZetaTokenConsumerZEVMErrors binds a generic wrapper to an already deployed contract. -func bindZetaTokenConsumerZEVMErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaTokenConsumerZEVMErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerZEVMErrors *ZetaTokenConsumerZEVMErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerZEVMErrors.Contract.ZetaTokenConsumerZEVMErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerZEVMErrors *ZetaTokenConsumerZEVMErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVMErrors.Contract.ZetaTokenConsumerZEVMErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerZEVMErrors *ZetaTokenConsumerZEVMErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVMErrors.Contract.ZetaTokenConsumerZEVMErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaTokenConsumerZEVMErrors *ZetaTokenConsumerZEVMErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaTokenConsumerZEVMErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaTokenConsumerZEVMErrors *ZetaTokenConsumerZEVMErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVMErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaTokenConsumerZEVMErrors *ZetaTokenConsumerZEVMErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaTokenConsumerZEVMErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/evm/zeta.eth.sol/zetaeth.go b/v1/pkg/contracts/evm/zeta.eth.sol/zetaeth.go deleted file mode 100644 index 9bfabaa51..000000000 --- a/v1/pkg/contracts/evm/zeta.eth.sol/zetaeth.go +++ /dev/null @@ -1,802 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zeta - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaEthMetaData contains all meta data concerning the ZetaEth contract. -var ZetaEthMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"creator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"initialSupply\",\"type\":\"uint256\"}],\"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\"}]", - Bin: "0x60806040523480156200001157600080fd5b5060405162001a5238038062001a5283398181016040528101906200003791906200037d565b6040518060400160405280600481526020017f5a657461000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f5a455441000000000000000000000000000000000000000000000000000000008152508160039080519060200190620000bb9291906200029f565b508060049080519060200190620000d49291906200029f565b5050506200011682620000ec6200011e60201b60201c565b60ff16600a620000fd919062000504565b836200010a919062000641565b6200012760201b60201c565b5050620007e3565b60006012905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200019a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019190620003fc565b60405180910390fd5b620001ae600083836200029560201b60201c565b8060026000828254620001c291906200044c565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200027591906200041e565b60405180910390a362000291600083836200029a60201b60201c565b5050565b505050565b505050565b828054620002ad90620006e0565b90600052602060002090601f016020900481019282620002d157600085556200031d565b82601f10620002ec57805160ff19168380011785556200031d565b828001600101855582156200031d579182015b828111156200031c578251825591602001919060010190620002ff565b5b5090506200032c919062000330565b5090565b5b808211156200034b57600081600090555060010162000331565b5090565b6000815190506200036081620007af565b92915050565b6000815190506200037781620007c9565b92915050565b6000806040838503121562000397576200039662000774565b5b6000620003a7858286016200034f565b9250506020620003ba8582860162000366565b9150509250929050565b6000620003d3601f836200043b565b9150620003e08262000786565b602082019050919050565b620003f681620006d6565b82525050565b600060208201905081810360008301526200041781620003c4565b9050919050565b6000602082019050620004356000830184620003eb565b92915050565b600082825260208201905092915050565b60006200045982620006d6565b91506200046683620006d6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200049e576200049d62000716565b5b828201905092915050565b6000808291508390505b6001851115620004fb57808604811115620004d357620004d262000716565b5b6001851615620004e35780820291505b8081029050620004f38562000779565b9450620004b3565b94509492505050565b60006200051182620006d6565b91506200051e83620006d6565b92506200054d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000555565b905092915050565b6000826200056757600190506200063a565b816200057757600090506200063a565b81600181146200059057600281146200059b57620005d1565b60019150506200063a565b60ff841115620005b057620005af62000716565b5b8360020a915084821115620005ca57620005c962000716565b5b506200063a565b5060208310610133831016604e8410600b84101617156200060b5782820a90508381111562000605576200060462000716565b5b6200063a565b6200061a8484846001620004a9565b9250905081840481111562000634576200063362000716565b5b81810290505b9392505050565b60006200064e82620006d6565b91506200065b83620006d6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000697576200069662000716565b5b828202905092915050565b6000620006af82620006b6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620006f957607f821691505b6020821081141562000710576200070f62000745565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b60008160011c9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620007ba81620006a2565b8114620007c657600080fd5b50565b620007d481620006d6565b8114620007e057600080fd5b50565b61125f80620007f36000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea2646970667358221220e33277034a5236435f4dc6a93d4c4dc71fb8a6be9f4a752ea3f374446caf920b64736f6c63430008070033", -} - -// ZetaEthABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaEthMetaData.ABI instead. -var ZetaEthABI = ZetaEthMetaData.ABI - -// ZetaEthBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaEthMetaData.Bin instead. -var ZetaEthBin = ZetaEthMetaData.Bin - -// DeployZetaEth deploys a new Ethereum contract, binding an instance of ZetaEth to it. -func DeployZetaEth(auth *bind.TransactOpts, backend bind.ContractBackend, creator common.Address, initialSupply *big.Int) (common.Address, *types.Transaction, *ZetaEth, error) { - parsed, err := ZetaEthMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaEthBin), backend, creator, initialSupply) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaEth{ZetaEthCaller: ZetaEthCaller{contract: contract}, ZetaEthTransactor: ZetaEthTransactor{contract: contract}, ZetaEthFilterer: ZetaEthFilterer{contract: contract}}, nil -} - -// ZetaEth is an auto generated Go binding around an Ethereum contract. -type ZetaEth struct { - ZetaEthCaller // Read-only binding to the contract - ZetaEthTransactor // Write-only binding to the contract - ZetaEthFilterer // Log filterer for contract events -} - -// ZetaEthCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaEthCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaEthTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaEthTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaEthFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaEthFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaEthSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaEthSession struct { - Contract *ZetaEth // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaEthCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaEthCallerSession struct { - Contract *ZetaEthCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaEthTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaEthTransactorSession struct { - Contract *ZetaEthTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaEthRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaEthRaw struct { - Contract *ZetaEth // Generic contract binding to access the raw methods on -} - -// ZetaEthCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaEthCallerRaw struct { - Contract *ZetaEthCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaEthTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaEthTransactorRaw struct { - Contract *ZetaEthTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaEth creates a new instance of ZetaEth, bound to a specific deployed contract. -func NewZetaEth(address common.Address, backend bind.ContractBackend) (*ZetaEth, error) { - contract, err := bindZetaEth(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaEth{ZetaEthCaller: ZetaEthCaller{contract: contract}, ZetaEthTransactor: ZetaEthTransactor{contract: contract}, ZetaEthFilterer: ZetaEthFilterer{contract: contract}}, nil -} - -// NewZetaEthCaller creates a new read-only instance of ZetaEth, bound to a specific deployed contract. -func NewZetaEthCaller(address common.Address, caller bind.ContractCaller) (*ZetaEthCaller, error) { - contract, err := bindZetaEth(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaEthCaller{contract: contract}, nil -} - -// NewZetaEthTransactor creates a new write-only instance of ZetaEth, bound to a specific deployed contract. -func NewZetaEthTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaEthTransactor, error) { - contract, err := bindZetaEth(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaEthTransactor{contract: contract}, nil -} - -// NewZetaEthFilterer creates a new log filterer instance of ZetaEth, bound to a specific deployed contract. -func NewZetaEthFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaEthFilterer, error) { - contract, err := bindZetaEth(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaEthFilterer{contract: contract}, nil -} - -// bindZetaEth binds a generic wrapper to an already deployed contract. -func bindZetaEth(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaEthMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaEth *ZetaEthRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaEth.Contract.ZetaEthCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaEth *ZetaEthRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaEth.Contract.ZetaEthTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaEth *ZetaEthRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaEth.Contract.ZetaEthTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaEth *ZetaEthCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaEth.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaEth *ZetaEthTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaEth.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaEth *ZetaEthTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaEth.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaEth *ZetaEthCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _ZetaEth.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaEth *ZetaEthSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZetaEth.Contract.Allowance(&_ZetaEth.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaEth *ZetaEthCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZetaEth.Contract.Allowance(&_ZetaEth.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaEth *ZetaEthCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _ZetaEth.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaEth *ZetaEthSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ZetaEth.Contract.BalanceOf(&_ZetaEth.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaEth *ZetaEthCallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ZetaEth.Contract.BalanceOf(&_ZetaEth.CallOpts, account) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZetaEth *ZetaEthCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _ZetaEth.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZetaEth *ZetaEthSession) Decimals() (uint8, error) { - return _ZetaEth.Contract.Decimals(&_ZetaEth.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZetaEth *ZetaEthCallerSession) Decimals() (uint8, error) { - return _ZetaEth.Contract.Decimals(&_ZetaEth.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZetaEth *ZetaEthCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ZetaEth.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZetaEth *ZetaEthSession) Name() (string, error) { - return _ZetaEth.Contract.Name(&_ZetaEth.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZetaEth *ZetaEthCallerSession) Name() (string, error) { - return _ZetaEth.Contract.Name(&_ZetaEth.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZetaEth *ZetaEthCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ZetaEth.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZetaEth *ZetaEthSession) Symbol() (string, error) { - return _ZetaEth.Contract.Symbol(&_ZetaEth.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZetaEth *ZetaEthCallerSession) Symbol() (string, error) { - return _ZetaEth.Contract.Symbol(&_ZetaEth.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaEth *ZetaEthCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaEth.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaEth *ZetaEthSession) TotalSupply() (*big.Int, error) { - return _ZetaEth.Contract.TotalSupply(&_ZetaEth.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaEth *ZetaEthCallerSession) TotalSupply() (*big.Int, error) { - return _ZetaEth.Contract.TotalSupply(&_ZetaEth.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.Approve(&_ZetaEth.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.Approve(&_ZetaEth.TransactOpts, spender, amount) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ZetaEth *ZetaEthTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ZetaEth.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ZetaEth *ZetaEthSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.DecreaseAllowance(&_ZetaEth.TransactOpts, spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ZetaEth *ZetaEthTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.DecreaseAllowance(&_ZetaEth.TransactOpts, spender, subtractedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ZetaEth *ZetaEthTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ZetaEth.contract.Transact(opts, "increaseAllowance", spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ZetaEth *ZetaEthSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.IncreaseAllowance(&_ZetaEth.TransactOpts, spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ZetaEth *ZetaEthTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.IncreaseAllowance(&_ZetaEth.TransactOpts, spender, addedValue) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.Transfer(&_ZetaEth.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.Transfer(&_ZetaEth.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.TransferFrom(&_ZetaEth.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaEth *ZetaEthTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaEth.Contract.TransferFrom(&_ZetaEth.TransactOpts, from, to, amount) -} - -// ZetaEthApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ZetaEth contract. -type ZetaEthApprovalIterator struct { - Event *ZetaEthApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaEthApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaEthApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaEthApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaEthApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaEthApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaEthApproval represents a Approval event raised by the ZetaEth contract. -type ZetaEthApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaEth *ZetaEthFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ZetaEthApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZetaEth.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ZetaEthApprovalIterator{contract: _ZetaEth.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaEth *ZetaEthFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZetaEthApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZetaEth.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaEthApproval) - if err := _ZetaEth.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaEth *ZetaEthFilterer) ParseApproval(log types.Log) (*ZetaEthApproval, error) { - event := new(ZetaEthApproval) - if err := _ZetaEth.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaEthTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ZetaEth contract. -type ZetaEthTransferIterator struct { - Event *ZetaEthTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaEthTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaEthTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaEthTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaEthTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaEthTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaEthTransfer represents a Transfer event raised by the ZetaEth contract. -type ZetaEthTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaEth *ZetaEthFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ZetaEthTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZetaEth.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ZetaEthTransferIterator{contract: _ZetaEth.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaEth *ZetaEthFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ZetaEthTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZetaEth.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaEthTransfer) - if err := _ZetaEth.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaEth *ZetaEthFilterer) ParseTransfer(log types.Log) (*ZetaEthTransfer, error) { - event := new(ZetaEthTransfer) - if err := _ZetaEth.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/zeta.non-eth.sol/zetanoneth.go b/v1/pkg/contracts/evm/zeta.non-eth.sol/zetanoneth.go deleted file mode 100644 index 24198413c..000000000 --- a/v1/pkg/contracts/evm/zeta.non-eth.sol/zetanoneth.go +++ /dev/null @@ -1,1706 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zeta - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaNonEthMetaData contains all meta data concerning the ZetaNonEth contract. -var ZetaNonEthMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tssAddressUpdater_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotConnector\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTss\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssOrUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssUpdater\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZetaTransferError\",\"type\":\"error\"},{\"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\":\"burnee\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Burnt\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newConnectorAddress\",\"type\":\"address\"}],\"name\":\"ConnectorAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"mintee\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"Minted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssUpdaterAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdaterUpdated\",\"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\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"connectorAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"mintee\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceTssAddressUpdater\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\"},{\"inputs\":[],\"name\":\"tssAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tssAddressUpdater\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"connectorAddress_\",\"type\":\"address\"}],\"name\":\"updateTssAndConnectorAddresses\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", - Bin: "0x60806040523480156200001157600080fd5b5060405162002423380380620024238339818101604052810190620000379190620002c8565b6040518060400160405280600481526020017f5a657461000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f5a455441000000000000000000000000000000000000000000000000000000008152508160039080519060200190620000bb92919062000201565b508060049080519060200190620000d492919062000201565b505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806200013f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000177576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620003c7565b8280546200020f9062000343565b90600052602060002090601f0160209004810192826200023357600085556200027f565b82601f106200024e57805160ff19168380011785556200027f565b828001600101855582156200027f579182015b828111156200027e57825182559160200191906001019062000261565b5b5090506200028e919062000292565b5090565b5b80821115620002ad57600081600090555060010162000293565b5090565b600081519050620002c281620003ad565b92915050565b60008060408385031215620002e257620002e1620003a8565b5b6000620002f285828601620002b1565b92505060206200030585828601620002b1565b9150509250929050565b60006200031c8262000323565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200035c57607f821691505b6020821081141562000373576200037262000379565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b620003b8816200030f565b8114620003c457600080fd5b50565b61204c80620003d76000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146102f6578063a457c2d714610314578063a9059cbb14610344578063bff9662a14610374578063dd62ed3e1461039257610121565b806342966c68146102665780635b1125911461028257806370a08231146102a0578063779e3b63146102d057806379cc6790146102da57610121565b80631e458bee116100f45780631e458bee146101ae57806323b872dd146101ca578063313ce567146101fa578063328a01d014610218578063395093511461023657610121565b806306fdde0314610126578063095ea7b31461014457806315d57fd41461017457806318160ddd14610190575b600080fd5b61012e6103c2565b60405161013b91906119c5565b60405180910390f35b61015e600480360381019061015991906116d3565b610454565b60405161016b91906119aa565b60405180910390f35b61018e60048036038101906101899190611640565b610477565b005b6101986106fb565b6040516101a59190611b27565b60405180910390f35b6101c860048036038101906101c39190611713565b610705565b005b6101e460048036038101906101df9190611680565b6107f5565b6040516101f191906119aa565b60405180910390f35b610202610824565b60405161020f9190611b42565b60405180910390f35b61022061082d565b60405161022d9190611966565b60405180910390f35b610250600480360381019061024b91906116d3565b610853565b60405161025d91906119aa565b60405180910390f35b610280600480360381019061027b9190611766565b61088a565b005b61028a61089e565b6040516102979190611966565b60405180910390f35b6102ba60048036038101906102b59190611613565b6108c4565b6040516102c79190611b27565b60405180910390f35b6102d861090c565b005b6102f460048036038101906102ef91906116d3565b610ae7565b005b6102fe610bd5565b60405161030b91906119c5565b60405180910390f35b61032e600480360381019061032991906116d3565b610c67565b60405161033b91906119aa565b60405180910390f35b61035e600480360381019061035991906116d3565b610cde565b60405161036b91906119aa565b60405180910390f35b61037c610d01565b6040516103899190611966565b60405180910390f35b6103ac60048036038101906103a79190611640565b610d27565b6040516103b99190611b27565b60405180910390f35b6060600380546103d190611c61565b80601f01602080910402602001604051908101604052809291908181526020018280546103fd90611c61565b801561044a5780601f1061041f5761010080835404028352916020019161044a565b820191906000526020600020905b81548152906001019060200180831161042d57829003601f168201915b5050505050905090565b60008061045f610dae565b905061046c818585610db6565b600191505092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156105235750600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561056557336040517fcdfcef9700000000000000000000000000000000000000000000000000000000815260040161055c9190611966565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806105cc5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15610603576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff33836040516106b6929190611981565b60405180910390a17f1b9352454524a57a51f24f67dc66d898f616922cd1f7a12d73570ece12b1975c33826040516106ef929190611981565b60405180910390a15050565b6000600254905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461079757336040517f3fe32fba00000000000000000000000000000000000000000000000000000000815260040161078e9190611966565b60405180910390fd5b6107a18383610f81565b808373ffffffffffffffffffffffffffffffffffffffff167fc263b302aec62d29105026245f19e16f8e0137066ccd4a8bd941f716bd4096bb846040516107e89190611b27565b60405180910390a3505050565b600080610800610dae565b905061080d8582856110d8565b610818858585611164565b60019150509392505050565b60006012905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008061085e610dae565b905061087f8185856108708589610d27565b61087a9190611b79565b610db6565b600191505092915050565b61089b610895610dae565b826113dc565b50565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461099e57336040517fe700765e0000000000000000000000000000000000000000000000000000000081526004016109959190611966565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610a27576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610add929190611981565b60405180910390a1565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b7957336040517f3fe32fba000000000000000000000000000000000000000000000000000000008152600401610b709190611966565b60405180910390fd5b610b8382826115aa565b8173ffffffffffffffffffffffffffffffffffffffff167f919f7e2092ffcc9d09f599be18d8152860b0c054df788a33bc549cdd9d0f15b182604051610bc99190611b27565b60405180910390a25050565b606060048054610be490611c61565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1090611c61565b8015610c5d5780601f10610c3257610100808354040283529160200191610c5d565b820191906000526020600020905b815481529060010190602001808311610c4057829003601f168201915b5050505050905090565b600080610c72610dae565b90506000610c808286610d27565b905083811015610cc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbc90611ae7565b60405180910390fd5b610cd28286868403610db6565b60019250505092915050565b600080610ce9610dae565b9050610cf6818585611164565b600191505092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1d90611ac7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8d90611a27565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610f749190611b27565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe890611b07565b60405180910390fd5b610ffd600083836115ca565b806002600082825461100f9190611b79565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110c09190611b27565b60405180910390a36110d4600083836115cf565b5050565b60006110e48484610d27565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461115e5781811015611150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114790611a47565b60405180910390fd5b61115d8484848403610db6565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cb90611aa7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123b906119e7565b60405180910390fd5b61124f8383836115ca565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156112d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cc90611a67565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113c39190611b27565b60405180910390a36113d68484846115cf565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561144c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144390611a87565b60405180910390fd5b611458826000836115ca565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590611a07565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115919190611b27565b60405180910390a36115a5836000846115cf565b505050565b6115bc826115b6610dae565b836110d8565b6115c682826113dc565b5050565b505050565b505050565b6000813590506115e381611fd1565b92915050565b6000813590506115f881611fe8565b92915050565b60008135905061160d81611fff565b92915050565b60006020828403121561162957611628611cf1565b5b6000611637848285016115d4565b91505092915050565b6000806040838503121561165757611656611cf1565b5b6000611665858286016115d4565b9250506020611676858286016115d4565b9150509250929050565b60008060006060848603121561169957611698611cf1565b5b60006116a7868287016115d4565b93505060206116b8868287016115d4565b92505060406116c9868287016115fe565b9150509250925092565b600080604083850312156116ea576116e9611cf1565b5b60006116f8858286016115d4565b9250506020611709858286016115fe565b9150509250929050565b60008060006060848603121561172c5761172b611cf1565b5b600061173a868287016115d4565b935050602061174b868287016115fe565b925050604061175c868287016115e9565b9150509250925092565b60006020828403121561177c5761177b611cf1565b5b600061178a848285016115fe565b91505092915050565b61179c81611bcf565b82525050565b6117ab81611be1565b82525050565b60006117bc82611b5d565b6117c68185611b68565b93506117d6818560208601611c2e565b6117df81611cf6565b840191505092915050565b60006117f7602383611b68565b915061180282611d07565b604082019050919050565b600061181a602283611b68565b915061182582611d56565b604082019050919050565b600061183d602283611b68565b915061184882611da5565b604082019050919050565b6000611860601d83611b68565b915061186b82611df4565b602082019050919050565b6000611883602683611b68565b915061188e82611e1d565b604082019050919050565b60006118a6602183611b68565b91506118b182611e6c565b604082019050919050565b60006118c9602583611b68565b91506118d482611ebb565b604082019050919050565b60006118ec602483611b68565b91506118f782611f0a565b604082019050919050565b600061190f602583611b68565b915061191a82611f59565b604082019050919050565b6000611932601f83611b68565b915061193d82611fa8565b602082019050919050565b61195181611c17565b82525050565b61196081611c21565b82525050565b600060208201905061197b6000830184611793565b92915050565b60006040820190506119966000830185611793565b6119a36020830184611793565b9392505050565b60006020820190506119bf60008301846117a2565b92915050565b600060208201905081810360008301526119df81846117b1565b905092915050565b60006020820190508181036000830152611a00816117ea565b9050919050565b60006020820190508181036000830152611a208161180d565b9050919050565b60006020820190508181036000830152611a4081611830565b9050919050565b60006020820190508181036000830152611a6081611853565b9050919050565b60006020820190508181036000830152611a8081611876565b9050919050565b60006020820190508181036000830152611aa081611899565b9050919050565b60006020820190508181036000830152611ac0816118bc565b9050919050565b60006020820190508181036000830152611ae0816118df565b9050919050565b60006020820190508181036000830152611b0081611902565b9050919050565b60006020820190508181036000830152611b2081611925565b9050919050565b6000602082019050611b3c6000830184611948565b92915050565b6000602082019050611b576000830184611957565b92915050565b600081519050919050565b600082825260208201905092915050565b6000611b8482611c17565b9150611b8f83611c17565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611bc457611bc3611c93565b5b828201905092915050565b6000611bda82611bf7565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611c4c578082015181840152602081019050611c31565b83811115611c5b576000848401525b50505050565b60006002820490506001821680611c7957607f821691505b60208210811415611c8d57611c8c611cc2565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b611fda81611bcf565b8114611fe557600080fd5b50565b611ff181611bed565b8114611ffc57600080fd5b50565b61200881611c17565b811461201357600080fd5b5056fea26469706673582212206bc837ff0828037cc8d7dacf17706538b4deb5a80c03f8e056ef18bae1a6288064736f6c63430008070033", -} - -// ZetaNonEthABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaNonEthMetaData.ABI instead. -var ZetaNonEthABI = ZetaNonEthMetaData.ABI - -// ZetaNonEthBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaNonEthMetaData.Bin instead. -var ZetaNonEthBin = ZetaNonEthMetaData.Bin - -// DeployZetaNonEth deploys a new Ethereum contract, binding an instance of ZetaNonEth to it. -func DeployZetaNonEth(auth *bind.TransactOpts, backend bind.ContractBackend, tssAddress_ common.Address, tssAddressUpdater_ common.Address) (common.Address, *types.Transaction, *ZetaNonEth, error) { - parsed, err := ZetaNonEthMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaNonEthBin), backend, tssAddress_, tssAddressUpdater_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaNonEth{ZetaNonEthCaller: ZetaNonEthCaller{contract: contract}, ZetaNonEthTransactor: ZetaNonEthTransactor{contract: contract}, ZetaNonEthFilterer: ZetaNonEthFilterer{contract: contract}}, nil -} - -// ZetaNonEth is an auto generated Go binding around an Ethereum contract. -type ZetaNonEth struct { - ZetaNonEthCaller // Read-only binding to the contract - ZetaNonEthTransactor // Write-only binding to the contract - ZetaNonEthFilterer // Log filterer for contract events -} - -// ZetaNonEthCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaNonEthCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaNonEthTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaNonEthTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaNonEthFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaNonEthFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaNonEthSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaNonEthSession struct { - Contract *ZetaNonEth // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaNonEthCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaNonEthCallerSession struct { - Contract *ZetaNonEthCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaNonEthTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaNonEthTransactorSession struct { - Contract *ZetaNonEthTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaNonEthRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaNonEthRaw struct { - Contract *ZetaNonEth // Generic contract binding to access the raw methods on -} - -// ZetaNonEthCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaNonEthCallerRaw struct { - Contract *ZetaNonEthCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaNonEthTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaNonEthTransactorRaw struct { - Contract *ZetaNonEthTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaNonEth creates a new instance of ZetaNonEth, bound to a specific deployed contract. -func NewZetaNonEth(address common.Address, backend bind.ContractBackend) (*ZetaNonEth, error) { - contract, err := bindZetaNonEth(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaNonEth{ZetaNonEthCaller: ZetaNonEthCaller{contract: contract}, ZetaNonEthTransactor: ZetaNonEthTransactor{contract: contract}, ZetaNonEthFilterer: ZetaNonEthFilterer{contract: contract}}, nil -} - -// NewZetaNonEthCaller creates a new read-only instance of ZetaNonEth, bound to a specific deployed contract. -func NewZetaNonEthCaller(address common.Address, caller bind.ContractCaller) (*ZetaNonEthCaller, error) { - contract, err := bindZetaNonEth(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaNonEthCaller{contract: contract}, nil -} - -// NewZetaNonEthTransactor creates a new write-only instance of ZetaNonEth, bound to a specific deployed contract. -func NewZetaNonEthTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaNonEthTransactor, error) { - contract, err := bindZetaNonEth(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaNonEthTransactor{contract: contract}, nil -} - -// NewZetaNonEthFilterer creates a new log filterer instance of ZetaNonEth, bound to a specific deployed contract. -func NewZetaNonEthFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaNonEthFilterer, error) { - contract, err := bindZetaNonEth(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaNonEthFilterer{contract: contract}, nil -} - -// bindZetaNonEth binds a generic wrapper to an already deployed contract. -func bindZetaNonEth(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaNonEthMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaNonEth *ZetaNonEthRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaNonEth.Contract.ZetaNonEthCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaNonEth *ZetaNonEthRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaNonEth.Contract.ZetaNonEthTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaNonEth *ZetaNonEthRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaNonEth.Contract.ZetaNonEthTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaNonEth *ZetaNonEthCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaNonEth.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaNonEth *ZetaNonEthTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaNonEth.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaNonEth *ZetaNonEthTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaNonEth.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaNonEth *ZetaNonEthCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaNonEth *ZetaNonEthSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZetaNonEth.Contract.Allowance(&_ZetaNonEth.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZetaNonEth *ZetaNonEthCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZetaNonEth.Contract.Allowance(&_ZetaNonEth.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaNonEth *ZetaNonEthCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaNonEth *ZetaNonEthSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ZetaNonEth.Contract.BalanceOf(&_ZetaNonEth.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZetaNonEth *ZetaNonEthCallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ZetaNonEth.Contract.BalanceOf(&_ZetaNonEth.CallOpts, account) -} - -// ConnectorAddress is a free data retrieval call binding the contract method 0xbff9662a. -// -// Solidity: function connectorAddress() view returns(address) -func (_ZetaNonEth *ZetaNonEthCaller) ConnectorAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "connectorAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ConnectorAddress is a free data retrieval call binding the contract method 0xbff9662a. -// -// Solidity: function connectorAddress() view returns(address) -func (_ZetaNonEth *ZetaNonEthSession) ConnectorAddress() (common.Address, error) { - return _ZetaNonEth.Contract.ConnectorAddress(&_ZetaNonEth.CallOpts) -} - -// ConnectorAddress is a free data retrieval call binding the contract method 0xbff9662a. -// -// Solidity: function connectorAddress() view returns(address) -func (_ZetaNonEth *ZetaNonEthCallerSession) ConnectorAddress() (common.Address, error) { - return _ZetaNonEth.Contract.ConnectorAddress(&_ZetaNonEth.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZetaNonEth *ZetaNonEthCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZetaNonEth *ZetaNonEthSession) Decimals() (uint8, error) { - return _ZetaNonEth.Contract.Decimals(&_ZetaNonEth.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZetaNonEth *ZetaNonEthCallerSession) Decimals() (uint8, error) { - return _ZetaNonEth.Contract.Decimals(&_ZetaNonEth.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZetaNonEth *ZetaNonEthCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZetaNonEth *ZetaNonEthSession) Name() (string, error) { - return _ZetaNonEth.Contract.Name(&_ZetaNonEth.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZetaNonEth *ZetaNonEthCallerSession) Name() (string, error) { - return _ZetaNonEth.Contract.Name(&_ZetaNonEth.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZetaNonEth *ZetaNonEthCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZetaNonEth *ZetaNonEthSession) Symbol() (string, error) { - return _ZetaNonEth.Contract.Symbol(&_ZetaNonEth.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZetaNonEth *ZetaNonEthCallerSession) Symbol() (string, error) { - return _ZetaNonEth.Contract.Symbol(&_ZetaNonEth.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaNonEth *ZetaNonEthCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaNonEth *ZetaNonEthSession) TotalSupply() (*big.Int, error) { - return _ZetaNonEth.Contract.TotalSupply(&_ZetaNonEth.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZetaNonEth *ZetaNonEthCallerSession) TotalSupply() (*big.Int, error) { - return _ZetaNonEth.Contract.TotalSupply(&_ZetaNonEth.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaNonEth *ZetaNonEthCaller) TssAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "tssAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaNonEth *ZetaNonEthSession) TssAddress() (common.Address, error) { - return _ZetaNonEth.Contract.TssAddress(&_ZetaNonEth.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaNonEth *ZetaNonEthCallerSession) TssAddress() (common.Address, error) { - return _ZetaNonEth.Contract.TssAddress(&_ZetaNonEth.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaNonEth *ZetaNonEthCaller) TssAddressUpdater(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaNonEth.contract.Call(opts, &out, "tssAddressUpdater") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaNonEth *ZetaNonEthSession) TssAddressUpdater() (common.Address, error) { - return _ZetaNonEth.Contract.TssAddressUpdater(&_ZetaNonEth.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaNonEth *ZetaNonEthCallerSession) TssAddressUpdater() (common.Address, error) { - return _ZetaNonEth.Contract.TssAddressUpdater(&_ZetaNonEth.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Approve(&_ZetaNonEth.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Approve(&_ZetaNonEth.TransactOpts, spender, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns() -func (_ZetaNonEth *ZetaNonEthTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "burn", amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns() -func (_ZetaNonEth *ZetaNonEthSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Burn(&_ZetaNonEth.TransactOpts, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns() -func (_ZetaNonEth *ZetaNonEthTransactorSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Burn(&_ZetaNonEth.TransactOpts, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ZetaNonEth *ZetaNonEthTransactor) BurnFrom(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "burnFrom", account, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ZetaNonEth *ZetaNonEthSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.BurnFrom(&_ZetaNonEth.TransactOpts, account, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ZetaNonEth *ZetaNonEthTransactorSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.BurnFrom(&_ZetaNonEth.TransactOpts, account, amount) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ZetaNonEth *ZetaNonEthSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.DecreaseAllowance(&_ZetaNonEth.TransactOpts, spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.DecreaseAllowance(&_ZetaNonEth.TransactOpts, spender, subtractedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "increaseAllowance", spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ZetaNonEth *ZetaNonEthSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.IncreaseAllowance(&_ZetaNonEth.TransactOpts, spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.IncreaseAllowance(&_ZetaNonEth.TransactOpts, spender, addedValue) -} - -// Mint is a paid mutator transaction binding the contract method 0x1e458bee. -// -// Solidity: function mint(address mintee, uint256 value, bytes32 internalSendHash) returns() -func (_ZetaNonEth *ZetaNonEthTransactor) Mint(opts *bind.TransactOpts, mintee common.Address, value *big.Int, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "mint", mintee, value, internalSendHash) -} - -// Mint is a paid mutator transaction binding the contract method 0x1e458bee. -// -// Solidity: function mint(address mintee, uint256 value, bytes32 internalSendHash) returns() -func (_ZetaNonEth *ZetaNonEthSession) Mint(mintee common.Address, value *big.Int, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Mint(&_ZetaNonEth.TransactOpts, mintee, value, internalSendHash) -} - -// Mint is a paid mutator transaction binding the contract method 0x1e458bee. -// -// Solidity: function mint(address mintee, uint256 value, bytes32 internalSendHash) returns() -func (_ZetaNonEth *ZetaNonEthTransactorSession) Mint(mintee common.Address, value *big.Int, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Mint(&_ZetaNonEth.TransactOpts, mintee, value, internalSendHash) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaNonEth *ZetaNonEthTransactor) RenounceTssAddressUpdater(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "renounceTssAddressUpdater") -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaNonEth *ZetaNonEthSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaNonEth.Contract.RenounceTssAddressUpdater(&_ZetaNonEth.TransactOpts) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaNonEth *ZetaNonEthTransactorSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaNonEth.Contract.RenounceTssAddressUpdater(&_ZetaNonEth.TransactOpts) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Transfer(&_ZetaNonEth.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.Transfer(&_ZetaNonEth.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.TransferFrom(&_ZetaNonEth.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ZetaNonEth *ZetaNonEthTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZetaNonEth.Contract.TransferFrom(&_ZetaNonEth.TransactOpts, from, to, amount) -} - -// UpdateTssAndConnectorAddresses is a paid mutator transaction binding the contract method 0x15d57fd4. -// -// Solidity: function updateTssAndConnectorAddresses(address tssAddress_, address connectorAddress_) returns() -func (_ZetaNonEth *ZetaNonEthTransactor) UpdateTssAndConnectorAddresses(opts *bind.TransactOpts, tssAddress_ common.Address, connectorAddress_ common.Address) (*types.Transaction, error) { - return _ZetaNonEth.contract.Transact(opts, "updateTssAndConnectorAddresses", tssAddress_, connectorAddress_) -} - -// UpdateTssAndConnectorAddresses is a paid mutator transaction binding the contract method 0x15d57fd4. -// -// Solidity: function updateTssAndConnectorAddresses(address tssAddress_, address connectorAddress_) returns() -func (_ZetaNonEth *ZetaNonEthSession) UpdateTssAndConnectorAddresses(tssAddress_ common.Address, connectorAddress_ common.Address) (*types.Transaction, error) { - return _ZetaNonEth.Contract.UpdateTssAndConnectorAddresses(&_ZetaNonEth.TransactOpts, tssAddress_, connectorAddress_) -} - -// UpdateTssAndConnectorAddresses is a paid mutator transaction binding the contract method 0x15d57fd4. -// -// Solidity: function updateTssAndConnectorAddresses(address tssAddress_, address connectorAddress_) returns() -func (_ZetaNonEth *ZetaNonEthTransactorSession) UpdateTssAndConnectorAddresses(tssAddress_ common.Address, connectorAddress_ common.Address) (*types.Transaction, error) { - return _ZetaNonEth.Contract.UpdateTssAndConnectorAddresses(&_ZetaNonEth.TransactOpts, tssAddress_, connectorAddress_) -} - -// ZetaNonEthApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ZetaNonEth contract. -type ZetaNonEthApprovalIterator struct { - Event *ZetaNonEthApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthApproval represents a Approval event raised by the ZetaNonEth contract. -type ZetaNonEthApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaNonEth *ZetaNonEthFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ZetaNonEthApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZetaNonEth.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ZetaNonEthApprovalIterator{contract: _ZetaNonEth.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaNonEth *ZetaNonEthFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZetaNonEthApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZetaNonEth.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthApproval) - if err := _ZetaNonEth.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZetaNonEth *ZetaNonEthFilterer) ParseApproval(log types.Log) (*ZetaNonEthApproval, error) { - event := new(ZetaNonEthApproval) - if err := _ZetaNonEth.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaNonEthBurntIterator is returned from FilterBurnt and is used to iterate over the raw logs and unpacked data for Burnt events raised by the ZetaNonEth contract. -type ZetaNonEthBurntIterator struct { - Event *ZetaNonEthBurnt // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthBurntIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthBurnt) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthBurnt) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthBurntIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthBurntIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthBurnt represents a Burnt event raised by the ZetaNonEth contract. -type ZetaNonEthBurnt struct { - Burnee common.Address - Amount *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterBurnt is a free log retrieval operation binding the contract event 0x919f7e2092ffcc9d09f599be18d8152860b0c054df788a33bc549cdd9d0f15b1. -// -// Solidity: event Burnt(address indexed burnee, uint256 amount) -func (_ZetaNonEth *ZetaNonEthFilterer) FilterBurnt(opts *bind.FilterOpts, burnee []common.Address) (*ZetaNonEthBurntIterator, error) { - - var burneeRule []interface{} - for _, burneeItem := range burnee { - burneeRule = append(burneeRule, burneeItem) - } - - logs, sub, err := _ZetaNonEth.contract.FilterLogs(opts, "Burnt", burneeRule) - if err != nil { - return nil, err - } - return &ZetaNonEthBurntIterator{contract: _ZetaNonEth.contract, event: "Burnt", logs: logs, sub: sub}, nil -} - -// WatchBurnt is a free log subscription operation binding the contract event 0x919f7e2092ffcc9d09f599be18d8152860b0c054df788a33bc549cdd9d0f15b1. -// -// Solidity: event Burnt(address indexed burnee, uint256 amount) -func (_ZetaNonEth *ZetaNonEthFilterer) WatchBurnt(opts *bind.WatchOpts, sink chan<- *ZetaNonEthBurnt, burnee []common.Address) (event.Subscription, error) { - - var burneeRule []interface{} - for _, burneeItem := range burnee { - burneeRule = append(burneeRule, burneeItem) - } - - logs, sub, err := _ZetaNonEth.contract.WatchLogs(opts, "Burnt", burneeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthBurnt) - if err := _ZetaNonEth.contract.UnpackLog(event, "Burnt", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseBurnt is a log parse operation binding the contract event 0x919f7e2092ffcc9d09f599be18d8152860b0c054df788a33bc549cdd9d0f15b1. -// -// Solidity: event Burnt(address indexed burnee, uint256 amount) -func (_ZetaNonEth *ZetaNonEthFilterer) ParseBurnt(log types.Log) (*ZetaNonEthBurnt, error) { - event := new(ZetaNonEthBurnt) - if err := _ZetaNonEth.contract.UnpackLog(event, "Burnt", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaNonEthConnectorAddressUpdatedIterator is returned from FilterConnectorAddressUpdated and is used to iterate over the raw logs and unpacked data for ConnectorAddressUpdated events raised by the ZetaNonEth contract. -type ZetaNonEthConnectorAddressUpdatedIterator struct { - Event *ZetaNonEthConnectorAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthConnectorAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthConnectorAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthConnectorAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthConnectorAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthConnectorAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthConnectorAddressUpdated represents a ConnectorAddressUpdated event raised by the ZetaNonEth contract. -type ZetaNonEthConnectorAddressUpdated struct { - CallerAddress common.Address - NewConnectorAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterConnectorAddressUpdated is a free log retrieval operation binding the contract event 0x1b9352454524a57a51f24f67dc66d898f616922cd1f7a12d73570ece12b1975c. -// -// Solidity: event ConnectorAddressUpdated(address callerAddress, address newConnectorAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) FilterConnectorAddressUpdated(opts *bind.FilterOpts) (*ZetaNonEthConnectorAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaNonEth.contract.FilterLogs(opts, "ConnectorAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaNonEthConnectorAddressUpdatedIterator{contract: _ZetaNonEth.contract, event: "ConnectorAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchConnectorAddressUpdated is a free log subscription operation binding the contract event 0x1b9352454524a57a51f24f67dc66d898f616922cd1f7a12d73570ece12b1975c. -// -// Solidity: event ConnectorAddressUpdated(address callerAddress, address newConnectorAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) WatchConnectorAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaNonEthConnectorAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaNonEth.contract.WatchLogs(opts, "ConnectorAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthConnectorAddressUpdated) - if err := _ZetaNonEth.contract.UnpackLog(event, "ConnectorAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseConnectorAddressUpdated is a log parse operation binding the contract event 0x1b9352454524a57a51f24f67dc66d898f616922cd1f7a12d73570ece12b1975c. -// -// Solidity: event ConnectorAddressUpdated(address callerAddress, address newConnectorAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) ParseConnectorAddressUpdated(log types.Log) (*ZetaNonEthConnectorAddressUpdated, error) { - event := new(ZetaNonEthConnectorAddressUpdated) - if err := _ZetaNonEth.contract.UnpackLog(event, "ConnectorAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaNonEthMintedIterator is returned from FilterMinted and is used to iterate over the raw logs and unpacked data for Minted events raised by the ZetaNonEth contract. -type ZetaNonEthMintedIterator struct { - Event *ZetaNonEthMinted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthMintedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthMinted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthMinted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthMintedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthMintedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthMinted represents a Minted event raised by the ZetaNonEth contract. -type ZetaNonEthMinted struct { - Mintee common.Address - Amount *big.Int - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMinted is a free log retrieval operation binding the contract event 0xc263b302aec62d29105026245f19e16f8e0137066ccd4a8bd941f716bd4096bb. -// -// Solidity: event Minted(address indexed mintee, uint256 amount, bytes32 indexed internalSendHash) -func (_ZetaNonEth *ZetaNonEthFilterer) FilterMinted(opts *bind.FilterOpts, mintee []common.Address, internalSendHash [][32]byte) (*ZetaNonEthMintedIterator, error) { - - var minteeRule []interface{} - for _, minteeItem := range mintee { - minteeRule = append(minteeRule, minteeItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaNonEth.contract.FilterLogs(opts, "Minted", minteeRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaNonEthMintedIterator{contract: _ZetaNonEth.contract, event: "Minted", logs: logs, sub: sub}, nil -} - -// WatchMinted is a free log subscription operation binding the contract event 0xc263b302aec62d29105026245f19e16f8e0137066ccd4a8bd941f716bd4096bb. -// -// Solidity: event Minted(address indexed mintee, uint256 amount, bytes32 indexed internalSendHash) -func (_ZetaNonEth *ZetaNonEthFilterer) WatchMinted(opts *bind.WatchOpts, sink chan<- *ZetaNonEthMinted, mintee []common.Address, internalSendHash [][32]byte) (event.Subscription, error) { - - var minteeRule []interface{} - for _, minteeItem := range mintee { - minteeRule = append(minteeRule, minteeItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaNonEth.contract.WatchLogs(opts, "Minted", minteeRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthMinted) - if err := _ZetaNonEth.contract.UnpackLog(event, "Minted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMinted is a log parse operation binding the contract event 0xc263b302aec62d29105026245f19e16f8e0137066ccd4a8bd941f716bd4096bb. -// -// Solidity: event Minted(address indexed mintee, uint256 amount, bytes32 indexed internalSendHash) -func (_ZetaNonEth *ZetaNonEthFilterer) ParseMinted(log types.Log) (*ZetaNonEthMinted, error) { - event := new(ZetaNonEthMinted) - if err := _ZetaNonEth.contract.UnpackLog(event, "Minted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaNonEthTSSAddressUpdatedIterator is returned from FilterTSSAddressUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdated events raised by the ZetaNonEth contract. -type ZetaNonEthTSSAddressUpdatedIterator struct { - Event *ZetaNonEthTSSAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthTSSAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthTSSAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthTSSAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthTSSAddressUpdated represents a TSSAddressUpdated event raised by the ZetaNonEth contract. -type ZetaNonEthTSSAddressUpdated struct { - CallerAddress common.Address - NewTssAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdated is a free log retrieval operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) FilterTSSAddressUpdated(opts *bind.FilterOpts) (*ZetaNonEthTSSAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaNonEth.contract.FilterLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaNonEthTSSAddressUpdatedIterator{contract: _ZetaNonEth.contract, event: "TSSAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdated is a free log subscription operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) WatchTSSAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaNonEthTSSAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaNonEth.contract.WatchLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthTSSAddressUpdated) - if err := _ZetaNonEth.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdated is a log parse operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) ParseTSSAddressUpdated(log types.Log) (*ZetaNonEthTSSAddressUpdated, error) { - event := new(ZetaNonEthTSSAddressUpdated) - if err := _ZetaNonEth.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaNonEthTSSAddressUpdaterUpdatedIterator is returned from FilterTSSAddressUpdaterUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdaterUpdated events raised by the ZetaNonEth contract. -type ZetaNonEthTSSAddressUpdaterUpdatedIterator struct { - Event *ZetaNonEthTSSAddressUpdaterUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthTSSAddressUpdaterUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthTSSAddressUpdaterUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthTSSAddressUpdaterUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthTSSAddressUpdaterUpdated represents a TSSAddressUpdaterUpdated event raised by the ZetaNonEth contract. -type ZetaNonEthTSSAddressUpdaterUpdated struct { - CallerAddress common.Address - NewTssUpdaterAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdaterUpdated is a free log retrieval operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) FilterTSSAddressUpdaterUpdated(opts *bind.FilterOpts) (*ZetaNonEthTSSAddressUpdaterUpdatedIterator, error) { - - logs, sub, err := _ZetaNonEth.contract.FilterLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return &ZetaNonEthTSSAddressUpdaterUpdatedIterator{contract: _ZetaNonEth.contract, event: "TSSAddressUpdaterUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdaterUpdated is a free log subscription operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) WatchTSSAddressUpdaterUpdated(opts *bind.WatchOpts, sink chan<- *ZetaNonEthTSSAddressUpdaterUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaNonEth.contract.WatchLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthTSSAddressUpdaterUpdated) - if err := _ZetaNonEth.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdaterUpdated is a log parse operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaNonEth *ZetaNonEthFilterer) ParseTSSAddressUpdaterUpdated(log types.Log) (*ZetaNonEthTSSAddressUpdaterUpdated, error) { - event := new(ZetaNonEthTSSAddressUpdaterUpdated) - if err := _ZetaNonEth.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaNonEthTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ZetaNonEth contract. -type ZetaNonEthTransferIterator struct { - Event *ZetaNonEthTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaNonEthTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaNonEthTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaNonEthTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaNonEthTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaNonEthTransfer represents a Transfer event raised by the ZetaNonEth contract. -type ZetaNonEthTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaNonEth *ZetaNonEthFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ZetaNonEthTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZetaNonEth.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ZetaNonEthTransferIterator{contract: _ZetaNonEth.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaNonEth *ZetaNonEthFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ZetaNonEthTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZetaNonEth.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaNonEthTransfer) - if err := _ZetaNonEth.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZetaNonEth *ZetaNonEthFilterer) ParseTransfer(log types.Log) (*ZetaNonEthTransfer, error) { - event := new(ZetaNonEthTransfer) - if err := _ZetaNonEth.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/zetaconnector.base.sol/zetaconnectorbase.go b/v1/pkg/contracts/evm/zetaconnector.base.sol/zetaconnectorbase.go deleted file mode 100644 index c9f2099ab..000000000 --- a/v1/pkg/contracts/evm/zetaconnector.base.sol/zetaconnectorbase.go +++ /dev/null @@ -1,1695 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetaconnector - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesSendInput is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesSendInput struct { - DestinationChainId *big.Int - DestinationAddress []byte - DestinationGasLimit *big.Int - Message []byte - ZetaValueAndGas *big.Int - ZetaParams []byte -} - -// ZetaConnectorBaseMetaData contains all meta data concerning the ZetaConnectorBase contract. -var ZetaConnectorBaseMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tssAddressUpdater_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pauserAddress_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotPauser\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTss\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssOrUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSupply\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxSupply\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZetaTransferError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssAddress\",\"type\":\"address\"}],\"name\":\"PauserAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssUpdaterAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdaterUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReverted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sourceTxOriginAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"name\":\"ZetaSent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauserAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceTssAddressUpdater\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.SendInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tssAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tssAddressUpdater\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pauserAddress_\",\"type\":\"address\"}],\"name\":\"updatePauserAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"}],\"name\":\"updateTssAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60a06040523480156200001157600080fd5b506040516200131e3803806200131e83398181016040528101906200003791906200027c565b60008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000b95750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000f15750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80620001295750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000161576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505062000341565b600081519050620002768162000327565b92915050565b6000806000806080858703121562000299576200029862000322565b5b6000620002a98782880162000265565b9450506020620002bc8782880162000265565b9350506040620002cf8782880162000265565b9250506060620002e28782880162000265565b91505092959194509250565b6000620002fb8262000302565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200033281620002ee565b81146200033e57600080fd5b50565b60805160601c610fbe6200036060003960006102160152610fbe6000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80636128480f1161008c5780639122c344116100665780639122c344146101a2578063942a5e16146101be578063ec026901146101da578063f7fb869b146101f6576100cf565b80636128480f14610172578063779e3b631461018e5780638456cb5914610198576100cf565b806321e093b1146100d457806329dd214d146100f2578063328a01d01461010e5780633f4ba83a1461012c5780635b112591146101365780635c975abb14610154575b600080fd5b6100dc610214565b6040516100e99190610dd1565b60405180910390f35b61010c60048036038101906101079190610c55565b610238565b005b610116610242565b6040516101239190610dd1565b60405180910390f35b610134610268565b005b61013e610304565b60405161014b9190610dd1565b60405180910390f35b61015c61032a565b6040516101699190610e15565b60405180910390f35b61018c60048036038101906101879190610b46565b610340565b005b6101966104b6565b005b6101a0610691565b005b6101bc60048036038101906101b79190610b46565b61072d565b005b6101d860048036038101906101d39190610b73565b6108ff565b005b6101f460048036038101906101ef9190610d24565b61090a565b005b6101fe61090d565b60405161020b9190610dd1565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b5050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102fa57336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016102f19190610dd1565b60405180910390fd5b610302610933565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103d257336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016103c99190610dd1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610439576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d039733826040516104ab929190610dec565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461054857336040517fe700765e00000000000000000000000000000000000000000000000000000000815260040161053f9190610dd1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156105d1576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610687929190610dec565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461072357336040517f4677a0d300000000000000000000000000000000000000000000000000000000815260040161071a9190610dd1565b60405180910390fd5b61072b610995565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156107d95750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561081b57336040517fcdfcef970000000000000000000000000000000000000000000000000000000081526004016108129190610dd1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610882576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff33826040516108f4929190610dec565b60405180910390a150565b505050505050505050565b50565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61093b6109f7565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61097e610a40565b60405161098b9190610dd1565b60405180910390a1565b61099d610a48565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109e0610a40565b6040516109ed9190610dd1565b60405180910390a1565b6109ff61032a565b610a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3590610e30565b60405180910390fd5b565b600033905090565b610a5061032a565b15610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8790610e50565b60405180910390fd5b565b600081359050610aa181610f43565b92915050565b600081359050610ab681610f5a565b92915050565b60008083601f840112610ad257610ad1610ed8565b5b8235905067ffffffffffffffff811115610aef57610aee610ed3565b5b602083019150836001820283011115610b0b57610b0a610ee2565b5b9250929050565b600060c08284031215610b2857610b27610edd565b5b81905092915050565b600081359050610b4081610f71565b92915050565b600060208284031215610b5c57610b5b610eec565b5b6000610b6a84828501610a92565b91505092915050565b600080600080600080600080600060e08a8c031215610b9557610b94610eec565b5b6000610ba38c828d01610a92565b9950506020610bb48c828d01610b31565b98505060408a013567ffffffffffffffff811115610bd557610bd4610ee7565b5b610be18c828d01610abc565b97509750506060610bf48c828d01610b31565b9550506080610c058c828d01610b31565b94505060a08a013567ffffffffffffffff811115610c2657610c25610ee7565b5b610c328c828d01610abc565b935093505060c0610c458c828d01610aa7565b9150509295985092959850929598565b60008060008060008060008060c0898b031215610c7557610c74610eec565b5b600089013567ffffffffffffffff811115610c9357610c92610ee7565b5b610c9f8b828c01610abc565b98509850506020610cb28b828c01610b31565b9650506040610cc38b828c01610a92565b9550506060610cd48b828c01610b31565b945050608089013567ffffffffffffffff811115610cf557610cf4610ee7565b5b610d018b828c01610abc565b935093505060a0610d148b828c01610aa7565b9150509295985092959890939650565b600060208284031215610d3a57610d39610eec565b5b600082013567ffffffffffffffff811115610d5857610d57610ee7565b5b610d6484828501610b12565b91505092915050565b610d7681610e81565b82525050565b610d8581610e93565b82525050565b6000610d98601483610e70565b9150610da382610ef1565b602082019050919050565b6000610dbb601083610e70565b9150610dc682610f1a565b602082019050919050565b6000602082019050610de66000830184610d6d565b92915050565b6000604082019050610e016000830185610d6d565b610e0e6020830184610d6d565b9392505050565b6000602082019050610e2a6000830184610d7c565b92915050565b60006020820190508181036000830152610e4981610d8b565b9050919050565b60006020820190508181036000830152610e6981610dae565b9050919050565b600082825260208201905092915050565b6000610e8c82610ea9565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b610f4c81610e81565b8114610f5757600080fd5b50565b610f6381610e9f565b8114610f6e57600080fd5b50565b610f7a81610ec9565b8114610f8557600080fd5b5056fea2646970667358221220581b268b8dbd8d9f5c8f5e7e4d7ee7235e116fc6882d1ce0eb037e226f63b48064736f6c63430008070033", -} - -// ZetaConnectorBaseABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaConnectorBaseMetaData.ABI instead. -var ZetaConnectorBaseABI = ZetaConnectorBaseMetaData.ABI - -// ZetaConnectorBaseBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaConnectorBaseMetaData.Bin instead. -var ZetaConnectorBaseBin = ZetaConnectorBaseMetaData.Bin - -// DeployZetaConnectorBase deploys a new Ethereum contract, binding an instance of ZetaConnectorBase to it. -func DeployZetaConnectorBase(auth *bind.TransactOpts, backend bind.ContractBackend, zetaToken_ common.Address, tssAddress_ common.Address, tssAddressUpdater_ common.Address, pauserAddress_ common.Address) (common.Address, *types.Transaction, *ZetaConnectorBase, error) { - parsed, err := ZetaConnectorBaseMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaConnectorBaseBin), backend, zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaConnectorBase{ZetaConnectorBaseCaller: ZetaConnectorBaseCaller{contract: contract}, ZetaConnectorBaseTransactor: ZetaConnectorBaseTransactor{contract: contract}, ZetaConnectorBaseFilterer: ZetaConnectorBaseFilterer{contract: contract}}, nil -} - -// ZetaConnectorBase is an auto generated Go binding around an Ethereum contract. -type ZetaConnectorBase struct { - ZetaConnectorBaseCaller // Read-only binding to the contract - ZetaConnectorBaseTransactor // Write-only binding to the contract - ZetaConnectorBaseFilterer // Log filterer for contract events -} - -// ZetaConnectorBaseCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaConnectorBaseCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorBaseTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaConnectorBaseTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorBaseFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaConnectorBaseFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorBaseSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaConnectorBaseSession struct { - Contract *ZetaConnectorBase // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorBaseCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaConnectorBaseCallerSession struct { - Contract *ZetaConnectorBaseCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaConnectorBaseTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaConnectorBaseTransactorSession struct { - Contract *ZetaConnectorBaseTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorBaseRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaConnectorBaseRaw struct { - Contract *ZetaConnectorBase // Generic contract binding to access the raw methods on -} - -// ZetaConnectorBaseCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaConnectorBaseCallerRaw struct { - Contract *ZetaConnectorBaseCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaConnectorBaseTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaConnectorBaseTransactorRaw struct { - Contract *ZetaConnectorBaseTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaConnectorBase creates a new instance of ZetaConnectorBase, bound to a specific deployed contract. -func NewZetaConnectorBase(address common.Address, backend bind.ContractBackend) (*ZetaConnectorBase, error) { - contract, err := bindZetaConnectorBase(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaConnectorBase{ZetaConnectorBaseCaller: ZetaConnectorBaseCaller{contract: contract}, ZetaConnectorBaseTransactor: ZetaConnectorBaseTransactor{contract: contract}, ZetaConnectorBaseFilterer: ZetaConnectorBaseFilterer{contract: contract}}, nil -} - -// NewZetaConnectorBaseCaller creates a new read-only instance of ZetaConnectorBase, bound to a specific deployed contract. -func NewZetaConnectorBaseCaller(address common.Address, caller bind.ContractCaller) (*ZetaConnectorBaseCaller, error) { - contract, err := bindZetaConnectorBase(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorBaseCaller{contract: contract}, nil -} - -// NewZetaConnectorBaseTransactor creates a new write-only instance of ZetaConnectorBase, bound to a specific deployed contract. -func NewZetaConnectorBaseTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaConnectorBaseTransactor, error) { - contract, err := bindZetaConnectorBase(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorBaseTransactor{contract: contract}, nil -} - -// NewZetaConnectorBaseFilterer creates a new log filterer instance of ZetaConnectorBase, bound to a specific deployed contract. -func NewZetaConnectorBaseFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaConnectorBaseFilterer, error) { - contract, err := bindZetaConnectorBase(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaConnectorBaseFilterer{contract: contract}, nil -} - -// bindZetaConnectorBase binds a generic wrapper to an already deployed contract. -func bindZetaConnectorBase(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaConnectorBaseMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorBase *ZetaConnectorBaseRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorBase.Contract.ZetaConnectorBaseCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorBase *ZetaConnectorBaseRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.ZetaConnectorBaseTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorBase *ZetaConnectorBaseRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.ZetaConnectorBaseTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorBase *ZetaConnectorBaseCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorBase.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.contract.Transact(opts, method, params...) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorBase *ZetaConnectorBaseCaller) Paused(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaConnectorBase.contract.Call(opts, &out, "paused") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorBase *ZetaConnectorBaseSession) Paused() (bool, error) { - return _ZetaConnectorBase.Contract.Paused(&_ZetaConnectorBase.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorBase *ZetaConnectorBaseCallerSession) Paused() (bool, error) { - return _ZetaConnectorBase.Contract.Paused(&_ZetaConnectorBase.CallOpts) -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCaller) PauserAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorBase.contract.Call(opts, &out, "pauserAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseSession) PauserAddress() (common.Address, error) { - return _ZetaConnectorBase.Contract.PauserAddress(&_ZetaConnectorBase.CallOpts) -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCallerSession) PauserAddress() (common.Address, error) { - return _ZetaConnectorBase.Contract.PauserAddress(&_ZetaConnectorBase.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCaller) TssAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorBase.contract.Call(opts, &out, "tssAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseSession) TssAddress() (common.Address, error) { - return _ZetaConnectorBase.Contract.TssAddress(&_ZetaConnectorBase.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCallerSession) TssAddress() (common.Address, error) { - return _ZetaConnectorBase.Contract.TssAddress(&_ZetaConnectorBase.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCaller) TssAddressUpdater(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorBase.contract.Call(opts, &out, "tssAddressUpdater") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseSession) TssAddressUpdater() (common.Address, error) { - return _ZetaConnectorBase.Contract.TssAddressUpdater(&_ZetaConnectorBase.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCallerSession) TssAddressUpdater() (common.Address, error) { - return _ZetaConnectorBase.Contract.TssAddressUpdater(&_ZetaConnectorBase.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCaller) ZetaToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorBase.contract.Call(opts, &out, "zetaToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseSession) ZetaToken() (common.Address, error) { - return _ZetaConnectorBase.Contract.ZetaToken(&_ZetaConnectorBase.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorBase *ZetaConnectorBaseCallerSession) ZetaToken() (common.Address, error) { - return _ZetaConnectorBase.Contract.ZetaToken(&_ZetaConnectorBase.CallOpts) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) OnReceive(opts *bind.TransactOpts, zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "onReceive", zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.OnReceive(&_ZetaConnectorBase.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.OnReceive(&_ZetaConnectorBase.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) OnRevert(opts *bind.TransactOpts, zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "onRevert", zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.OnRevert(&_ZetaConnectorBase.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.OnRevert(&_ZetaConnectorBase.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "pause") -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) Pause() (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.Pause(&_ZetaConnectorBase.TransactOpts) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) Pause() (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.Pause(&_ZetaConnectorBase.TransactOpts) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) RenounceTssAddressUpdater(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "renounceTssAddressUpdater") -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.RenounceTssAddressUpdater(&_ZetaConnectorBase.TransactOpts) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.RenounceTssAddressUpdater(&_ZetaConnectorBase.TransactOpts) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) Send(opts *bind.TransactOpts, input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "send", input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.Send(&_ZetaConnectorBase.TransactOpts, input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.Send(&_ZetaConnectorBase.TransactOpts, input) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "unpause") -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) Unpause() (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.Unpause(&_ZetaConnectorBase.TransactOpts) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) Unpause() (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.Unpause(&_ZetaConnectorBase.TransactOpts) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) UpdatePauserAddress(opts *bind.TransactOpts, pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "updatePauserAddress", pauserAddress_) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) UpdatePauserAddress(pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.UpdatePauserAddress(&_ZetaConnectorBase.TransactOpts, pauserAddress_) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) UpdatePauserAddress(pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.UpdatePauserAddress(&_ZetaConnectorBase.TransactOpts, pauserAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactor) UpdateTssAddress(opts *bind.TransactOpts, tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorBase.contract.Transact(opts, "updateTssAddress", tssAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseSession) UpdateTssAddress(tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.UpdateTssAddress(&_ZetaConnectorBase.TransactOpts, tssAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorBase *ZetaConnectorBaseTransactorSession) UpdateTssAddress(tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorBase.Contract.UpdateTssAddress(&_ZetaConnectorBase.TransactOpts, tssAddress_) -} - -// ZetaConnectorBasePausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the ZetaConnectorBase contract. -type ZetaConnectorBasePausedIterator struct { - Event *ZetaConnectorBasePaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBasePausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBasePaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBasePaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBasePausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBasePausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBasePaused represents a Paused event raised by the ZetaConnectorBase contract. -type ZetaConnectorBasePaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterPaused(opts *bind.FilterOpts) (*ZetaConnectorBasePausedIterator, error) { - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "Paused") - if err != nil { - return nil, err - } - return &ZetaConnectorBasePausedIterator{contract: _ZetaConnectorBase.contract, event: "Paused", logs: logs, sub: sub}, nil -} - -// WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBasePaused) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "Paused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBasePaused) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "Paused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParsePaused(log types.Log) (*ZetaConnectorBasePaused, error) { - event := new(ZetaConnectorBasePaused) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "Paused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorBasePauserAddressUpdatedIterator is returned from FilterPauserAddressUpdated and is used to iterate over the raw logs and unpacked data for PauserAddressUpdated events raised by the ZetaConnectorBase contract. -type ZetaConnectorBasePauserAddressUpdatedIterator struct { - Event *ZetaConnectorBasePauserAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBasePauserAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBasePauserAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBasePauserAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBasePauserAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBasePauserAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBasePauserAddressUpdated represents a PauserAddressUpdated event raised by the ZetaConnectorBase contract. -type ZetaConnectorBasePauserAddressUpdated struct { - CallerAddress common.Address - NewTssAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPauserAddressUpdated is a free log retrieval operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterPauserAddressUpdated(opts *bind.FilterOpts) (*ZetaConnectorBasePauserAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "PauserAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorBasePauserAddressUpdatedIterator{contract: _ZetaConnectorBase.contract, event: "PauserAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchPauserAddressUpdated is a free log subscription operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchPauserAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBasePauserAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "PauserAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBasePauserAddressUpdated) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "PauserAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePauserAddressUpdated is a log parse operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParsePauserAddressUpdated(log types.Log) (*ZetaConnectorBasePauserAddressUpdated, error) { - event := new(ZetaConnectorBasePauserAddressUpdated) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "PauserAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorBaseTSSAddressUpdatedIterator is returned from FilterTSSAddressUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdated events raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseTSSAddressUpdatedIterator struct { - Event *ZetaConnectorBaseTSSAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBaseTSSAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBaseTSSAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBaseTSSAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBaseTSSAddressUpdated represents a TSSAddressUpdated event raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseTSSAddressUpdated struct { - CallerAddress common.Address - NewTssAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdated is a free log retrieval operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterTSSAddressUpdated(opts *bind.FilterOpts) (*ZetaConnectorBaseTSSAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorBaseTSSAddressUpdatedIterator{contract: _ZetaConnectorBase.contract, event: "TSSAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdated is a free log subscription operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchTSSAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBaseTSSAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBaseTSSAddressUpdated) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdated is a log parse operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParseTSSAddressUpdated(log types.Log) (*ZetaConnectorBaseTSSAddressUpdated, error) { - event := new(ZetaConnectorBaseTSSAddressUpdated) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorBaseTSSAddressUpdaterUpdatedIterator is returned from FilterTSSAddressUpdaterUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdaterUpdated events raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseTSSAddressUpdaterUpdatedIterator struct { - Event *ZetaConnectorBaseTSSAddressUpdaterUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBaseTSSAddressUpdaterUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBaseTSSAddressUpdaterUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBaseTSSAddressUpdaterUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBaseTSSAddressUpdaterUpdated represents a TSSAddressUpdaterUpdated event raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseTSSAddressUpdaterUpdated struct { - CallerAddress common.Address - NewTssUpdaterAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdaterUpdated is a free log retrieval operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterTSSAddressUpdaterUpdated(opts *bind.FilterOpts) (*ZetaConnectorBaseTSSAddressUpdaterUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorBaseTSSAddressUpdaterUpdatedIterator{contract: _ZetaConnectorBase.contract, event: "TSSAddressUpdaterUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdaterUpdated is a free log subscription operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchTSSAddressUpdaterUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBaseTSSAddressUpdaterUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBaseTSSAddressUpdaterUpdated) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdaterUpdated is a log parse operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParseTSSAddressUpdaterUpdated(log types.Log) (*ZetaConnectorBaseTSSAddressUpdaterUpdated, error) { - event := new(ZetaConnectorBaseTSSAddressUpdaterUpdated) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorBaseUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseUnpausedIterator struct { - Event *ZetaConnectorBaseUnpaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBaseUnpausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBaseUnpausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBaseUnpausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBaseUnpaused represents a Unpaused event raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseUnpaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterUnpaused(opts *bind.FilterOpts) (*ZetaConnectorBaseUnpausedIterator, error) { - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return &ZetaConnectorBaseUnpausedIterator{contract: _ZetaConnectorBase.contract, event: "Unpaused", logs: logs, sub: sub}, nil -} - -// WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBaseUnpaused) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBaseUnpaused) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "Unpaused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParseUnpaused(log types.Log) (*ZetaConnectorBaseUnpaused, error) { - event := new(ZetaConnectorBaseUnpaused) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "Unpaused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorBaseZetaReceivedIterator is returned from FilterZetaReceived and is used to iterate over the raw logs and unpacked data for ZetaReceived events raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseZetaReceivedIterator struct { - Event *ZetaConnectorBaseZetaReceived // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBaseZetaReceivedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBaseZetaReceivedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBaseZetaReceivedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBaseZetaReceived represents a ZetaReceived event raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseZetaReceived struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReceived is a free log retrieval operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterZetaReceived(opts *bind.FilterOpts, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (*ZetaConnectorBaseZetaReceivedIterator, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorBaseZetaReceivedIterator{contract: _ZetaConnectorBase.contract, event: "ZetaReceived", logs: logs, sub: sub}, nil -} - -// WatchZetaReceived is a free log subscription operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchZetaReceived(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBaseZetaReceived, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (event.Subscription, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBaseZetaReceived) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReceived is a log parse operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParseZetaReceived(log types.Log) (*ZetaConnectorBaseZetaReceived, error) { - event := new(ZetaConnectorBaseZetaReceived) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorBaseZetaRevertedIterator is returned from FilterZetaReverted and is used to iterate over the raw logs and unpacked data for ZetaReverted events raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseZetaRevertedIterator struct { - Event *ZetaConnectorBaseZetaReverted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBaseZetaRevertedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBaseZetaRevertedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBaseZetaRevertedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBaseZetaReverted represents a ZetaReverted event raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseZetaReverted struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationChainId *big.Int - DestinationAddress []byte - RemainingZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReverted is a free log retrieval operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterZetaReverted(opts *bind.FilterOpts, destinationChainId []*big.Int, internalSendHash [][32]byte) (*ZetaConnectorBaseZetaRevertedIterator, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorBaseZetaRevertedIterator{contract: _ZetaConnectorBase.contract, event: "ZetaReverted", logs: logs, sub: sub}, nil -} - -// WatchZetaReverted is a free log subscription operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchZetaReverted(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBaseZetaReverted, destinationChainId []*big.Int, internalSendHash [][32]byte) (event.Subscription, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBaseZetaReverted) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReverted is a log parse operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParseZetaReverted(log types.Log) (*ZetaConnectorBaseZetaReverted, error) { - event := new(ZetaConnectorBaseZetaReverted) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorBaseZetaSentIterator is returned from FilterZetaSent and is used to iterate over the raw logs and unpacked data for ZetaSent events raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseZetaSentIterator struct { - Event *ZetaConnectorBaseZetaSent // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorBaseZetaSentIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorBaseZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorBaseZetaSentIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorBaseZetaSentIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorBaseZetaSent represents a ZetaSent event raised by the ZetaConnectorBase contract. -type ZetaConnectorBaseZetaSent struct { - SourceTxOriginAddress common.Address - ZetaTxSenderAddress common.Address - DestinationChainId *big.Int - DestinationAddress []byte - ZetaValueAndGas *big.Int - DestinationGasLimit *big.Int - Message []byte - ZetaParams []byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaSent is a free log retrieval operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) FilterZetaSent(opts *bind.FilterOpts, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (*ZetaConnectorBaseZetaSentIterator, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorBase.contract.FilterLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return &ZetaConnectorBaseZetaSentIterator{contract: _ZetaConnectorBase.contract, event: "ZetaSent", logs: logs, sub: sub}, nil -} - -// WatchZetaSent is a free log subscription operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) WatchZetaSent(opts *bind.WatchOpts, sink chan<- *ZetaConnectorBaseZetaSent, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (event.Subscription, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorBase.contract.WatchLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorBaseZetaSent) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaSent is a log parse operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorBase *ZetaConnectorBaseFilterer) ParseZetaSent(log types.Log) (*ZetaConnectorBaseZetaSent, error) { - event := new(ZetaConnectorBaseZetaSent) - if err := _ZetaConnectorBase.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/zetaconnector.eth.sol/zetaconnectoreth.go b/v1/pkg/contracts/evm/zetaconnector.eth.sol/zetaconnectoreth.go deleted file mode 100644 index ed2341879..000000000 --- a/v1/pkg/contracts/evm/zetaconnector.eth.sol/zetaconnectoreth.go +++ /dev/null @@ -1,1726 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetaconnector - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesSendInput is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesSendInput struct { - DestinationChainId *big.Int - DestinationAddress []byte - DestinationGasLimit *big.Int - Message []byte - ZetaValueAndGas *big.Int - ZetaParams []byte -} - -// ZetaConnectorEthMetaData contains all meta data concerning the ZetaConnectorEth contract. -var ZetaConnectorEthMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaToken_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tssAddressUpdater_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pauserAddress_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotPauser\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTss\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssOrUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSupply\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxSupply\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZetaTransferError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssAddress\",\"type\":\"address\"}],\"name\":\"PauserAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssUpdaterAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdaterUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReverted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sourceTxOriginAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"name\":\"ZetaSent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getLockedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauserAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceTssAddressUpdater\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.SendInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tssAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tssAddressUpdater\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pauserAddress_\",\"type\":\"address\"}],\"name\":\"updatePauserAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"}],\"name\":\"updateTssAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60a06040523480156200001157600080fd5b50604051620020e6380380620020e6833981810160405281019062000037919062000284565b8383838360008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000bd5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000f55750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806200012d5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000165576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505062000349565b6000815190506200027e816200032f565b92915050565b60008060008060808587031215620002a157620002a06200032a565b5b6000620002b1878288016200026d565b9450506020620002c4878288016200026d565b9350506040620002d7878288016200026d565b9250506060620002ea878288016200026d565b91505092959194509250565b600062000303826200030a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200033a81620002f6565b81146200034657600080fd5b50565b60805160601c611d62620003846000396000818161024f01528181610275015281816103b701528181610d9501526110180152611d626000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80636128480f1161008c5780639122c344116100665780639122c344146101db578063942a5e16146101f7578063ec02690114610213578063f7fb869b1461022f576100ea565b80636128480f146101ab578063779e3b63146101c75780638456cb59146101d1576100ea565b8063328a01d0116100c8578063328a01d0146101475780633f4ba83a146101655780635b1125911461016f5780635c975abb1461018d576100ea565b806321e093b1146100ef578063252bc8861461010d57806329dd214d1461012b575b600080fd5b6100f761024d565b6040516101049190611883565b60405180910390f35b610115610271565b6040516101229190611af0565b60405180910390f35b6101456004803603810190610140919061153a565b610321565b005b61014f61063a565b60405161015c9190611883565b60405180910390f35b61016d610660565b005b6101776106fc565b6040516101849190611883565b60405180910390f35b610195610722565b6040516101a29190611a08565b60405180910390f35b6101c560048036038101906101c091906113fe565b610738565b005b6101cf6108ae565b005b6101d9610a89565b005b6101f560048036038101906101f091906113fe565b610b25565b005b610211600480360381019061020c919061142b565b610cf7565b005b61022d60048036038101906102289190611609565b61100c565b005b61023761119b565b6040516102449190611883565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102cc9190611883565b60206040518083038186803b1580156102e457600080fd5b505afa1580156102f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031c9190611652565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103b357336040517fff70ace20000000000000000000000000000000000000000000000000000000081526004016103aa9190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87876040518363ffffffff1660e01b815260040161041092919061197a565b602060405180830381600087803b15801561042a57600080fd5b505af115801561043e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610462919061150d565b90508061049b576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008484905011156105d7578573ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018a81526020018973ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016105a49190611aac565b600060405180830381600087803b1580156105be57600080fd5b505af11580156105d2573d6000803e3d6000fd5b505050505b818673ffffffffffffffffffffffffffffffffffffffff16887ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988c8c8a8a8a604051610627959493929190611a23565b60405180910390a4505050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106f257336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016106e99190611883565b60405180910390fd5b6106fa6111c1565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107ca57336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016107c19190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610831576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d039733826040516108a392919061189e565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461094057336040517fe700765e0000000000000000000000000000000000000000000000000000000081526004016109379190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109c9576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610a7f92919061189e565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b1b57336040517f4677a0d3000000000000000000000000000000000000000000000000000000008152600401610b129190611883565b60405180910390fd5b610b23611223565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610bd15750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610c1357336040517fcdfcef97000000000000000000000000000000000000000000000000000000008152600401610c0a9190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c7a576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff3382604051610cec92919061189e565b60405180910390a150565b610cff611285565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d9157336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610d889190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8b876040518363ffffffff1660e01b8152600401610dee92919061197a565b602060405180830381600087803b158015610e0857600080fd5b505af1158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e40919061150d565b905080610e79576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000848490501115610fbb578973ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808d73ffffffffffffffffffffffffffffffffffffffff1681526020018c81526020018b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200189815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b8152600401610f889190611ace565b600060405180830381600087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050505b81867f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888c8c8c8c8b8b8b604051610ff897969594939291906119a3565b60405180910390a350505050505050505050565b611014611285565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd333085608001356040518463ffffffff1660e01b8152600401611077939291906118c7565b602060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c9919061150d565b905080611102576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4328580602001906111509190611b0b565b8760800135886040013589806060019061116a9190611b0b565b8b8060a0019061117a9190611b0b565b60405161118f999897969594939291906118fe565b60405180910390a35050565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111c96112cf565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61120c611318565b6040516112199190611883565b60405180910390a1565b61122b611285565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861126e611318565b60405161127b9190611883565b60405180910390a1565b61128d610722565b156112cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c490611a8c565b60405180910390fd5b565b6112d7610722565b611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d90611a6c565b60405180910390fd5b565b600033905090565b60008135905061132f81611cd0565b92915050565b60008151905061134481611ce7565b92915050565b60008135905061135981611cfe565b92915050565b60008083601f84011261137557611374611c45565b5b8235905067ffffffffffffffff81111561139257611391611c40565b5b6020830191508360018202830111156113ae576113ad611c59565b5b9250929050565b600060c082840312156113cb576113ca611c4f565b5b81905092915050565b6000813590506113e381611d15565b92915050565b6000815190506113f881611d15565b92915050565b60006020828403121561141457611413611c68565b5b600061142284828501611320565b91505092915050565b600080600080600080600080600060e08a8c03121561144d5761144c611c68565b5b600061145b8c828d01611320565b995050602061146c8c828d016113d4565b98505060408a013567ffffffffffffffff81111561148d5761148c611c63565b5b6114998c828d0161135f565b975097505060606114ac8c828d016113d4565b95505060806114bd8c828d016113d4565b94505060a08a013567ffffffffffffffff8111156114de576114dd611c63565b5b6114ea8c828d0161135f565b935093505060c06114fd8c828d0161134a565b9150509295985092959850929598565b60006020828403121561152357611522611c68565b5b600061153184828501611335565b91505092915050565b60008060008060008060008060c0898b03121561155a57611559611c68565b5b600089013567ffffffffffffffff81111561157857611577611c63565b5b6115848b828c0161135f565b985098505060206115978b828c016113d4565b96505060406115a88b828c01611320565b95505060606115b98b828c016113d4565b945050608089013567ffffffffffffffff8111156115da576115d9611c63565b5b6115e68b828c0161135f565b935093505060a06115f98b828c0161134a565b9150509295985092959890939650565b60006020828403121561161f5761161e611c68565b5b600082013567ffffffffffffffff81111561163d5761163c611c63565b5b611649848285016113b5565b91505092915050565b60006020828403121561166857611667611c68565b5b6000611676848285016113e9565b91505092915050565b61168881611bac565b82525050565b61169781611bac565b82525050565b6116a681611bbe565b82525050565b60006116b88385611b8a565b93506116c5838584611bfe565b6116ce83611c6d565b840190509392505050565b60006116e482611b6e565b6116ee8185611b79565b93506116fe818560208601611c0d565b61170781611c6d565b840191505092915050565b600061171f601483611b9b565b915061172a82611c7e565b602082019050919050565b6000611742601083611b9b565b915061174d82611ca7565b602082019050919050565b600060a083016000830151848203600086015261177582826116d9565b915050602083015161178a6020860182611865565b50604083015161179d604086018261167f565b5060608301516117b06060860182611865565b50608083015184820360808601526117c882826116d9565b9150508091505092915050565b600060c0830160008301516117ed600086018261167f565b5060208301516118006020860182611865565b506040830151848203604086015261181882826116d9565b915050606083015161182d6060860182611865565b5060808301516118406080860182611865565b5060a083015184820360a086015261185882826116d9565b9150508091505092915050565b61186e81611bf4565b82525050565b61187d81611bf4565b82525050565b6000602082019050611898600083018461168e565b92915050565b60006040820190506118b3600083018561168e565b6118c0602083018461168e565b9392505050565b60006060820190506118dc600083018661168e565b6118e9602083018561168e565b6118f66040830184611874565b949350505050565b600060c082019050611913600083018c61168e565b8181036020830152611926818a8c6116ac565b90506119356040830189611874565b6119426060830188611874565b81810360808301526119558186886116ac565b905081810360a083015261196a8184866116ac565b90509a9950505050505050505050565b600060408201905061198f600083018561168e565b61199c6020830184611874565b9392505050565b600060a0820190506119b8600083018a61168e565b6119c56020830189611874565b81810360408301526119d88187896116ac565b90506119e76060830186611874565b81810360808301526119fa8184866116ac565b905098975050505050505050565b6000602082019050611a1d600083018461169d565b92915050565b60006060820190508181036000830152611a3e8187896116ac565b9050611a4d6020830186611874565b8181036040830152611a608184866116ac565b90509695505050505050565b60006020820190508181036000830152611a8581611712565b9050919050565b60006020820190508181036000830152611aa581611735565b9050919050565b60006020820190508181036000830152611ac68184611758565b905092915050565b60006020820190508181036000830152611ae881846117d5565b905092915050565b6000602082019050611b056000830184611874565b92915050565b60008083356001602003843603038112611b2857611b27611c54565b5b80840192508235915067ffffffffffffffff821115611b4a57611b49611c4a565b5b602083019250600182023603831315611b6657611b65611c5e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611bb782611bd4565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611c2b578082015181840152602081019050611c10565b83811115611c3a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b611cd981611bac565b8114611ce457600080fd5b50565b611cf081611bbe565b8114611cfb57600080fd5b50565b611d0781611bca565b8114611d1257600080fd5b50565b611d1e81611bf4565b8114611d2957600080fd5b5056fea2646970667358221220aea116262018bae5c67a2e8d7df041d67768b80865d96b72392c003b54c708f264736f6c63430008070033", -} - -// ZetaConnectorEthABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaConnectorEthMetaData.ABI instead. -var ZetaConnectorEthABI = ZetaConnectorEthMetaData.ABI - -// ZetaConnectorEthBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaConnectorEthMetaData.Bin instead. -var ZetaConnectorEthBin = ZetaConnectorEthMetaData.Bin - -// DeployZetaConnectorEth deploys a new Ethereum contract, binding an instance of ZetaConnectorEth to it. -func DeployZetaConnectorEth(auth *bind.TransactOpts, backend bind.ContractBackend, zetaToken_ common.Address, tssAddress_ common.Address, tssAddressUpdater_ common.Address, pauserAddress_ common.Address) (common.Address, *types.Transaction, *ZetaConnectorEth, error) { - parsed, err := ZetaConnectorEthMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaConnectorEthBin), backend, zetaToken_, tssAddress_, tssAddressUpdater_, pauserAddress_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaConnectorEth{ZetaConnectorEthCaller: ZetaConnectorEthCaller{contract: contract}, ZetaConnectorEthTransactor: ZetaConnectorEthTransactor{contract: contract}, ZetaConnectorEthFilterer: ZetaConnectorEthFilterer{contract: contract}}, nil -} - -// ZetaConnectorEth is an auto generated Go binding around an Ethereum contract. -type ZetaConnectorEth struct { - ZetaConnectorEthCaller // Read-only binding to the contract - ZetaConnectorEthTransactor // Write-only binding to the contract - ZetaConnectorEthFilterer // Log filterer for contract events -} - -// ZetaConnectorEthCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaConnectorEthCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorEthTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaConnectorEthTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorEthFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaConnectorEthFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorEthSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaConnectorEthSession struct { - Contract *ZetaConnectorEth // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorEthCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaConnectorEthCallerSession struct { - Contract *ZetaConnectorEthCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaConnectorEthTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaConnectorEthTransactorSession struct { - Contract *ZetaConnectorEthTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorEthRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaConnectorEthRaw struct { - Contract *ZetaConnectorEth // Generic contract binding to access the raw methods on -} - -// ZetaConnectorEthCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaConnectorEthCallerRaw struct { - Contract *ZetaConnectorEthCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaConnectorEthTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaConnectorEthTransactorRaw struct { - Contract *ZetaConnectorEthTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaConnectorEth creates a new instance of ZetaConnectorEth, bound to a specific deployed contract. -func NewZetaConnectorEth(address common.Address, backend bind.ContractBackend) (*ZetaConnectorEth, error) { - contract, err := bindZetaConnectorEth(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaConnectorEth{ZetaConnectorEthCaller: ZetaConnectorEthCaller{contract: contract}, ZetaConnectorEthTransactor: ZetaConnectorEthTransactor{contract: contract}, ZetaConnectorEthFilterer: ZetaConnectorEthFilterer{contract: contract}}, nil -} - -// NewZetaConnectorEthCaller creates a new read-only instance of ZetaConnectorEth, bound to a specific deployed contract. -func NewZetaConnectorEthCaller(address common.Address, caller bind.ContractCaller) (*ZetaConnectorEthCaller, error) { - contract, err := bindZetaConnectorEth(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorEthCaller{contract: contract}, nil -} - -// NewZetaConnectorEthTransactor creates a new write-only instance of ZetaConnectorEth, bound to a specific deployed contract. -func NewZetaConnectorEthTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaConnectorEthTransactor, error) { - contract, err := bindZetaConnectorEth(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorEthTransactor{contract: contract}, nil -} - -// NewZetaConnectorEthFilterer creates a new log filterer instance of ZetaConnectorEth, bound to a specific deployed contract. -func NewZetaConnectorEthFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaConnectorEthFilterer, error) { - contract, err := bindZetaConnectorEth(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaConnectorEthFilterer{contract: contract}, nil -} - -// bindZetaConnectorEth binds a generic wrapper to an already deployed contract. -func bindZetaConnectorEth(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaConnectorEthMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorEth *ZetaConnectorEthRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorEth.Contract.ZetaConnectorEthCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorEth *ZetaConnectorEthRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.ZetaConnectorEthTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorEth *ZetaConnectorEthRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.ZetaConnectorEthTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorEth *ZetaConnectorEthCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorEth.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorEth *ZetaConnectorEthTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorEth *ZetaConnectorEthTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.contract.Transact(opts, method, params...) -} - -// GetLockedAmount is a free data retrieval call binding the contract method 0x252bc886. -// -// Solidity: function getLockedAmount() view returns(uint256) -func (_ZetaConnectorEth *ZetaConnectorEthCaller) GetLockedAmount(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaConnectorEth.contract.Call(opts, &out, "getLockedAmount") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetLockedAmount is a free data retrieval call binding the contract method 0x252bc886. -// -// Solidity: function getLockedAmount() view returns(uint256) -func (_ZetaConnectorEth *ZetaConnectorEthSession) GetLockedAmount() (*big.Int, error) { - return _ZetaConnectorEth.Contract.GetLockedAmount(&_ZetaConnectorEth.CallOpts) -} - -// GetLockedAmount is a free data retrieval call binding the contract method 0x252bc886. -// -// Solidity: function getLockedAmount() view returns(uint256) -func (_ZetaConnectorEth *ZetaConnectorEthCallerSession) GetLockedAmount() (*big.Int, error) { - return _ZetaConnectorEth.Contract.GetLockedAmount(&_ZetaConnectorEth.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorEth *ZetaConnectorEthCaller) Paused(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaConnectorEth.contract.Call(opts, &out, "paused") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorEth *ZetaConnectorEthSession) Paused() (bool, error) { - return _ZetaConnectorEth.Contract.Paused(&_ZetaConnectorEth.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorEth *ZetaConnectorEthCallerSession) Paused() (bool, error) { - return _ZetaConnectorEth.Contract.Paused(&_ZetaConnectorEth.CallOpts) -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCaller) PauserAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorEth.contract.Call(opts, &out, "pauserAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthSession) PauserAddress() (common.Address, error) { - return _ZetaConnectorEth.Contract.PauserAddress(&_ZetaConnectorEth.CallOpts) -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCallerSession) PauserAddress() (common.Address, error) { - return _ZetaConnectorEth.Contract.PauserAddress(&_ZetaConnectorEth.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCaller) TssAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorEth.contract.Call(opts, &out, "tssAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthSession) TssAddress() (common.Address, error) { - return _ZetaConnectorEth.Contract.TssAddress(&_ZetaConnectorEth.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCallerSession) TssAddress() (common.Address, error) { - return _ZetaConnectorEth.Contract.TssAddress(&_ZetaConnectorEth.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCaller) TssAddressUpdater(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorEth.contract.Call(opts, &out, "tssAddressUpdater") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthSession) TssAddressUpdater() (common.Address, error) { - return _ZetaConnectorEth.Contract.TssAddressUpdater(&_ZetaConnectorEth.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCallerSession) TssAddressUpdater() (common.Address, error) { - return _ZetaConnectorEth.Contract.TssAddressUpdater(&_ZetaConnectorEth.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCaller) ZetaToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorEth.contract.Call(opts, &out, "zetaToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthSession) ZetaToken() (common.Address, error) { - return _ZetaConnectorEth.Contract.ZetaToken(&_ZetaConnectorEth.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorEth *ZetaConnectorEthCallerSession) ZetaToken() (common.Address, error) { - return _ZetaConnectorEth.Contract.ZetaToken(&_ZetaConnectorEth.CallOpts) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) OnReceive(opts *bind.TransactOpts, zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "onReceive", zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.OnReceive(&_ZetaConnectorEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.OnReceive(&_ZetaConnectorEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) OnRevert(opts *bind.TransactOpts, zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "onRevert", zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.OnRevert(&_ZetaConnectorEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.OnRevert(&_ZetaConnectorEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "pause") -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) Pause() (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.Pause(&_ZetaConnectorEth.TransactOpts) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) Pause() (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.Pause(&_ZetaConnectorEth.TransactOpts) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) RenounceTssAddressUpdater(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "renounceTssAddressUpdater") -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.RenounceTssAddressUpdater(&_ZetaConnectorEth.TransactOpts) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.RenounceTssAddressUpdater(&_ZetaConnectorEth.TransactOpts) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) Send(opts *bind.TransactOpts, input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "send", input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.Send(&_ZetaConnectorEth.TransactOpts, input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.Send(&_ZetaConnectorEth.TransactOpts, input) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "unpause") -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) Unpause() (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.Unpause(&_ZetaConnectorEth.TransactOpts) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) Unpause() (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.Unpause(&_ZetaConnectorEth.TransactOpts) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) UpdatePauserAddress(opts *bind.TransactOpts, pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "updatePauserAddress", pauserAddress_) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) UpdatePauserAddress(pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.UpdatePauserAddress(&_ZetaConnectorEth.TransactOpts, pauserAddress_) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) UpdatePauserAddress(pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.UpdatePauserAddress(&_ZetaConnectorEth.TransactOpts, pauserAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactor) UpdateTssAddress(opts *bind.TransactOpts, tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorEth.contract.Transact(opts, "updateTssAddress", tssAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorEth *ZetaConnectorEthSession) UpdateTssAddress(tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.UpdateTssAddress(&_ZetaConnectorEth.TransactOpts, tssAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorEth *ZetaConnectorEthTransactorSession) UpdateTssAddress(tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorEth.Contract.UpdateTssAddress(&_ZetaConnectorEth.TransactOpts, tssAddress_) -} - -// ZetaConnectorEthPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthPausedIterator struct { - Event *ZetaConnectorEthPaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthPausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthPaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthPaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthPausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthPausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthPaused represents a Paused event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthPaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterPaused(opts *bind.FilterOpts) (*ZetaConnectorEthPausedIterator, error) { - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "Paused") - if err != nil { - return nil, err - } - return &ZetaConnectorEthPausedIterator{contract: _ZetaConnectorEth.contract, event: "Paused", logs: logs, sub: sub}, nil -} - -// WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthPaused) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "Paused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthPaused) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "Paused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParsePaused(log types.Log) (*ZetaConnectorEthPaused, error) { - event := new(ZetaConnectorEthPaused) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "Paused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorEthPauserAddressUpdatedIterator is returned from FilterPauserAddressUpdated and is used to iterate over the raw logs and unpacked data for PauserAddressUpdated events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthPauserAddressUpdatedIterator struct { - Event *ZetaConnectorEthPauserAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthPauserAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthPauserAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthPauserAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthPauserAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthPauserAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthPauserAddressUpdated represents a PauserAddressUpdated event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthPauserAddressUpdated struct { - CallerAddress common.Address - NewTssAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPauserAddressUpdated is a free log retrieval operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterPauserAddressUpdated(opts *bind.FilterOpts) (*ZetaConnectorEthPauserAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "PauserAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorEthPauserAddressUpdatedIterator{contract: _ZetaConnectorEth.contract, event: "PauserAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchPauserAddressUpdated is a free log subscription operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchPauserAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthPauserAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "PauserAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthPauserAddressUpdated) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "PauserAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePauserAddressUpdated is a log parse operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParsePauserAddressUpdated(log types.Log) (*ZetaConnectorEthPauserAddressUpdated, error) { - event := new(ZetaConnectorEthPauserAddressUpdated) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "PauserAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorEthTSSAddressUpdatedIterator is returned from FilterTSSAddressUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdated events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthTSSAddressUpdatedIterator struct { - Event *ZetaConnectorEthTSSAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthTSSAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthTSSAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthTSSAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthTSSAddressUpdated represents a TSSAddressUpdated event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthTSSAddressUpdated struct { - CallerAddress common.Address - NewTssAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdated is a free log retrieval operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterTSSAddressUpdated(opts *bind.FilterOpts) (*ZetaConnectorEthTSSAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorEthTSSAddressUpdatedIterator{contract: _ZetaConnectorEth.contract, event: "TSSAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdated is a free log subscription operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchTSSAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthTSSAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthTSSAddressUpdated) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdated is a log parse operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParseTSSAddressUpdated(log types.Log) (*ZetaConnectorEthTSSAddressUpdated, error) { - event := new(ZetaConnectorEthTSSAddressUpdated) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorEthTSSAddressUpdaterUpdatedIterator is returned from FilterTSSAddressUpdaterUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdaterUpdated events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthTSSAddressUpdaterUpdatedIterator struct { - Event *ZetaConnectorEthTSSAddressUpdaterUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthTSSAddressUpdaterUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthTSSAddressUpdaterUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthTSSAddressUpdaterUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthTSSAddressUpdaterUpdated represents a TSSAddressUpdaterUpdated event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthTSSAddressUpdaterUpdated struct { - CallerAddress common.Address - NewTssUpdaterAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdaterUpdated is a free log retrieval operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterTSSAddressUpdaterUpdated(opts *bind.FilterOpts) (*ZetaConnectorEthTSSAddressUpdaterUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorEthTSSAddressUpdaterUpdatedIterator{contract: _ZetaConnectorEth.contract, event: "TSSAddressUpdaterUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdaterUpdated is a free log subscription operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchTSSAddressUpdaterUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthTSSAddressUpdaterUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthTSSAddressUpdaterUpdated) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdaterUpdated is a log parse operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParseTSSAddressUpdaterUpdated(log types.Log) (*ZetaConnectorEthTSSAddressUpdaterUpdated, error) { - event := new(ZetaConnectorEthTSSAddressUpdaterUpdated) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorEthUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthUnpausedIterator struct { - Event *ZetaConnectorEthUnpaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthUnpausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthUnpausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthUnpausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthUnpaused represents a Unpaused event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthUnpaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterUnpaused(opts *bind.FilterOpts) (*ZetaConnectorEthUnpausedIterator, error) { - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return &ZetaConnectorEthUnpausedIterator{contract: _ZetaConnectorEth.contract, event: "Unpaused", logs: logs, sub: sub}, nil -} - -// WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthUnpaused) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthUnpaused) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "Unpaused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParseUnpaused(log types.Log) (*ZetaConnectorEthUnpaused, error) { - event := new(ZetaConnectorEthUnpaused) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "Unpaused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorEthZetaReceivedIterator is returned from FilterZetaReceived and is used to iterate over the raw logs and unpacked data for ZetaReceived events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthZetaReceivedIterator struct { - Event *ZetaConnectorEthZetaReceived // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthZetaReceivedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthZetaReceivedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthZetaReceivedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthZetaReceived represents a ZetaReceived event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthZetaReceived struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReceived is a free log retrieval operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterZetaReceived(opts *bind.FilterOpts, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (*ZetaConnectorEthZetaReceivedIterator, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorEthZetaReceivedIterator{contract: _ZetaConnectorEth.contract, event: "ZetaReceived", logs: logs, sub: sub}, nil -} - -// WatchZetaReceived is a free log subscription operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchZetaReceived(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthZetaReceived, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (event.Subscription, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthZetaReceived) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReceived is a log parse operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParseZetaReceived(log types.Log) (*ZetaConnectorEthZetaReceived, error) { - event := new(ZetaConnectorEthZetaReceived) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorEthZetaRevertedIterator is returned from FilterZetaReverted and is used to iterate over the raw logs and unpacked data for ZetaReverted events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthZetaRevertedIterator struct { - Event *ZetaConnectorEthZetaReverted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthZetaRevertedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthZetaRevertedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthZetaRevertedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthZetaReverted represents a ZetaReverted event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthZetaReverted struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationChainId *big.Int - DestinationAddress []byte - RemainingZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReverted is a free log retrieval operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterZetaReverted(opts *bind.FilterOpts, destinationChainId []*big.Int, internalSendHash [][32]byte) (*ZetaConnectorEthZetaRevertedIterator, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorEthZetaRevertedIterator{contract: _ZetaConnectorEth.contract, event: "ZetaReverted", logs: logs, sub: sub}, nil -} - -// WatchZetaReverted is a free log subscription operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchZetaReverted(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthZetaReverted, destinationChainId []*big.Int, internalSendHash [][32]byte) (event.Subscription, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthZetaReverted) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReverted is a log parse operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParseZetaReverted(log types.Log) (*ZetaConnectorEthZetaReverted, error) { - event := new(ZetaConnectorEthZetaReverted) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorEthZetaSentIterator is returned from FilterZetaSent and is used to iterate over the raw logs and unpacked data for ZetaSent events raised by the ZetaConnectorEth contract. -type ZetaConnectorEthZetaSentIterator struct { - Event *ZetaConnectorEthZetaSent // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorEthZetaSentIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorEthZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorEthZetaSentIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorEthZetaSentIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorEthZetaSent represents a ZetaSent event raised by the ZetaConnectorEth contract. -type ZetaConnectorEthZetaSent struct { - SourceTxOriginAddress common.Address - ZetaTxSenderAddress common.Address - DestinationChainId *big.Int - DestinationAddress []byte - ZetaValueAndGas *big.Int - DestinationGasLimit *big.Int - Message []byte - ZetaParams []byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaSent is a free log retrieval operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) FilterZetaSent(opts *bind.FilterOpts, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (*ZetaConnectorEthZetaSentIterator, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorEth.contract.FilterLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return &ZetaConnectorEthZetaSentIterator{contract: _ZetaConnectorEth.contract, event: "ZetaSent", logs: logs, sub: sub}, nil -} - -// WatchZetaSent is a free log subscription operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) WatchZetaSent(opts *bind.WatchOpts, sink chan<- *ZetaConnectorEthZetaSent, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (event.Subscription, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorEth.contract.WatchLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorEthZetaSent) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaSent is a log parse operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorEth *ZetaConnectorEthFilterer) ParseZetaSent(log types.Log) (*ZetaConnectorEthZetaSent, error) { - event := new(ZetaConnectorEthZetaSent) - if err := _ZetaConnectorEth.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/evm/zetaconnector.non-eth.sol/zetaconnectornoneth.go b/v1/pkg/contracts/evm/zetaconnector.non-eth.sol/zetaconnectornoneth.go deleted file mode 100644 index 62e6a6910..000000000 --- a/v1/pkg/contracts/evm/zetaconnector.non-eth.sol/zetaconnectornoneth.go +++ /dev/null @@ -1,1913 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetaconnector - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesSendInput is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesSendInput struct { - DestinationChainId *big.Int - DestinationAddress []byte - DestinationGasLimit *big.Int - Message []byte - ZetaValueAndGas *big.Int - ZetaParams []byte -} - -// ZetaConnectorNonEthMetaData contains all meta data concerning the ZetaConnectorNonEth contract. -var ZetaConnectorNonEthMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaTokenAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tssAddressUpdater_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pauserAddress_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotPauser\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTss\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssOrUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"CallerIsNotTssUpdater\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSupply\",\"type\":\"uint256\"}],\"name\":\"ExceedsMaxSupply\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZetaTransferError\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newMaxSupply\",\"type\":\"uint256\"}],\"name\":\"MaxSupplyUpdated\",\"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\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssAddress\",\"type\":\"address\"}],\"name\":\"PauserAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"callerAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newTssUpdaterAddress\",\"type\":\"address\"}],\"name\":\"TSSAddressUpdaterUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReverted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sourceTxOriginAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"name\":\"ZetaSent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getLockedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pauserAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceTssAddressUpdater\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.SendInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"maxSupply_\",\"type\":\"uint256\"}],\"name\":\"setMaxSupply\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tssAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tssAddressUpdater\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pauserAddress_\",\"type\":\"address\"}],\"name\":\"updatePauserAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tssAddress_\",\"type\":\"address\"}],\"name\":\"updateTssAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60a06040527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6003553480156200003557600080fd5b506040516200237b3803806200237b83398181016040528101906200005b9190620002a8565b8383838360008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000e15750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620001195750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80620001515750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000189576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050506200036d565b600081519050620002a28162000353565b92915050565b60008060008060808587031215620002c557620002c46200034e565b5b6000620002d58782880162000291565b9450506020620002e88782880162000291565b9350506040620002fb8782880162000291565b92505060606200030e8782880162000291565b91505092959194509250565b600062000327826200032e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200035e816200031a565b81146200036a57600080fd5b50565b60805160601c611fc5620003b66000396000818161029f015281816102c501528181610408015281816104f601528181610f5201528181611040015261126f0152611fc56000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80636f8b44b011610097578063942a5e1611610066578063942a5e1614610229578063d5abeb0114610245578063ec02690114610263578063f7fb869b1461027f57610100565b80636f8b44b0146101dd578063779e3b63146101f95780638456cb59146102035780639122c3441461020d57610100565b80633f4ba83a116100d35780633f4ba83a1461017b5780635b112591146101855780635c975abb146101a35780636128480f146101c157610100565b806321e093b114610105578063252bc8861461012357806329dd214d14610141578063328a01d01461015d575b600080fd5b61010d61029d565b60405161011a9190611a78565b60405180910390f35b61012b6102c1565b6040516101389190611ce5565b60405180910390f35b61015b600480360381019061015691906116f3565b610371565b005b610165610721565b6040516101729190611a78565b60405180910390f35b610183610747565b005b61018d6107e3565b60405161019a9190611a78565b60405180910390f35b6101ab610809565b6040516101b89190611bfd565b60405180910390f35b6101db60048036038101906101d691906115e4565b61081f565b005b6101f760048036038101906101f2919061180b565b610995565b005b610201610a6a565b005b61020b610c45565b005b610227600480360381019061022291906115e4565b610ce1565b005b610243600480360381019061023e9190611611565b610eb3565b005b61024d61125f565b60405161025a9190611ce5565b60405180910390f35b61027d600480360381019061027891906117c2565b611265565b005b610287611396565b6040516102949190611a78565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161031c9190611a78565b60206040518083038186803b15801561033457600080fd5b505afa158015610348573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036c9190611838565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461040357336040517fff70ace20000000000000000000000000000000000000000000000000000000081526004016103fa9190611a78565b60405180910390fd5b6003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046c57600080fd5b505afa158015610480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a49190611838565b856104af9190611da1565b11156104f4576003546040517f3d3dbc830000000000000000000000000000000000000000000000000000000081526004016104eb9190611ce5565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e458bee8686846040518463ffffffff1660e01b815260040161055193929190611b61565b600060405180830381600087803b15801561056b57600080fd5b505af115801561057f573d6000803e3d6000fd5b5050505060008383905011156106bf578473ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018981526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b815260040161068c9190611ca1565b600060405180830381600087803b1580156106a657600080fd5b505af11580156106ba573d6000803e3d6000fd5b505050505b808573ffffffffffffffffffffffffffffffffffffffff16877ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988b8b89898960405161070f959493929190611c18565b60405180910390a45050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d957336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016107d09190611a78565b60405180910390fd5b6107e16113bc565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108b157336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016108a89190611a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610918576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397338260405161098a929190611a93565b60405180910390a150565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2757336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610a1e9190611a78565b60405180910390fd5b806003819055507f26843c619c87f9021bcc4ec5143177198076d9da3c13ce1bb2e941644c69d42e3382604051610a5f929190611b38565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610afc57336040517fe700765e000000000000000000000000000000000000000000000000000000008152600401610af39190611a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610b85576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610c3b929190611a93565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cd757336040517f4677a0d3000000000000000000000000000000000000000000000000000000008152600401610cce9190611a78565b60405180910390fd5b610cdf61141e565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610d8d5750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610dcf57336040517fcdfcef97000000000000000000000000000000000000000000000000000000008152600401610dc69190611a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e36576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff3382604051610ea8929190611a93565b60405180910390a150565b610ebb611480565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f4d57336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610f449190611a78565b60405180910390fd5b6003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fb657600080fd5b505afa158015610fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fee9190611838565b85610ff99190611da1565b111561103e576003546040517f3d3dbc830000000000000000000000000000000000000000000000000000000081526004016110359190611ce5565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e458bee8a86846040518463ffffffff1660e01b815260040161109b93929190611b61565b600060405180830381600087803b1580156110b557600080fd5b505af11580156110c9573d6000803e3d6000fd5b50505050600083839050111561120f578873ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b81526020018a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200188815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016111dc9190611cc3565b600060405180830381600087803b1580156111f657600080fd5b505af115801561120a573d6000803e3d6000fd5b505050505b80857f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888b8b8b8b8a8a8a60405161124c9796959493929190611b98565b60405180910390a3505050505050505050565b60035481565b61126d611480565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc67903383608001356040518363ffffffff1660e01b81526004016112cc929190611b38565b600060405180830381600087803b1580156112e657600080fd5b505af11580156112fa573d6000803e3d6000fd5b5050505080600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e43284806020019061134c9190611d00565b866080013587604001358880606001906113669190611d00565b8a8060a001906113769190611d00565b60405161138b99989796959493929190611abc565b60405180910390a350565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6113c46114ca565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611407611513565b6040516114149190611a78565b60405180910390a1565b611426611480565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611469611513565b6040516114769190611a78565b60405180910390a1565b611488610809565b156114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90611c81565b60405180910390fd5b565b6114d2610809565b611511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150890611c61565b60405180910390fd5b565b600033905090565b60008135905061152a81611f4a565b92915050565b60008135905061153f81611f61565b92915050565b60008083601f84011261155b5761155a611ebf565b5b8235905067ffffffffffffffff81111561157857611577611eba565b5b60208301915083600182028301111561159457611593611ed3565b5b9250929050565b600060c082840312156115b1576115b0611ec9565b5b81905092915050565b6000813590506115c981611f78565b92915050565b6000815190506115de81611f78565b92915050565b6000602082840312156115fa576115f9611ee2565b5b60006116088482850161151b565b91505092915050565b600080600080600080600080600060e08a8c03121561163357611632611ee2565b5b60006116418c828d0161151b565b99505060206116528c828d016115ba565b98505060408a013567ffffffffffffffff81111561167357611672611edd565b5b61167f8c828d01611545565b975097505060606116928c828d016115ba565b95505060806116a38c828d016115ba565b94505060a08a013567ffffffffffffffff8111156116c4576116c3611edd565b5b6116d08c828d01611545565b935093505060c06116e38c828d01611530565b9150509295985092959850929598565b60008060008060008060008060c0898b03121561171357611712611ee2565b5b600089013567ffffffffffffffff81111561173157611730611edd565b5b61173d8b828c01611545565b985098505060206117508b828c016115ba565b96505060406117618b828c0161151b565b95505060606117728b828c016115ba565b945050608089013567ffffffffffffffff81111561179357611792611edd565b5b61179f8b828c01611545565b935093505060a06117b28b828c01611530565b9150509295985092959890939650565b6000602082840312156117d8576117d7611ee2565b5b600082013567ffffffffffffffff8111156117f6576117f5611edd565b5b6118028482850161159b565b91505092915050565b60006020828403121561182157611820611ee2565b5b600061182f848285016115ba565b91505092915050565b60006020828403121561184e5761184d611ee2565b5b600061185c848285016115cf565b91505092915050565b61186e81611df7565b82525050565b61187d81611df7565b82525050565b61188c81611e09565b82525050565b61189b81611e15565b82525050565b60006118ad8385611d7f565b93506118ba838584611e49565b6118c383611ee7565b840190509392505050565b60006118d982611d63565b6118e38185611d6e565b93506118f3818560208601611e58565b6118fc81611ee7565b840191505092915050565b6000611914601483611d90565b915061191f82611ef8565b602082019050919050565b6000611937601083611d90565b915061194282611f21565b602082019050919050565b600060a083016000830151848203600086015261196a82826118ce565b915050602083015161197f6020860182611a5a565b5060408301516119926040860182611865565b5060608301516119a56060860182611a5a565b50608083015184820360808601526119bd82826118ce565b9150508091505092915050565b600060c0830160008301516119e26000860182611865565b5060208301516119f56020860182611a5a565b5060408301518482036040860152611a0d82826118ce565b9150506060830151611a226060860182611a5a565b506080830151611a356080860182611a5a565b5060a083015184820360a0860152611a4d82826118ce565b9150508091505092915050565b611a6381611e3f565b82525050565b611a7281611e3f565b82525050565b6000602082019050611a8d6000830184611874565b92915050565b6000604082019050611aa86000830185611874565b611ab56020830184611874565b9392505050565b600060c082019050611ad1600083018c611874565b8181036020830152611ae4818a8c6118a1565b9050611af36040830189611a69565b611b006060830188611a69565b8181036080830152611b138186886118a1565b905081810360a0830152611b288184866118a1565b90509a9950505050505050505050565b6000604082019050611b4d6000830185611874565b611b5a6020830184611a69565b9392505050565b6000606082019050611b766000830186611874565b611b836020830185611a69565b611b906040830184611892565b949350505050565b600060a082019050611bad600083018a611874565b611bba6020830189611a69565b8181036040830152611bcd8187896118a1565b9050611bdc6060830186611a69565b8181036080830152611bef8184866118a1565b905098975050505050505050565b6000602082019050611c126000830184611883565b92915050565b60006060820190508181036000830152611c338187896118a1565b9050611c426020830186611a69565b8181036040830152611c558184866118a1565b90509695505050505050565b60006020820190508181036000830152611c7a81611907565b9050919050565b60006020820190508181036000830152611c9a8161192a565b9050919050565b60006020820190508181036000830152611cbb818461194d565b905092915050565b60006020820190508181036000830152611cdd81846119ca565b905092915050565b6000602082019050611cfa6000830184611a69565b92915050565b60008083356001602003843603038112611d1d57611d1c611ece565b5b80840192508235915067ffffffffffffffff821115611d3f57611d3e611ec4565b5b602083019250600182023603831315611d5b57611d5a611ed8565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611dac82611e3f565b9150611db783611e3f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611dec57611deb611e8b565b5b828201905092915050565b6000611e0282611e1f565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611e76578082015181840152602081019050611e5b565b83811115611e85576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b611f5381611df7565b8114611f5e57600080fd5b50565b611f6a81611e15565b8114611f7557600080fd5b50565b611f8181611e3f565b8114611f8c57600080fd5b5056fea2646970667358221220c031f80b5c9d397027c78f70c718cbb340af3281424b52faca5743d7e7b4560464736f6c63430008070033", -} - -// ZetaConnectorNonEthABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaConnectorNonEthMetaData.ABI instead. -var ZetaConnectorNonEthABI = ZetaConnectorNonEthMetaData.ABI - -// ZetaConnectorNonEthBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaConnectorNonEthMetaData.Bin instead. -var ZetaConnectorNonEthBin = ZetaConnectorNonEthMetaData.Bin - -// DeployZetaConnectorNonEth deploys a new Ethereum contract, binding an instance of ZetaConnectorNonEth to it. -func DeployZetaConnectorNonEth(auth *bind.TransactOpts, backend bind.ContractBackend, zetaTokenAddress_ common.Address, tssAddress_ common.Address, tssAddressUpdater_ common.Address, pauserAddress_ common.Address) (common.Address, *types.Transaction, *ZetaConnectorNonEth, error) { - parsed, err := ZetaConnectorNonEthMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaConnectorNonEthBin), backend, zetaTokenAddress_, tssAddress_, tssAddressUpdater_, pauserAddress_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaConnectorNonEth{ZetaConnectorNonEthCaller: ZetaConnectorNonEthCaller{contract: contract}, ZetaConnectorNonEthTransactor: ZetaConnectorNonEthTransactor{contract: contract}, ZetaConnectorNonEthFilterer: ZetaConnectorNonEthFilterer{contract: contract}}, nil -} - -// ZetaConnectorNonEth is an auto generated Go binding around an Ethereum contract. -type ZetaConnectorNonEth struct { - ZetaConnectorNonEthCaller // Read-only binding to the contract - ZetaConnectorNonEthTransactor // Write-only binding to the contract - ZetaConnectorNonEthFilterer // Log filterer for contract events -} - -// ZetaConnectorNonEthCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaConnectorNonEthCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorNonEthTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaConnectorNonEthTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorNonEthFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaConnectorNonEthFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorNonEthSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaConnectorNonEthSession struct { - Contract *ZetaConnectorNonEth // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorNonEthCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaConnectorNonEthCallerSession struct { - Contract *ZetaConnectorNonEthCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaConnectorNonEthTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaConnectorNonEthTransactorSession struct { - Contract *ZetaConnectorNonEthTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorNonEthRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaConnectorNonEthRaw struct { - Contract *ZetaConnectorNonEth // Generic contract binding to access the raw methods on -} - -// ZetaConnectorNonEthCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaConnectorNonEthCallerRaw struct { - Contract *ZetaConnectorNonEthCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaConnectorNonEthTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaConnectorNonEthTransactorRaw struct { - Contract *ZetaConnectorNonEthTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaConnectorNonEth creates a new instance of ZetaConnectorNonEth, bound to a specific deployed contract. -func NewZetaConnectorNonEth(address common.Address, backend bind.ContractBackend) (*ZetaConnectorNonEth, error) { - contract, err := bindZetaConnectorNonEth(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaConnectorNonEth{ZetaConnectorNonEthCaller: ZetaConnectorNonEthCaller{contract: contract}, ZetaConnectorNonEthTransactor: ZetaConnectorNonEthTransactor{contract: contract}, ZetaConnectorNonEthFilterer: ZetaConnectorNonEthFilterer{contract: contract}}, nil -} - -// NewZetaConnectorNonEthCaller creates a new read-only instance of ZetaConnectorNonEth, bound to a specific deployed contract. -func NewZetaConnectorNonEthCaller(address common.Address, caller bind.ContractCaller) (*ZetaConnectorNonEthCaller, error) { - contract, err := bindZetaConnectorNonEth(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthCaller{contract: contract}, nil -} - -// NewZetaConnectorNonEthTransactor creates a new write-only instance of ZetaConnectorNonEth, bound to a specific deployed contract. -func NewZetaConnectorNonEthTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaConnectorNonEthTransactor, error) { - contract, err := bindZetaConnectorNonEth(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthTransactor{contract: contract}, nil -} - -// NewZetaConnectorNonEthFilterer creates a new log filterer instance of ZetaConnectorNonEth, bound to a specific deployed contract. -func NewZetaConnectorNonEthFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaConnectorNonEthFilterer, error) { - contract, err := bindZetaConnectorNonEth(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthFilterer{contract: contract}, nil -} - -// bindZetaConnectorNonEth binds a generic wrapper to an already deployed contract. -func bindZetaConnectorNonEth(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaConnectorNonEthMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorNonEth *ZetaConnectorNonEthRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorNonEth.Contract.ZetaConnectorNonEthCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorNonEth *ZetaConnectorNonEthRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.ZetaConnectorNonEthTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorNonEth *ZetaConnectorNonEthRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.ZetaConnectorNonEthTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorNonEth.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.contract.Transact(opts, method, params...) -} - -// GetLockedAmount is a free data retrieval call binding the contract method 0x252bc886. -// -// Solidity: function getLockedAmount() view returns(uint256) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCaller) GetLockedAmount(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaConnectorNonEth.contract.Call(opts, &out, "getLockedAmount") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetLockedAmount is a free data retrieval call binding the contract method 0x252bc886. -// -// Solidity: function getLockedAmount() view returns(uint256) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) GetLockedAmount() (*big.Int, error) { - return _ZetaConnectorNonEth.Contract.GetLockedAmount(&_ZetaConnectorNonEth.CallOpts) -} - -// GetLockedAmount is a free data retrieval call binding the contract method 0x252bc886. -// -// Solidity: function getLockedAmount() view returns(uint256) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerSession) GetLockedAmount() (*big.Int, error) { - return _ZetaConnectorNonEth.Contract.GetLockedAmount(&_ZetaConnectorNonEth.CallOpts) -} - -// MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01. -// -// Solidity: function maxSupply() view returns(uint256) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCaller) MaxSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZetaConnectorNonEth.contract.Call(opts, &out, "maxSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01. -// -// Solidity: function maxSupply() view returns(uint256) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) MaxSupply() (*big.Int, error) { - return _ZetaConnectorNonEth.Contract.MaxSupply(&_ZetaConnectorNonEth.CallOpts) -} - -// MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01. -// -// Solidity: function maxSupply() view returns(uint256) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerSession) MaxSupply() (*big.Int, error) { - return _ZetaConnectorNonEth.Contract.MaxSupply(&_ZetaConnectorNonEth.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCaller) Paused(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _ZetaConnectorNonEth.contract.Call(opts, &out, "paused") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) Paused() (bool, error) { - return _ZetaConnectorNonEth.Contract.Paused(&_ZetaConnectorNonEth.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerSession) Paused() (bool, error) { - return _ZetaConnectorNonEth.Contract.Paused(&_ZetaConnectorNonEth.CallOpts) -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCaller) PauserAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorNonEth.contract.Call(opts, &out, "pauserAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) PauserAddress() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.PauserAddress(&_ZetaConnectorNonEth.CallOpts) -} - -// PauserAddress is a free data retrieval call binding the contract method 0xf7fb869b. -// -// Solidity: function pauserAddress() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerSession) PauserAddress() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.PauserAddress(&_ZetaConnectorNonEth.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCaller) TssAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorNonEth.contract.Call(opts, &out, "tssAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) TssAddress() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.TssAddress(&_ZetaConnectorNonEth.CallOpts) -} - -// TssAddress is a free data retrieval call binding the contract method 0x5b112591. -// -// Solidity: function tssAddress() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerSession) TssAddress() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.TssAddress(&_ZetaConnectorNonEth.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCaller) TssAddressUpdater(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorNonEth.contract.Call(opts, &out, "tssAddressUpdater") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) TssAddressUpdater() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.TssAddressUpdater(&_ZetaConnectorNonEth.CallOpts) -} - -// TssAddressUpdater is a free data retrieval call binding the contract method 0x328a01d0. -// -// Solidity: function tssAddressUpdater() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerSession) TssAddressUpdater() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.TssAddressUpdater(&_ZetaConnectorNonEth.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCaller) ZetaToken(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorNonEth.contract.Call(opts, &out, "zetaToken") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) ZetaToken() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.ZetaToken(&_ZetaConnectorNonEth.CallOpts) -} - -// ZetaToken is a free data retrieval call binding the contract method 0x21e093b1. -// -// Solidity: function zetaToken() view returns(address) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthCallerSession) ZetaToken() (common.Address, error) { - return _ZetaConnectorNonEth.Contract.ZetaToken(&_ZetaConnectorNonEth.CallOpts) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) OnReceive(opts *bind.TransactOpts, zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "onReceive", zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.OnReceive(&_ZetaConnectorNonEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.OnReceive(&_ZetaConnectorNonEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) OnRevert(opts *bind.TransactOpts, zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "onRevert", zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.OnRevert(&_ZetaConnectorNonEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.OnRevert(&_ZetaConnectorNonEth.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "pause") -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) Pause() (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.Pause(&_ZetaConnectorNonEth.TransactOpts) -} - -// Pause is a paid mutator transaction binding the contract method 0x8456cb59. -// -// Solidity: function pause() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) Pause() (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.Pause(&_ZetaConnectorNonEth.TransactOpts) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) RenounceTssAddressUpdater(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "renounceTssAddressUpdater") -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.RenounceTssAddressUpdater(&_ZetaConnectorNonEth.TransactOpts) -} - -// RenounceTssAddressUpdater is a paid mutator transaction binding the contract method 0x779e3b63. -// -// Solidity: function renounceTssAddressUpdater() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) RenounceTssAddressUpdater() (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.RenounceTssAddressUpdater(&_ZetaConnectorNonEth.TransactOpts) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) Send(opts *bind.TransactOpts, input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "send", input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.Send(&_ZetaConnectorNonEth.TransactOpts, input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.Send(&_ZetaConnectorNonEth.TransactOpts, input) -} - -// SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0. -// -// Solidity: function setMaxSupply(uint256 maxSupply_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) SetMaxSupply(opts *bind.TransactOpts, maxSupply_ *big.Int) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "setMaxSupply", maxSupply_) -} - -// SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0. -// -// Solidity: function setMaxSupply(uint256 maxSupply_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) SetMaxSupply(maxSupply_ *big.Int) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.SetMaxSupply(&_ZetaConnectorNonEth.TransactOpts, maxSupply_) -} - -// SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0. -// -// Solidity: function setMaxSupply(uint256 maxSupply_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) SetMaxSupply(maxSupply_ *big.Int) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.SetMaxSupply(&_ZetaConnectorNonEth.TransactOpts, maxSupply_) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "unpause") -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) Unpause() (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.Unpause(&_ZetaConnectorNonEth.TransactOpts) -} - -// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. -// -// Solidity: function unpause() returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) Unpause() (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.Unpause(&_ZetaConnectorNonEth.TransactOpts) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) UpdatePauserAddress(opts *bind.TransactOpts, pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "updatePauserAddress", pauserAddress_) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) UpdatePauserAddress(pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.UpdatePauserAddress(&_ZetaConnectorNonEth.TransactOpts, pauserAddress_) -} - -// UpdatePauserAddress is a paid mutator transaction binding the contract method 0x6128480f. -// -// Solidity: function updatePauserAddress(address pauserAddress_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) UpdatePauserAddress(pauserAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.UpdatePauserAddress(&_ZetaConnectorNonEth.TransactOpts, pauserAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactor) UpdateTssAddress(opts *bind.TransactOpts, tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorNonEth.contract.Transact(opts, "updateTssAddress", tssAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthSession) UpdateTssAddress(tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.UpdateTssAddress(&_ZetaConnectorNonEth.TransactOpts, tssAddress_) -} - -// UpdateTssAddress is a paid mutator transaction binding the contract method 0x9122c344. -// -// Solidity: function updateTssAddress(address tssAddress_) returns() -func (_ZetaConnectorNonEth *ZetaConnectorNonEthTransactorSession) UpdateTssAddress(tssAddress_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorNonEth.Contract.UpdateTssAddress(&_ZetaConnectorNonEth.TransactOpts, tssAddress_) -} - -// ZetaConnectorNonEthMaxSupplyUpdatedIterator is returned from FilterMaxSupplyUpdated and is used to iterate over the raw logs and unpacked data for MaxSupplyUpdated events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthMaxSupplyUpdatedIterator struct { - Event *ZetaConnectorNonEthMaxSupplyUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthMaxSupplyUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthMaxSupplyUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthMaxSupplyUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthMaxSupplyUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthMaxSupplyUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthMaxSupplyUpdated represents a MaxSupplyUpdated event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthMaxSupplyUpdated struct { - CallerAddress common.Address - NewMaxSupply *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMaxSupplyUpdated is a free log retrieval operation binding the contract event 0x26843c619c87f9021bcc4ec5143177198076d9da3c13ce1bb2e941644c69d42e. -// -// Solidity: event MaxSupplyUpdated(address callerAddress, uint256 newMaxSupply) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterMaxSupplyUpdated(opts *bind.FilterOpts) (*ZetaConnectorNonEthMaxSupplyUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "MaxSupplyUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthMaxSupplyUpdatedIterator{contract: _ZetaConnectorNonEth.contract, event: "MaxSupplyUpdated", logs: logs, sub: sub}, nil -} - -// WatchMaxSupplyUpdated is a free log subscription operation binding the contract event 0x26843c619c87f9021bcc4ec5143177198076d9da3c13ce1bb2e941644c69d42e. -// -// Solidity: event MaxSupplyUpdated(address callerAddress, uint256 newMaxSupply) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchMaxSupplyUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthMaxSupplyUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "MaxSupplyUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthMaxSupplyUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "MaxSupplyUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMaxSupplyUpdated is a log parse operation binding the contract event 0x26843c619c87f9021bcc4ec5143177198076d9da3c13ce1bb2e941644c69d42e. -// -// Solidity: event MaxSupplyUpdated(address callerAddress, uint256 newMaxSupply) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParseMaxSupplyUpdated(log types.Log) (*ZetaConnectorNonEthMaxSupplyUpdated, error) { - event := new(ZetaConnectorNonEthMaxSupplyUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "MaxSupplyUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthPausedIterator struct { - Event *ZetaConnectorNonEthPaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthPausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthPaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthPaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthPausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthPausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthPaused represents a Paused event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthPaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterPaused(opts *bind.FilterOpts) (*ZetaConnectorNonEthPausedIterator, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "Paused") - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthPausedIterator{contract: _ZetaConnectorNonEth.contract, event: "Paused", logs: logs, sub: sub}, nil -} - -// WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthPaused) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "Paused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthPaused) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "Paused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParsePaused(log types.Log) (*ZetaConnectorNonEthPaused, error) { - event := new(ZetaConnectorNonEthPaused) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "Paused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthPauserAddressUpdatedIterator is returned from FilterPauserAddressUpdated and is used to iterate over the raw logs and unpacked data for PauserAddressUpdated events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthPauserAddressUpdatedIterator struct { - Event *ZetaConnectorNonEthPauserAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthPauserAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthPauserAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthPauserAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthPauserAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthPauserAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthPauserAddressUpdated represents a PauserAddressUpdated event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthPauserAddressUpdated struct { - CallerAddress common.Address - NewTssAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPauserAddressUpdated is a free log retrieval operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterPauserAddressUpdated(opts *bind.FilterOpts) (*ZetaConnectorNonEthPauserAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "PauserAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthPauserAddressUpdatedIterator{contract: _ZetaConnectorNonEth.contract, event: "PauserAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchPauserAddressUpdated is a free log subscription operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchPauserAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthPauserAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "PauserAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthPauserAddressUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "PauserAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePauserAddressUpdated is a log parse operation binding the contract event 0xd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397. -// -// Solidity: event PauserAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParsePauserAddressUpdated(log types.Log) (*ZetaConnectorNonEthPauserAddressUpdated, error) { - event := new(ZetaConnectorNonEthPauserAddressUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "PauserAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthTSSAddressUpdatedIterator is returned from FilterTSSAddressUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdated events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthTSSAddressUpdatedIterator struct { - Event *ZetaConnectorNonEthTSSAddressUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthTSSAddressUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthTSSAddressUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthTSSAddressUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthTSSAddressUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthTSSAddressUpdated represents a TSSAddressUpdated event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthTSSAddressUpdated struct { - CallerAddress common.Address - NewTssAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdated is a free log retrieval operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterTSSAddressUpdated(opts *bind.FilterOpts) (*ZetaConnectorNonEthTSSAddressUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthTSSAddressUpdatedIterator{contract: _ZetaConnectorNonEth.contract, event: "TSSAddressUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdated is a free log subscription operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchTSSAddressUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthTSSAddressUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "TSSAddressUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthTSSAddressUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdated is a log parse operation binding the contract event 0xe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff. -// -// Solidity: event TSSAddressUpdated(address callerAddress, address newTssAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParseTSSAddressUpdated(log types.Log) (*ZetaConnectorNonEthTSSAddressUpdated, error) { - event := new(ZetaConnectorNonEthTSSAddressUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "TSSAddressUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthTSSAddressUpdaterUpdatedIterator is returned from FilterTSSAddressUpdaterUpdated and is used to iterate over the raw logs and unpacked data for TSSAddressUpdaterUpdated events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthTSSAddressUpdaterUpdatedIterator struct { - Event *ZetaConnectorNonEthTSSAddressUpdaterUpdated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthTSSAddressUpdaterUpdatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthTSSAddressUpdaterUpdated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthTSSAddressUpdaterUpdatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthTSSAddressUpdaterUpdatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthTSSAddressUpdaterUpdated represents a TSSAddressUpdaterUpdated event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthTSSAddressUpdaterUpdated struct { - CallerAddress common.Address - NewTssUpdaterAddress common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTSSAddressUpdaterUpdated is a free log retrieval operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterTSSAddressUpdaterUpdated(opts *bind.FilterOpts) (*ZetaConnectorNonEthTSSAddressUpdaterUpdatedIterator, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthTSSAddressUpdaterUpdatedIterator{contract: _ZetaConnectorNonEth.contract, event: "TSSAddressUpdaterUpdated", logs: logs, sub: sub}, nil -} - -// WatchTSSAddressUpdaterUpdated is a free log subscription operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchTSSAddressUpdaterUpdated(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthTSSAddressUpdaterUpdated) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "TSSAddressUpdaterUpdated") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthTSSAddressUpdaterUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTSSAddressUpdaterUpdated is a log parse operation binding the contract event 0x5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd0. -// -// Solidity: event TSSAddressUpdaterUpdated(address callerAddress, address newTssUpdaterAddress) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParseTSSAddressUpdaterUpdated(log types.Log) (*ZetaConnectorNonEthTSSAddressUpdaterUpdated, error) { - event := new(ZetaConnectorNonEthTSSAddressUpdaterUpdated) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "TSSAddressUpdaterUpdated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthUnpausedIterator struct { - Event *ZetaConnectorNonEthUnpaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthUnpausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthUnpausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthUnpausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthUnpaused represents a Unpaused event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthUnpaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterUnpaused(opts *bind.FilterOpts) (*ZetaConnectorNonEthUnpausedIterator, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthUnpausedIterator{contract: _ZetaConnectorNonEth.contract, event: "Unpaused", logs: logs, sub: sub}, nil -} - -// WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthUnpaused) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthUnpaused) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "Unpaused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParseUnpaused(log types.Log) (*ZetaConnectorNonEthUnpaused, error) { - event := new(ZetaConnectorNonEthUnpaused) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "Unpaused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthZetaReceivedIterator is returned from FilterZetaReceived and is used to iterate over the raw logs and unpacked data for ZetaReceived events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthZetaReceivedIterator struct { - Event *ZetaConnectorNonEthZetaReceived // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthZetaReceivedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthZetaReceivedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthZetaReceivedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthZetaReceived represents a ZetaReceived event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthZetaReceived struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReceived is a free log retrieval operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterZetaReceived(opts *bind.FilterOpts, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (*ZetaConnectorNonEthZetaReceivedIterator, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthZetaReceivedIterator{contract: _ZetaConnectorNonEth.contract, event: "ZetaReceived", logs: logs, sub: sub}, nil -} - -// WatchZetaReceived is a free log subscription operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchZetaReceived(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthZetaReceived, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (event.Subscription, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthZetaReceived) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReceived is a log parse operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParseZetaReceived(log types.Log) (*ZetaConnectorNonEthZetaReceived, error) { - event := new(ZetaConnectorNonEthZetaReceived) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthZetaRevertedIterator is returned from FilterZetaReverted and is used to iterate over the raw logs and unpacked data for ZetaReverted events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthZetaRevertedIterator struct { - Event *ZetaConnectorNonEthZetaReverted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthZetaRevertedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthZetaRevertedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthZetaRevertedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthZetaReverted represents a ZetaReverted event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthZetaReverted struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationChainId *big.Int - DestinationAddress []byte - RemainingZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReverted is a free log retrieval operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterZetaReverted(opts *bind.FilterOpts, destinationChainId []*big.Int, internalSendHash [][32]byte) (*ZetaConnectorNonEthZetaRevertedIterator, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthZetaRevertedIterator{contract: _ZetaConnectorNonEth.contract, event: "ZetaReverted", logs: logs, sub: sub}, nil -} - -// WatchZetaReverted is a free log subscription operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchZetaReverted(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthZetaReverted, destinationChainId []*big.Int, internalSendHash [][32]byte) (event.Subscription, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthZetaReverted) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReverted is a log parse operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParseZetaReverted(log types.Log) (*ZetaConnectorNonEthZetaReverted, error) { - event := new(ZetaConnectorNonEthZetaReverted) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorNonEthZetaSentIterator is returned from FilterZetaSent and is used to iterate over the raw logs and unpacked data for ZetaSent events raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthZetaSentIterator struct { - Event *ZetaConnectorNonEthZetaSent // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorNonEthZetaSentIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorNonEthZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorNonEthZetaSentIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorNonEthZetaSentIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorNonEthZetaSent represents a ZetaSent event raised by the ZetaConnectorNonEth contract. -type ZetaConnectorNonEthZetaSent struct { - SourceTxOriginAddress common.Address - ZetaTxSenderAddress common.Address - DestinationChainId *big.Int - DestinationAddress []byte - ZetaValueAndGas *big.Int - DestinationGasLimit *big.Int - Message []byte - ZetaParams []byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaSent is a free log retrieval operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) FilterZetaSent(opts *bind.FilterOpts, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (*ZetaConnectorNonEthZetaSentIterator, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorNonEth.contract.FilterLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return &ZetaConnectorNonEthZetaSentIterator{contract: _ZetaConnectorNonEth.contract, event: "ZetaSent", logs: logs, sub: sub}, nil -} - -// WatchZetaSent is a free log subscription operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) WatchZetaSent(opts *bind.WatchOpts, sink chan<- *ZetaConnectorNonEthZetaSent, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (event.Subscription, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorNonEth.contract.WatchLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorNonEthZetaSent) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaSent is a log parse operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorNonEth *ZetaConnectorNonEthFilterer) ParseZetaSent(log types.Log) (*ZetaConnectorNonEthZetaSent, error) { - event := new(ZetaConnectorNonEthZetaSent) - if err := _ZetaConnectorNonEth.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/interfaces/isystem.sol/isystem.go b/v1/pkg/contracts/zevm/interfaces/isystem.sol/isystem.go deleted file mode 100644 index 3291465d2..000000000 --- a/v1/pkg/contracts/zevm/interfaces/isystem.sol/isystem.go +++ /dev/null @@ -1,367 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package isystem - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ISystemMetaData contains all meta data concerning the ISystem contract. -var ISystemMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"FUNGIBLE_MODULE_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"name\":\"gasCoinZRC20ByChainId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"name\":\"gasPriceByChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"name\":\"gasZetaPoolByChainId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapv2FactoryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wZetaContractAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// ISystemABI is the input ABI used to generate the binding from. -// Deprecated: Use ISystemMetaData.ABI instead. -var ISystemABI = ISystemMetaData.ABI - -// ISystem is an auto generated Go binding around an Ethereum contract. -type ISystem struct { - ISystemCaller // Read-only binding to the contract - ISystemTransactor // Write-only binding to the contract - ISystemFilterer // Log filterer for contract events -} - -// ISystemCaller is an auto generated read-only Go binding around an Ethereum contract. -type ISystemCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISystemTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ISystemTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISystemFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ISystemFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISystemSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ISystemSession struct { - Contract *ISystem // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ISystemCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ISystemCallerSession struct { - Contract *ISystemCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ISystemTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ISystemTransactorSession struct { - Contract *ISystemTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ISystemRaw is an auto generated low-level Go binding around an Ethereum contract. -type ISystemRaw struct { - Contract *ISystem // Generic contract binding to access the raw methods on -} - -// ISystemCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ISystemCallerRaw struct { - Contract *ISystemCaller // Generic read-only contract binding to access the raw methods on -} - -// ISystemTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ISystemTransactorRaw struct { - Contract *ISystemTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewISystem creates a new instance of ISystem, bound to a specific deployed contract. -func NewISystem(address common.Address, backend bind.ContractBackend) (*ISystem, error) { - contract, err := bindISystem(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ISystem{ISystemCaller: ISystemCaller{contract: contract}, ISystemTransactor: ISystemTransactor{contract: contract}, ISystemFilterer: ISystemFilterer{contract: contract}}, nil -} - -// NewISystemCaller creates a new read-only instance of ISystem, bound to a specific deployed contract. -func NewISystemCaller(address common.Address, caller bind.ContractCaller) (*ISystemCaller, error) { - contract, err := bindISystem(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ISystemCaller{contract: contract}, nil -} - -// NewISystemTransactor creates a new write-only instance of ISystem, bound to a specific deployed contract. -func NewISystemTransactor(address common.Address, transactor bind.ContractTransactor) (*ISystemTransactor, error) { - contract, err := bindISystem(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ISystemTransactor{contract: contract}, nil -} - -// NewISystemFilterer creates a new log filterer instance of ISystem, bound to a specific deployed contract. -func NewISystemFilterer(address common.Address, filterer bind.ContractFilterer) (*ISystemFilterer, error) { - contract, err := bindISystem(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ISystemFilterer{contract: contract}, nil -} - -// bindISystem binds a generic wrapper to an already deployed contract. -func bindISystem(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ISystemMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ISystem *ISystemRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ISystem.Contract.ISystemCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ISystem *ISystemRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ISystem.Contract.ISystemTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ISystem *ISystemRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ISystem.Contract.ISystemTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ISystem *ISystemCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ISystem.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ISystem *ISystemTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ISystem.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ISystem *ISystemTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ISystem.Contract.contract.Transact(opts, method, params...) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ISystem *ISystemCaller) FUNGIBLEMODULEADDRESS(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ISystem.contract.Call(opts, &out, "FUNGIBLE_MODULE_ADDRESS") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ISystem *ISystemSession) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _ISystem.Contract.FUNGIBLEMODULEADDRESS(&_ISystem.CallOpts) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ISystem *ISystemCallerSession) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _ISystem.Contract.FUNGIBLEMODULEADDRESS(&_ISystem.CallOpts) -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 chainID) view returns(address) -func (_ISystem *ISystemCaller) GasCoinZRC20ByChainId(opts *bind.CallOpts, chainID *big.Int) (common.Address, error) { - var out []interface{} - err := _ISystem.contract.Call(opts, &out, "gasCoinZRC20ByChainId", chainID) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 chainID) view returns(address) -func (_ISystem *ISystemSession) GasCoinZRC20ByChainId(chainID *big.Int) (common.Address, error) { - return _ISystem.Contract.GasCoinZRC20ByChainId(&_ISystem.CallOpts, chainID) -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 chainID) view returns(address) -func (_ISystem *ISystemCallerSession) GasCoinZRC20ByChainId(chainID *big.Int) (common.Address, error) { - return _ISystem.Contract.GasCoinZRC20ByChainId(&_ISystem.CallOpts, chainID) -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 chainID) view returns(uint256) -func (_ISystem *ISystemCaller) GasPriceByChainId(opts *bind.CallOpts, chainID *big.Int) (*big.Int, error) { - var out []interface{} - err := _ISystem.contract.Call(opts, &out, "gasPriceByChainId", chainID) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 chainID) view returns(uint256) -func (_ISystem *ISystemSession) GasPriceByChainId(chainID *big.Int) (*big.Int, error) { - return _ISystem.Contract.GasPriceByChainId(&_ISystem.CallOpts, chainID) -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 chainID) view returns(uint256) -func (_ISystem *ISystemCallerSession) GasPriceByChainId(chainID *big.Int) (*big.Int, error) { - return _ISystem.Contract.GasPriceByChainId(&_ISystem.CallOpts, chainID) -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 chainID) view returns(address) -func (_ISystem *ISystemCaller) GasZetaPoolByChainId(opts *bind.CallOpts, chainID *big.Int) (common.Address, error) { - var out []interface{} - err := _ISystem.contract.Call(opts, &out, "gasZetaPoolByChainId", chainID) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 chainID) view returns(address) -func (_ISystem *ISystemSession) GasZetaPoolByChainId(chainID *big.Int) (common.Address, error) { - return _ISystem.Contract.GasZetaPoolByChainId(&_ISystem.CallOpts, chainID) -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 chainID) view returns(address) -func (_ISystem *ISystemCallerSession) GasZetaPoolByChainId(chainID *big.Int) (common.Address, error) { - return _ISystem.Contract.GasZetaPoolByChainId(&_ISystem.CallOpts, chainID) -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_ISystem *ISystemCaller) Uniswapv2FactoryAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ISystem.contract.Call(opts, &out, "uniswapv2FactoryAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_ISystem *ISystemSession) Uniswapv2FactoryAddress() (common.Address, error) { - return _ISystem.Contract.Uniswapv2FactoryAddress(&_ISystem.CallOpts) -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_ISystem *ISystemCallerSession) Uniswapv2FactoryAddress() (common.Address, error) { - return _ISystem.Contract.Uniswapv2FactoryAddress(&_ISystem.CallOpts) -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_ISystem *ISystemCaller) WZetaContractAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ISystem.contract.Call(opts, &out, "wZetaContractAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_ISystem *ISystemSession) WZetaContractAddress() (common.Address, error) { - return _ISystem.Contract.WZetaContractAddress(&_ISystem.CallOpts) -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_ISystem *ISystemCallerSession) WZetaContractAddress() (common.Address, error) { - return _ISystem.Contract.WZetaContractAddress(&_ISystem.CallOpts) -} diff --git a/v1/pkg/contracts/zevm/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go b/v1/pkg/contracts/zevm/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go deleted file mode 100644 index a3572ed21..000000000 --- a/v1/pkg/contracts/zevm/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go +++ /dev/null @@ -1,650 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2router01 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2Router01MetaData contains all meta data concerning the IUniswapV2Router01 contract. -var IUniswapV2Router01MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2Router01ABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2Router01MetaData.ABI instead. -var IUniswapV2Router01ABI = IUniswapV2Router01MetaData.ABI - -// IUniswapV2Router01 is an auto generated Go binding around an Ethereum contract. -type IUniswapV2Router01 struct { - IUniswapV2Router01Caller // Read-only binding to the contract - IUniswapV2Router01Transactor // Write-only binding to the contract - IUniswapV2Router01Filterer // Log filterer for contract events -} - -// IUniswapV2Router01Caller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2Router01Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router01Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2Router01Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router01Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2Router01Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router01Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2Router01Session struct { - Contract *IUniswapV2Router01 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router01CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2Router01CallerSession struct { - Contract *IUniswapV2Router01Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2Router01TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2Router01TransactorSession struct { - Contract *IUniswapV2Router01Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router01Raw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2Router01Raw struct { - Contract *IUniswapV2Router01 // Generic contract binding to access the raw methods on -} - -// IUniswapV2Router01CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2Router01CallerRaw struct { - Contract *IUniswapV2Router01Caller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2Router01TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2Router01TransactorRaw struct { - Contract *IUniswapV2Router01Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2Router01 creates a new instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01(address common.Address, backend bind.ContractBackend) (*IUniswapV2Router01, error) { - contract, err := bindIUniswapV2Router01(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2Router01{IUniswapV2Router01Caller: IUniswapV2Router01Caller{contract: contract}, IUniswapV2Router01Transactor: IUniswapV2Router01Transactor{contract: contract}, IUniswapV2Router01Filterer: IUniswapV2Router01Filterer{contract: contract}}, nil -} - -// NewIUniswapV2Router01Caller creates a new read-only instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01Caller(address common.Address, caller bind.ContractCaller) (*IUniswapV2Router01Caller, error) { - contract, err := bindIUniswapV2Router01(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router01Caller{contract: contract}, nil -} - -// NewIUniswapV2Router01Transactor creates a new write-only instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01Transactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2Router01Transactor, error) { - contract, err := bindIUniswapV2Router01(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router01Transactor{contract: contract}, nil -} - -// NewIUniswapV2Router01Filterer creates a new log filterer instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01Filterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2Router01Filterer, error) { - contract, err := bindIUniswapV2Router01(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2Router01Filterer{contract: contract}, nil -} - -// bindIUniswapV2Router01 binds a generic wrapper to an already deployed contract. -func bindIUniswapV2Router01(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2Router01MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router01 *IUniswapV2Router01Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router01.Contract.IUniswapV2Router01Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router01 *IUniswapV2Router01Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.IUniswapV2Router01Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router01 *IUniswapV2Router01Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.IUniswapV2Router01Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router01 *IUniswapV2Router01CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router01.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.contract.Transact(opts, method, params...) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) WETH(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "WETH") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) WETH() (common.Address, error) { - return _IUniswapV2Router01.Contract.WETH(&_IUniswapV2Router01.CallOpts) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) WETH() (common.Address, error) { - return _IUniswapV2Router01.Contract.WETH(&_IUniswapV2Router01.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) Factory() (common.Address, error) { - return _IUniswapV2Router01.Contract.Factory(&_IUniswapV2Router01.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) Factory() (common.Address, error) { - return _IUniswapV2Router01.Contract.Factory(&_IUniswapV2Router01.CallOpts) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountIn", amountOut, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountIn(&_IUniswapV2Router01.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountIn(&_IUniswapV2Router01.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountOut", amountIn, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountOut(&_IUniswapV2Router01.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountOut(&_IUniswapV2Router01.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountsIn", amountOut, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsIn(&_IUniswapV2Router01.CallOpts, amountOut, path) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsIn(&_IUniswapV2Router01.CallOpts, amountOut, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountsOut", amountIn, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsOut(&_IUniswapV2Router01.CallOpts, amountIn, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsOut(&_IUniswapV2Router01.CallOpts, amountIn, path) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "quote", amountA, reserveA, reserveB) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.Quote(&_IUniswapV2Router01.CallOpts, amountA, reserveA, reserveB) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.Quote(&_IUniswapV2Router01.CallOpts, amountA, reserveA, reserveB) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "addLiquidity", tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "addLiquidityETH", token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidity", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidityETH", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidityETHWithPermit", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidityWithPermit", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapETHForExactTokens", amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapETHForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapETHForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapExactETHForTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactETHForTokens(&_IUniswapV2Router01.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactETHForTokens(&_IUniswapV2Router01.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapExactTokensForETH", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForETH(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForETH(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapExactTokensForTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForTokens(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForTokens(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapTokensForExactETH", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactETH(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactETH(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapTokensForExactTokens", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} diff --git a/v1/pkg/contracts/zevm/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go b/v1/pkg/contracts/zevm/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go deleted file mode 100644 index 69969100a..000000000 --- a/v1/pkg/contracts/zevm/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go +++ /dev/null @@ -1,755 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2router02 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2Router02MetaData contains all meta data concerning the IUniswapV2Router02 contract. -var IUniswapV2Router02MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETHSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETHSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2Router02ABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2Router02MetaData.ABI instead. -var IUniswapV2Router02ABI = IUniswapV2Router02MetaData.ABI - -// IUniswapV2Router02 is an auto generated Go binding around an Ethereum contract. -type IUniswapV2Router02 struct { - IUniswapV2Router02Caller // Read-only binding to the contract - IUniswapV2Router02Transactor // Write-only binding to the contract - IUniswapV2Router02Filterer // Log filterer for contract events -} - -// IUniswapV2Router02Caller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2Router02Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router02Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2Router02Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router02Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2Router02Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router02Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2Router02Session struct { - Contract *IUniswapV2Router02 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router02CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2Router02CallerSession struct { - Contract *IUniswapV2Router02Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2Router02TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2Router02TransactorSession struct { - Contract *IUniswapV2Router02Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router02Raw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2Router02Raw struct { - Contract *IUniswapV2Router02 // Generic contract binding to access the raw methods on -} - -// IUniswapV2Router02CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2Router02CallerRaw struct { - Contract *IUniswapV2Router02Caller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2Router02TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2Router02TransactorRaw struct { - Contract *IUniswapV2Router02Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2Router02 creates a new instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02(address common.Address, backend bind.ContractBackend) (*IUniswapV2Router02, error) { - contract, err := bindIUniswapV2Router02(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2Router02{IUniswapV2Router02Caller: IUniswapV2Router02Caller{contract: contract}, IUniswapV2Router02Transactor: IUniswapV2Router02Transactor{contract: contract}, IUniswapV2Router02Filterer: IUniswapV2Router02Filterer{contract: contract}}, nil -} - -// NewIUniswapV2Router02Caller creates a new read-only instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02Caller(address common.Address, caller bind.ContractCaller) (*IUniswapV2Router02Caller, error) { - contract, err := bindIUniswapV2Router02(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router02Caller{contract: contract}, nil -} - -// NewIUniswapV2Router02Transactor creates a new write-only instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02Transactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2Router02Transactor, error) { - contract, err := bindIUniswapV2Router02(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router02Transactor{contract: contract}, nil -} - -// NewIUniswapV2Router02Filterer creates a new log filterer instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02Filterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2Router02Filterer, error) { - contract, err := bindIUniswapV2Router02(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2Router02Filterer{contract: contract}, nil -} - -// bindIUniswapV2Router02 binds a generic wrapper to an already deployed contract. -func bindIUniswapV2Router02(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2Router02MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router02 *IUniswapV2Router02Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router02.Contract.IUniswapV2Router02Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router02 *IUniswapV2Router02Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.IUniswapV2Router02Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router02 *IUniswapV2Router02Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.IUniswapV2Router02Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router02 *IUniswapV2Router02CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router02.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.contract.Transact(opts, method, params...) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) WETH(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "WETH") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) WETH() (common.Address, error) { - return _IUniswapV2Router02.Contract.WETH(&_IUniswapV2Router02.CallOpts) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) WETH() (common.Address, error) { - return _IUniswapV2Router02.Contract.WETH(&_IUniswapV2Router02.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) Factory() (common.Address, error) { - return _IUniswapV2Router02.Contract.Factory(&_IUniswapV2Router02.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) Factory() (common.Address, error) { - return _IUniswapV2Router02.Contract.Factory(&_IUniswapV2Router02.CallOpts) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountIn", amountOut, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountIn(&_IUniswapV2Router02.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountIn(&_IUniswapV2Router02.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountOut", amountIn, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountOut(&_IUniswapV2Router02.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountOut(&_IUniswapV2Router02.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountsIn", amountOut, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsIn(&_IUniswapV2Router02.CallOpts, amountOut, path) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsIn(&_IUniswapV2Router02.CallOpts, amountOut, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountsOut", amountIn, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsOut(&_IUniswapV2Router02.CallOpts, amountIn, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsOut(&_IUniswapV2Router02.CallOpts, amountIn, path) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "quote", amountA, reserveA, reserveB) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.Quote(&_IUniswapV2Router02.CallOpts, amountA, reserveA, reserveB) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.Quote(&_IUniswapV2Router02.CallOpts, amountA, reserveA, reserveB) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "addLiquidity", tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "addLiquidityETH", token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidity", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETH", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETHSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETHWithPermit", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityWithPermit", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapETHForExactTokens", amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapETHForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapETHForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactETHForTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactETHForTokensSupportingFeeOnTransferTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForETH", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETH(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETH(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForETHSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForTokensSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapTokensForExactETH", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactETH(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactETH(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapTokensForExactTokens", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} diff --git a/v1/pkg/contracts/zevm/interfaces/iwzeta.sol/iweth9.go b/v1/pkg/contracts/zevm/interfaces/iwzeta.sol/iweth9.go deleted file mode 100644 index c152269a0..000000000 --- a/v1/pkg/contracts/zevm/interfaces/iwzeta.sol/iweth9.go +++ /dev/null @@ -1,977 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iwzeta - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IWETH9MetaData contains all meta data concerning the IWETH9 contract. -var IWETH9MetaData = &bind.MetaData{ - 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\":\"dst\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"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\"},{\"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\":\"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\":\"wad\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"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\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"wad\",\"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\":\"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\"}]", -} - -// IWETH9ABI is the input ABI used to generate the binding from. -// Deprecated: Use IWETH9MetaData.ABI instead. -var IWETH9ABI = IWETH9MetaData.ABI - -// IWETH9 is an auto generated Go binding around an Ethereum contract. -type IWETH9 struct { - IWETH9Caller // Read-only binding to the contract - IWETH9Transactor // Write-only binding to the contract - IWETH9Filterer // Log filterer for contract events -} - -// IWETH9Caller is an auto generated read-only Go binding around an Ethereum contract. -type IWETH9Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IWETH9Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IWETH9Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IWETH9Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IWETH9Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IWETH9Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IWETH9Session struct { - Contract *IWETH9 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IWETH9CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IWETH9CallerSession struct { - Contract *IWETH9Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IWETH9TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IWETH9TransactorSession struct { - Contract *IWETH9Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IWETH9Raw is an auto generated low-level Go binding around an Ethereum contract. -type IWETH9Raw struct { - Contract *IWETH9 // Generic contract binding to access the raw methods on -} - -// IWETH9CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IWETH9CallerRaw struct { - Contract *IWETH9Caller // Generic read-only contract binding to access the raw methods on -} - -// IWETH9TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IWETH9TransactorRaw struct { - Contract *IWETH9Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIWETH9 creates a new instance of IWETH9, bound to a specific deployed contract. -func NewIWETH9(address common.Address, backend bind.ContractBackend) (*IWETH9, error) { - contract, err := bindIWETH9(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IWETH9{IWETH9Caller: IWETH9Caller{contract: contract}, IWETH9Transactor: IWETH9Transactor{contract: contract}, IWETH9Filterer: IWETH9Filterer{contract: contract}}, nil -} - -// NewIWETH9Caller creates a new read-only instance of IWETH9, bound to a specific deployed contract. -func NewIWETH9Caller(address common.Address, caller bind.ContractCaller) (*IWETH9Caller, error) { - contract, err := bindIWETH9(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IWETH9Caller{contract: contract}, nil -} - -// NewIWETH9Transactor creates a new write-only instance of IWETH9, bound to a specific deployed contract. -func NewIWETH9Transactor(address common.Address, transactor bind.ContractTransactor) (*IWETH9Transactor, error) { - contract, err := bindIWETH9(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IWETH9Transactor{contract: contract}, nil -} - -// NewIWETH9Filterer creates a new log filterer instance of IWETH9, bound to a specific deployed contract. -func NewIWETH9Filterer(address common.Address, filterer bind.ContractFilterer) (*IWETH9Filterer, error) { - contract, err := bindIWETH9(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IWETH9Filterer{contract: contract}, nil -} - -// bindIWETH9 binds a generic wrapper to an already deployed contract. -func bindIWETH9(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IWETH9MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IWETH9 *IWETH9Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IWETH9.Contract.IWETH9Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IWETH9 *IWETH9Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IWETH9.Contract.IWETH9Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IWETH9 *IWETH9Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IWETH9.Contract.IWETH9Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IWETH9 *IWETH9CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IWETH9.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IWETH9 *IWETH9TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IWETH9.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IWETH9 *IWETH9TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IWETH9.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IWETH9 *IWETH9Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IWETH9.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IWETH9 *IWETH9Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IWETH9.Contract.Allowance(&_IWETH9.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IWETH9 *IWETH9CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IWETH9.Contract.Allowance(&_IWETH9.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IWETH9 *IWETH9Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { - var out []interface{} - err := _IWETH9.contract.Call(opts, &out, "balanceOf", owner) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IWETH9 *IWETH9Session) BalanceOf(owner common.Address) (*big.Int, error) { - return _IWETH9.Contract.BalanceOf(&_IWETH9.CallOpts, owner) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IWETH9 *IWETH9CallerSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _IWETH9.Contract.BalanceOf(&_IWETH9.CallOpts, owner) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IWETH9 *IWETH9Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IWETH9.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IWETH9 *IWETH9Session) TotalSupply() (*big.Int, error) { - return _IWETH9.Contract.TotalSupply(&_IWETH9.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IWETH9 *IWETH9CallerSession) TotalSupply() (*big.Int, error) { - return _IWETH9.Contract.TotalSupply(&_IWETH9.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9Transactor) Approve(opts *bind.TransactOpts, spender common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.contract.Transact(opts, "approve", spender, wad) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9Session) Approve(spender common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.Approve(&_IWETH9.TransactOpts, spender, wad) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9TransactorSession) Approve(spender common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.Approve(&_IWETH9.TransactOpts, spender, wad) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_IWETH9 *IWETH9Transactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IWETH9.contract.Transact(opts, "deposit") -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_IWETH9 *IWETH9Session) Deposit() (*types.Transaction, error) { - return _IWETH9.Contract.Deposit(&_IWETH9.TransactOpts) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_IWETH9 *IWETH9TransactorSession) Deposit() (*types.Transaction, error) { - return _IWETH9.Contract.Deposit(&_IWETH9.TransactOpts) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9Transactor) Transfer(opts *bind.TransactOpts, to common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.contract.Transact(opts, "transfer", to, wad) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9Session) Transfer(to common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.Transfer(&_IWETH9.TransactOpts, to, wad) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9TransactorSession) Transfer(to common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.Transfer(&_IWETH9.TransactOpts, to, wad) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.contract.Transact(opts, "transferFrom", from, to, wad) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9Session) TransferFrom(from common.Address, to common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.TransferFrom(&_IWETH9.TransactOpts, from, to, wad) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 wad) returns(bool) -func (_IWETH9 *IWETH9TransactorSession) TransferFrom(from common.Address, to common.Address, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.TransferFrom(&_IWETH9.TransactOpts, from, to, wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_IWETH9 *IWETH9Transactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error) { - return _IWETH9.contract.Transact(opts, "withdraw", wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_IWETH9 *IWETH9Session) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.Withdraw(&_IWETH9.TransactOpts, wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_IWETH9 *IWETH9TransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _IWETH9.Contract.Withdraw(&_IWETH9.TransactOpts, wad) -} - -// IWETH9ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IWETH9 contract. -type IWETH9ApprovalIterator struct { - Event *IWETH9Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IWETH9ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IWETH9Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IWETH9Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IWETH9ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IWETH9ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IWETH9Approval represents a Approval event raised by the IWETH9 contract. -type IWETH9Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IWETH9 *IWETH9Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IWETH9ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IWETH9.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &IWETH9ApprovalIterator{contract: _IWETH9.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IWETH9 *IWETH9Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IWETH9Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IWETH9.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IWETH9Approval) - if err := _IWETH9.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IWETH9 *IWETH9Filterer) ParseApproval(log types.Log) (*IWETH9Approval, error) { - event := new(IWETH9Approval) - if err := _IWETH9.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IWETH9DepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the IWETH9 contract. -type IWETH9DepositIterator struct { - Event *IWETH9Deposit // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IWETH9DepositIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IWETH9Deposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IWETH9Deposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IWETH9DepositIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IWETH9DepositIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IWETH9Deposit represents a Deposit event raised by the IWETH9 contract. -type IWETH9Deposit struct { - Dst common.Address - Wad *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c. -// -// Solidity: event Deposit(address indexed dst, uint256 wad) -func (_IWETH9 *IWETH9Filterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*IWETH9DepositIterator, error) { - - var dstRule []interface{} - for _, dstItem := range dst { - dstRule = append(dstRule, dstItem) - } - - logs, sub, err := _IWETH9.contract.FilterLogs(opts, "Deposit", dstRule) - if err != nil { - return nil, err - } - return &IWETH9DepositIterator{contract: _IWETH9.contract, event: "Deposit", logs: logs, sub: sub}, nil -} - -// WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c. -// -// Solidity: event Deposit(address indexed dst, uint256 wad) -func (_IWETH9 *IWETH9Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *IWETH9Deposit, dst []common.Address) (event.Subscription, error) { - - var dstRule []interface{} - for _, dstItem := range dst { - dstRule = append(dstRule, dstItem) - } - - logs, sub, err := _IWETH9.contract.WatchLogs(opts, "Deposit", dstRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IWETH9Deposit) - if err := _IWETH9.contract.UnpackLog(event, "Deposit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c. -// -// Solidity: event Deposit(address indexed dst, uint256 wad) -func (_IWETH9 *IWETH9Filterer) ParseDeposit(log types.Log) (*IWETH9Deposit, error) { - event := new(IWETH9Deposit) - if err := _IWETH9.contract.UnpackLog(event, "Deposit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IWETH9TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IWETH9 contract. -type IWETH9TransferIterator struct { - Event *IWETH9Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IWETH9TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IWETH9Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IWETH9Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IWETH9TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IWETH9TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IWETH9Transfer represents a Transfer event raised by the IWETH9 contract. -type IWETH9Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IWETH9 *IWETH9Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IWETH9TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IWETH9.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &IWETH9TransferIterator{contract: _IWETH9.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IWETH9 *IWETH9Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IWETH9Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IWETH9.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IWETH9Transfer) - if err := _IWETH9.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IWETH9 *IWETH9Filterer) ParseTransfer(log types.Log) (*IWETH9Transfer, error) { - event := new(IWETH9Transfer) - if err := _IWETH9.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IWETH9WithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the IWETH9 contract. -type IWETH9WithdrawalIterator struct { - Event *IWETH9Withdrawal // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IWETH9WithdrawalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IWETH9Withdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IWETH9Withdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IWETH9WithdrawalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IWETH9WithdrawalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IWETH9Withdrawal represents a Withdrawal event raised by the IWETH9 contract. -type IWETH9Withdrawal struct { - Src common.Address - Wad *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWithdrawal is a free log retrieval operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65. -// -// Solidity: event Withdrawal(address indexed src, uint256 wad) -func (_IWETH9 *IWETH9Filterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*IWETH9WithdrawalIterator, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - - logs, sub, err := _IWETH9.contract.FilterLogs(opts, "Withdrawal", srcRule) - if err != nil { - return nil, err - } - return &IWETH9WithdrawalIterator{contract: _IWETH9.contract, event: "Withdrawal", logs: logs, sub: sub}, nil -} - -// WatchWithdrawal is a free log subscription operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65. -// -// Solidity: event Withdrawal(address indexed src, uint256 wad) -func (_IWETH9 *IWETH9Filterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *IWETH9Withdrawal, src []common.Address) (event.Subscription, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - - logs, sub, err := _IWETH9.contract.WatchLogs(opts, "Withdrawal", srcRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IWETH9Withdrawal) - if err := _IWETH9.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWithdrawal is a log parse operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65. -// -// Solidity: event Withdrawal(address indexed src, uint256 wad) -func (_IWETH9 *IWETH9Filterer) ParseWithdrawal(log types.Log) (*IWETH9Withdrawal, error) { - event := new(IWETH9Withdrawal) - if err := _IWETH9.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20.go b/v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20.go deleted file mode 100644 index 115677f6f..000000000 --- a/v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20.go +++ /dev/null @@ -1,463 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package izrc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IZRC20MetaData contains all meta data concerning the IZRC20 contract. -var IZRC20MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"PROTOCOL_FLAT_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"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\":\"bytes\",\"name\":\"to\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawGasFee\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// IZRC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use IZRC20MetaData.ABI instead. -var IZRC20ABI = IZRC20MetaData.ABI - -// IZRC20 is an auto generated Go binding around an Ethereum contract. -type IZRC20 struct { - IZRC20Caller // Read-only binding to the contract - IZRC20Transactor // Write-only binding to the contract - IZRC20Filterer // Log filterer for contract events -} - -// IZRC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type IZRC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IZRC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IZRC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IZRC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IZRC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IZRC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IZRC20Session struct { - Contract *IZRC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IZRC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IZRC20CallerSession struct { - Contract *IZRC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IZRC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IZRC20TransactorSession struct { - Contract *IZRC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IZRC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type IZRC20Raw struct { - Contract *IZRC20 // Generic contract binding to access the raw methods on -} - -// IZRC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IZRC20CallerRaw struct { - Contract *IZRC20Caller // Generic read-only contract binding to access the raw methods on -} - -// IZRC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IZRC20TransactorRaw struct { - Contract *IZRC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIZRC20 creates a new instance of IZRC20, bound to a specific deployed contract. -func NewIZRC20(address common.Address, backend bind.ContractBackend) (*IZRC20, error) { - contract, err := bindIZRC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IZRC20{IZRC20Caller: IZRC20Caller{contract: contract}, IZRC20Transactor: IZRC20Transactor{contract: contract}, IZRC20Filterer: IZRC20Filterer{contract: contract}}, nil -} - -// NewIZRC20Caller creates a new read-only instance of IZRC20, bound to a specific deployed contract. -func NewIZRC20Caller(address common.Address, caller bind.ContractCaller) (*IZRC20Caller, error) { - contract, err := bindIZRC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IZRC20Caller{contract: contract}, nil -} - -// NewIZRC20Transactor creates a new write-only instance of IZRC20, bound to a specific deployed contract. -func NewIZRC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IZRC20Transactor, error) { - contract, err := bindIZRC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IZRC20Transactor{contract: contract}, nil -} - -// NewIZRC20Filterer creates a new log filterer instance of IZRC20, bound to a specific deployed contract. -func NewIZRC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IZRC20Filterer, error) { - contract, err := bindIZRC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IZRC20Filterer{contract: contract}, nil -} - -// bindIZRC20 binds a generic wrapper to an already deployed contract. -func bindIZRC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IZRC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IZRC20 *IZRC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IZRC20.Contract.IZRC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IZRC20 *IZRC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IZRC20.Contract.IZRC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IZRC20 *IZRC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IZRC20.Contract.IZRC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IZRC20 *IZRC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IZRC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IZRC20 *IZRC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IZRC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IZRC20 *IZRC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IZRC20.Contract.contract.Transact(opts, method, params...) -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_IZRC20 *IZRC20Caller) PROTOCOLFLATFEE(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IZRC20.contract.Call(opts, &out, "PROTOCOL_FLAT_FEE") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_IZRC20 *IZRC20Session) PROTOCOLFLATFEE() (*big.Int, error) { - return _IZRC20.Contract.PROTOCOLFLATFEE(&_IZRC20.CallOpts) -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_IZRC20 *IZRC20CallerSession) PROTOCOLFLATFEE() (*big.Int, error) { - return _IZRC20.Contract.PROTOCOLFLATFEE(&_IZRC20.CallOpts) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IZRC20 *IZRC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IZRC20.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IZRC20 *IZRC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IZRC20.Contract.Allowance(&_IZRC20.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IZRC20 *IZRC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IZRC20.Contract.Allowance(&_IZRC20.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IZRC20 *IZRC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _IZRC20.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IZRC20 *IZRC20Session) BalanceOf(account common.Address) (*big.Int, error) { - return _IZRC20.Contract.BalanceOf(&_IZRC20.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IZRC20 *IZRC20CallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _IZRC20.Contract.BalanceOf(&_IZRC20.CallOpts, account) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IZRC20 *IZRC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IZRC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IZRC20 *IZRC20Session) TotalSupply() (*big.Int, error) { - return _IZRC20.Contract.TotalSupply(&_IZRC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IZRC20 *IZRC20CallerSession) TotalSupply() (*big.Int, error) { - return _IZRC20.Contract.TotalSupply(&_IZRC20.CallOpts) -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_IZRC20 *IZRC20Caller) WithdrawGasFee(opts *bind.CallOpts) (common.Address, *big.Int, error) { - var out []interface{} - err := _IZRC20.contract.Call(opts, &out, "withdrawGasFee") - - if err != nil { - return *new(common.Address), *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return out0, out1, err - -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_IZRC20 *IZRC20Session) WithdrawGasFee() (common.Address, *big.Int, error) { - return _IZRC20.Contract.WithdrawGasFee(&_IZRC20.CallOpts) -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_IZRC20 *IZRC20CallerSession) WithdrawGasFee() (common.Address, *big.Int, error) { - return _IZRC20.Contract.WithdrawGasFee(&_IZRC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Approve(&_IZRC20.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Approve(&_IZRC20.TransactOpts, spender, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Transactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.contract.Transact(opts, "burn", amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Session) Burn(amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Burn(&_IZRC20.TransactOpts, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_IZRC20 *IZRC20TransactorSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Burn(&_IZRC20.TransactOpts, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Transactor) Deposit(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.contract.Transact(opts, "deposit", to, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Session) Deposit(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Deposit(&_IZRC20.TransactOpts, to, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20TransactorSession) Deposit(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Deposit(&_IZRC20.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.contract.Transact(opts, "transfer", recipient, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Transfer(&_IZRC20.TransactOpts, recipient, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Transfer(&_IZRC20.TransactOpts, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.contract.Transact(opts, "transferFrom", sender, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.TransferFrom(&_IZRC20.TransactOpts, sender, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.TransferFrom(&_IZRC20.TransactOpts, sender, recipient, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Transactor) Withdraw(opts *bind.TransactOpts, to []byte, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.contract.Transact(opts, "withdraw", to, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20Session) Withdraw(to []byte, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Withdraw(&_IZRC20.TransactOpts, to, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_IZRC20 *IZRC20TransactorSession) Withdraw(to []byte, amount *big.Int) (*types.Transaction, error) { - return _IZRC20.Contract.Withdraw(&_IZRC20.TransactOpts, to, amount) -} diff --git a/v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20metadata.go b/v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20metadata.go deleted file mode 100644 index d60ed6ffe..000000000 --- a/v1/pkg/contracts/zevm/interfaces/izrc20.sol/izrc20metadata.go +++ /dev/null @@ -1,556 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package izrc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IZRC20MetadataMetaData contains all meta data concerning the IZRC20Metadata contract. -var IZRC20MetadataMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"PROTOCOL_FLAT_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"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\":\"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\":\"bytes\",\"name\":\"to\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawGasFee\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// IZRC20MetadataABI is the input ABI used to generate the binding from. -// Deprecated: Use IZRC20MetadataMetaData.ABI instead. -var IZRC20MetadataABI = IZRC20MetadataMetaData.ABI - -// IZRC20Metadata is an auto generated Go binding around an Ethereum contract. -type IZRC20Metadata struct { - IZRC20MetadataCaller // Read-only binding to the contract - IZRC20MetadataTransactor // Write-only binding to the contract - IZRC20MetadataFilterer // Log filterer for contract events -} - -// IZRC20MetadataCaller is an auto generated read-only Go binding around an Ethereum contract. -type IZRC20MetadataCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IZRC20MetadataTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IZRC20MetadataTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IZRC20MetadataFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IZRC20MetadataFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IZRC20MetadataSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IZRC20MetadataSession struct { - Contract *IZRC20Metadata // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IZRC20MetadataCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IZRC20MetadataCallerSession struct { - Contract *IZRC20MetadataCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IZRC20MetadataTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IZRC20MetadataTransactorSession struct { - Contract *IZRC20MetadataTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IZRC20MetadataRaw is an auto generated low-level Go binding around an Ethereum contract. -type IZRC20MetadataRaw struct { - Contract *IZRC20Metadata // Generic contract binding to access the raw methods on -} - -// IZRC20MetadataCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IZRC20MetadataCallerRaw struct { - Contract *IZRC20MetadataCaller // Generic read-only contract binding to access the raw methods on -} - -// IZRC20MetadataTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IZRC20MetadataTransactorRaw struct { - Contract *IZRC20MetadataTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIZRC20Metadata creates a new instance of IZRC20Metadata, bound to a specific deployed contract. -func NewIZRC20Metadata(address common.Address, backend bind.ContractBackend) (*IZRC20Metadata, error) { - contract, err := bindIZRC20Metadata(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IZRC20Metadata{IZRC20MetadataCaller: IZRC20MetadataCaller{contract: contract}, IZRC20MetadataTransactor: IZRC20MetadataTransactor{contract: contract}, IZRC20MetadataFilterer: IZRC20MetadataFilterer{contract: contract}}, nil -} - -// NewIZRC20MetadataCaller creates a new read-only instance of IZRC20Metadata, bound to a specific deployed contract. -func NewIZRC20MetadataCaller(address common.Address, caller bind.ContractCaller) (*IZRC20MetadataCaller, error) { - contract, err := bindIZRC20Metadata(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IZRC20MetadataCaller{contract: contract}, nil -} - -// NewIZRC20MetadataTransactor creates a new write-only instance of IZRC20Metadata, bound to a specific deployed contract. -func NewIZRC20MetadataTransactor(address common.Address, transactor bind.ContractTransactor) (*IZRC20MetadataTransactor, error) { - contract, err := bindIZRC20Metadata(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IZRC20MetadataTransactor{contract: contract}, nil -} - -// NewIZRC20MetadataFilterer creates a new log filterer instance of IZRC20Metadata, bound to a specific deployed contract. -func NewIZRC20MetadataFilterer(address common.Address, filterer bind.ContractFilterer) (*IZRC20MetadataFilterer, error) { - contract, err := bindIZRC20Metadata(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IZRC20MetadataFilterer{contract: contract}, nil -} - -// bindIZRC20Metadata binds a generic wrapper to an already deployed contract. -func bindIZRC20Metadata(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IZRC20MetadataMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IZRC20Metadata *IZRC20MetadataRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IZRC20Metadata.Contract.IZRC20MetadataCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IZRC20Metadata *IZRC20MetadataRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.IZRC20MetadataTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IZRC20Metadata *IZRC20MetadataRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.IZRC20MetadataTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IZRC20Metadata *IZRC20MetadataCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IZRC20Metadata.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IZRC20Metadata *IZRC20MetadataTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IZRC20Metadata *IZRC20MetadataTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.contract.Transact(opts, method, params...) -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCaller) PROTOCOLFLATFEE(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "PROTOCOL_FLAT_FEE") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataSession) PROTOCOLFLATFEE() (*big.Int, error) { - return _IZRC20Metadata.Contract.PROTOCOLFLATFEE(&_IZRC20Metadata.CallOpts) -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) PROTOCOLFLATFEE() (*big.Int, error) { - return _IZRC20Metadata.Contract.PROTOCOLFLATFEE(&_IZRC20Metadata.CallOpts) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IZRC20Metadata.Contract.Allowance(&_IZRC20Metadata.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IZRC20Metadata.Contract.Allowance(&_IZRC20Metadata.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataSession) BalanceOf(account common.Address) (*big.Int, error) { - return _IZRC20Metadata.Contract.BalanceOf(&_IZRC20Metadata.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _IZRC20Metadata.Contract.BalanceOf(&_IZRC20Metadata.CallOpts, account) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IZRC20Metadata *IZRC20MetadataCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IZRC20Metadata *IZRC20MetadataSession) Decimals() (uint8, error) { - return _IZRC20Metadata.Contract.Decimals(&_IZRC20Metadata.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) Decimals() (uint8, error) { - return _IZRC20Metadata.Contract.Decimals(&_IZRC20Metadata.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IZRC20Metadata *IZRC20MetadataCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IZRC20Metadata *IZRC20MetadataSession) Name() (string, error) { - return _IZRC20Metadata.Contract.Name(&_IZRC20Metadata.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) Name() (string, error) { - return _IZRC20Metadata.Contract.Name(&_IZRC20Metadata.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IZRC20Metadata *IZRC20MetadataCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IZRC20Metadata *IZRC20MetadataSession) Symbol() (string, error) { - return _IZRC20Metadata.Contract.Symbol(&_IZRC20Metadata.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) Symbol() (string, error) { - return _IZRC20Metadata.Contract.Symbol(&_IZRC20Metadata.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataSession) TotalSupply() (*big.Int, error) { - return _IZRC20Metadata.Contract.TotalSupply(&_IZRC20Metadata.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) TotalSupply() (*big.Int, error) { - return _IZRC20Metadata.Contract.TotalSupply(&_IZRC20Metadata.CallOpts) -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_IZRC20Metadata *IZRC20MetadataCaller) WithdrawGasFee(opts *bind.CallOpts) (common.Address, *big.Int, error) { - var out []interface{} - err := _IZRC20Metadata.contract.Call(opts, &out, "withdrawGasFee") - - if err != nil { - return *new(common.Address), *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return out0, out1, err - -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_IZRC20Metadata *IZRC20MetadataSession) WithdrawGasFee() (common.Address, *big.Int, error) { - return _IZRC20Metadata.Contract.WithdrawGasFee(&_IZRC20Metadata.CallOpts) -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_IZRC20Metadata *IZRC20MetadataCallerSession) WithdrawGasFee() (common.Address, *big.Int, error) { - return _IZRC20Metadata.Contract.WithdrawGasFee(&_IZRC20Metadata.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Approve(&_IZRC20Metadata.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Approve(&_IZRC20Metadata.TransactOpts, spender, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.contract.Transact(opts, "burn", amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Burn(&_IZRC20Metadata.TransactOpts, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactorSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Burn(&_IZRC20Metadata.TransactOpts, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactor) Deposit(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.contract.Transact(opts, "deposit", to, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataSession) Deposit(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Deposit(&_IZRC20Metadata.TransactOpts, to, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactorSession) Deposit(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Deposit(&_IZRC20Metadata.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.contract.Transact(opts, "transfer", recipient, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Transfer(&_IZRC20Metadata.TransactOpts, recipient, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Transfer(&_IZRC20Metadata.TransactOpts, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.contract.Transact(opts, "transferFrom", sender, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.TransferFrom(&_IZRC20Metadata.TransactOpts, sender, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.TransferFrom(&_IZRC20Metadata.TransactOpts, sender, recipient, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactor) Withdraw(opts *bind.TransactOpts, to []byte, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.contract.Transact(opts, "withdraw", to, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataSession) Withdraw(to []byte, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Withdraw(&_IZRC20Metadata.TransactOpts, to, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_IZRC20Metadata *IZRC20MetadataTransactorSession) Withdraw(to []byte, amount *big.Int) (*types.Transaction, error) { - return _IZRC20Metadata.Contract.Withdraw(&_IZRC20Metadata.TransactOpts, to, amount) -} diff --git a/v1/pkg/contracts/zevm/interfaces/izrc20.sol/zrc20events.go b/v1/pkg/contracts/zevm/interfaces/izrc20.sol/zrc20events.go deleted file mode 100644 index 3e3efb414..000000000 --- a/v1/pkg/contracts/zevm/interfaces/izrc20.sol/zrc20events.go +++ /dev/null @@ -1,1185 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package izrc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZRC20EventsMetaData contains all meta data concerning the ZRC20Events contract. -var ZRC20EventsMetaData = &bind.MetaData{ - 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\":false,\"internalType\":\"bytes\",\"name\":\"from\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"}],\"name\":\"UpdatedGasLimit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFlatFee\",\"type\":\"uint256\"}],\"name\":\"UpdatedProtocolFlatFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"systemContract\",\"type\":\"address\"}],\"name\":\"UpdatedSystemContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"to\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"gasFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFlatFee\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"}]", -} - -// ZRC20EventsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZRC20EventsMetaData.ABI instead. -var ZRC20EventsABI = ZRC20EventsMetaData.ABI - -// ZRC20Events is an auto generated Go binding around an Ethereum contract. -type ZRC20Events struct { - ZRC20EventsCaller // Read-only binding to the contract - ZRC20EventsTransactor // Write-only binding to the contract - ZRC20EventsFilterer // Log filterer for contract events -} - -// ZRC20EventsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZRC20EventsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20EventsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZRC20EventsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20EventsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZRC20EventsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20EventsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZRC20EventsSession struct { - Contract *ZRC20Events // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZRC20EventsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZRC20EventsCallerSession struct { - Contract *ZRC20EventsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZRC20EventsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZRC20EventsTransactorSession struct { - Contract *ZRC20EventsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZRC20EventsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZRC20EventsRaw struct { - Contract *ZRC20Events // Generic contract binding to access the raw methods on -} - -// ZRC20EventsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZRC20EventsCallerRaw struct { - Contract *ZRC20EventsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZRC20EventsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZRC20EventsTransactorRaw struct { - Contract *ZRC20EventsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZRC20Events creates a new instance of ZRC20Events, bound to a specific deployed contract. -func NewZRC20Events(address common.Address, backend bind.ContractBackend) (*ZRC20Events, error) { - contract, err := bindZRC20Events(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZRC20Events{ZRC20EventsCaller: ZRC20EventsCaller{contract: contract}, ZRC20EventsTransactor: ZRC20EventsTransactor{contract: contract}, ZRC20EventsFilterer: ZRC20EventsFilterer{contract: contract}}, nil -} - -// NewZRC20EventsCaller creates a new read-only instance of ZRC20Events, bound to a specific deployed contract. -func NewZRC20EventsCaller(address common.Address, caller bind.ContractCaller) (*ZRC20EventsCaller, error) { - contract, err := bindZRC20Events(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZRC20EventsCaller{contract: contract}, nil -} - -// NewZRC20EventsTransactor creates a new write-only instance of ZRC20Events, bound to a specific deployed contract. -func NewZRC20EventsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZRC20EventsTransactor, error) { - contract, err := bindZRC20Events(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZRC20EventsTransactor{contract: contract}, nil -} - -// NewZRC20EventsFilterer creates a new log filterer instance of ZRC20Events, bound to a specific deployed contract. -func NewZRC20EventsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZRC20EventsFilterer, error) { - contract, err := bindZRC20Events(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZRC20EventsFilterer{contract: contract}, nil -} - -// bindZRC20Events binds a generic wrapper to an already deployed contract. -func bindZRC20Events(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZRC20EventsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZRC20Events *ZRC20EventsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZRC20Events.Contract.ZRC20EventsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZRC20Events *ZRC20EventsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZRC20Events.Contract.ZRC20EventsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZRC20Events *ZRC20EventsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZRC20Events.Contract.ZRC20EventsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZRC20Events *ZRC20EventsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZRC20Events.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZRC20Events *ZRC20EventsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZRC20Events.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZRC20Events *ZRC20EventsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZRC20Events.Contract.contract.Transact(opts, method, params...) -} - -// ZRC20EventsApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ZRC20Events contract. -type ZRC20EventsApprovalIterator struct { - Event *ZRC20EventsApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20EventsApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20EventsApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20EventsApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20EventsApproval represents a Approval event raised by the ZRC20Events contract. -type ZRC20EventsApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ZRC20EventsApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZRC20Events.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ZRC20EventsApprovalIterator{contract: _ZRC20Events.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZRC20EventsApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZRC20Events.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20EventsApproval) - if err := _ZRC20Events.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) ParseApproval(log types.Log) (*ZRC20EventsApproval, error) { - event := new(ZRC20EventsApproval) - if err := _ZRC20Events.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20EventsDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the ZRC20Events contract. -type ZRC20EventsDepositIterator struct { - Event *ZRC20EventsDeposit // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20EventsDepositIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsDeposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsDeposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20EventsDepositIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20EventsDepositIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20EventsDeposit represents a Deposit event raised by the ZRC20Events contract. -type ZRC20EventsDeposit struct { - From []byte - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDeposit is a free log retrieval operation binding the contract event 0x67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab3. -// -// Solidity: event Deposit(bytes from, address indexed to, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) FilterDeposit(opts *bind.FilterOpts, to []common.Address) (*ZRC20EventsDepositIterator, error) { - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20Events.contract.FilterLogs(opts, "Deposit", toRule) - if err != nil { - return nil, err - } - return &ZRC20EventsDepositIterator{contract: _ZRC20Events.contract, event: "Deposit", logs: logs, sub: sub}, nil -} - -// WatchDeposit is a free log subscription operation binding the contract event 0x67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab3. -// -// Solidity: event Deposit(bytes from, address indexed to, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *ZRC20EventsDeposit, to []common.Address) (event.Subscription, error) { - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20Events.contract.WatchLogs(opts, "Deposit", toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20EventsDeposit) - if err := _ZRC20Events.contract.UnpackLog(event, "Deposit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDeposit is a log parse operation binding the contract event 0x67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab3. -// -// Solidity: event Deposit(bytes from, address indexed to, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) ParseDeposit(log types.Log) (*ZRC20EventsDeposit, error) { - event := new(ZRC20EventsDeposit) - if err := _ZRC20Events.contract.UnpackLog(event, "Deposit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20EventsTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ZRC20Events contract. -type ZRC20EventsTransferIterator struct { - Event *ZRC20EventsTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20EventsTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20EventsTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20EventsTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20EventsTransfer represents a Transfer event raised by the ZRC20Events contract. -type ZRC20EventsTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ZRC20EventsTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20Events.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ZRC20EventsTransferIterator{contract: _ZRC20Events.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ZRC20EventsTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20Events.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20EventsTransfer) - if err := _ZRC20Events.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZRC20Events *ZRC20EventsFilterer) ParseTransfer(log types.Log) (*ZRC20EventsTransfer, error) { - event := new(ZRC20EventsTransfer) - if err := _ZRC20Events.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20EventsUpdatedGasLimitIterator is returned from FilterUpdatedGasLimit and is used to iterate over the raw logs and unpacked data for UpdatedGasLimit events raised by the ZRC20Events contract. -type ZRC20EventsUpdatedGasLimitIterator struct { - Event *ZRC20EventsUpdatedGasLimit // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20EventsUpdatedGasLimitIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsUpdatedGasLimit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsUpdatedGasLimit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20EventsUpdatedGasLimitIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20EventsUpdatedGasLimitIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20EventsUpdatedGasLimit represents a UpdatedGasLimit event raised by the ZRC20Events contract. -type ZRC20EventsUpdatedGasLimit struct { - GasLimit *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedGasLimit is a free log retrieval operation binding the contract event 0xff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a. -// -// Solidity: event UpdatedGasLimit(uint256 gasLimit) -func (_ZRC20Events *ZRC20EventsFilterer) FilterUpdatedGasLimit(opts *bind.FilterOpts) (*ZRC20EventsUpdatedGasLimitIterator, error) { - - logs, sub, err := _ZRC20Events.contract.FilterLogs(opts, "UpdatedGasLimit") - if err != nil { - return nil, err - } - return &ZRC20EventsUpdatedGasLimitIterator{contract: _ZRC20Events.contract, event: "UpdatedGasLimit", logs: logs, sub: sub}, nil -} - -// WatchUpdatedGasLimit is a free log subscription operation binding the contract event 0xff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a. -// -// Solidity: event UpdatedGasLimit(uint256 gasLimit) -func (_ZRC20Events *ZRC20EventsFilterer) WatchUpdatedGasLimit(opts *bind.WatchOpts, sink chan<- *ZRC20EventsUpdatedGasLimit) (event.Subscription, error) { - - logs, sub, err := _ZRC20Events.contract.WatchLogs(opts, "UpdatedGasLimit") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20EventsUpdatedGasLimit) - if err := _ZRC20Events.contract.UnpackLog(event, "UpdatedGasLimit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedGasLimit is a log parse operation binding the contract event 0xff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a. -// -// Solidity: event UpdatedGasLimit(uint256 gasLimit) -func (_ZRC20Events *ZRC20EventsFilterer) ParseUpdatedGasLimit(log types.Log) (*ZRC20EventsUpdatedGasLimit, error) { - event := new(ZRC20EventsUpdatedGasLimit) - if err := _ZRC20Events.contract.UnpackLog(event, "UpdatedGasLimit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20EventsUpdatedProtocolFlatFeeIterator is returned from FilterUpdatedProtocolFlatFee and is used to iterate over the raw logs and unpacked data for UpdatedProtocolFlatFee events raised by the ZRC20Events contract. -type ZRC20EventsUpdatedProtocolFlatFeeIterator struct { - Event *ZRC20EventsUpdatedProtocolFlatFee // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20EventsUpdatedProtocolFlatFeeIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsUpdatedProtocolFlatFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsUpdatedProtocolFlatFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20EventsUpdatedProtocolFlatFeeIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20EventsUpdatedProtocolFlatFeeIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20EventsUpdatedProtocolFlatFee represents a UpdatedProtocolFlatFee event raised by the ZRC20Events contract. -type ZRC20EventsUpdatedProtocolFlatFee struct { - ProtocolFlatFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedProtocolFlatFee is a free log retrieval operation binding the contract event 0xef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f. -// -// Solidity: event UpdatedProtocolFlatFee(uint256 protocolFlatFee) -func (_ZRC20Events *ZRC20EventsFilterer) FilterUpdatedProtocolFlatFee(opts *bind.FilterOpts) (*ZRC20EventsUpdatedProtocolFlatFeeIterator, error) { - - logs, sub, err := _ZRC20Events.contract.FilterLogs(opts, "UpdatedProtocolFlatFee") - if err != nil { - return nil, err - } - return &ZRC20EventsUpdatedProtocolFlatFeeIterator{contract: _ZRC20Events.contract, event: "UpdatedProtocolFlatFee", logs: logs, sub: sub}, nil -} - -// WatchUpdatedProtocolFlatFee is a free log subscription operation binding the contract event 0xef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f. -// -// Solidity: event UpdatedProtocolFlatFee(uint256 protocolFlatFee) -func (_ZRC20Events *ZRC20EventsFilterer) WatchUpdatedProtocolFlatFee(opts *bind.WatchOpts, sink chan<- *ZRC20EventsUpdatedProtocolFlatFee) (event.Subscription, error) { - - logs, sub, err := _ZRC20Events.contract.WatchLogs(opts, "UpdatedProtocolFlatFee") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20EventsUpdatedProtocolFlatFee) - if err := _ZRC20Events.contract.UnpackLog(event, "UpdatedProtocolFlatFee", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedProtocolFlatFee is a log parse operation binding the contract event 0xef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f. -// -// Solidity: event UpdatedProtocolFlatFee(uint256 protocolFlatFee) -func (_ZRC20Events *ZRC20EventsFilterer) ParseUpdatedProtocolFlatFee(log types.Log) (*ZRC20EventsUpdatedProtocolFlatFee, error) { - event := new(ZRC20EventsUpdatedProtocolFlatFee) - if err := _ZRC20Events.contract.UnpackLog(event, "UpdatedProtocolFlatFee", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20EventsUpdatedSystemContractIterator is returned from FilterUpdatedSystemContract and is used to iterate over the raw logs and unpacked data for UpdatedSystemContract events raised by the ZRC20Events contract. -type ZRC20EventsUpdatedSystemContractIterator struct { - Event *ZRC20EventsUpdatedSystemContract // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20EventsUpdatedSystemContractIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsUpdatedSystemContract) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsUpdatedSystemContract) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20EventsUpdatedSystemContractIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20EventsUpdatedSystemContractIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20EventsUpdatedSystemContract represents a UpdatedSystemContract event raised by the ZRC20Events contract. -type ZRC20EventsUpdatedSystemContract struct { - SystemContract common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedSystemContract is a free log retrieval operation binding the contract event 0xd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae. -// -// Solidity: event UpdatedSystemContract(address systemContract) -func (_ZRC20Events *ZRC20EventsFilterer) FilterUpdatedSystemContract(opts *bind.FilterOpts) (*ZRC20EventsUpdatedSystemContractIterator, error) { - - logs, sub, err := _ZRC20Events.contract.FilterLogs(opts, "UpdatedSystemContract") - if err != nil { - return nil, err - } - return &ZRC20EventsUpdatedSystemContractIterator{contract: _ZRC20Events.contract, event: "UpdatedSystemContract", logs: logs, sub: sub}, nil -} - -// WatchUpdatedSystemContract is a free log subscription operation binding the contract event 0xd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae. -// -// Solidity: event UpdatedSystemContract(address systemContract) -func (_ZRC20Events *ZRC20EventsFilterer) WatchUpdatedSystemContract(opts *bind.WatchOpts, sink chan<- *ZRC20EventsUpdatedSystemContract) (event.Subscription, error) { - - logs, sub, err := _ZRC20Events.contract.WatchLogs(opts, "UpdatedSystemContract") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20EventsUpdatedSystemContract) - if err := _ZRC20Events.contract.UnpackLog(event, "UpdatedSystemContract", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedSystemContract is a log parse operation binding the contract event 0xd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae. -// -// Solidity: event UpdatedSystemContract(address systemContract) -func (_ZRC20Events *ZRC20EventsFilterer) ParseUpdatedSystemContract(log types.Log) (*ZRC20EventsUpdatedSystemContract, error) { - event := new(ZRC20EventsUpdatedSystemContract) - if err := _ZRC20Events.contract.UnpackLog(event, "UpdatedSystemContract", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20EventsWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the ZRC20Events contract. -type ZRC20EventsWithdrawalIterator struct { - Event *ZRC20EventsWithdrawal // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20EventsWithdrawalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsWithdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20EventsWithdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20EventsWithdrawalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20EventsWithdrawalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20EventsWithdrawal represents a Withdrawal event raised by the ZRC20Events contract. -type ZRC20EventsWithdrawal struct { - From common.Address - To []byte - Value *big.Int - GasFee *big.Int - ProtocolFlatFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWithdrawal is a free log retrieval operation binding the contract event 0x9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955. -// -// Solidity: event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee) -func (_ZRC20Events *ZRC20EventsFilterer) FilterWithdrawal(opts *bind.FilterOpts, from []common.Address) (*ZRC20EventsWithdrawalIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - - logs, sub, err := _ZRC20Events.contract.FilterLogs(opts, "Withdrawal", fromRule) - if err != nil { - return nil, err - } - return &ZRC20EventsWithdrawalIterator{contract: _ZRC20Events.contract, event: "Withdrawal", logs: logs, sub: sub}, nil -} - -// WatchWithdrawal is a free log subscription operation binding the contract event 0x9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955. -// -// Solidity: event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee) -func (_ZRC20Events *ZRC20EventsFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *ZRC20EventsWithdrawal, from []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - - logs, sub, err := _ZRC20Events.contract.WatchLogs(opts, "Withdrawal", fromRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20EventsWithdrawal) - if err := _ZRC20Events.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWithdrawal is a log parse operation binding the contract event 0x9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955. -// -// Solidity: event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee) -func (_ZRC20Events *ZRC20EventsFilterer) ParseWithdrawal(log types.Log) (*ZRC20EventsWithdrawal, error) { - event := new(ZRC20EventsWithdrawal) - if err := _ZRC20Events.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/interfaces/zcontract.sol/universalcontract.go b/v1/pkg/contracts/zevm/interfaces/zcontract.sol/universalcontract.go deleted file mode 100644 index 3d41b695a..000000000 --- a/v1/pkg/contracts/zevm/interfaces/zcontract.sol/universalcontract.go +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zcontract - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// RevertContext is an auto generated low-level Go binding around an user-defined struct. -type RevertContext struct { - Origin []byte - Sender common.Address - ChainID *big.Int -} - -// ZContext is an auto generated low-level Go binding around an user-defined struct. -type ZContext struct { - Origin []byte - Sender common.Address - ChainID *big.Int -} - -// UniversalContractMetaData contains all meta data concerning the UniversalContract contract. -var UniversalContractMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structzContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"onCrossChainCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structrevertContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"onRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// UniversalContractABI is the input ABI used to generate the binding from. -// Deprecated: Use UniversalContractMetaData.ABI instead. -var UniversalContractABI = UniversalContractMetaData.ABI - -// UniversalContract is an auto generated Go binding around an Ethereum contract. -type UniversalContract struct { - UniversalContractCaller // Read-only binding to the contract - UniversalContractTransactor // Write-only binding to the contract - UniversalContractFilterer // Log filterer for contract events -} - -// UniversalContractCaller is an auto generated read-only Go binding around an Ethereum contract. -type UniversalContractCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniversalContractTransactor is an auto generated write-only Go binding around an Ethereum contract. -type UniversalContractTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniversalContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniversalContractFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniversalContractSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniversalContractSession struct { - Contract *UniversalContract // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniversalContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniversalContractCallerSession struct { - Contract *UniversalContractCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniversalContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniversalContractTransactorSession struct { - Contract *UniversalContractTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniversalContractRaw is an auto generated low-level Go binding around an Ethereum contract. -type UniversalContractRaw struct { - Contract *UniversalContract // Generic contract binding to access the raw methods on -} - -// UniversalContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniversalContractCallerRaw struct { - Contract *UniversalContractCaller // Generic read-only contract binding to access the raw methods on -} - -// UniversalContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniversalContractTransactorRaw struct { - Contract *UniversalContractTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniversalContract creates a new instance of UniversalContract, bound to a specific deployed contract. -func NewUniversalContract(address common.Address, backend bind.ContractBackend) (*UniversalContract, error) { - contract, err := bindUniversalContract(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniversalContract{UniversalContractCaller: UniversalContractCaller{contract: contract}, UniversalContractTransactor: UniversalContractTransactor{contract: contract}, UniversalContractFilterer: UniversalContractFilterer{contract: contract}}, nil -} - -// NewUniversalContractCaller creates a new read-only instance of UniversalContract, bound to a specific deployed contract. -func NewUniversalContractCaller(address common.Address, caller bind.ContractCaller) (*UniversalContractCaller, error) { - contract, err := bindUniversalContract(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniversalContractCaller{contract: contract}, nil -} - -// NewUniversalContractTransactor creates a new write-only instance of UniversalContract, bound to a specific deployed contract. -func NewUniversalContractTransactor(address common.Address, transactor bind.ContractTransactor) (*UniversalContractTransactor, error) { - contract, err := bindUniversalContract(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniversalContractTransactor{contract: contract}, nil -} - -// NewUniversalContractFilterer creates a new log filterer instance of UniversalContract, bound to a specific deployed contract. -func NewUniversalContractFilterer(address common.Address, filterer bind.ContractFilterer) (*UniversalContractFilterer, error) { - contract, err := bindUniversalContract(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniversalContractFilterer{contract: contract}, nil -} - -// bindUniversalContract binds a generic wrapper to an already deployed contract. -func bindUniversalContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniversalContractMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniversalContract *UniversalContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniversalContract.Contract.UniversalContractCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniversalContract *UniversalContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniversalContract.Contract.UniversalContractTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniversalContract *UniversalContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniversalContract.Contract.UniversalContractTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniversalContract *UniversalContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniversalContract.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniversalContract *UniversalContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniversalContract.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniversalContract *UniversalContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniversalContract.Contract.contract.Transact(opts, method, params...) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e. -// -// Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_UniversalContract *UniversalContractTransactor) OnCrossChainCall(opts *bind.TransactOpts, context ZContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _UniversalContract.contract.Transact(opts, "onCrossChainCall", context, zrc20, amount, message) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e. -// -// Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_UniversalContract *UniversalContractSession) OnCrossChainCall(context ZContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _UniversalContract.Contract.OnCrossChainCall(&_UniversalContract.TransactOpts, context, zrc20, amount, message) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e. -// -// Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_UniversalContract *UniversalContractTransactorSession) OnCrossChainCall(context ZContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _UniversalContract.Contract.OnCrossChainCall(&_UniversalContract.TransactOpts, context, zrc20, amount, message) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x69582bee. -// -// Solidity: function onRevert((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_UniversalContract *UniversalContractTransactor) OnRevert(opts *bind.TransactOpts, context RevertContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _UniversalContract.contract.Transact(opts, "onRevert", context, zrc20, amount, message) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x69582bee. -// -// Solidity: function onRevert((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_UniversalContract *UniversalContractSession) OnRevert(context RevertContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _UniversalContract.Contract.OnRevert(&_UniversalContract.TransactOpts, context, zrc20, amount, message) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x69582bee. -// -// Solidity: function onRevert((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_UniversalContract *UniversalContractTransactorSession) OnRevert(context RevertContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _UniversalContract.Contract.OnRevert(&_UniversalContract.TransactOpts, context, zrc20, amount, message) -} diff --git a/v1/pkg/contracts/zevm/interfaces/zcontract.sol/zcontract.go b/v1/pkg/contracts/zevm/interfaces/zcontract.sol/zcontract.go deleted file mode 100644 index f0ab38de3..000000000 --- a/v1/pkg/contracts/zevm/interfaces/zcontract.sol/zcontract.go +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zcontract - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZContext is an auto generated low-level Go binding around an user-defined struct. -type ZContext struct { - Origin []byte - Sender common.Address - ChainID *big.Int -} - -// ZContractMetaData contains all meta data concerning the ZContract contract. -var ZContractMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structzContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"onCrossChainCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ZContractABI is the input ABI used to generate the binding from. -// Deprecated: Use ZContractMetaData.ABI instead. -var ZContractABI = ZContractMetaData.ABI - -// ZContract is an auto generated Go binding around an Ethereum contract. -type ZContract struct { - ZContractCaller // Read-only binding to the contract - ZContractTransactor // Write-only binding to the contract - ZContractFilterer // Log filterer for contract events -} - -// ZContractCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZContractCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZContractTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZContractTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZContractFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZContractSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZContractSession struct { - Contract *ZContract // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZContractCallerSession struct { - Contract *ZContractCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZContractTransactorSession struct { - Contract *ZContractTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZContractRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZContractRaw struct { - Contract *ZContract // Generic contract binding to access the raw methods on -} - -// ZContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZContractCallerRaw struct { - Contract *ZContractCaller // Generic read-only contract binding to access the raw methods on -} - -// ZContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZContractTransactorRaw struct { - Contract *ZContractTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZContract creates a new instance of ZContract, bound to a specific deployed contract. -func NewZContract(address common.Address, backend bind.ContractBackend) (*ZContract, error) { - contract, err := bindZContract(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZContract{ZContractCaller: ZContractCaller{contract: contract}, ZContractTransactor: ZContractTransactor{contract: contract}, ZContractFilterer: ZContractFilterer{contract: contract}}, nil -} - -// NewZContractCaller creates a new read-only instance of ZContract, bound to a specific deployed contract. -func NewZContractCaller(address common.Address, caller bind.ContractCaller) (*ZContractCaller, error) { - contract, err := bindZContract(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZContractCaller{contract: contract}, nil -} - -// NewZContractTransactor creates a new write-only instance of ZContract, bound to a specific deployed contract. -func NewZContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ZContractTransactor, error) { - contract, err := bindZContract(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZContractTransactor{contract: contract}, nil -} - -// NewZContractFilterer creates a new log filterer instance of ZContract, bound to a specific deployed contract. -func NewZContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ZContractFilterer, error) { - contract, err := bindZContract(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZContractFilterer{contract: contract}, nil -} - -// bindZContract binds a generic wrapper to an already deployed contract. -func bindZContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZContractMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZContract *ZContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZContract.Contract.ZContractCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZContract *ZContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZContract.Contract.ZContractTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZContract *ZContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZContract.Contract.ZContractTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZContract *ZContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZContract.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZContract *ZContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZContract.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZContract *ZContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZContract.Contract.contract.Transact(opts, method, params...) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e. -// -// Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_ZContract *ZContractTransactor) OnCrossChainCall(opts *bind.TransactOpts, context ZContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _ZContract.contract.Transact(opts, "onCrossChainCall", context, zrc20, amount, message) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e. -// -// Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_ZContract *ZContractSession) OnCrossChainCall(context ZContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _ZContract.Contract.OnCrossChainCall(&_ZContract.TransactOpts, context, zrc20, amount, message) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0xde43156e. -// -// Solidity: function onCrossChainCall((bytes,address,uint256) context, address zrc20, uint256 amount, bytes message) returns() -func (_ZContract *ZContractTransactorSession) OnCrossChainCall(context ZContext, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _ZContract.Contract.OnCrossChainCall(&_ZContract.TransactOpts, context, zrc20, amount, message) -} diff --git a/v1/pkg/contracts/zevm/systemcontract.sol/systemcontract.go b/v1/pkg/contracts/zevm/systemcontract.sol/systemcontract.go deleted file mode 100644 index afe7e100e..000000000 --- a/v1/pkg/contracts/zevm/systemcontract.sol/systemcontract.go +++ /dev/null @@ -1,1421 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package systemcontract - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZContext is an auto generated low-level Go binding around an user-defined struct. -type ZContext struct { - Origin []byte - Sender common.Address - ChainID *big.Int -} - -// SystemContractMetaData contains all meta data concerning the SystemContract contract. -var SystemContractMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wzeta_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapv2Factory_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapv2Router02_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"CallerIsNotFungibleModule\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeIdenticalAddresses\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTarget\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"SetConnectorZEVM\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"SetGasCoin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"SetGasPrice\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"SetGasZetaPool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"SetWZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"SystemContractDeployed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FUNGIBLE_MODULE_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"origin\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"}],\"internalType\":\"structzContext\",\"name\":\"context\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"depositAndCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"gasCoinZRC20ByChainId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"gasPriceByChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"gasZetaPoolByChainId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setConnectorZEVMAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"}],\"name\":\"setGasCoinZRC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"setGasPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"erc20\",\"type\":\"address\"}],\"name\":\"setGasZetaPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setWZETAContractAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapv2FactoryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"uniswapv2PairFor\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapv2Router02Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wZetaContractAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zetaConnectorZEVMAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60c06040523480156200001157600080fd5b50604051620018aa380380620018aa8339818101604052810190620000379190620001ac565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620000b1576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250507f80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac560405160405180910390a15050506200025b565b600081519050620001a68162000241565b92915050565b600080600060608486031215620001c857620001c76200023c565b5b6000620001d88682870162000195565b9350506020620001eb8682870162000195565b9250506040620001fe8682870162000195565b9150509250925092565b600062000215826200021c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200024c8162000208565b81146200025857600080fd5b50565b60805160601c60a05160601c61161c6200028e600039600061051b0152600081816105bd0152610bc5015261161c6000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806397770dff11610097578063c63585cc11610066578063c63585cc1461025e578063d7fd7afb1461028e578063d936a012146102be578063ee2815ba146102dc576100f5565b806397770dff146101ec578063a7cb050714610208578063c39aca3714610224578063c62178ac14610240576100f5565b8063513a9c05116100d3578063513a9c0514610164578063569541b914610194578063842da36d146101b257806391dd645f146101d0576100f5565b80630be15547146100fa5780631f0e251b1461012a5780633ce4a5bc14610146575b600080fd5b610114600480360381019061010f9190611022565b6102f8565b60405161012191906112b1565b60405180910390f35b610144600480360381019061013f9190610ebf565b61032b565b005b61014e6104a8565b60405161015b91906112b1565b60405180910390f35b61017e60048036038101906101799190611022565b6104c0565b60405161018b91906112b1565b60405180910390f35b61019c6104f3565b6040516101a991906112b1565b60405180910390f35b6101ba610519565b6040516101c791906112b1565b60405180910390f35b6101ea60048036038101906101e5919061104f565b61053d565b005b61020660048036038101906102019190610ebf565b610697565b005b610222600480360381019061021d919061108f565b610814565b005b61023e60048036038101906102399190610f6c565b6108e1565b005b610248610b13565b60405161025591906112b1565b60405180910390f35b61027860048036038101906102739190610eec565b610b39565b60405161028591906112b1565b60405180910390f35b6102a860048036038101906102a39190611022565b610bab565b6040516102b5919061134a565b60405180910390f35b6102c6610bc3565b6040516102d391906112b1565b60405180910390f35b6102f660048036038101906102f1919061104f565b610be7565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561040b576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3ade88e3922d64780e1bf4460d364c2970b69da813f9c0c07a1c187b5647636c600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161049d91906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105b6576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106057f0000000000000000000000000000000000000000000000000000000000000000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610b39565b9050806002600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e838260405161068a929190611365565b60405180910390a1505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610710576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610777576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161080991906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461088d576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600080848152602001908152602001600020819055507f49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d82826040516108d592919061138e565b60405180910390a15050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461095a576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806109d357503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610a0a576040517f82d5d76a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff166347e7ef2484866040518363ffffffff1660e01b8152600401610a459291906112cc565b602060405180830381600087803b158015610a5f57600080fd5b505af1158015610a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a979190610f3f565b508273ffffffffffffffffffffffffffffffffffffffff1663de43156e87878786866040518663ffffffff1660e01b8152600401610ad99594939291906112f5565b600060405180830381600087803b158015610af357600080fd5b505af1158015610b07573d6000803e3d6000fd5b50505050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000610b488585610cef565b91509150858282604051602001610b60929190611243565b60405160208183030381529060405280519060200120604051602001610b8792919061126f565b6040516020818303038152906040528051906020012060001c925050509392505050565b60006020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c60576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d8282604051610ce3929190611365565b60405180910390a15050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610d58576040517fcb1e7cfe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610610d92578284610d95565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e04576040517f78b507da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9250929050565b600081359050610e1a816115a1565b92915050565b600081519050610e2f816115b8565b92915050565b60008083601f840112610e4b57610e4a61150e565b5b8235905067ffffffffffffffff811115610e6857610e67611509565b5b602083019150836001820283011115610e8457610e8361151d565b5b9250929050565b600060608284031215610ea157610ea0611513565b5b81905092915050565b600081359050610eb9816115cf565b92915050565b600060208284031215610ed557610ed461152c565b5b6000610ee384828501610e0b565b91505092915050565b600080600060608486031215610f0557610f0461152c565b5b6000610f1386828701610e0b565b9350506020610f2486828701610e0b565b9250506040610f3586828701610e0b565b9150509250925092565b600060208284031215610f5557610f5461152c565b5b6000610f6384828501610e20565b91505092915050565b60008060008060008060a08789031215610f8957610f8861152c565b5b600087013567ffffffffffffffff811115610fa757610fa6611522565b5b610fb389828a01610e8b565b9650506020610fc489828a01610e0b565b9550506040610fd589828a01610eaa565b9450506060610fe689828a01610e0b565b935050608087013567ffffffffffffffff81111561100757611006611522565b5b61101389828a01610e35565b92509250509295509295509295565b6000602082840312156110385761103761152c565b5b600061104684828501610eaa565b91505092915050565b600080604083850312156110665761106561152c565b5b600061107485828601610eaa565b925050602061108585828601610e0b565b9150509250929050565b600080604083850312156110a6576110a561152c565b5b60006110b485828601610eaa565b92505060206110c585828601610eaa565b9150509250929050565b6110d881611475565b82525050565b6110e781611475565b82525050565b6110fe6110f982611475565b6114d6565b82525050565b61111561111082611493565b6114e8565b82525050565b600061112783856113b7565b93506111348385846114c7565b61113d83611531565b840190509392505050565b600061115483856113c8565b93506111618385846114c7565b61116a83611531565b840190509392505050565b60006111826020836113d9565b915061118d8261154f565b602082019050919050565b60006111a56001836113d9565b91506111b082611578565b600182019050919050565b6000606083016111ce60008401846113fb565b85830360008701526111e183828461111b565b925050506111f260208401846113e4565b6111ff60208601826110cf565b5061120d604084018461145e565b61121a6040860182611225565b508091505092915050565b61122e816114bd565b82525050565b61123d816114bd565b82525050565b600061124f82856110ed565b60148201915061125f82846110ed565b6014820191508190509392505050565b600061127a82611198565b915061128682856110ed565b6014820191506112968284611104565b6020820191506112a582611175565b91508190509392505050565b60006020820190506112c660008301846110de565b92915050565b60006040820190506112e160008301856110de565b6112ee6020830184611234565b9392505050565b6000608082019050818103600083015261130f81886111bb565b905061131e60208301876110de565b61132b6040830186611234565b818103606083015261133e818486611148565b90509695505050505050565b600060208201905061135f6000830184611234565b92915050565b600060408201905061137a6000830185611234565b61138760208301846110de565b9392505050565b60006040820190506113a36000830185611234565b6113b06020830184611234565b9392505050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006113f36020840184610e0b565b905092915050565b6000808335600160200384360303811261141857611417611527565b5b83810192508235915060208301925067ffffffffffffffff8211156114405761143f611504565b5b60018202360384131561145657611455611518565b5b509250929050565b600061146d6020840184610eaa565b905092915050565b60006114808261149d565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60006114e1826114f2565b9050919050565b6000819050919050565b60006114fd82611542565b9050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f600082015250565b7fff00000000000000000000000000000000000000000000000000000000000000600082015250565b6115aa81611475565b81146115b557600080fd5b50565b6115c181611487565b81146115cc57600080fd5b50565b6115d8816114bd565b81146115e357600080fd5b5056fea264697066735822122074cb176058c64c566236e929fb1b59095f40ee7409bf1ff681139ad933115af464736f6c63430008070033", -} - -// SystemContractABI is the input ABI used to generate the binding from. -// Deprecated: Use SystemContractMetaData.ABI instead. -var SystemContractABI = SystemContractMetaData.ABI - -// SystemContractBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use SystemContractMetaData.Bin instead. -var SystemContractBin = SystemContractMetaData.Bin - -// DeploySystemContract deploys a new Ethereum contract, binding an instance of SystemContract to it. -func DeploySystemContract(auth *bind.TransactOpts, backend bind.ContractBackend, wzeta_ common.Address, uniswapv2Factory_ common.Address, uniswapv2Router02_ common.Address) (common.Address, *types.Transaction, *SystemContract, error) { - parsed, err := SystemContractMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SystemContractBin), backend, wzeta_, uniswapv2Factory_, uniswapv2Router02_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &SystemContract{SystemContractCaller: SystemContractCaller{contract: contract}, SystemContractTransactor: SystemContractTransactor{contract: contract}, SystemContractFilterer: SystemContractFilterer{contract: contract}}, nil -} - -// SystemContract is an auto generated Go binding around an Ethereum contract. -type SystemContract struct { - SystemContractCaller // Read-only binding to the contract - SystemContractTransactor // Write-only binding to the contract - SystemContractFilterer // Log filterer for contract events -} - -// SystemContractCaller is an auto generated read-only Go binding around an Ethereum contract. -type SystemContractCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SystemContractTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SystemContractFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SystemContractSession struct { - Contract *SystemContract // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SystemContractCallerSession struct { - Contract *SystemContractCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SystemContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SystemContractTransactorSession struct { - Contract *SystemContractTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractRaw is an auto generated low-level Go binding around an Ethereum contract. -type SystemContractRaw struct { - Contract *SystemContract // Generic contract binding to access the raw methods on -} - -// SystemContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SystemContractCallerRaw struct { - Contract *SystemContractCaller // Generic read-only contract binding to access the raw methods on -} - -// SystemContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SystemContractTransactorRaw struct { - Contract *SystemContractTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSystemContract creates a new instance of SystemContract, bound to a specific deployed contract. -func NewSystemContract(address common.Address, backend bind.ContractBackend) (*SystemContract, error) { - contract, err := bindSystemContract(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SystemContract{SystemContractCaller: SystemContractCaller{contract: contract}, SystemContractTransactor: SystemContractTransactor{contract: contract}, SystemContractFilterer: SystemContractFilterer{contract: contract}}, nil -} - -// NewSystemContractCaller creates a new read-only instance of SystemContract, bound to a specific deployed contract. -func NewSystemContractCaller(address common.Address, caller bind.ContractCaller) (*SystemContractCaller, error) { - contract, err := bindSystemContract(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SystemContractCaller{contract: contract}, nil -} - -// NewSystemContractTransactor creates a new write-only instance of SystemContract, bound to a specific deployed contract. -func NewSystemContractTransactor(address common.Address, transactor bind.ContractTransactor) (*SystemContractTransactor, error) { - contract, err := bindSystemContract(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SystemContractTransactor{contract: contract}, nil -} - -// NewSystemContractFilterer creates a new log filterer instance of SystemContract, bound to a specific deployed contract. -func NewSystemContractFilterer(address common.Address, filterer bind.ContractFilterer) (*SystemContractFilterer, error) { - contract, err := bindSystemContract(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SystemContractFilterer{contract: contract}, nil -} - -// bindSystemContract binds a generic wrapper to an already deployed contract. -func bindSystemContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SystemContractMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContract *SystemContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContract.Contract.SystemContractCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContract *SystemContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContract.Contract.SystemContractTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContract *SystemContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContract.Contract.SystemContractTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContract *SystemContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContract.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContract *SystemContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContract.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContract *SystemContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContract.Contract.contract.Transact(opts, method, params...) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_SystemContract *SystemContractCaller) FUNGIBLEMODULEADDRESS(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "FUNGIBLE_MODULE_ADDRESS") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_SystemContract *SystemContractSession) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _SystemContract.Contract.FUNGIBLEMODULEADDRESS(&_SystemContract.CallOpts) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_SystemContract *SystemContractCallerSession) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _SystemContract.Contract.FUNGIBLEMODULEADDRESS(&_SystemContract.CallOpts) -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 ) view returns(address) -func (_SystemContract *SystemContractCaller) GasCoinZRC20ByChainId(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "gasCoinZRC20ByChainId", arg0) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 ) view returns(address) -func (_SystemContract *SystemContractSession) GasCoinZRC20ByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContract.Contract.GasCoinZRC20ByChainId(&_SystemContract.CallOpts, arg0) -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 ) view returns(address) -func (_SystemContract *SystemContractCallerSession) GasCoinZRC20ByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContract.Contract.GasCoinZRC20ByChainId(&_SystemContract.CallOpts, arg0) -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 ) view returns(uint256) -func (_SystemContract *SystemContractCaller) GasPriceByChainId(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "gasPriceByChainId", arg0) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 ) view returns(uint256) -func (_SystemContract *SystemContractSession) GasPriceByChainId(arg0 *big.Int) (*big.Int, error) { - return _SystemContract.Contract.GasPriceByChainId(&_SystemContract.CallOpts, arg0) -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 ) view returns(uint256) -func (_SystemContract *SystemContractCallerSession) GasPriceByChainId(arg0 *big.Int) (*big.Int, error) { - return _SystemContract.Contract.GasPriceByChainId(&_SystemContract.CallOpts, arg0) -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 ) view returns(address) -func (_SystemContract *SystemContractCaller) GasZetaPoolByChainId(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "gasZetaPoolByChainId", arg0) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 ) view returns(address) -func (_SystemContract *SystemContractSession) GasZetaPoolByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContract.Contract.GasZetaPoolByChainId(&_SystemContract.CallOpts, arg0) -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 ) view returns(address) -func (_SystemContract *SystemContractCallerSession) GasZetaPoolByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContract.Contract.GasZetaPoolByChainId(&_SystemContract.CallOpts, arg0) -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_SystemContract *SystemContractCaller) Uniswapv2FactoryAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "uniswapv2FactoryAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_SystemContract *SystemContractSession) Uniswapv2FactoryAddress() (common.Address, error) { - return _SystemContract.Contract.Uniswapv2FactoryAddress(&_SystemContract.CallOpts) -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_SystemContract *SystemContractCallerSession) Uniswapv2FactoryAddress() (common.Address, error) { - return _SystemContract.Contract.Uniswapv2FactoryAddress(&_SystemContract.CallOpts) -} - -// Uniswapv2PairFor is a free data retrieval call binding the contract method 0xc63585cc. -// -// Solidity: function uniswapv2PairFor(address factory, address tokenA, address tokenB) pure returns(address pair) -func (_SystemContract *SystemContractCaller) Uniswapv2PairFor(opts *bind.CallOpts, factory common.Address, tokenA common.Address, tokenB common.Address) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "uniswapv2PairFor", factory, tokenA, tokenB) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Uniswapv2PairFor is a free data retrieval call binding the contract method 0xc63585cc. -// -// Solidity: function uniswapv2PairFor(address factory, address tokenA, address tokenB) pure returns(address pair) -func (_SystemContract *SystemContractSession) Uniswapv2PairFor(factory common.Address, tokenA common.Address, tokenB common.Address) (common.Address, error) { - return _SystemContract.Contract.Uniswapv2PairFor(&_SystemContract.CallOpts, factory, tokenA, tokenB) -} - -// Uniswapv2PairFor is a free data retrieval call binding the contract method 0xc63585cc. -// -// Solidity: function uniswapv2PairFor(address factory, address tokenA, address tokenB) pure returns(address pair) -func (_SystemContract *SystemContractCallerSession) Uniswapv2PairFor(factory common.Address, tokenA common.Address, tokenB common.Address) (common.Address, error) { - return _SystemContract.Contract.Uniswapv2PairFor(&_SystemContract.CallOpts, factory, tokenA, tokenB) -} - -// Uniswapv2Router02Address is a free data retrieval call binding the contract method 0x842da36d. -// -// Solidity: function uniswapv2Router02Address() view returns(address) -func (_SystemContract *SystemContractCaller) Uniswapv2Router02Address(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "uniswapv2Router02Address") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Uniswapv2Router02Address is a free data retrieval call binding the contract method 0x842da36d. -// -// Solidity: function uniswapv2Router02Address() view returns(address) -func (_SystemContract *SystemContractSession) Uniswapv2Router02Address() (common.Address, error) { - return _SystemContract.Contract.Uniswapv2Router02Address(&_SystemContract.CallOpts) -} - -// Uniswapv2Router02Address is a free data retrieval call binding the contract method 0x842da36d. -// -// Solidity: function uniswapv2Router02Address() view returns(address) -func (_SystemContract *SystemContractCallerSession) Uniswapv2Router02Address() (common.Address, error) { - return _SystemContract.Contract.Uniswapv2Router02Address(&_SystemContract.CallOpts) -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_SystemContract *SystemContractCaller) WZetaContractAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "wZetaContractAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_SystemContract *SystemContractSession) WZetaContractAddress() (common.Address, error) { - return _SystemContract.Contract.WZetaContractAddress(&_SystemContract.CallOpts) -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_SystemContract *SystemContractCallerSession) WZetaContractAddress() (common.Address, error) { - return _SystemContract.Contract.WZetaContractAddress(&_SystemContract.CallOpts) -} - -// ZetaConnectorZEVMAddress is a free data retrieval call binding the contract method 0xc62178ac. -// -// Solidity: function zetaConnectorZEVMAddress() view returns(address) -func (_SystemContract *SystemContractCaller) ZetaConnectorZEVMAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContract.contract.Call(opts, &out, "zetaConnectorZEVMAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// ZetaConnectorZEVMAddress is a free data retrieval call binding the contract method 0xc62178ac. -// -// Solidity: function zetaConnectorZEVMAddress() view returns(address) -func (_SystemContract *SystemContractSession) ZetaConnectorZEVMAddress() (common.Address, error) { - return _SystemContract.Contract.ZetaConnectorZEVMAddress(&_SystemContract.CallOpts) -} - -// ZetaConnectorZEVMAddress is a free data retrieval call binding the contract method 0xc62178ac. -// -// Solidity: function zetaConnectorZEVMAddress() view returns(address) -func (_SystemContract *SystemContractCallerSession) ZetaConnectorZEVMAddress() (common.Address, error) { - return _SystemContract.Contract.ZetaConnectorZEVMAddress(&_SystemContract.CallOpts) -} - -// DepositAndCall is a paid mutator transaction binding the contract method 0xc39aca37. -// -// Solidity: function depositAndCall((bytes,address,uint256) context, address zrc20, uint256 amount, address target, bytes message) returns() -func (_SystemContract *SystemContractTransactor) DepositAndCall(opts *bind.TransactOpts, context ZContext, zrc20 common.Address, amount *big.Int, target common.Address, message []byte) (*types.Transaction, error) { - return _SystemContract.contract.Transact(opts, "depositAndCall", context, zrc20, amount, target, message) -} - -// DepositAndCall is a paid mutator transaction binding the contract method 0xc39aca37. -// -// Solidity: function depositAndCall((bytes,address,uint256) context, address zrc20, uint256 amount, address target, bytes message) returns() -func (_SystemContract *SystemContractSession) DepositAndCall(context ZContext, zrc20 common.Address, amount *big.Int, target common.Address, message []byte) (*types.Transaction, error) { - return _SystemContract.Contract.DepositAndCall(&_SystemContract.TransactOpts, context, zrc20, amount, target, message) -} - -// DepositAndCall is a paid mutator transaction binding the contract method 0xc39aca37. -// -// Solidity: function depositAndCall((bytes,address,uint256) context, address zrc20, uint256 amount, address target, bytes message) returns() -func (_SystemContract *SystemContractTransactorSession) DepositAndCall(context ZContext, zrc20 common.Address, amount *big.Int, target common.Address, message []byte) (*types.Transaction, error) { - return _SystemContract.Contract.DepositAndCall(&_SystemContract.TransactOpts, context, zrc20, amount, target, message) -} - -// SetConnectorZEVMAddress is a paid mutator transaction binding the contract method 0x1f0e251b. -// -// Solidity: function setConnectorZEVMAddress(address addr) returns() -func (_SystemContract *SystemContractTransactor) SetConnectorZEVMAddress(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error) { - return _SystemContract.contract.Transact(opts, "setConnectorZEVMAddress", addr) -} - -// SetConnectorZEVMAddress is a paid mutator transaction binding the contract method 0x1f0e251b. -// -// Solidity: function setConnectorZEVMAddress(address addr) returns() -func (_SystemContract *SystemContractSession) SetConnectorZEVMAddress(addr common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetConnectorZEVMAddress(&_SystemContract.TransactOpts, addr) -} - -// SetConnectorZEVMAddress is a paid mutator transaction binding the contract method 0x1f0e251b. -// -// Solidity: function setConnectorZEVMAddress(address addr) returns() -func (_SystemContract *SystemContractTransactorSession) SetConnectorZEVMAddress(addr common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetConnectorZEVMAddress(&_SystemContract.TransactOpts, addr) -} - -// SetGasCoinZRC20 is a paid mutator transaction binding the contract method 0xee2815ba. -// -// Solidity: function setGasCoinZRC20(uint256 chainID, address zrc20) returns() -func (_SystemContract *SystemContractTransactor) SetGasCoinZRC20(opts *bind.TransactOpts, chainID *big.Int, zrc20 common.Address) (*types.Transaction, error) { - return _SystemContract.contract.Transact(opts, "setGasCoinZRC20", chainID, zrc20) -} - -// SetGasCoinZRC20 is a paid mutator transaction binding the contract method 0xee2815ba. -// -// Solidity: function setGasCoinZRC20(uint256 chainID, address zrc20) returns() -func (_SystemContract *SystemContractSession) SetGasCoinZRC20(chainID *big.Int, zrc20 common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetGasCoinZRC20(&_SystemContract.TransactOpts, chainID, zrc20) -} - -// SetGasCoinZRC20 is a paid mutator transaction binding the contract method 0xee2815ba. -// -// Solidity: function setGasCoinZRC20(uint256 chainID, address zrc20) returns() -func (_SystemContract *SystemContractTransactorSession) SetGasCoinZRC20(chainID *big.Int, zrc20 common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetGasCoinZRC20(&_SystemContract.TransactOpts, chainID, zrc20) -} - -// SetGasPrice is a paid mutator transaction binding the contract method 0xa7cb0507. -// -// Solidity: function setGasPrice(uint256 chainID, uint256 price) returns() -func (_SystemContract *SystemContractTransactor) SetGasPrice(opts *bind.TransactOpts, chainID *big.Int, price *big.Int) (*types.Transaction, error) { - return _SystemContract.contract.Transact(opts, "setGasPrice", chainID, price) -} - -// SetGasPrice is a paid mutator transaction binding the contract method 0xa7cb0507. -// -// Solidity: function setGasPrice(uint256 chainID, uint256 price) returns() -func (_SystemContract *SystemContractSession) SetGasPrice(chainID *big.Int, price *big.Int) (*types.Transaction, error) { - return _SystemContract.Contract.SetGasPrice(&_SystemContract.TransactOpts, chainID, price) -} - -// SetGasPrice is a paid mutator transaction binding the contract method 0xa7cb0507. -// -// Solidity: function setGasPrice(uint256 chainID, uint256 price) returns() -func (_SystemContract *SystemContractTransactorSession) SetGasPrice(chainID *big.Int, price *big.Int) (*types.Transaction, error) { - return _SystemContract.Contract.SetGasPrice(&_SystemContract.TransactOpts, chainID, price) -} - -// SetGasZetaPool is a paid mutator transaction binding the contract method 0x91dd645f. -// -// Solidity: function setGasZetaPool(uint256 chainID, address erc20) returns() -func (_SystemContract *SystemContractTransactor) SetGasZetaPool(opts *bind.TransactOpts, chainID *big.Int, erc20 common.Address) (*types.Transaction, error) { - return _SystemContract.contract.Transact(opts, "setGasZetaPool", chainID, erc20) -} - -// SetGasZetaPool is a paid mutator transaction binding the contract method 0x91dd645f. -// -// Solidity: function setGasZetaPool(uint256 chainID, address erc20) returns() -func (_SystemContract *SystemContractSession) SetGasZetaPool(chainID *big.Int, erc20 common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetGasZetaPool(&_SystemContract.TransactOpts, chainID, erc20) -} - -// SetGasZetaPool is a paid mutator transaction binding the contract method 0x91dd645f. -// -// Solidity: function setGasZetaPool(uint256 chainID, address erc20) returns() -func (_SystemContract *SystemContractTransactorSession) SetGasZetaPool(chainID *big.Int, erc20 common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetGasZetaPool(&_SystemContract.TransactOpts, chainID, erc20) -} - -// SetWZETAContractAddress is a paid mutator transaction binding the contract method 0x97770dff. -// -// Solidity: function setWZETAContractAddress(address addr) returns() -func (_SystemContract *SystemContractTransactor) SetWZETAContractAddress(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error) { - return _SystemContract.contract.Transact(opts, "setWZETAContractAddress", addr) -} - -// SetWZETAContractAddress is a paid mutator transaction binding the contract method 0x97770dff. -// -// Solidity: function setWZETAContractAddress(address addr) returns() -func (_SystemContract *SystemContractSession) SetWZETAContractAddress(addr common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetWZETAContractAddress(&_SystemContract.TransactOpts, addr) -} - -// SetWZETAContractAddress is a paid mutator transaction binding the contract method 0x97770dff. -// -// Solidity: function setWZETAContractAddress(address addr) returns() -func (_SystemContract *SystemContractTransactorSession) SetWZETAContractAddress(addr common.Address) (*types.Transaction, error) { - return _SystemContract.Contract.SetWZETAContractAddress(&_SystemContract.TransactOpts, addr) -} - -// SystemContractSetConnectorZEVMIterator is returned from FilterSetConnectorZEVM and is used to iterate over the raw logs and unpacked data for SetConnectorZEVM events raised by the SystemContract contract. -type SystemContractSetConnectorZEVMIterator struct { - Event *SystemContractSetConnectorZEVM // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractSetConnectorZEVMIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractSetConnectorZEVM) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractSetConnectorZEVM) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractSetConnectorZEVMIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractSetConnectorZEVMIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractSetConnectorZEVM represents a SetConnectorZEVM event raised by the SystemContract contract. -type SystemContractSetConnectorZEVM struct { - Arg0 common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetConnectorZEVM is a free log retrieval operation binding the contract event 0x3ade88e3922d64780e1bf4460d364c2970b69da813f9c0c07a1c187b5647636c. -// -// Solidity: event SetConnectorZEVM(address arg0) -func (_SystemContract *SystemContractFilterer) FilterSetConnectorZEVM(opts *bind.FilterOpts) (*SystemContractSetConnectorZEVMIterator, error) { - - logs, sub, err := _SystemContract.contract.FilterLogs(opts, "SetConnectorZEVM") - if err != nil { - return nil, err - } - return &SystemContractSetConnectorZEVMIterator{contract: _SystemContract.contract, event: "SetConnectorZEVM", logs: logs, sub: sub}, nil -} - -// WatchSetConnectorZEVM is a free log subscription operation binding the contract event 0x3ade88e3922d64780e1bf4460d364c2970b69da813f9c0c07a1c187b5647636c. -// -// Solidity: event SetConnectorZEVM(address arg0) -func (_SystemContract *SystemContractFilterer) WatchSetConnectorZEVM(opts *bind.WatchOpts, sink chan<- *SystemContractSetConnectorZEVM) (event.Subscription, error) { - - logs, sub, err := _SystemContract.contract.WatchLogs(opts, "SetConnectorZEVM") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractSetConnectorZEVM) - if err := _SystemContract.contract.UnpackLog(event, "SetConnectorZEVM", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetConnectorZEVM is a log parse operation binding the contract event 0x3ade88e3922d64780e1bf4460d364c2970b69da813f9c0c07a1c187b5647636c. -// -// Solidity: event SetConnectorZEVM(address arg0) -func (_SystemContract *SystemContractFilterer) ParseSetConnectorZEVM(log types.Log) (*SystemContractSetConnectorZEVM, error) { - event := new(SystemContractSetConnectorZEVM) - if err := _SystemContract.contract.UnpackLog(event, "SetConnectorZEVM", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractSetGasCoinIterator is returned from FilterSetGasCoin and is used to iterate over the raw logs and unpacked data for SetGasCoin events raised by the SystemContract contract. -type SystemContractSetGasCoinIterator struct { - Event *SystemContractSetGasCoin // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractSetGasCoinIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractSetGasCoin) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractSetGasCoin) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractSetGasCoinIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractSetGasCoinIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractSetGasCoin represents a SetGasCoin event raised by the SystemContract contract. -type SystemContractSetGasCoin struct { - Arg0 *big.Int - Arg1 common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetGasCoin is a free log retrieval operation binding the contract event 0xd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d. -// -// Solidity: event SetGasCoin(uint256 arg0, address arg1) -func (_SystemContract *SystemContractFilterer) FilterSetGasCoin(opts *bind.FilterOpts) (*SystemContractSetGasCoinIterator, error) { - - logs, sub, err := _SystemContract.contract.FilterLogs(opts, "SetGasCoin") - if err != nil { - return nil, err - } - return &SystemContractSetGasCoinIterator{contract: _SystemContract.contract, event: "SetGasCoin", logs: logs, sub: sub}, nil -} - -// WatchSetGasCoin is a free log subscription operation binding the contract event 0xd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d. -// -// Solidity: event SetGasCoin(uint256 arg0, address arg1) -func (_SystemContract *SystemContractFilterer) WatchSetGasCoin(opts *bind.WatchOpts, sink chan<- *SystemContractSetGasCoin) (event.Subscription, error) { - - logs, sub, err := _SystemContract.contract.WatchLogs(opts, "SetGasCoin") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractSetGasCoin) - if err := _SystemContract.contract.UnpackLog(event, "SetGasCoin", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetGasCoin is a log parse operation binding the contract event 0xd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d. -// -// Solidity: event SetGasCoin(uint256 arg0, address arg1) -func (_SystemContract *SystemContractFilterer) ParseSetGasCoin(log types.Log) (*SystemContractSetGasCoin, error) { - event := new(SystemContractSetGasCoin) - if err := _SystemContract.contract.UnpackLog(event, "SetGasCoin", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractSetGasPriceIterator is returned from FilterSetGasPrice and is used to iterate over the raw logs and unpacked data for SetGasPrice events raised by the SystemContract contract. -type SystemContractSetGasPriceIterator struct { - Event *SystemContractSetGasPrice // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractSetGasPriceIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractSetGasPrice) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractSetGasPrice) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractSetGasPriceIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractSetGasPriceIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractSetGasPrice represents a SetGasPrice event raised by the SystemContract contract. -type SystemContractSetGasPrice struct { - Arg0 *big.Int - Arg1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetGasPrice is a free log retrieval operation binding the contract event 0x49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d. -// -// Solidity: event SetGasPrice(uint256 arg0, uint256 arg1) -func (_SystemContract *SystemContractFilterer) FilterSetGasPrice(opts *bind.FilterOpts) (*SystemContractSetGasPriceIterator, error) { - - logs, sub, err := _SystemContract.contract.FilterLogs(opts, "SetGasPrice") - if err != nil { - return nil, err - } - return &SystemContractSetGasPriceIterator{contract: _SystemContract.contract, event: "SetGasPrice", logs: logs, sub: sub}, nil -} - -// WatchSetGasPrice is a free log subscription operation binding the contract event 0x49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d. -// -// Solidity: event SetGasPrice(uint256 arg0, uint256 arg1) -func (_SystemContract *SystemContractFilterer) WatchSetGasPrice(opts *bind.WatchOpts, sink chan<- *SystemContractSetGasPrice) (event.Subscription, error) { - - logs, sub, err := _SystemContract.contract.WatchLogs(opts, "SetGasPrice") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractSetGasPrice) - if err := _SystemContract.contract.UnpackLog(event, "SetGasPrice", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetGasPrice is a log parse operation binding the contract event 0x49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d. -// -// Solidity: event SetGasPrice(uint256 arg0, uint256 arg1) -func (_SystemContract *SystemContractFilterer) ParseSetGasPrice(log types.Log) (*SystemContractSetGasPrice, error) { - event := new(SystemContractSetGasPrice) - if err := _SystemContract.contract.UnpackLog(event, "SetGasPrice", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractSetGasZetaPoolIterator is returned from FilterSetGasZetaPool and is used to iterate over the raw logs and unpacked data for SetGasZetaPool events raised by the SystemContract contract. -type SystemContractSetGasZetaPoolIterator struct { - Event *SystemContractSetGasZetaPool // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractSetGasZetaPoolIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractSetGasZetaPool) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractSetGasZetaPool) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractSetGasZetaPoolIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractSetGasZetaPoolIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractSetGasZetaPool represents a SetGasZetaPool event raised by the SystemContract contract. -type SystemContractSetGasZetaPool struct { - Arg0 *big.Int - Arg1 common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetGasZetaPool is a free log retrieval operation binding the contract event 0x0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e. -// -// Solidity: event SetGasZetaPool(uint256 arg0, address arg1) -func (_SystemContract *SystemContractFilterer) FilterSetGasZetaPool(opts *bind.FilterOpts) (*SystemContractSetGasZetaPoolIterator, error) { - - logs, sub, err := _SystemContract.contract.FilterLogs(opts, "SetGasZetaPool") - if err != nil { - return nil, err - } - return &SystemContractSetGasZetaPoolIterator{contract: _SystemContract.contract, event: "SetGasZetaPool", logs: logs, sub: sub}, nil -} - -// WatchSetGasZetaPool is a free log subscription operation binding the contract event 0x0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e. -// -// Solidity: event SetGasZetaPool(uint256 arg0, address arg1) -func (_SystemContract *SystemContractFilterer) WatchSetGasZetaPool(opts *bind.WatchOpts, sink chan<- *SystemContractSetGasZetaPool) (event.Subscription, error) { - - logs, sub, err := _SystemContract.contract.WatchLogs(opts, "SetGasZetaPool") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractSetGasZetaPool) - if err := _SystemContract.contract.UnpackLog(event, "SetGasZetaPool", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetGasZetaPool is a log parse operation binding the contract event 0x0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e. -// -// Solidity: event SetGasZetaPool(uint256 arg0, address arg1) -func (_SystemContract *SystemContractFilterer) ParseSetGasZetaPool(log types.Log) (*SystemContractSetGasZetaPool, error) { - event := new(SystemContractSetGasZetaPool) - if err := _SystemContract.contract.UnpackLog(event, "SetGasZetaPool", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractSetWZetaIterator is returned from FilterSetWZeta and is used to iterate over the raw logs and unpacked data for SetWZeta events raised by the SystemContract contract. -type SystemContractSetWZetaIterator struct { - Event *SystemContractSetWZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractSetWZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractSetWZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractSetWZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractSetWZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractSetWZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractSetWZeta represents a SetWZeta event raised by the SystemContract contract. -type SystemContractSetWZeta struct { - Arg0 common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetWZeta is a free log retrieval operation binding the contract event 0xdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e. -// -// Solidity: event SetWZeta(address arg0) -func (_SystemContract *SystemContractFilterer) FilterSetWZeta(opts *bind.FilterOpts) (*SystemContractSetWZetaIterator, error) { - - logs, sub, err := _SystemContract.contract.FilterLogs(opts, "SetWZeta") - if err != nil { - return nil, err - } - return &SystemContractSetWZetaIterator{contract: _SystemContract.contract, event: "SetWZeta", logs: logs, sub: sub}, nil -} - -// WatchSetWZeta is a free log subscription operation binding the contract event 0xdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e. -// -// Solidity: event SetWZeta(address arg0) -func (_SystemContract *SystemContractFilterer) WatchSetWZeta(opts *bind.WatchOpts, sink chan<- *SystemContractSetWZeta) (event.Subscription, error) { - - logs, sub, err := _SystemContract.contract.WatchLogs(opts, "SetWZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractSetWZeta) - if err := _SystemContract.contract.UnpackLog(event, "SetWZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetWZeta is a log parse operation binding the contract event 0xdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e. -// -// Solidity: event SetWZeta(address arg0) -func (_SystemContract *SystemContractFilterer) ParseSetWZeta(log types.Log) (*SystemContractSetWZeta, error) { - event := new(SystemContractSetWZeta) - if err := _SystemContract.contract.UnpackLog(event, "SetWZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractSystemContractDeployedIterator is returned from FilterSystemContractDeployed and is used to iterate over the raw logs and unpacked data for SystemContractDeployed events raised by the SystemContract contract. -type SystemContractSystemContractDeployedIterator struct { - Event *SystemContractSystemContractDeployed // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractSystemContractDeployedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractSystemContractDeployed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractSystemContractDeployed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractSystemContractDeployedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractSystemContractDeployedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractSystemContractDeployed represents a SystemContractDeployed event raised by the SystemContract contract. -type SystemContractSystemContractDeployed struct { - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSystemContractDeployed is a free log retrieval operation binding the contract event 0x80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac5. -// -// Solidity: event SystemContractDeployed() -func (_SystemContract *SystemContractFilterer) FilterSystemContractDeployed(opts *bind.FilterOpts) (*SystemContractSystemContractDeployedIterator, error) { - - logs, sub, err := _SystemContract.contract.FilterLogs(opts, "SystemContractDeployed") - if err != nil { - return nil, err - } - return &SystemContractSystemContractDeployedIterator{contract: _SystemContract.contract, event: "SystemContractDeployed", logs: logs, sub: sub}, nil -} - -// WatchSystemContractDeployed is a free log subscription operation binding the contract event 0x80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac5. -// -// Solidity: event SystemContractDeployed() -func (_SystemContract *SystemContractFilterer) WatchSystemContractDeployed(opts *bind.WatchOpts, sink chan<- *SystemContractSystemContractDeployed) (event.Subscription, error) { - - logs, sub, err := _SystemContract.contract.WatchLogs(opts, "SystemContractDeployed") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractSystemContractDeployed) - if err := _SystemContract.contract.UnpackLog(event, "SystemContractDeployed", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSystemContractDeployed is a log parse operation binding the contract event 0x80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac5. -// -// Solidity: event SystemContractDeployed() -func (_SystemContract *SystemContractFilterer) ParseSystemContractDeployed(log types.Log) (*SystemContractSystemContractDeployed, error) { - event := new(SystemContractSystemContractDeployed) - if err := _SystemContract.contract.UnpackLog(event, "SystemContractDeployed", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/systemcontract.sol/systemcontracterrors.go b/v1/pkg/contracts/zevm/systemcontract.sol/systemcontracterrors.go deleted file mode 100644 index a20e3eb62..000000000 --- a/v1/pkg/contracts/zevm/systemcontract.sol/systemcontracterrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package systemcontract - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// SystemContractErrorsMetaData contains all meta data concerning the SystemContractErrors contract. -var SystemContractErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"CallerIsNotFungibleModule\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeIdenticalAddresses\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTarget\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"}]", -} - -// SystemContractErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use SystemContractErrorsMetaData.ABI instead. -var SystemContractErrorsABI = SystemContractErrorsMetaData.ABI - -// SystemContractErrors is an auto generated Go binding around an Ethereum contract. -type SystemContractErrors struct { - SystemContractErrorsCaller // Read-only binding to the contract - SystemContractErrorsTransactor // Write-only binding to the contract - SystemContractErrorsFilterer // Log filterer for contract events -} - -// SystemContractErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type SystemContractErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SystemContractErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SystemContractErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SystemContractErrorsSession struct { - Contract *SystemContractErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SystemContractErrorsCallerSession struct { - Contract *SystemContractErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SystemContractErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SystemContractErrorsTransactorSession struct { - Contract *SystemContractErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type SystemContractErrorsRaw struct { - Contract *SystemContractErrors // Generic contract binding to access the raw methods on -} - -// SystemContractErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SystemContractErrorsCallerRaw struct { - Contract *SystemContractErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// SystemContractErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SystemContractErrorsTransactorRaw struct { - Contract *SystemContractErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSystemContractErrors creates a new instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrors(address common.Address, backend bind.ContractBackend) (*SystemContractErrors, error) { - contract, err := bindSystemContractErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SystemContractErrors{SystemContractErrorsCaller: SystemContractErrorsCaller{contract: contract}, SystemContractErrorsTransactor: SystemContractErrorsTransactor{contract: contract}, SystemContractErrorsFilterer: SystemContractErrorsFilterer{contract: contract}}, nil -} - -// NewSystemContractErrorsCaller creates a new read-only instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrorsCaller(address common.Address, caller bind.ContractCaller) (*SystemContractErrorsCaller, error) { - contract, err := bindSystemContractErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SystemContractErrorsCaller{contract: contract}, nil -} - -// NewSystemContractErrorsTransactor creates a new write-only instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*SystemContractErrorsTransactor, error) { - contract, err := bindSystemContractErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SystemContractErrorsTransactor{contract: contract}, nil -} - -// NewSystemContractErrorsFilterer creates a new log filterer instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*SystemContractErrorsFilterer, error) { - contract, err := bindSystemContractErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SystemContractErrorsFilterer{contract: contract}, nil -} - -// bindSystemContractErrors binds a generic wrapper to an already deployed contract. -func bindSystemContractErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SystemContractErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContractErrors *SystemContractErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContractErrors.Contract.SystemContractErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContractErrors *SystemContractErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContractErrors.Contract.SystemContractErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContractErrors *SystemContractErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContractErrors.Contract.SystemContractErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContractErrors *SystemContractErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContractErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContractErrors *SystemContractErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContractErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContractErrors *SystemContractErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContractErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontracterrors.go b/v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontracterrors.go deleted file mode 100644 index 9dabc5e80..000000000 --- a/v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontracterrors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package systemcontractmock - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// SystemContractErrorsMetaData contains all meta data concerning the SystemContractErrors contract. -var SystemContractErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"CallerIsNotFungibleModule\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeIdenticalAddresses\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTarget\",\"type\":\"error\"}]", -} - -// SystemContractErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use SystemContractErrorsMetaData.ABI instead. -var SystemContractErrorsABI = SystemContractErrorsMetaData.ABI - -// SystemContractErrors is an auto generated Go binding around an Ethereum contract. -type SystemContractErrors struct { - SystemContractErrorsCaller // Read-only binding to the contract - SystemContractErrorsTransactor // Write-only binding to the contract - SystemContractErrorsFilterer // Log filterer for contract events -} - -// SystemContractErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type SystemContractErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SystemContractErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SystemContractErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SystemContractErrorsSession struct { - Contract *SystemContractErrors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SystemContractErrorsCallerSession struct { - Contract *SystemContractErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SystemContractErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SystemContractErrorsTransactorSession struct { - Contract *SystemContractErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type SystemContractErrorsRaw struct { - Contract *SystemContractErrors // Generic contract binding to access the raw methods on -} - -// SystemContractErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SystemContractErrorsCallerRaw struct { - Contract *SystemContractErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// SystemContractErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SystemContractErrorsTransactorRaw struct { - Contract *SystemContractErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSystemContractErrors creates a new instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrors(address common.Address, backend bind.ContractBackend) (*SystemContractErrors, error) { - contract, err := bindSystemContractErrors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SystemContractErrors{SystemContractErrorsCaller: SystemContractErrorsCaller{contract: contract}, SystemContractErrorsTransactor: SystemContractErrorsTransactor{contract: contract}, SystemContractErrorsFilterer: SystemContractErrorsFilterer{contract: contract}}, nil -} - -// NewSystemContractErrorsCaller creates a new read-only instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrorsCaller(address common.Address, caller bind.ContractCaller) (*SystemContractErrorsCaller, error) { - contract, err := bindSystemContractErrors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SystemContractErrorsCaller{contract: contract}, nil -} - -// NewSystemContractErrorsTransactor creates a new write-only instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*SystemContractErrorsTransactor, error) { - contract, err := bindSystemContractErrors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SystemContractErrorsTransactor{contract: contract}, nil -} - -// NewSystemContractErrorsFilterer creates a new log filterer instance of SystemContractErrors, bound to a specific deployed contract. -func NewSystemContractErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*SystemContractErrorsFilterer, error) { - contract, err := bindSystemContractErrors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SystemContractErrorsFilterer{contract: contract}, nil -} - -// bindSystemContractErrors binds a generic wrapper to an already deployed contract. -func bindSystemContractErrors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SystemContractErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContractErrors *SystemContractErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContractErrors.Contract.SystemContractErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContractErrors *SystemContractErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContractErrors.Contract.SystemContractErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContractErrors *SystemContractErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContractErrors.Contract.SystemContractErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContractErrors *SystemContractErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContractErrors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContractErrors *SystemContractErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContractErrors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContractErrors *SystemContractErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContractErrors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontractmock.go b/v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontractmock.go deleted file mode 100644 index 2a02ad6cf..000000000 --- a/v1/pkg/contracts/zevm/testing/systemcontractmock.sol/systemcontractmock.go +++ /dev/null @@ -1,1176 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package systemcontractmock - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// SystemContractMockMetaData contains all meta data concerning the SystemContractMock contract. -var SystemContractMockMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wzeta_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapv2Factory_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"uniswapv2Router02_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"CallerIsNotFungibleModule\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeIdenticalAddresses\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CantBeZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidTarget\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"SetGasCoin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"SetGasPrice\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"SetGasZetaPool\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"SetWZeta\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"SystemContractDeployed\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"gasCoinZRC20ByChainId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"gasPriceByChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"gasZetaPoolByChainId\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"onCrossChainCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"zrc20\",\"type\":\"address\"}],\"name\":\"setGasCoinZRC20\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"chainID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"setGasPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setWZETAContractAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapv2FactoryAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"uniswapv2PairFor\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapv2Router02Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wZetaContractAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60806040523480156200001157600080fd5b50604051620010d7380380620010d7833981810160405281019062000037919062000146565b82600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac560405160405180910390a1505050620001f5565b6000815190506200014081620001db565b92915050565b600080600060608486031215620001625762000161620001d6565b5b600062000172868287016200012f565b935050602062000185868287016200012f565b925050604062000198868287016200012f565b9150509250925092565b6000620001af82620001b6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620001e681620001a2565b8114620001f257600080fd5b50565b610ed280620002056000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806397770dff1161007157806397770dff14610166578063a7cb050714610182578063c63585cc1461019e578063d7fd7afb146101ce578063d936a012146101fe578063ee2815ba1461021c576100a9565b80630be15547146100ae5780633c669d55146100de578063513a9c05146100fa578063569541b91461012a578063842da36d14610148575b600080fd5b6100c860048036038101906100c3919061094d565b610238565b6040516100d59190610bce565b60405180910390f35b6100f860048036038101906100f39190610898565b61026b565b005b610114600480360381019061010f919061094d565b6103b8565b6040516101219190610bce565b60405180910390f35b6101326103eb565b60405161013f9190610bce565b60405180910390f35b610150610411565b60405161015d9190610bce565b60405180910390f35b610180600480360381019061017b9190610818565b610437565b005b61019c600480360381019061019791906109ba565b6104d4565b005b6101b860048036038101906101b39190610845565b610528565b6040516101c59190610bce565b60405180910390f35b6101e860048036038101906101e3919061094d565b61059a565b6040516101f59190610c67565b60405180910390f35b6102066105b2565b6040516102139190610bce565b60405180910390f35b6102366004803603810190610231919061097a565b6105d8565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060405180606001604052806040518060200160405280600081525081526020013373ffffffffffffffffffffffffffffffffffffffff1681526020014681525090508473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87866040518363ffffffff1660e01b81526004016102ea929190610be9565b602060405180830381600087803b15801561030457600080fd5b505af1158015610318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033c9190610920565b508573ffffffffffffffffffffffffffffffffffffffff1663de43156e82878787876040518663ffffffff1660e01b815260040161037e959493929190610c12565b600060405180830381600087803b15801561039857600080fd5b505af11580156103ac573d6000803e3d6000fd5b50505050505050505050565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516104c99190610bce565b60405180910390a150565b80600080848152602001908152602001600020819055507f49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d828260405161051c929190610cab565b60405180910390a15050565b60008060006105378585610667565b9150915085828260405160200161054f929190610b60565b60405160208183030381529060405280519060200120604051602001610576929190610b8c565b6040516020818303038152906040528051906020012060001c925050509392505050565b60006020528060005260406000206000915090505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b806001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d828260405161065b929190610c82565b60405180910390a15050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156106d0576040517fcb1e7cfe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161061070a57828461070d565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561077c576040517f78b507da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9250929050565b60008135905061079281610e57565b92915050565b6000815190506107a781610e6e565b92915050565b60008083601f8401126107c3576107c2610dd3565b5b8235905067ffffffffffffffff8111156107e0576107df610dce565b5b6020830191508360018202830111156107fc576107fb610dd8565b5b9250929050565b60008135905061081281610e85565b92915050565b60006020828403121561082e5761082d610de2565b5b600061083c84828501610783565b91505092915050565b60008060006060848603121561085e5761085d610de2565b5b600061086c86828701610783565b935050602061087d86828701610783565b925050604061088e86828701610783565b9150509250925092565b6000806000806000608086880312156108b4576108b3610de2565b5b60006108c288828901610783565b95505060206108d388828901610783565b94505060406108e488828901610803565b935050606086013567ffffffffffffffff81111561090557610904610ddd565b5b610911888289016107ad565b92509250509295509295909350565b60006020828403121561093657610935610de2565b5b600061094484828501610798565b91505092915050565b60006020828403121561096357610962610de2565b5b600061097184828501610803565b91505092915050565b6000806040838503121561099157610990610de2565b5b600061099f85828601610803565b92505060206109b085828601610783565b9150509250929050565b600080604083850312156109d1576109d0610de2565b5b60006109df85828601610803565b92505060206109f085828601610803565b9150509250929050565b610a0381610d0c565b82525050565b610a1281610d0c565b82525050565b610a29610a2482610d0c565b610da0565b82525050565b610a40610a3b82610d2a565b610db2565b82525050565b6000610a528385610cf0565b9350610a5f838584610d5e565b610a6883610de7565b840190509392505050565b6000610a7e82610cd4565b610a888185610cdf565b9350610a98818560208601610d6d565b610aa181610de7565b840191505092915050565b6000610ab9602083610d01565b9150610ac482610e05565b602082019050919050565b6000610adc600183610d01565b9150610ae782610e2e565b600182019050919050565b60006060830160008301518482036000860152610b0f8282610a73565b9150506020830151610b2460208601826109fa565b506040830151610b376040860182610b42565b508091505092915050565b610b4b81610d54565b82525050565b610b5a81610d54565b82525050565b6000610b6c8285610a18565b601482019150610b7c8284610a18565b6014820191508190509392505050565b6000610b9782610acf565b9150610ba38285610a18565b601482019150610bb38284610a2f565b602082019150610bc282610aac565b91508190509392505050565b6000602082019050610be36000830184610a09565b92915050565b6000604082019050610bfe6000830185610a09565b610c0b6020830184610b51565b9392505050565b60006080820190508181036000830152610c2c8188610af2565b9050610c3b6020830187610a09565b610c486040830186610b51565b8181036060830152610c5b818486610a46565b90509695505050505050565b6000602082019050610c7c6000830184610b51565b92915050565b6000604082019050610c976000830185610b51565b610ca46020830184610a09565b9392505050565b6000604082019050610cc06000830185610b51565b610ccd6020830184610b51565b9392505050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000610d1782610d34565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610d8b578082015181840152602081019050610d70565b83811115610d9a576000848401525b50505050565b6000610dab82610dbc565b9050919050565b6000819050919050565b6000610dc782610df8565b9050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f600082015250565b7fff00000000000000000000000000000000000000000000000000000000000000600082015250565b610e6081610d0c565b8114610e6b57600080fd5b50565b610e7781610d1e565b8114610e8257600080fd5b50565b610e8e81610d54565b8114610e9957600080fd5b5056fea26469706673582212200835245fdc75aa593111cf5a43e919740b2258e1512040bc79f39a56cedf119364736f6c63430008070033", -} - -// SystemContractMockABI is the input ABI used to generate the binding from. -// Deprecated: Use SystemContractMockMetaData.ABI instead. -var SystemContractMockABI = SystemContractMockMetaData.ABI - -// SystemContractMockBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use SystemContractMockMetaData.Bin instead. -var SystemContractMockBin = SystemContractMockMetaData.Bin - -// DeploySystemContractMock deploys a new Ethereum contract, binding an instance of SystemContractMock to it. -func DeploySystemContractMock(auth *bind.TransactOpts, backend bind.ContractBackend, wzeta_ common.Address, uniswapv2Factory_ common.Address, uniswapv2Router02_ common.Address) (common.Address, *types.Transaction, *SystemContractMock, error) { - parsed, err := SystemContractMockMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SystemContractMockBin), backend, wzeta_, uniswapv2Factory_, uniswapv2Router02_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &SystemContractMock{SystemContractMockCaller: SystemContractMockCaller{contract: contract}, SystemContractMockTransactor: SystemContractMockTransactor{contract: contract}, SystemContractMockFilterer: SystemContractMockFilterer{contract: contract}}, nil -} - -// SystemContractMock is an auto generated Go binding around an Ethereum contract. -type SystemContractMock struct { - SystemContractMockCaller // Read-only binding to the contract - SystemContractMockTransactor // Write-only binding to the contract - SystemContractMockFilterer // Log filterer for contract events -} - -// SystemContractMockCaller is an auto generated read-only Go binding around an Ethereum contract. -type SystemContractMockCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractMockTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SystemContractMockTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractMockFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SystemContractMockFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SystemContractMockSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SystemContractMockSession struct { - Contract *SystemContractMock // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractMockCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SystemContractMockCallerSession struct { - Contract *SystemContractMockCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SystemContractMockTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SystemContractMockTransactorSession struct { - Contract *SystemContractMockTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SystemContractMockRaw is an auto generated low-level Go binding around an Ethereum contract. -type SystemContractMockRaw struct { - Contract *SystemContractMock // Generic contract binding to access the raw methods on -} - -// SystemContractMockCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SystemContractMockCallerRaw struct { - Contract *SystemContractMockCaller // Generic read-only contract binding to access the raw methods on -} - -// SystemContractMockTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SystemContractMockTransactorRaw struct { - Contract *SystemContractMockTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSystemContractMock creates a new instance of SystemContractMock, bound to a specific deployed contract. -func NewSystemContractMock(address common.Address, backend bind.ContractBackend) (*SystemContractMock, error) { - contract, err := bindSystemContractMock(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SystemContractMock{SystemContractMockCaller: SystemContractMockCaller{contract: contract}, SystemContractMockTransactor: SystemContractMockTransactor{contract: contract}, SystemContractMockFilterer: SystemContractMockFilterer{contract: contract}}, nil -} - -// NewSystemContractMockCaller creates a new read-only instance of SystemContractMock, bound to a specific deployed contract. -func NewSystemContractMockCaller(address common.Address, caller bind.ContractCaller) (*SystemContractMockCaller, error) { - contract, err := bindSystemContractMock(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SystemContractMockCaller{contract: contract}, nil -} - -// NewSystemContractMockTransactor creates a new write-only instance of SystemContractMock, bound to a specific deployed contract. -func NewSystemContractMockTransactor(address common.Address, transactor bind.ContractTransactor) (*SystemContractMockTransactor, error) { - contract, err := bindSystemContractMock(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SystemContractMockTransactor{contract: contract}, nil -} - -// NewSystemContractMockFilterer creates a new log filterer instance of SystemContractMock, bound to a specific deployed contract. -func NewSystemContractMockFilterer(address common.Address, filterer bind.ContractFilterer) (*SystemContractMockFilterer, error) { - contract, err := bindSystemContractMock(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SystemContractMockFilterer{contract: contract}, nil -} - -// bindSystemContractMock binds a generic wrapper to an already deployed contract. -func bindSystemContractMock(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SystemContractMockMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContractMock *SystemContractMockRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContractMock.Contract.SystemContractMockCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContractMock *SystemContractMockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContractMock.Contract.SystemContractMockTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContractMock *SystemContractMockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContractMock.Contract.SystemContractMockTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SystemContractMock *SystemContractMockCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SystemContractMock.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SystemContractMock *SystemContractMockTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SystemContractMock.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SystemContractMock *SystemContractMockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SystemContractMock.Contract.contract.Transact(opts, method, params...) -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 ) view returns(address) -func (_SystemContractMock *SystemContractMockCaller) GasCoinZRC20ByChainId(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) { - var out []interface{} - err := _SystemContractMock.contract.Call(opts, &out, "gasCoinZRC20ByChainId", arg0) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 ) view returns(address) -func (_SystemContractMock *SystemContractMockSession) GasCoinZRC20ByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContractMock.Contract.GasCoinZRC20ByChainId(&_SystemContractMock.CallOpts, arg0) -} - -// GasCoinZRC20ByChainId is a free data retrieval call binding the contract method 0x0be15547. -// -// Solidity: function gasCoinZRC20ByChainId(uint256 ) view returns(address) -func (_SystemContractMock *SystemContractMockCallerSession) GasCoinZRC20ByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContractMock.Contract.GasCoinZRC20ByChainId(&_SystemContractMock.CallOpts, arg0) -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 ) view returns(uint256) -func (_SystemContractMock *SystemContractMockCaller) GasPriceByChainId(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error) { - var out []interface{} - err := _SystemContractMock.contract.Call(opts, &out, "gasPriceByChainId", arg0) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 ) view returns(uint256) -func (_SystemContractMock *SystemContractMockSession) GasPriceByChainId(arg0 *big.Int) (*big.Int, error) { - return _SystemContractMock.Contract.GasPriceByChainId(&_SystemContractMock.CallOpts, arg0) -} - -// GasPriceByChainId is a free data retrieval call binding the contract method 0xd7fd7afb. -// -// Solidity: function gasPriceByChainId(uint256 ) view returns(uint256) -func (_SystemContractMock *SystemContractMockCallerSession) GasPriceByChainId(arg0 *big.Int) (*big.Int, error) { - return _SystemContractMock.Contract.GasPriceByChainId(&_SystemContractMock.CallOpts, arg0) -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 ) view returns(address) -func (_SystemContractMock *SystemContractMockCaller) GasZetaPoolByChainId(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) { - var out []interface{} - err := _SystemContractMock.contract.Call(opts, &out, "gasZetaPoolByChainId", arg0) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 ) view returns(address) -func (_SystemContractMock *SystemContractMockSession) GasZetaPoolByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContractMock.Contract.GasZetaPoolByChainId(&_SystemContractMock.CallOpts, arg0) -} - -// GasZetaPoolByChainId is a free data retrieval call binding the contract method 0x513a9c05. -// -// Solidity: function gasZetaPoolByChainId(uint256 ) view returns(address) -func (_SystemContractMock *SystemContractMockCallerSession) GasZetaPoolByChainId(arg0 *big.Int) (common.Address, error) { - return _SystemContractMock.Contract.GasZetaPoolByChainId(&_SystemContractMock.CallOpts, arg0) -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_SystemContractMock *SystemContractMockCaller) Uniswapv2FactoryAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContractMock.contract.Call(opts, &out, "uniswapv2FactoryAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_SystemContractMock *SystemContractMockSession) Uniswapv2FactoryAddress() (common.Address, error) { - return _SystemContractMock.Contract.Uniswapv2FactoryAddress(&_SystemContractMock.CallOpts) -} - -// Uniswapv2FactoryAddress is a free data retrieval call binding the contract method 0xd936a012. -// -// Solidity: function uniswapv2FactoryAddress() view returns(address) -func (_SystemContractMock *SystemContractMockCallerSession) Uniswapv2FactoryAddress() (common.Address, error) { - return _SystemContractMock.Contract.Uniswapv2FactoryAddress(&_SystemContractMock.CallOpts) -} - -// Uniswapv2PairFor is a free data retrieval call binding the contract method 0xc63585cc. -// -// Solidity: function uniswapv2PairFor(address factory, address tokenA, address tokenB) pure returns(address pair) -func (_SystemContractMock *SystemContractMockCaller) Uniswapv2PairFor(opts *bind.CallOpts, factory common.Address, tokenA common.Address, tokenB common.Address) (common.Address, error) { - var out []interface{} - err := _SystemContractMock.contract.Call(opts, &out, "uniswapv2PairFor", factory, tokenA, tokenB) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Uniswapv2PairFor is a free data retrieval call binding the contract method 0xc63585cc. -// -// Solidity: function uniswapv2PairFor(address factory, address tokenA, address tokenB) pure returns(address pair) -func (_SystemContractMock *SystemContractMockSession) Uniswapv2PairFor(factory common.Address, tokenA common.Address, tokenB common.Address) (common.Address, error) { - return _SystemContractMock.Contract.Uniswapv2PairFor(&_SystemContractMock.CallOpts, factory, tokenA, tokenB) -} - -// Uniswapv2PairFor is a free data retrieval call binding the contract method 0xc63585cc. -// -// Solidity: function uniswapv2PairFor(address factory, address tokenA, address tokenB) pure returns(address pair) -func (_SystemContractMock *SystemContractMockCallerSession) Uniswapv2PairFor(factory common.Address, tokenA common.Address, tokenB common.Address) (common.Address, error) { - return _SystemContractMock.Contract.Uniswapv2PairFor(&_SystemContractMock.CallOpts, factory, tokenA, tokenB) -} - -// Uniswapv2Router02Address is a free data retrieval call binding the contract method 0x842da36d. -// -// Solidity: function uniswapv2Router02Address() view returns(address) -func (_SystemContractMock *SystemContractMockCaller) Uniswapv2Router02Address(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContractMock.contract.Call(opts, &out, "uniswapv2Router02Address") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Uniswapv2Router02Address is a free data retrieval call binding the contract method 0x842da36d. -// -// Solidity: function uniswapv2Router02Address() view returns(address) -func (_SystemContractMock *SystemContractMockSession) Uniswapv2Router02Address() (common.Address, error) { - return _SystemContractMock.Contract.Uniswapv2Router02Address(&_SystemContractMock.CallOpts) -} - -// Uniswapv2Router02Address is a free data retrieval call binding the contract method 0x842da36d. -// -// Solidity: function uniswapv2Router02Address() view returns(address) -func (_SystemContractMock *SystemContractMockCallerSession) Uniswapv2Router02Address() (common.Address, error) { - return _SystemContractMock.Contract.Uniswapv2Router02Address(&_SystemContractMock.CallOpts) -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_SystemContractMock *SystemContractMockCaller) WZetaContractAddress(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _SystemContractMock.contract.Call(opts, &out, "wZetaContractAddress") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_SystemContractMock *SystemContractMockSession) WZetaContractAddress() (common.Address, error) { - return _SystemContractMock.Contract.WZetaContractAddress(&_SystemContractMock.CallOpts) -} - -// WZetaContractAddress is a free data retrieval call binding the contract method 0x569541b9. -// -// Solidity: function wZetaContractAddress() view returns(address) -func (_SystemContractMock *SystemContractMockCallerSession) WZetaContractAddress() (common.Address, error) { - return _SystemContractMock.Contract.WZetaContractAddress(&_SystemContractMock.CallOpts) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0x3c669d55. -// -// Solidity: function onCrossChainCall(address target, address zrc20, uint256 amount, bytes message) returns() -func (_SystemContractMock *SystemContractMockTransactor) OnCrossChainCall(opts *bind.TransactOpts, target common.Address, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _SystemContractMock.contract.Transact(opts, "onCrossChainCall", target, zrc20, amount, message) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0x3c669d55. -// -// Solidity: function onCrossChainCall(address target, address zrc20, uint256 amount, bytes message) returns() -func (_SystemContractMock *SystemContractMockSession) OnCrossChainCall(target common.Address, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _SystemContractMock.Contract.OnCrossChainCall(&_SystemContractMock.TransactOpts, target, zrc20, amount, message) -} - -// OnCrossChainCall is a paid mutator transaction binding the contract method 0x3c669d55. -// -// Solidity: function onCrossChainCall(address target, address zrc20, uint256 amount, bytes message) returns() -func (_SystemContractMock *SystemContractMockTransactorSession) OnCrossChainCall(target common.Address, zrc20 common.Address, amount *big.Int, message []byte) (*types.Transaction, error) { - return _SystemContractMock.Contract.OnCrossChainCall(&_SystemContractMock.TransactOpts, target, zrc20, amount, message) -} - -// SetGasCoinZRC20 is a paid mutator transaction binding the contract method 0xee2815ba. -// -// Solidity: function setGasCoinZRC20(uint256 chainID, address zrc20) returns() -func (_SystemContractMock *SystemContractMockTransactor) SetGasCoinZRC20(opts *bind.TransactOpts, chainID *big.Int, zrc20 common.Address) (*types.Transaction, error) { - return _SystemContractMock.contract.Transact(opts, "setGasCoinZRC20", chainID, zrc20) -} - -// SetGasCoinZRC20 is a paid mutator transaction binding the contract method 0xee2815ba. -// -// Solidity: function setGasCoinZRC20(uint256 chainID, address zrc20) returns() -func (_SystemContractMock *SystemContractMockSession) SetGasCoinZRC20(chainID *big.Int, zrc20 common.Address) (*types.Transaction, error) { - return _SystemContractMock.Contract.SetGasCoinZRC20(&_SystemContractMock.TransactOpts, chainID, zrc20) -} - -// SetGasCoinZRC20 is a paid mutator transaction binding the contract method 0xee2815ba. -// -// Solidity: function setGasCoinZRC20(uint256 chainID, address zrc20) returns() -func (_SystemContractMock *SystemContractMockTransactorSession) SetGasCoinZRC20(chainID *big.Int, zrc20 common.Address) (*types.Transaction, error) { - return _SystemContractMock.Contract.SetGasCoinZRC20(&_SystemContractMock.TransactOpts, chainID, zrc20) -} - -// SetGasPrice is a paid mutator transaction binding the contract method 0xa7cb0507. -// -// Solidity: function setGasPrice(uint256 chainID, uint256 price) returns() -func (_SystemContractMock *SystemContractMockTransactor) SetGasPrice(opts *bind.TransactOpts, chainID *big.Int, price *big.Int) (*types.Transaction, error) { - return _SystemContractMock.contract.Transact(opts, "setGasPrice", chainID, price) -} - -// SetGasPrice is a paid mutator transaction binding the contract method 0xa7cb0507. -// -// Solidity: function setGasPrice(uint256 chainID, uint256 price) returns() -func (_SystemContractMock *SystemContractMockSession) SetGasPrice(chainID *big.Int, price *big.Int) (*types.Transaction, error) { - return _SystemContractMock.Contract.SetGasPrice(&_SystemContractMock.TransactOpts, chainID, price) -} - -// SetGasPrice is a paid mutator transaction binding the contract method 0xa7cb0507. -// -// Solidity: function setGasPrice(uint256 chainID, uint256 price) returns() -func (_SystemContractMock *SystemContractMockTransactorSession) SetGasPrice(chainID *big.Int, price *big.Int) (*types.Transaction, error) { - return _SystemContractMock.Contract.SetGasPrice(&_SystemContractMock.TransactOpts, chainID, price) -} - -// SetWZETAContractAddress is a paid mutator transaction binding the contract method 0x97770dff. -// -// Solidity: function setWZETAContractAddress(address addr) returns() -func (_SystemContractMock *SystemContractMockTransactor) SetWZETAContractAddress(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error) { - return _SystemContractMock.contract.Transact(opts, "setWZETAContractAddress", addr) -} - -// SetWZETAContractAddress is a paid mutator transaction binding the contract method 0x97770dff. -// -// Solidity: function setWZETAContractAddress(address addr) returns() -func (_SystemContractMock *SystemContractMockSession) SetWZETAContractAddress(addr common.Address) (*types.Transaction, error) { - return _SystemContractMock.Contract.SetWZETAContractAddress(&_SystemContractMock.TransactOpts, addr) -} - -// SetWZETAContractAddress is a paid mutator transaction binding the contract method 0x97770dff. -// -// Solidity: function setWZETAContractAddress(address addr) returns() -func (_SystemContractMock *SystemContractMockTransactorSession) SetWZETAContractAddress(addr common.Address) (*types.Transaction, error) { - return _SystemContractMock.Contract.SetWZETAContractAddress(&_SystemContractMock.TransactOpts, addr) -} - -// SystemContractMockSetGasCoinIterator is returned from FilterSetGasCoin and is used to iterate over the raw logs and unpacked data for SetGasCoin events raised by the SystemContractMock contract. -type SystemContractMockSetGasCoinIterator struct { - Event *SystemContractMockSetGasCoin // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractMockSetGasCoinIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetGasCoin) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetGasCoin) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractMockSetGasCoinIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractMockSetGasCoinIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractMockSetGasCoin represents a SetGasCoin event raised by the SystemContractMock contract. -type SystemContractMockSetGasCoin struct { - Arg0 *big.Int - Arg1 common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetGasCoin is a free log retrieval operation binding the contract event 0xd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d. -// -// Solidity: event SetGasCoin(uint256 arg0, address arg1) -func (_SystemContractMock *SystemContractMockFilterer) FilterSetGasCoin(opts *bind.FilterOpts) (*SystemContractMockSetGasCoinIterator, error) { - - logs, sub, err := _SystemContractMock.contract.FilterLogs(opts, "SetGasCoin") - if err != nil { - return nil, err - } - return &SystemContractMockSetGasCoinIterator{contract: _SystemContractMock.contract, event: "SetGasCoin", logs: logs, sub: sub}, nil -} - -// WatchSetGasCoin is a free log subscription operation binding the contract event 0xd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d. -// -// Solidity: event SetGasCoin(uint256 arg0, address arg1) -func (_SystemContractMock *SystemContractMockFilterer) WatchSetGasCoin(opts *bind.WatchOpts, sink chan<- *SystemContractMockSetGasCoin) (event.Subscription, error) { - - logs, sub, err := _SystemContractMock.contract.WatchLogs(opts, "SetGasCoin") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractMockSetGasCoin) - if err := _SystemContractMock.contract.UnpackLog(event, "SetGasCoin", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetGasCoin is a log parse operation binding the contract event 0xd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d. -// -// Solidity: event SetGasCoin(uint256 arg0, address arg1) -func (_SystemContractMock *SystemContractMockFilterer) ParseSetGasCoin(log types.Log) (*SystemContractMockSetGasCoin, error) { - event := new(SystemContractMockSetGasCoin) - if err := _SystemContractMock.contract.UnpackLog(event, "SetGasCoin", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractMockSetGasPriceIterator is returned from FilterSetGasPrice and is used to iterate over the raw logs and unpacked data for SetGasPrice events raised by the SystemContractMock contract. -type SystemContractMockSetGasPriceIterator struct { - Event *SystemContractMockSetGasPrice // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractMockSetGasPriceIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetGasPrice) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetGasPrice) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractMockSetGasPriceIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractMockSetGasPriceIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractMockSetGasPrice represents a SetGasPrice event raised by the SystemContractMock contract. -type SystemContractMockSetGasPrice struct { - Arg0 *big.Int - Arg1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetGasPrice is a free log retrieval operation binding the contract event 0x49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d. -// -// Solidity: event SetGasPrice(uint256 arg0, uint256 arg1) -func (_SystemContractMock *SystemContractMockFilterer) FilterSetGasPrice(opts *bind.FilterOpts) (*SystemContractMockSetGasPriceIterator, error) { - - logs, sub, err := _SystemContractMock.contract.FilterLogs(opts, "SetGasPrice") - if err != nil { - return nil, err - } - return &SystemContractMockSetGasPriceIterator{contract: _SystemContractMock.contract, event: "SetGasPrice", logs: logs, sub: sub}, nil -} - -// WatchSetGasPrice is a free log subscription operation binding the contract event 0x49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d. -// -// Solidity: event SetGasPrice(uint256 arg0, uint256 arg1) -func (_SystemContractMock *SystemContractMockFilterer) WatchSetGasPrice(opts *bind.WatchOpts, sink chan<- *SystemContractMockSetGasPrice) (event.Subscription, error) { - - logs, sub, err := _SystemContractMock.contract.WatchLogs(opts, "SetGasPrice") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractMockSetGasPrice) - if err := _SystemContractMock.contract.UnpackLog(event, "SetGasPrice", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetGasPrice is a log parse operation binding the contract event 0x49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d. -// -// Solidity: event SetGasPrice(uint256 arg0, uint256 arg1) -func (_SystemContractMock *SystemContractMockFilterer) ParseSetGasPrice(log types.Log) (*SystemContractMockSetGasPrice, error) { - event := new(SystemContractMockSetGasPrice) - if err := _SystemContractMock.contract.UnpackLog(event, "SetGasPrice", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractMockSetGasZetaPoolIterator is returned from FilterSetGasZetaPool and is used to iterate over the raw logs and unpacked data for SetGasZetaPool events raised by the SystemContractMock contract. -type SystemContractMockSetGasZetaPoolIterator struct { - Event *SystemContractMockSetGasZetaPool // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractMockSetGasZetaPoolIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetGasZetaPool) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetGasZetaPool) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractMockSetGasZetaPoolIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractMockSetGasZetaPoolIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractMockSetGasZetaPool represents a SetGasZetaPool event raised by the SystemContractMock contract. -type SystemContractMockSetGasZetaPool struct { - Arg0 *big.Int - Arg1 common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetGasZetaPool is a free log retrieval operation binding the contract event 0x0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e. -// -// Solidity: event SetGasZetaPool(uint256 arg0, address arg1) -func (_SystemContractMock *SystemContractMockFilterer) FilterSetGasZetaPool(opts *bind.FilterOpts) (*SystemContractMockSetGasZetaPoolIterator, error) { - - logs, sub, err := _SystemContractMock.contract.FilterLogs(opts, "SetGasZetaPool") - if err != nil { - return nil, err - } - return &SystemContractMockSetGasZetaPoolIterator{contract: _SystemContractMock.contract, event: "SetGasZetaPool", logs: logs, sub: sub}, nil -} - -// WatchSetGasZetaPool is a free log subscription operation binding the contract event 0x0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e. -// -// Solidity: event SetGasZetaPool(uint256 arg0, address arg1) -func (_SystemContractMock *SystemContractMockFilterer) WatchSetGasZetaPool(opts *bind.WatchOpts, sink chan<- *SystemContractMockSetGasZetaPool) (event.Subscription, error) { - - logs, sub, err := _SystemContractMock.contract.WatchLogs(opts, "SetGasZetaPool") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractMockSetGasZetaPool) - if err := _SystemContractMock.contract.UnpackLog(event, "SetGasZetaPool", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetGasZetaPool is a log parse operation binding the contract event 0x0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e. -// -// Solidity: event SetGasZetaPool(uint256 arg0, address arg1) -func (_SystemContractMock *SystemContractMockFilterer) ParseSetGasZetaPool(log types.Log) (*SystemContractMockSetGasZetaPool, error) { - event := new(SystemContractMockSetGasZetaPool) - if err := _SystemContractMock.contract.UnpackLog(event, "SetGasZetaPool", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractMockSetWZetaIterator is returned from FilterSetWZeta and is used to iterate over the raw logs and unpacked data for SetWZeta events raised by the SystemContractMock contract. -type SystemContractMockSetWZetaIterator struct { - Event *SystemContractMockSetWZeta // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractMockSetWZetaIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetWZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSetWZeta) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractMockSetWZetaIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractMockSetWZetaIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractMockSetWZeta represents a SetWZeta event raised by the SystemContractMock contract. -type SystemContractMockSetWZeta struct { - Arg0 common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetWZeta is a free log retrieval operation binding the contract event 0xdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e. -// -// Solidity: event SetWZeta(address arg0) -func (_SystemContractMock *SystemContractMockFilterer) FilterSetWZeta(opts *bind.FilterOpts) (*SystemContractMockSetWZetaIterator, error) { - - logs, sub, err := _SystemContractMock.contract.FilterLogs(opts, "SetWZeta") - if err != nil { - return nil, err - } - return &SystemContractMockSetWZetaIterator{contract: _SystemContractMock.contract, event: "SetWZeta", logs: logs, sub: sub}, nil -} - -// WatchSetWZeta is a free log subscription operation binding the contract event 0xdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e. -// -// Solidity: event SetWZeta(address arg0) -func (_SystemContractMock *SystemContractMockFilterer) WatchSetWZeta(opts *bind.WatchOpts, sink chan<- *SystemContractMockSetWZeta) (event.Subscription, error) { - - logs, sub, err := _SystemContractMock.contract.WatchLogs(opts, "SetWZeta") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractMockSetWZeta) - if err := _SystemContractMock.contract.UnpackLog(event, "SetWZeta", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetWZeta is a log parse operation binding the contract event 0xdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e. -// -// Solidity: event SetWZeta(address arg0) -func (_SystemContractMock *SystemContractMockFilterer) ParseSetWZeta(log types.Log) (*SystemContractMockSetWZeta, error) { - event := new(SystemContractMockSetWZeta) - if err := _SystemContractMock.contract.UnpackLog(event, "SetWZeta", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// SystemContractMockSystemContractDeployedIterator is returned from FilterSystemContractDeployed and is used to iterate over the raw logs and unpacked data for SystemContractDeployed events raised by the SystemContractMock contract. -type SystemContractMockSystemContractDeployedIterator struct { - Event *SystemContractMockSystemContractDeployed // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *SystemContractMockSystemContractDeployedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSystemContractDeployed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(SystemContractMockSystemContractDeployed) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *SystemContractMockSystemContractDeployedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *SystemContractMockSystemContractDeployedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// SystemContractMockSystemContractDeployed represents a SystemContractDeployed event raised by the SystemContractMock contract. -type SystemContractMockSystemContractDeployed struct { - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSystemContractDeployed is a free log retrieval operation binding the contract event 0x80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac5. -// -// Solidity: event SystemContractDeployed() -func (_SystemContractMock *SystemContractMockFilterer) FilterSystemContractDeployed(opts *bind.FilterOpts) (*SystemContractMockSystemContractDeployedIterator, error) { - - logs, sub, err := _SystemContractMock.contract.FilterLogs(opts, "SystemContractDeployed") - if err != nil { - return nil, err - } - return &SystemContractMockSystemContractDeployedIterator{contract: _SystemContractMock.contract, event: "SystemContractDeployed", logs: logs, sub: sub}, nil -} - -// WatchSystemContractDeployed is a free log subscription operation binding the contract event 0x80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac5. -// -// Solidity: event SystemContractDeployed() -func (_SystemContractMock *SystemContractMockFilterer) WatchSystemContractDeployed(opts *bind.WatchOpts, sink chan<- *SystemContractMockSystemContractDeployed) (event.Subscription, error) { - - logs, sub, err := _SystemContractMock.contract.WatchLogs(opts, "SystemContractDeployed") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(SystemContractMockSystemContractDeployed) - if err := _SystemContractMock.contract.UnpackLog(event, "SystemContractDeployed", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSystemContractDeployed is a log parse operation binding the contract event 0x80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac5. -// -// Solidity: event SystemContractDeployed() -func (_SystemContractMock *SystemContractMockFilterer) ParseSystemContractDeployed(log types.Log) (*SystemContractMockSystemContractDeployed, error) { - event := new(SystemContractMockSystemContractDeployed) - if err := _SystemContractMock.contract.UnpackLog(event, "SystemContractDeployed", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/uniswap.sol/uniswapimports.go b/v1/pkg/contracts/zevm/uniswap.sol/uniswapimports.go deleted file mode 100644 index 4107336a1..000000000 --- a/v1/pkg/contracts/zevm/uniswap.sol/uniswapimports.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uniswap - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UniswapImportsMetaData contains all meta data concerning the UniswapImports contract. -var UniswapImportsMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a72315820e9232a161dc235f259a171daf4cc9c53677aabc950914989e6b4f90c1688088664736f6c63430005100032", -} - -// UniswapImportsABI is the input ABI used to generate the binding from. -// Deprecated: Use UniswapImportsMetaData.ABI instead. -var UniswapImportsABI = UniswapImportsMetaData.ABI - -// UniswapImportsBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UniswapImportsMetaData.Bin instead. -var UniswapImportsBin = UniswapImportsMetaData.Bin - -// DeployUniswapImports deploys a new Ethereum contract, binding an instance of UniswapImports to it. -func DeployUniswapImports(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *UniswapImports, error) { - parsed, err := UniswapImportsMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UniswapImportsBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UniswapImports{UniswapImportsCaller: UniswapImportsCaller{contract: contract}, UniswapImportsTransactor: UniswapImportsTransactor{contract: contract}, UniswapImportsFilterer: UniswapImportsFilterer{contract: contract}}, nil -} - -// UniswapImports is an auto generated Go binding around an Ethereum contract. -type UniswapImports struct { - UniswapImportsCaller // Read-only binding to the contract - UniswapImportsTransactor // Write-only binding to the contract - UniswapImportsFilterer // Log filterer for contract events -} - -// UniswapImportsCaller is an auto generated read-only Go binding around an Ethereum contract. -type UniswapImportsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapImportsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type UniswapImportsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapImportsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniswapImportsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapImportsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniswapImportsSession struct { - Contract *UniswapImports // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapImportsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniswapImportsCallerSession struct { - Contract *UniswapImportsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniswapImportsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniswapImportsTransactorSession struct { - Contract *UniswapImportsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapImportsRaw is an auto generated low-level Go binding around an Ethereum contract. -type UniswapImportsRaw struct { - Contract *UniswapImports // Generic contract binding to access the raw methods on -} - -// UniswapImportsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniswapImportsCallerRaw struct { - Contract *UniswapImportsCaller // Generic read-only contract binding to access the raw methods on -} - -// UniswapImportsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniswapImportsTransactorRaw struct { - Contract *UniswapImportsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniswapImports creates a new instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImports(address common.Address, backend bind.ContractBackend) (*UniswapImports, error) { - contract, err := bindUniswapImports(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniswapImports{UniswapImportsCaller: UniswapImportsCaller{contract: contract}, UniswapImportsTransactor: UniswapImportsTransactor{contract: contract}, UniswapImportsFilterer: UniswapImportsFilterer{contract: contract}}, nil -} - -// NewUniswapImportsCaller creates a new read-only instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImportsCaller(address common.Address, caller bind.ContractCaller) (*UniswapImportsCaller, error) { - contract, err := bindUniswapImports(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniswapImportsCaller{contract: contract}, nil -} - -// NewUniswapImportsTransactor creates a new write-only instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImportsTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapImportsTransactor, error) { - contract, err := bindUniswapImports(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniswapImportsTransactor{contract: contract}, nil -} - -// NewUniswapImportsFilterer creates a new log filterer instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImportsFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapImportsFilterer, error) { - contract, err := bindUniswapImports(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniswapImportsFilterer{contract: contract}, nil -} - -// bindUniswapImports binds a generic wrapper to an already deployed contract. -func bindUniswapImports(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniswapImportsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapImports *UniswapImportsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapImports.Contract.UniswapImportsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapImports *UniswapImportsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapImports.Contract.UniswapImportsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapImports *UniswapImportsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapImports.Contract.UniswapImportsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapImports *UniswapImportsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapImports.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapImports *UniswapImportsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapImports.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapImports *UniswapImportsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapImports.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/zevm/uniswapperiphery.sol/uniswapimports.go b/v1/pkg/contracts/zevm/uniswapperiphery.sol/uniswapimports.go deleted file mode 100644 index 45699f426..000000000 --- a/v1/pkg/contracts/zevm/uniswapperiphery.sol/uniswapimports.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uniswapperiphery - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UniswapImportsMetaData contains all meta data concerning the UniswapImports contract. -var UniswapImportsMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x6080604052348015600f57600080fd5b50603f80601d6000396000f3fe6080604052600080fdfea2646970667358221220291c8a5b5fa81338f6eedd0a9b33e226da83e828449ba685880e3dc446a90e6464736f6c63430006060033", -} - -// UniswapImportsABI is the input ABI used to generate the binding from. -// Deprecated: Use UniswapImportsMetaData.ABI instead. -var UniswapImportsABI = UniswapImportsMetaData.ABI - -// UniswapImportsBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UniswapImportsMetaData.Bin instead. -var UniswapImportsBin = UniswapImportsMetaData.Bin - -// DeployUniswapImports deploys a new Ethereum contract, binding an instance of UniswapImports to it. -func DeployUniswapImports(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *UniswapImports, error) { - parsed, err := UniswapImportsMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UniswapImportsBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UniswapImports{UniswapImportsCaller: UniswapImportsCaller{contract: contract}, UniswapImportsTransactor: UniswapImportsTransactor{contract: contract}, UniswapImportsFilterer: UniswapImportsFilterer{contract: contract}}, nil -} - -// UniswapImports is an auto generated Go binding around an Ethereum contract. -type UniswapImports struct { - UniswapImportsCaller // Read-only binding to the contract - UniswapImportsTransactor // Write-only binding to the contract - UniswapImportsFilterer // Log filterer for contract events -} - -// UniswapImportsCaller is an auto generated read-only Go binding around an Ethereum contract. -type UniswapImportsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapImportsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type UniswapImportsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapImportsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniswapImportsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapImportsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniswapImportsSession struct { - Contract *UniswapImports // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapImportsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniswapImportsCallerSession struct { - Contract *UniswapImportsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniswapImportsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniswapImportsTransactorSession struct { - Contract *UniswapImportsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapImportsRaw is an auto generated low-level Go binding around an Ethereum contract. -type UniswapImportsRaw struct { - Contract *UniswapImports // Generic contract binding to access the raw methods on -} - -// UniswapImportsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniswapImportsCallerRaw struct { - Contract *UniswapImportsCaller // Generic read-only contract binding to access the raw methods on -} - -// UniswapImportsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniswapImportsTransactorRaw struct { - Contract *UniswapImportsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniswapImports creates a new instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImports(address common.Address, backend bind.ContractBackend) (*UniswapImports, error) { - contract, err := bindUniswapImports(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniswapImports{UniswapImportsCaller: UniswapImportsCaller{contract: contract}, UniswapImportsTransactor: UniswapImportsTransactor{contract: contract}, UniswapImportsFilterer: UniswapImportsFilterer{contract: contract}}, nil -} - -// NewUniswapImportsCaller creates a new read-only instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImportsCaller(address common.Address, caller bind.ContractCaller) (*UniswapImportsCaller, error) { - contract, err := bindUniswapImports(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniswapImportsCaller{contract: contract}, nil -} - -// NewUniswapImportsTransactor creates a new write-only instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImportsTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapImportsTransactor, error) { - contract, err := bindUniswapImports(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniswapImportsTransactor{contract: contract}, nil -} - -// NewUniswapImportsFilterer creates a new log filterer instance of UniswapImports, bound to a specific deployed contract. -func NewUniswapImportsFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapImportsFilterer, error) { - contract, err := bindUniswapImports(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniswapImportsFilterer{contract: contract}, nil -} - -// bindUniswapImports binds a generic wrapper to an already deployed contract. -func bindUniswapImports(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniswapImportsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapImports *UniswapImportsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapImports.Contract.UniswapImportsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapImports *UniswapImportsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapImports.Contract.UniswapImportsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapImports *UniswapImportsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapImports.Contract.UniswapImportsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapImports *UniswapImportsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapImports.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapImports *UniswapImportsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapImports.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapImports *UniswapImportsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapImports.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/zevm/wzeta.sol/weth9.go b/v1/pkg/contracts/zevm/wzeta.sol/weth9.go deleted file mode 100644 index 162a6c508..000000000 --- a/v1/pkg/contracts/zevm/wzeta.sol/weth9.go +++ /dev/null @@ -1,1113 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package wzeta - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// WETH9MetaData contains all meta data concerning the WETH9 contract. -var WETH9MetaData = &bind.MetaData{ - ABI: "[{\"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\"}]", - Bin: "0x60806040526040518060400160405280600d81526020017f57726170706564204574686572000000000000000000000000000000000000008152506000908051906020019062000051929190620000d0565b506040518060400160405280600481526020017f5745544800000000000000000000000000000000000000000000000000000000815250600190805190602001906200009f929190620000d0565b506012600260006101000a81548160ff021916908360ff160217905550348015620000c957600080fd5b50620001e5565b828054620000de9062000180565b90600052602060002090601f0160209004810192826200010257600085556200014e565b82601f106200011d57805160ff19168380011785556200014e565b828001600101855582156200014e579182015b828111156200014d57825182559160200191906001019062000130565b5b5090506200015d919062000161565b5090565b5b808211156200017c57600081600090555060010162000162565b5090565b600060028204905060018216806200019957607f821691505b60208210811415620001b057620001af620001b6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b610fd380620001f56000396000f3fe6080604052600436106100a05760003560e01c8063313ce56711610064578063313ce567146101ad57806370a08231146101d857806395d89b4114610215578063a9059cbb14610240578063d0e30db01461027d578063dd62ed3e14610287576100af565b806306fdde03146100b4578063095ea7b3146100df57806318160ddd1461011c57806323b872dd146101475780632e1a7d4d14610184576100af565b366100af576100ad6102c4565b005b600080fd5b3480156100c057600080fd5b506100c961036a565b6040516100d69190610d20565b60405180910390f35b3480156100eb57600080fd5b5061010660048036038101906101019190610c0f565b6103f8565b6040516101139190610d05565b60405180910390f35b34801561012857600080fd5b506101316104ea565b60405161013e9190610d62565b60405180910390f35b34801561015357600080fd5b5061016e60048036038101906101699190610bbc565b6104f2565b60405161017b9190610d05565b60405180910390f35b34801561019057600080fd5b506101ab60048036038101906101a69190610c4f565b6108c2565b005b3480156101b957600080fd5b506101c2610a32565b6040516101cf9190610d7d565b60405180910390f35b3480156101e457600080fd5b506101ff60048036038101906101fa9190610b4f565b610a45565b60405161020c9190610d62565b60405180910390f35b34801561022157600080fd5b5061022a610a5d565b6040516102379190610d20565b60405180910390f35b34801561024c57600080fd5b5061026760048036038101906102629190610c0f565b610aeb565b6040516102749190610d05565b60405180910390f35b6102856102c4565b005b34801561029357600080fd5b506102ae60048036038101906102a99190610b7c565b610b00565b6040516102bb9190610d62565b60405180910390f35b34600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546103139190610db4565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516103609190610d62565b60405180910390a2565b6000805461037790610ec6565b80601f01602080910402602001604051908101604052809291908181526020018280546103a390610ec6565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104d89190610d62565b60405180910390a36001905092915050565b600047905090565b600081600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056d90610d42565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415801561064e57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414155b156107a65781600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070990610d42565b60405180910390fd5b81600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461079e9190610e0a565b925050819055505b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107f59190610e0a565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461084b9190610db4565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108af9190610d62565b60405180910390a3600190509392505050565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093b90610d42565b60405180910390fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109939190610e0a565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109e0573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610a279190610d62565b60405180910390a250565b600260009054906101000a900460ff1681565b60036020528060005260406000206000915090505481565b60018054610a6a90610ec6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9690610ec6565b8015610ae35780601f10610ab857610100808354040283529160200191610ae3565b820191906000526020600020905b815481529060010190602001808311610ac657829003601f168201915b505050505081565b6000610af83384846104f2565b905092915050565b6004602052816000526040600020602052806000526040600020600091509150505481565b600081359050610b3481610f6f565b92915050565b600081359050610b4981610f86565b92915050565b600060208284031215610b6557610b64610f56565b5b6000610b7384828501610b25565b91505092915050565b60008060408385031215610b9357610b92610f56565b5b6000610ba185828601610b25565b9250506020610bb285828601610b25565b9150509250929050565b600080600060608486031215610bd557610bd4610f56565b5b6000610be386828701610b25565b9350506020610bf486828701610b25565b9250506040610c0586828701610b3a565b9150509250925092565b60008060408385031215610c2657610c25610f56565b5b6000610c3485828601610b25565b9250506020610c4585828601610b3a565b9150509250929050565b600060208284031215610c6557610c64610f56565b5b6000610c7384828501610b3a565b91505092915050565b610c8581610e50565b82525050565b6000610c9682610d98565b610ca08185610da3565b9350610cb0818560208601610e93565b610cb981610f5b565b840191505092915050565b6000610cd1600083610da3565b9150610cdc82610f6c565b600082019050919050565b610cf081610e7c565b82525050565b610cff81610e86565b82525050565b6000602082019050610d1a6000830184610c7c565b92915050565b60006020820190508181036000830152610d3a8184610c8b565b905092915050565b60006020820190508181036000830152610d5b81610cc4565b9050919050565b6000602082019050610d776000830184610ce7565b92915050565b6000602082019050610d926000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610dbf82610e7c565b9150610dca83610e7c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610dff57610dfe610ef8565b5b828201905092915050565b6000610e1582610e7c565b9150610e2083610e7c565b925082821015610e3357610e32610ef8565b5b828203905092915050565b6000610e4982610e5c565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610eb1578082015181840152602081019050610e96565b83811115610ec0576000848401525b50505050565b60006002820490506001821680610ede57607f821691505b60208210811415610ef257610ef1610f27565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b50565b610f7881610e3e565b8114610f8357600080fd5b50565b610f8f81610e7c565b8114610f9a57600080fd5b5056fea2646970667358221220ed2297470e8d6c8e387b5cdc1c81dd38decdf0b011f3c15df9f52f6da3dcc17664736f6c63430008070033", -} - -// WETH9ABI is the input ABI used to generate the binding from. -// Deprecated: Use WETH9MetaData.ABI instead. -var WETH9ABI = WETH9MetaData.ABI - -// WETH9Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use WETH9MetaData.Bin instead. -var WETH9Bin = WETH9MetaData.Bin - -// DeployWETH9 deploys a new Ethereum contract, binding an instance of WETH9 to it. -func DeployWETH9(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *WETH9, error) { - parsed, err := WETH9MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(WETH9Bin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &WETH9{WETH9Caller: WETH9Caller{contract: contract}, WETH9Transactor: WETH9Transactor{contract: contract}, WETH9Filterer: WETH9Filterer{contract: contract}}, nil -} - -// WETH9 is an auto generated Go binding around an Ethereum contract. -type WETH9 struct { - WETH9Caller // Read-only binding to the contract - WETH9Transactor // Write-only binding to the contract - WETH9Filterer // Log filterer for contract events -} - -// WETH9Caller is an auto generated read-only Go binding around an Ethereum contract. -type WETH9Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Transactor is an auto generated write-only Go binding around an Ethereum contract. -type WETH9Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type WETH9Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// WETH9Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type WETH9Session struct { - Contract *WETH9 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type WETH9CallerSession struct { - Contract *WETH9Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// WETH9TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type WETH9TransactorSession struct { - Contract *WETH9Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// WETH9Raw is an auto generated low-level Go binding around an Ethereum contract. -type WETH9Raw struct { - Contract *WETH9 // Generic contract binding to access the raw methods on -} - -// WETH9CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type WETH9CallerRaw struct { - Contract *WETH9Caller // Generic read-only contract binding to access the raw methods on -} - -// WETH9TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type WETH9TransactorRaw struct { - Contract *WETH9Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewWETH9 creates a new instance of WETH9, bound to a specific deployed contract. -func NewWETH9(address common.Address, backend bind.ContractBackend) (*WETH9, error) { - contract, err := bindWETH9(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &WETH9{WETH9Caller: WETH9Caller{contract: contract}, WETH9Transactor: WETH9Transactor{contract: contract}, WETH9Filterer: WETH9Filterer{contract: contract}}, nil -} - -// NewWETH9Caller creates a new read-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Caller(address common.Address, caller bind.ContractCaller) (*WETH9Caller, error) { - contract, err := bindWETH9(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &WETH9Caller{contract: contract}, nil -} - -// NewWETH9Transactor creates a new write-only instance of WETH9, bound to a specific deployed contract. -func NewWETH9Transactor(address common.Address, transactor bind.ContractTransactor) (*WETH9Transactor, error) { - contract, err := bindWETH9(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &WETH9Transactor{contract: contract}, nil -} - -// NewWETH9Filterer creates a new log filterer instance of WETH9, bound to a specific deployed contract. -func NewWETH9Filterer(address common.Address, filterer bind.ContractFilterer) (*WETH9Filterer, error) { - contract, err := bindWETH9(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &WETH9Filterer{contract: contract}, nil -} - -// bindWETH9 binds a generic wrapper to an already deployed contract. -func bindWETH9(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := WETH9MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.WETH9Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.WETH9Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_WETH9 *WETH9CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _WETH9.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_WETH9 *WETH9TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_WETH9 *WETH9TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _WETH9.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_WETH9 *WETH9Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error) { - var out []interface{} - err := _WETH9.contract.Call(opts, &out, "allowance", arg0, arg1) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_WETH9 *WETH9Session) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) { - return _WETH9.Contract.Allowance(&_WETH9.CallOpts, arg0, arg1) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_WETH9 *WETH9CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) { - return _WETH9.Contract.Allowance(&_WETH9.CallOpts, arg0, arg1) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_WETH9 *WETH9Caller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) { - var out []interface{} - err := _WETH9.contract.Call(opts, &out, "balanceOf", arg0) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_WETH9 *WETH9Session) BalanceOf(arg0 common.Address) (*big.Int, error) { - return _WETH9.Contract.BalanceOf(&_WETH9.CallOpts, arg0) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_WETH9 *WETH9CallerSession) BalanceOf(arg0 common.Address) (*big.Int, error) { - return _WETH9.Contract.BalanceOf(&_WETH9.CallOpts, arg0) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_WETH9 *WETH9Caller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _WETH9.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_WETH9 *WETH9Session) Decimals() (uint8, error) { - return _WETH9.Contract.Decimals(&_WETH9.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_WETH9 *WETH9CallerSession) Decimals() (uint8, error) { - return _WETH9.Contract.Decimals(&_WETH9.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_WETH9 *WETH9Caller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _WETH9.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_WETH9 *WETH9Session) Name() (string, error) { - return _WETH9.Contract.Name(&_WETH9.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_WETH9 *WETH9CallerSession) Name() (string, error) { - return _WETH9.Contract.Name(&_WETH9.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_WETH9 *WETH9Caller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _WETH9.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_WETH9 *WETH9Session) Symbol() (string, error) { - return _WETH9.Contract.Symbol(&_WETH9.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_WETH9 *WETH9CallerSession) Symbol() (string, error) { - return _WETH9.Contract.Symbol(&_WETH9.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_WETH9 *WETH9Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _WETH9.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_WETH9 *WETH9Session) TotalSupply() (*big.Int, error) { - return _WETH9.Contract.TotalSupply(&_WETH9.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_WETH9 *WETH9CallerSession) TotalSupply() (*big.Int, error) { - return _WETH9.Contract.TotalSupply(&_WETH9.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address guy, uint256 wad) returns(bool) -func (_WETH9 *WETH9Transactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "approve", guy, wad) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address guy, uint256 wad) returns(bool) -func (_WETH9 *WETH9Session) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Approve(&_WETH9.TransactOpts, guy, wad) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address guy, uint256 wad) returns(bool) -func (_WETH9 *WETH9TransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Approve(&_WETH9.TransactOpts, guy, wad) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_WETH9 *WETH9Transactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "deposit") -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_WETH9 *WETH9Session) Deposit() (*types.Transaction, error) { - return _WETH9.Contract.Deposit(&_WETH9.TransactOpts) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_WETH9 *WETH9TransactorSession) Deposit() (*types.Transaction, error) { - return _WETH9.Contract.Deposit(&_WETH9.TransactOpts) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address dst, uint256 wad) returns(bool) -func (_WETH9 *WETH9Transactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "transfer", dst, wad) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address dst, uint256 wad) returns(bool) -func (_WETH9 *WETH9Session) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Transfer(&_WETH9.TransactOpts, dst, wad) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address dst, uint256 wad) returns(bool) -func (_WETH9 *WETH9TransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Transfer(&_WETH9.TransactOpts, dst, wad) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool) -func (_WETH9 *WETH9Transactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "transferFrom", src, dst, wad) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool) -func (_WETH9 *WETH9Session) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.TransferFrom(&_WETH9.TransactOpts, src, dst, wad) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool) -func (_WETH9 *WETH9TransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.TransferFrom(&_WETH9.TransactOpts, src, dst, wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Transactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error) { - return _WETH9.contract.Transact(opts, "withdraw", wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9Session) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 wad) returns() -func (_WETH9 *WETH9TransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error) { - return _WETH9.Contract.Withdraw(&_WETH9.TransactOpts, wad) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_WETH9 *WETH9Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _WETH9.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_WETH9 *WETH9Session) Receive() (*types.Transaction, error) { - return _WETH9.Contract.Receive(&_WETH9.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_WETH9 *WETH9TransactorSession) Receive() (*types.Transaction, error) { - return _WETH9.Contract.Receive(&_WETH9.TransactOpts) -} - -// WETH9ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the WETH9 contract. -type WETH9ApprovalIterator struct { - Event *WETH9Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *WETH9ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(WETH9Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(WETH9Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *WETH9ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *WETH9ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// WETH9Approval represents a Approval event raised by the WETH9 contract. -type WETH9Approval struct { - Src common.Address - Guy common.Address - Wad *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed src, address indexed guy, uint256 wad) -func (_WETH9 *WETH9Filterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*WETH9ApprovalIterator, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - var guyRule []interface{} - for _, guyItem := range guy { - guyRule = append(guyRule, guyItem) - } - - logs, sub, err := _WETH9.contract.FilterLogs(opts, "Approval", srcRule, guyRule) - if err != nil { - return nil, err - } - return &WETH9ApprovalIterator{contract: _WETH9.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed src, address indexed guy, uint256 wad) -func (_WETH9 *WETH9Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *WETH9Approval, src []common.Address, guy []common.Address) (event.Subscription, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - var guyRule []interface{} - for _, guyItem := range guy { - guyRule = append(guyRule, guyItem) - } - - logs, sub, err := _WETH9.contract.WatchLogs(opts, "Approval", srcRule, guyRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(WETH9Approval) - if err := _WETH9.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed src, address indexed guy, uint256 wad) -func (_WETH9 *WETH9Filterer) ParseApproval(log types.Log) (*WETH9Approval, error) { - event := new(WETH9Approval) - if err := _WETH9.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// WETH9DepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the WETH9 contract. -type WETH9DepositIterator struct { - Event *WETH9Deposit // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *WETH9DepositIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(WETH9Deposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(WETH9Deposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *WETH9DepositIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *WETH9DepositIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// WETH9Deposit represents a Deposit event raised by the WETH9 contract. -type WETH9Deposit struct { - Dst common.Address - Wad *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c. -// -// Solidity: event Deposit(address indexed dst, uint256 wad) -func (_WETH9 *WETH9Filterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*WETH9DepositIterator, error) { - - var dstRule []interface{} - for _, dstItem := range dst { - dstRule = append(dstRule, dstItem) - } - - logs, sub, err := _WETH9.contract.FilterLogs(opts, "Deposit", dstRule) - if err != nil { - return nil, err - } - return &WETH9DepositIterator{contract: _WETH9.contract, event: "Deposit", logs: logs, sub: sub}, nil -} - -// WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c. -// -// Solidity: event Deposit(address indexed dst, uint256 wad) -func (_WETH9 *WETH9Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *WETH9Deposit, dst []common.Address) (event.Subscription, error) { - - var dstRule []interface{} - for _, dstItem := range dst { - dstRule = append(dstRule, dstItem) - } - - logs, sub, err := _WETH9.contract.WatchLogs(opts, "Deposit", dstRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(WETH9Deposit) - if err := _WETH9.contract.UnpackLog(event, "Deposit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c. -// -// Solidity: event Deposit(address indexed dst, uint256 wad) -func (_WETH9 *WETH9Filterer) ParseDeposit(log types.Log) (*WETH9Deposit, error) { - event := new(WETH9Deposit) - if err := _WETH9.contract.UnpackLog(event, "Deposit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// WETH9TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the WETH9 contract. -type WETH9TransferIterator struct { - Event *WETH9Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *WETH9TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(WETH9Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(WETH9Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *WETH9TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *WETH9TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// WETH9Transfer represents a Transfer event raised by the WETH9 contract. -type WETH9Transfer struct { - Src common.Address - Dst common.Address - Wad *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad) -func (_WETH9 *WETH9Filterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*WETH9TransferIterator, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - var dstRule []interface{} - for _, dstItem := range dst { - dstRule = append(dstRule, dstItem) - } - - logs, sub, err := _WETH9.contract.FilterLogs(opts, "Transfer", srcRule, dstRule) - if err != nil { - return nil, err - } - return &WETH9TransferIterator{contract: _WETH9.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad) -func (_WETH9 *WETH9Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *WETH9Transfer, src []common.Address, dst []common.Address) (event.Subscription, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - var dstRule []interface{} - for _, dstItem := range dst { - dstRule = append(dstRule, dstItem) - } - - logs, sub, err := _WETH9.contract.WatchLogs(opts, "Transfer", srcRule, dstRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(WETH9Transfer) - if err := _WETH9.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad) -func (_WETH9 *WETH9Filterer) ParseTransfer(log types.Log) (*WETH9Transfer, error) { - event := new(WETH9Transfer) - if err := _WETH9.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// WETH9WithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the WETH9 contract. -type WETH9WithdrawalIterator struct { - Event *WETH9Withdrawal // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *WETH9WithdrawalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(WETH9Withdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(WETH9Withdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *WETH9WithdrawalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *WETH9WithdrawalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// WETH9Withdrawal represents a Withdrawal event raised by the WETH9 contract. -type WETH9Withdrawal struct { - Src common.Address - Wad *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWithdrawal is a free log retrieval operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65. -// -// Solidity: event Withdrawal(address indexed src, uint256 wad) -func (_WETH9 *WETH9Filterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*WETH9WithdrawalIterator, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - - logs, sub, err := _WETH9.contract.FilterLogs(opts, "Withdrawal", srcRule) - if err != nil { - return nil, err - } - return &WETH9WithdrawalIterator{contract: _WETH9.contract, event: "Withdrawal", logs: logs, sub: sub}, nil -} - -// WatchWithdrawal is a free log subscription operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65. -// -// Solidity: event Withdrawal(address indexed src, uint256 wad) -func (_WETH9 *WETH9Filterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *WETH9Withdrawal, src []common.Address) (event.Subscription, error) { - - var srcRule []interface{} - for _, srcItem := range src { - srcRule = append(srcRule, srcItem) - } - - logs, sub, err := _WETH9.contract.WatchLogs(opts, "Withdrawal", srcRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(WETH9Withdrawal) - if err := _WETH9.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWithdrawal is a log parse operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65. -// -// Solidity: event Withdrawal(address indexed src, uint256 wad) -func (_WETH9 *WETH9Filterer) ParseWithdrawal(log types.Log) (*WETH9Withdrawal, error) { - event := new(WETH9Withdrawal) - if err := _WETH9.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetaconnectorzevm.go b/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetaconnectorzevm.go deleted file mode 100644 index 3778303e1..000000000 --- a/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetaconnectorzevm.go +++ /dev/null @@ -1,1000 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetaconnectorzevm - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesSendInput is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesSendInput struct { - DestinationChainId *big.Int - DestinationAddress []byte - DestinationGasLimit *big.Int - Message []byte - ZetaValueAndGas *big.Int - ZetaParams []byte -} - -// ZetaConnectorZEVMMetaData contains all meta data concerning the ZetaConnectorZEVM contract. -var ZetaConnectorZEVMMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wzeta_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"FailedZetaSent\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyFungibleModule\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyWZETAOrFungible\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WZETATransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"WrongValue\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"wzeta_\",\"type\":\"address\"}],\"name\":\"SetWZETA\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"ZetaReverted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sourceTxOriginAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"name\":\"ZetaSent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"FUNGIBLE_MODULE_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onReceive\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"internalSendHash\",\"type\":\"bytes32\"}],\"name\":\"onRevert\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationGasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"zetaValueAndGas\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"zetaParams\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.SendInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"wzeta_\",\"type\":\"address\"}],\"name\":\"setWzetaAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wzeta\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", - Bin: "0x60806040523480156200001157600080fd5b506040516200177d3803806200177d833981810160405281019062000037919062000095565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200011a565b6000815190506200008f8162000100565b92915050565b600060208284031215620000ae57620000ad620000fb565b5b6000620000be848285016200007e565b91505092915050565b6000620000d482620000db565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200010b81620000c7565b81146200011757600080fd5b50565b611653806200012a6000396000f3fe6080604052600436106100585760003560e01c8062173d461461013757806329dd214d146101625780633ce4a5bc1461017e578063942a5e16146101a9578063eb3bacbd146101c5578063ec026901146101ee57610132565b366101325760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156100f9575073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610130576040517f229930b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b34801561014357600080fd5b5061014c610217565b6040516101599190611276565b60405180910390f35b61017c60048036038101906101779190610f77565b61023b565b005b34801561018a57600080fd5b506101936105f1565b6040516101a09190611276565b60405180910390f35b6101c360048036038101906101be9190610e68565b610609565b005b3480156101d157600080fd5b506101ec60048036038101906101e79190610e3b565b6109b3565b005b3480156101fa57600080fd5b5061021560048036038101906102109190611046565b610aa6565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102b4576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146102ed576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561035557600080fd5b505af1158015610369573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3087876040518463ffffffff1660e01b81526004016103cb93929190611291565b602060405180830381600087803b1580156103e557600080fd5b505af11580156103f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041d9190610f4a565b610453576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083839050111561058f578473ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018981526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b815260040161055c91906113f2565b600060405180830381600087803b15801561057657600080fd5b505af115801561058a573d6000803e3d6000fd5b505050505b808573ffffffffffffffffffffffffffffffffffffffff16877ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988b8b8989896040516105df9594939291906113a9565b60405180910390a45050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610682576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146106bb576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561072357600080fd5b505af1158015610737573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd308b876040518463ffffffff1660e01b815260040161079993929190611291565b602060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190610f4a565b610821576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838390501115610963578873ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b81526020018a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200188815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016109309190611414565b600060405180830381600087803b15801561094a57600080fd5b505af115801561095e573d6000803e3d6000fd5b505050505b80857f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888b8b8b8b8a8a8a6040516109a09796959493929190611344565b60405180910390a3505050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2c576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7325870b05f8f3412c318a35fc6a74feca51ea15811ec7a257676ca4db9d417681604051610a9b9190611276565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333084608001356040518463ffffffff1660e01b8152600401610b0793929190611291565b602060405180830381600087803b158015610b2157600080fd5b505af1158015610b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b599190610f4a565b610b8f576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d82608001356040518263ffffffff1660e01b8152600401610bec9190611436565b600060405180830381600087803b158015610c0657600080fd5b505af1158015610c1a573d6000803e3d6000fd5b50505050600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168260800135604051610c5c90611261565b60006040518083038185875af1925050503d8060008114610c99576040519150601f19603f3d011682016040523d82523d6000602084013e610c9e565b606091505b5050905080610cd9576040517fc7ffc47b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e432858060200190610d279190611451565b87608001358860400135898060600190610d419190611451565b8b8060a00190610d519190611451565b604051610d66999897969594939291906112c8565b60405180910390a35050565b600081359050610d81816115c1565b92915050565b600081519050610d96816115d8565b92915050565b600081359050610dab816115ef565b92915050565b60008083601f840112610dc757610dc6611585565b5b8235905067ffffffffffffffff811115610de457610de3611580565b5b602083019150836001820283011115610e0057610dff611599565b5b9250929050565b600060c08284031215610e1d57610e1c61158f565b5b81905092915050565b600081359050610e3581611606565b92915050565b600060208284031215610e5157610e506115a8565b5b6000610e5f84828501610d72565b91505092915050565b600080600080600080600080600060e08a8c031215610e8a57610e896115a8565b5b6000610e988c828d01610d72565b9950506020610ea98c828d01610e26565b98505060408a013567ffffffffffffffff811115610eca57610ec96115a3565b5b610ed68c828d01610db1565b97509750506060610ee98c828d01610e26565b9550506080610efa8c828d01610e26565b94505060a08a013567ffffffffffffffff811115610f1b57610f1a6115a3565b5b610f278c828d01610db1565b935093505060c0610f3a8c828d01610d9c565b9150509295985092959850929598565b600060208284031215610f6057610f5f6115a8565b5b6000610f6e84828501610d87565b91505092915050565b60008060008060008060008060c0898b031215610f9757610f966115a8565b5b600089013567ffffffffffffffff811115610fb557610fb46115a3565b5b610fc18b828c01610db1565b98509850506020610fd48b828c01610e26565b9650506040610fe58b828c01610d72565b9550506060610ff68b828c01610e26565b945050608089013567ffffffffffffffff811115611017576110166115a3565b5b6110238b828c01610db1565b935093505060a06110368b828c01610d9c565b9150509295985092959890939650565b60006020828403121561105c5761105b6115a8565b5b600082013567ffffffffffffffff81111561107a576110796115a3565b5b61108684828501610e07565b91505092915050565b611098816114ec565b82525050565b6110a7816114ec565b82525050565b60006110b983856114d0565b93506110c683858461153e565b6110cf836115ad565b840190509392505050565b60006110e5826114b4565b6110ef81856114bf565b93506110ff81856020860161154d565b611108816115ad565b840191505092915050565b60006111206000836114e1565b915061112b826115be565b600082019050919050565b600060a083016000830151848203600086015261115382826110da565b91505060208301516111686020860182611243565b50604083015161117b604086018261108f565b50606083015161118e6060860182611243565b50608083015184820360808601526111a682826110da565b9150508091505092915050565b600060c0830160008301516111cb600086018261108f565b5060208301516111de6020860182611243565b50604083015184820360408601526111f682826110da565b915050606083015161120b6060860182611243565b50608083015161121e6080860182611243565b5060a083015184820360a086015261123682826110da565b9150508091505092915050565b61124c81611534565b82525050565b61125b81611534565b82525050565b600061126c82611113565b9150819050919050565b600060208201905061128b600083018461109e565b92915050565b60006060820190506112a6600083018661109e565b6112b3602083018561109e565b6112c06040830184611252565b949350505050565b600060c0820190506112dd600083018c61109e565b81810360208301526112f0818a8c6110ad565b90506112ff6040830189611252565b61130c6060830188611252565b818103608083015261131f8186886110ad565b905081810360a08301526113348184866110ad565b90509a9950505050505050505050565b600060a082019050611359600083018a61109e565b6113666020830189611252565b81810360408301526113798187896110ad565b90506113886060830186611252565b818103608083015261139b8184866110ad565b905098975050505050505050565b600060608201905081810360008301526113c48187896110ad565b90506113d36020830186611252565b81810360408301526113e68184866110ad565b90509695505050505050565b6000602082019050818103600083015261140c8184611136565b905092915050565b6000602082019050818103600083015261142e81846111b3565b905092915050565b600060208201905061144b6000830184611252565b92915050565b6000808335600160200384360303811261146e5761146d611594565b5b80840192508235915067ffffffffffffffff8211156114905761148f61158a565b5b6020830192506001820236038313156114ac576114ab61159e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006114f782611514565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561156b578082015181840152602081019050611550565b8381111561157a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b50565b6115ca816114ec565b81146115d557600080fd5b50565b6115e1816114fe565b81146115ec57600080fd5b50565b6115f88161150a565b811461160357600080fd5b50565b61160f81611534565b811461161a57600080fd5b5056fea26469706673582212208fcfd4dd090449f8c32ab1dc30eb44ec918bcb60da6d7ed0572173ea3fdf6fd364736f6c63430008070033", -} - -// ZetaConnectorZEVMABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaConnectorZEVMMetaData.ABI instead. -var ZetaConnectorZEVMABI = ZetaConnectorZEVMMetaData.ABI - -// ZetaConnectorZEVMBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZetaConnectorZEVMMetaData.Bin instead. -var ZetaConnectorZEVMBin = ZetaConnectorZEVMMetaData.Bin - -// DeployZetaConnectorZEVM deploys a new Ethereum contract, binding an instance of ZetaConnectorZEVM to it. -func DeployZetaConnectorZEVM(auth *bind.TransactOpts, backend bind.ContractBackend, wzeta_ common.Address) (common.Address, *types.Transaction, *ZetaConnectorZEVM, error) { - parsed, err := ZetaConnectorZEVMMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZetaConnectorZEVMBin), backend, wzeta_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZetaConnectorZEVM{ZetaConnectorZEVMCaller: ZetaConnectorZEVMCaller{contract: contract}, ZetaConnectorZEVMTransactor: ZetaConnectorZEVMTransactor{contract: contract}, ZetaConnectorZEVMFilterer: ZetaConnectorZEVMFilterer{contract: contract}}, nil -} - -// ZetaConnectorZEVM is an auto generated Go binding around an Ethereum contract. -type ZetaConnectorZEVM struct { - ZetaConnectorZEVMCaller // Read-only binding to the contract - ZetaConnectorZEVMTransactor // Write-only binding to the contract - ZetaConnectorZEVMFilterer // Log filterer for contract events -} - -// ZetaConnectorZEVMCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaConnectorZEVMCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorZEVMTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaConnectorZEVMTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorZEVMFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaConnectorZEVMFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaConnectorZEVMSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaConnectorZEVMSession struct { - Contract *ZetaConnectorZEVM // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorZEVMCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaConnectorZEVMCallerSession struct { - Contract *ZetaConnectorZEVMCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaConnectorZEVMTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaConnectorZEVMTransactorSession struct { - Contract *ZetaConnectorZEVMTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaConnectorZEVMRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaConnectorZEVMRaw struct { - Contract *ZetaConnectorZEVM // Generic contract binding to access the raw methods on -} - -// ZetaConnectorZEVMCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaConnectorZEVMCallerRaw struct { - Contract *ZetaConnectorZEVMCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaConnectorZEVMTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaConnectorZEVMTransactorRaw struct { - Contract *ZetaConnectorZEVMTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaConnectorZEVM creates a new instance of ZetaConnectorZEVM, bound to a specific deployed contract. -func NewZetaConnectorZEVM(address common.Address, backend bind.ContractBackend) (*ZetaConnectorZEVM, error) { - contract, err := bindZetaConnectorZEVM(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaConnectorZEVM{ZetaConnectorZEVMCaller: ZetaConnectorZEVMCaller{contract: contract}, ZetaConnectorZEVMTransactor: ZetaConnectorZEVMTransactor{contract: contract}, ZetaConnectorZEVMFilterer: ZetaConnectorZEVMFilterer{contract: contract}}, nil -} - -// NewZetaConnectorZEVMCaller creates a new read-only instance of ZetaConnectorZEVM, bound to a specific deployed contract. -func NewZetaConnectorZEVMCaller(address common.Address, caller bind.ContractCaller) (*ZetaConnectorZEVMCaller, error) { - contract, err := bindZetaConnectorZEVM(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorZEVMCaller{contract: contract}, nil -} - -// NewZetaConnectorZEVMTransactor creates a new write-only instance of ZetaConnectorZEVM, bound to a specific deployed contract. -func NewZetaConnectorZEVMTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaConnectorZEVMTransactor, error) { - contract, err := bindZetaConnectorZEVM(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaConnectorZEVMTransactor{contract: contract}, nil -} - -// NewZetaConnectorZEVMFilterer creates a new log filterer instance of ZetaConnectorZEVM, bound to a specific deployed contract. -func NewZetaConnectorZEVMFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaConnectorZEVMFilterer, error) { - contract, err := bindZetaConnectorZEVM(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaConnectorZEVMFilterer{contract: contract}, nil -} - -// bindZetaConnectorZEVM binds a generic wrapper to an already deployed contract. -func bindZetaConnectorZEVM(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaConnectorZEVMMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorZEVM *ZetaConnectorZEVMRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorZEVM.Contract.ZetaConnectorZEVMCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorZEVM *ZetaConnectorZEVMRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.ZetaConnectorZEVMTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorZEVM *ZetaConnectorZEVMRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.ZetaConnectorZEVMTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaConnectorZEVM *ZetaConnectorZEVMCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaConnectorZEVM.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.contract.Transact(opts, method, params...) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMCaller) FUNGIBLEMODULEADDRESS(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorZEVM.contract.Call(opts, &out, "FUNGIBLE_MODULE_ADDRESS") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMSession) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _ZetaConnectorZEVM.Contract.FUNGIBLEMODULEADDRESS(&_ZetaConnectorZEVM.CallOpts) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMCallerSession) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _ZetaConnectorZEVM.Contract.FUNGIBLEMODULEADDRESS(&_ZetaConnectorZEVM.CallOpts) -} - -// Wzeta is a free data retrieval call binding the contract method 0x00173d46. -// -// Solidity: function wzeta() view returns(address) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMCaller) Wzeta(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZetaConnectorZEVM.contract.Call(opts, &out, "wzeta") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Wzeta is a free data retrieval call binding the contract method 0x00173d46. -// -// Solidity: function wzeta() view returns(address) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMSession) Wzeta() (common.Address, error) { - return _ZetaConnectorZEVM.Contract.Wzeta(&_ZetaConnectorZEVM.CallOpts) -} - -// Wzeta is a free data retrieval call binding the contract method 0x00173d46. -// -// Solidity: function wzeta() view returns(address) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMCallerSession) Wzeta() (common.Address, error) { - return _ZetaConnectorZEVM.Contract.Wzeta(&_ZetaConnectorZEVM.CallOpts) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactor) OnReceive(opts *bind.TransactOpts, zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorZEVM.contract.Transact(opts, "onReceive", zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.OnReceive(&_ZetaConnectorZEVM.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnReceive is a paid mutator transaction binding the contract method 0x29dd214d. -// -// Solidity: function onReceive(bytes zetaTxSenderAddress, uint256 sourceChainId, address destinationAddress, uint256 zetaValue, bytes message, bytes32 internalSendHash) payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactorSession) OnReceive(zetaTxSenderAddress []byte, sourceChainId *big.Int, destinationAddress common.Address, zetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.OnReceive(&_ZetaConnectorZEVM.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactor) OnRevert(opts *bind.TransactOpts, zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorZEVM.contract.Transact(opts, "onRevert", zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.OnRevert(&_ZetaConnectorZEVM.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// OnRevert is a paid mutator transaction binding the contract method 0x942a5e16. -// -// Solidity: function onRevert(address zetaTxSenderAddress, uint256 sourceChainId, bytes destinationAddress, uint256 destinationChainId, uint256 remainingZetaValue, bytes message, bytes32 internalSendHash) payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactorSession) OnRevert(zetaTxSenderAddress common.Address, sourceChainId *big.Int, destinationAddress []byte, destinationChainId *big.Int, remainingZetaValue *big.Int, message []byte, internalSendHash [32]byte) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.OnRevert(&_ZetaConnectorZEVM.TransactOpts, zetaTxSenderAddress, sourceChainId, destinationAddress, destinationChainId, remainingZetaValue, message, internalSendHash) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactor) Send(opts *bind.TransactOpts, input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorZEVM.contract.Transact(opts, "send", input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.Send(&_ZetaConnectorZEVM.TransactOpts, input) -} - -// Send is a paid mutator transaction binding the contract method 0xec026901. -// -// Solidity: function send((uint256,bytes,uint256,bytes,uint256,bytes) input) returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactorSession) Send(input ZetaInterfacesSendInput) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.Send(&_ZetaConnectorZEVM.TransactOpts, input) -} - -// SetWzetaAddress is a paid mutator transaction binding the contract method 0xeb3bacbd. -// -// Solidity: function setWzetaAddress(address wzeta_) returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactor) SetWzetaAddress(opts *bind.TransactOpts, wzeta_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorZEVM.contract.Transact(opts, "setWzetaAddress", wzeta_) -} - -// SetWzetaAddress is a paid mutator transaction binding the contract method 0xeb3bacbd. -// -// Solidity: function setWzetaAddress(address wzeta_) returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMSession) SetWzetaAddress(wzeta_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.SetWzetaAddress(&_ZetaConnectorZEVM.TransactOpts, wzeta_) -} - -// SetWzetaAddress is a paid mutator transaction binding the contract method 0xeb3bacbd. -// -// Solidity: function setWzetaAddress(address wzeta_) returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactorSession) SetWzetaAddress(wzeta_ common.Address) (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.SetWzetaAddress(&_ZetaConnectorZEVM.TransactOpts, wzeta_) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaConnectorZEVM.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMSession) Receive() (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.Receive(&_ZetaConnectorZEVM.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_ZetaConnectorZEVM *ZetaConnectorZEVMTransactorSession) Receive() (*types.Transaction, error) { - return _ZetaConnectorZEVM.Contract.Receive(&_ZetaConnectorZEVM.TransactOpts) -} - -// ZetaConnectorZEVMSetWZETAIterator is returned from FilterSetWZETA and is used to iterate over the raw logs and unpacked data for SetWZETA events raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMSetWZETAIterator struct { - Event *ZetaConnectorZEVMSetWZETA // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorZEVMSetWZETAIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMSetWZETA) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMSetWZETA) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorZEVMSetWZETAIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorZEVMSetWZETAIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorZEVMSetWZETA represents a SetWZETA event raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMSetWZETA struct { - Wzeta common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetWZETA is a free log retrieval operation binding the contract event 0x7325870b05f8f3412c318a35fc6a74feca51ea15811ec7a257676ca4db9d4176. -// -// Solidity: event SetWZETA(address wzeta_) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) FilterSetWZETA(opts *bind.FilterOpts) (*ZetaConnectorZEVMSetWZETAIterator, error) { - - logs, sub, err := _ZetaConnectorZEVM.contract.FilterLogs(opts, "SetWZETA") - if err != nil { - return nil, err - } - return &ZetaConnectorZEVMSetWZETAIterator{contract: _ZetaConnectorZEVM.contract, event: "SetWZETA", logs: logs, sub: sub}, nil -} - -// WatchSetWZETA is a free log subscription operation binding the contract event 0x7325870b05f8f3412c318a35fc6a74feca51ea15811ec7a257676ca4db9d4176. -// -// Solidity: event SetWZETA(address wzeta_) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) WatchSetWZETA(opts *bind.WatchOpts, sink chan<- *ZetaConnectorZEVMSetWZETA) (event.Subscription, error) { - - logs, sub, err := _ZetaConnectorZEVM.contract.WatchLogs(opts, "SetWZETA") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorZEVMSetWZETA) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "SetWZETA", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetWZETA is a log parse operation binding the contract event 0x7325870b05f8f3412c318a35fc6a74feca51ea15811ec7a257676ca4db9d4176. -// -// Solidity: event SetWZETA(address wzeta_) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) ParseSetWZETA(log types.Log) (*ZetaConnectorZEVMSetWZETA, error) { - event := new(ZetaConnectorZEVMSetWZETA) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "SetWZETA", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorZEVMZetaReceivedIterator is returned from FilterZetaReceived and is used to iterate over the raw logs and unpacked data for ZetaReceived events raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMZetaReceivedIterator struct { - Event *ZetaConnectorZEVMZetaReceived // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorZEVMZetaReceivedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMZetaReceived) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorZEVMZetaReceivedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorZEVMZetaReceivedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorZEVMZetaReceived represents a ZetaReceived event raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMZetaReceived struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReceived is a free log retrieval operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) FilterZetaReceived(opts *bind.FilterOpts, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (*ZetaConnectorZEVMZetaReceivedIterator, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorZEVM.contract.FilterLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorZEVMZetaReceivedIterator{contract: _ZetaConnectorZEVM.contract, event: "ZetaReceived", logs: logs, sub: sub}, nil -} - -// WatchZetaReceived is a free log subscription operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) WatchZetaReceived(opts *bind.WatchOpts, sink chan<- *ZetaConnectorZEVMZetaReceived, sourceChainId []*big.Int, destinationAddress []common.Address, internalSendHash [][32]byte) (event.Subscription, error) { - - var sourceChainIdRule []interface{} - for _, sourceChainIdItem := range sourceChainId { - sourceChainIdRule = append(sourceChainIdRule, sourceChainIdItem) - } - var destinationAddressRule []interface{} - for _, destinationAddressItem := range destinationAddress { - destinationAddressRule = append(destinationAddressRule, destinationAddressItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorZEVM.contract.WatchLogs(opts, "ZetaReceived", sourceChainIdRule, destinationAddressRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorZEVMZetaReceived) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReceived is a log parse operation binding the contract event 0xf1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d698. -// -// Solidity: event ZetaReceived(bytes zetaTxSenderAddress, uint256 indexed sourceChainId, address indexed destinationAddress, uint256 zetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) ParseZetaReceived(log types.Log) (*ZetaConnectorZEVMZetaReceived, error) { - event := new(ZetaConnectorZEVMZetaReceived) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "ZetaReceived", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorZEVMZetaRevertedIterator is returned from FilterZetaReverted and is used to iterate over the raw logs and unpacked data for ZetaReverted events raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMZetaRevertedIterator struct { - Event *ZetaConnectorZEVMZetaReverted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorZEVMZetaRevertedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMZetaReverted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorZEVMZetaRevertedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorZEVMZetaRevertedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorZEVMZetaReverted represents a ZetaReverted event raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMZetaReverted struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationChainId *big.Int - DestinationAddress []byte - RemainingZetaValue *big.Int - Message []byte - InternalSendHash [32]byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaReverted is a free log retrieval operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) FilterZetaReverted(opts *bind.FilterOpts, destinationChainId []*big.Int, internalSendHash [][32]byte) (*ZetaConnectorZEVMZetaRevertedIterator, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorZEVM.contract.FilterLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return &ZetaConnectorZEVMZetaRevertedIterator{contract: _ZetaConnectorZEVM.contract, event: "ZetaReverted", logs: logs, sub: sub}, nil -} - -// WatchZetaReverted is a free log subscription operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) WatchZetaReverted(opts *bind.WatchOpts, sink chan<- *ZetaConnectorZEVMZetaReverted, destinationChainId []*big.Int, internalSendHash [][32]byte) (event.Subscription, error) { - - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - var internalSendHashRule []interface{} - for _, internalSendHashItem := range internalSendHash { - internalSendHashRule = append(internalSendHashRule, internalSendHashItem) - } - - logs, sub, err := _ZetaConnectorZEVM.contract.WatchLogs(opts, "ZetaReverted", destinationChainIdRule, internalSendHashRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorZEVMZetaReverted) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaReverted is a log parse operation binding the contract event 0x521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c88. -// -// Solidity: event ZetaReverted(address zetaTxSenderAddress, uint256 sourceChainId, uint256 indexed destinationChainId, bytes destinationAddress, uint256 remainingZetaValue, bytes message, bytes32 indexed internalSendHash) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) ParseZetaReverted(log types.Log) (*ZetaConnectorZEVMZetaReverted, error) { - event := new(ZetaConnectorZEVMZetaReverted) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "ZetaReverted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZetaConnectorZEVMZetaSentIterator is returned from FilterZetaSent and is used to iterate over the raw logs and unpacked data for ZetaSent events raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMZetaSentIterator struct { - Event *ZetaConnectorZEVMZetaSent // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZetaConnectorZEVMZetaSentIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZetaConnectorZEVMZetaSent) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZetaConnectorZEVMZetaSentIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZetaConnectorZEVMZetaSentIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZetaConnectorZEVMZetaSent represents a ZetaSent event raised by the ZetaConnectorZEVM contract. -type ZetaConnectorZEVMZetaSent struct { - SourceTxOriginAddress common.Address - ZetaTxSenderAddress common.Address - DestinationChainId *big.Int - DestinationAddress []byte - ZetaValueAndGas *big.Int - DestinationGasLimit *big.Int - Message []byte - ZetaParams []byte - Raw types.Log // Blockchain specific contextual infos -} - -// FilterZetaSent is a free log retrieval operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) FilterZetaSent(opts *bind.FilterOpts, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (*ZetaConnectorZEVMZetaSentIterator, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorZEVM.contract.FilterLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return &ZetaConnectorZEVMZetaSentIterator{contract: _ZetaConnectorZEVM.contract, event: "ZetaSent", logs: logs, sub: sub}, nil -} - -// WatchZetaSent is a free log subscription operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) WatchZetaSent(opts *bind.WatchOpts, sink chan<- *ZetaConnectorZEVMZetaSent, zetaTxSenderAddress []common.Address, destinationChainId []*big.Int) (event.Subscription, error) { - - var zetaTxSenderAddressRule []interface{} - for _, zetaTxSenderAddressItem := range zetaTxSenderAddress { - zetaTxSenderAddressRule = append(zetaTxSenderAddressRule, zetaTxSenderAddressItem) - } - var destinationChainIdRule []interface{} - for _, destinationChainIdItem := range destinationChainId { - destinationChainIdRule = append(destinationChainIdRule, destinationChainIdItem) - } - - logs, sub, err := _ZetaConnectorZEVM.contract.WatchLogs(opts, "ZetaSent", zetaTxSenderAddressRule, destinationChainIdRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZetaConnectorZEVMZetaSent) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseZetaSent is a log parse operation binding the contract event 0x7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4. -// -// Solidity: event ZetaSent(address sourceTxOriginAddress, address indexed zetaTxSenderAddress, uint256 indexed destinationChainId, bytes destinationAddress, uint256 zetaValueAndGas, uint256 destinationGasLimit, bytes message, bytes zetaParams) -func (_ZetaConnectorZEVM *ZetaConnectorZEVMFilterer) ParseZetaSent(log types.Log) (*ZetaConnectorZEVMZetaSent, error) { - event := new(ZetaConnectorZEVMZetaSent) - if err := _ZetaConnectorZEVM.contract.UnpackLog(event, "ZetaSent", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetainterfaces.go b/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetainterfaces.go deleted file mode 100644 index 8497e3ea8..000000000 --- a/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetainterfaces.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetaconnectorzevm - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesMetaData contains all meta data concerning the ZetaInterfaces contract. -var ZetaInterfacesMetaData = &bind.MetaData{ - ABI: "[]", -} - -// ZetaInterfacesABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaInterfacesMetaData.ABI instead. -var ZetaInterfacesABI = ZetaInterfacesMetaData.ABI - -// ZetaInterfaces is an auto generated Go binding around an Ethereum contract. -type ZetaInterfaces struct { - ZetaInterfacesCaller // Read-only binding to the contract - ZetaInterfacesTransactor // Write-only binding to the contract - ZetaInterfacesFilterer // Log filterer for contract events -} - -// ZetaInterfacesCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaInterfacesCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInterfacesTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaInterfacesTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInterfacesFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaInterfacesFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaInterfacesSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaInterfacesSession struct { - Contract *ZetaInterfaces // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInterfacesCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaInterfacesCallerSession struct { - Contract *ZetaInterfacesCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaInterfacesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaInterfacesTransactorSession struct { - Contract *ZetaInterfacesTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaInterfacesRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaInterfacesRaw struct { - Contract *ZetaInterfaces // Generic contract binding to access the raw methods on -} - -// ZetaInterfacesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaInterfacesCallerRaw struct { - Contract *ZetaInterfacesCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaInterfacesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaInterfacesTransactorRaw struct { - Contract *ZetaInterfacesTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaInterfaces creates a new instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfaces(address common.Address, backend bind.ContractBackend) (*ZetaInterfaces, error) { - contract, err := bindZetaInterfaces(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaInterfaces{ZetaInterfacesCaller: ZetaInterfacesCaller{contract: contract}, ZetaInterfacesTransactor: ZetaInterfacesTransactor{contract: contract}, ZetaInterfacesFilterer: ZetaInterfacesFilterer{contract: contract}}, nil -} - -// NewZetaInterfacesCaller creates a new read-only instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfacesCaller(address common.Address, caller bind.ContractCaller) (*ZetaInterfacesCaller, error) { - contract, err := bindZetaInterfaces(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaInterfacesCaller{contract: contract}, nil -} - -// NewZetaInterfacesTransactor creates a new write-only instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfacesTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaInterfacesTransactor, error) { - contract, err := bindZetaInterfaces(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaInterfacesTransactor{contract: contract}, nil -} - -// NewZetaInterfacesFilterer creates a new log filterer instance of ZetaInterfaces, bound to a specific deployed contract. -func NewZetaInterfacesFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaInterfacesFilterer, error) { - contract, err := bindZetaInterfaces(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaInterfacesFilterer{contract: contract}, nil -} - -// bindZetaInterfaces binds a generic wrapper to an already deployed contract. -func bindZetaInterfaces(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaInterfacesMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInterfaces *ZetaInterfacesRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInterfaces.Contract.ZetaInterfacesCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInterfaces *ZetaInterfacesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.ZetaInterfacesTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInterfaces *ZetaInterfacesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.ZetaInterfacesTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaInterfaces *ZetaInterfacesCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaInterfaces.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaInterfaces *ZetaInterfacesTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaInterfaces *ZetaInterfacesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaInterfaces.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetareceiver.go b/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetareceiver.go deleted file mode 100644 index 36f6edc17..000000000 --- a/v1/pkg/contracts/zevm/zetaconnectorzevm.sol/zetareceiver.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zetaconnectorzevm - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZetaInterfacesZetaMessage is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaMessage struct { - ZetaTxSenderAddress []byte - SourceChainId *big.Int - DestinationAddress common.Address - ZetaValue *big.Int - Message []byte -} - -// ZetaInterfacesZetaRevert is an auto generated low-level Go binding around an user-defined struct. -type ZetaInterfacesZetaRevert struct { - ZetaTxSenderAddress common.Address - SourceChainId *big.Int - DestinationAddress []byte - DestinationChainId *big.Int - RemainingZetaValue *big.Int - Message []byte -} - -// ZetaReceiverMetaData contains all meta data concerning the ZetaReceiver contract. -var ZetaReceiverMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaMessage\",\"name\":\"zetaMessage\",\"type\":\"tuple\"}],\"name\":\"onZetaMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaRevert\",\"name\":\"zetaRevert\",\"type\":\"tuple\"}],\"name\":\"onZetaRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ZetaReceiverABI is the input ABI used to generate the binding from. -// Deprecated: Use ZetaReceiverMetaData.ABI instead. -var ZetaReceiverABI = ZetaReceiverMetaData.ABI - -// ZetaReceiver is an auto generated Go binding around an Ethereum contract. -type ZetaReceiver struct { - ZetaReceiverCaller // Read-only binding to the contract - ZetaReceiverTransactor // Write-only binding to the contract - ZetaReceiverFilterer // Log filterer for contract events -} - -// ZetaReceiverCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZetaReceiverCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZetaReceiverTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZetaReceiverFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZetaReceiverSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZetaReceiverSession struct { - Contract *ZetaReceiver // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaReceiverCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZetaReceiverCallerSession struct { - Contract *ZetaReceiverCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZetaReceiverTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZetaReceiverTransactorSession struct { - Contract *ZetaReceiverTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZetaReceiverRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZetaReceiverRaw struct { - Contract *ZetaReceiver // Generic contract binding to access the raw methods on -} - -// ZetaReceiverCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZetaReceiverCallerRaw struct { - Contract *ZetaReceiverCaller // Generic read-only contract binding to access the raw methods on -} - -// ZetaReceiverTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZetaReceiverTransactorRaw struct { - Contract *ZetaReceiverTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZetaReceiver creates a new instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiver(address common.Address, backend bind.ContractBackend) (*ZetaReceiver, error) { - contract, err := bindZetaReceiver(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZetaReceiver{ZetaReceiverCaller: ZetaReceiverCaller{contract: contract}, ZetaReceiverTransactor: ZetaReceiverTransactor{contract: contract}, ZetaReceiverFilterer: ZetaReceiverFilterer{contract: contract}}, nil -} - -// NewZetaReceiverCaller creates a new read-only instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiverCaller(address common.Address, caller bind.ContractCaller) (*ZetaReceiverCaller, error) { - contract, err := bindZetaReceiver(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZetaReceiverCaller{contract: contract}, nil -} - -// NewZetaReceiverTransactor creates a new write-only instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiverTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaReceiverTransactor, error) { - contract, err := bindZetaReceiver(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZetaReceiverTransactor{contract: contract}, nil -} - -// NewZetaReceiverFilterer creates a new log filterer instance of ZetaReceiver, bound to a specific deployed contract. -func NewZetaReceiverFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaReceiverFilterer, error) { - contract, err := bindZetaReceiver(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZetaReceiverFilterer{contract: contract}, nil -} - -// bindZetaReceiver binds a generic wrapper to an already deployed contract. -func bindZetaReceiver(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZetaReceiverMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaReceiver *ZetaReceiverRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaReceiver.Contract.ZetaReceiverCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaReceiver *ZetaReceiverRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaReceiver.Contract.ZetaReceiverTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaReceiver *ZetaReceiverRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaReceiver.Contract.ZetaReceiverTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZetaReceiver *ZetaReceiverCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZetaReceiver.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZetaReceiver *ZetaReceiverTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZetaReceiver.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZetaReceiver *ZetaReceiverTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZetaReceiver.Contract.contract.Transact(opts, method, params...) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiver *ZetaReceiverTransactor) OnZetaMessage(opts *bind.TransactOpts, zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiver.contract.Transact(opts, "onZetaMessage", zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiver *ZetaReceiverSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaMessage(&_ZetaReceiver.TransactOpts, zetaMessage) -} - -// OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a. -// -// Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns() -func (_ZetaReceiver *ZetaReceiverTransactorSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaMessage(&_ZetaReceiver.TransactOpts, zetaMessage) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiver *ZetaReceiverTransactor) OnZetaRevert(opts *bind.TransactOpts, zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiver.contract.Transact(opts, "onZetaRevert", zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiver *ZetaReceiverSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaRevert(&_ZetaReceiver.TransactOpts, zetaRevert) -} - -// OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c. -// -// Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns() -func (_ZetaReceiver *ZetaReceiverTransactorSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error) { - return _ZetaReceiver.Contract.OnZetaRevert(&_ZetaReceiver.TransactOpts, zetaRevert) -} diff --git a/v1/pkg/contracts/zevm/zrc20.sol/zrc20.go b/v1/pkg/contracts/zevm/zrc20.sol/zrc20.go deleted file mode 100644 index ce73d030e..000000000 --- a/v1/pkg/contracts/zevm/zrc20.sol/zrc20.go +++ /dev/null @@ -1,1800 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zrc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZRC20MetaData contains all meta data concerning the ZRC20 contract. -var ZRC20MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals_\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"chainid_\",\"type\":\"uint256\"},{\"internalType\":\"enumCoinType\",\"name\":\"coinType_\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"systemContractAddress_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"CallerIsNotFungibleModule\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GasFeeTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSender\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LowAllowance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LowBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroGasCoin\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroGasPrice\",\"type\":\"error\"},{\"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\":false,\"internalType\":\"bytes\",\"name\":\"from\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"}],\"name\":\"UpdatedGasLimit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFlatFee\",\"type\":\"uint256\"}],\"name\":\"UpdatedProtocolFlatFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"systemContract\",\"type\":\"address\"}],\"name\":\"UpdatedSystemContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"to\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"gasFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"protocolFlatFee\",\"type\":\"uint256\"}],\"name\":\"Withdrawal\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"CHAIN_ID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"COIN_TYPE\",\"outputs\":[{\"internalType\":\"enumCoinType\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FUNGIBLE_MODULE_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GAS_LIMIT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PROTOCOL_FLAT_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SYSTEM_CONTRACT_ADDRESS\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"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\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"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\":\"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\":\"gasLimit\",\"type\":\"uint256\"}],\"name\":\"updateGasLimit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"protocolFlatFee\",\"type\":\"uint256\"}],\"name\":\"updateProtocolFlatFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"updateSystemContractAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"to\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawGasFee\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", - Bin: "0x60c06040523480156200001157600080fd5b506040516200272c3803806200272c833981810160405281019062000037919062000319565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620000b1576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8660069080519060200190620000c99291906200018f565b508560079080519060200190620000e29291906200018f565b5084600860006101000a81548160ff021916908360ff16021790555083608081815250508260028111156200011c576200011b62000556565b5b60a081600281111562000134576200013362000556565b5b60f81b8152505081600181905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050505062000667565b8280546200019d90620004ea565b90600052602060002090601f016020900481019282620001c157600085556200020d565b82601f10620001dc57805160ff19168380011785556200020d565b828001600101855582156200020d579182015b828111156200020c578251825591602001919060010190620001ef565b5b5090506200021c919062000220565b5090565b5b808211156200023b57600081600090555060010162000221565b5090565b600062000256620002508462000433565b6200040a565b905082815260208101848484011115620002755762000274620005e8565b5b62000282848285620004b4565b509392505050565b6000815190506200029b8162000608565b92915050565b600081519050620002b28162000622565b92915050565b600082601f830112620002d057620002cf620005e3565b5b8151620002e28482602086016200023f565b91505092915050565b600081519050620002fc8162000633565b92915050565b60008151905062000313816200064d565b92915050565b600080600080600080600060e0888a0312156200033b576200033a620005f2565b5b600088015167ffffffffffffffff8111156200035c576200035b620005ed565b5b6200036a8a828b01620002b8565b975050602088015167ffffffffffffffff8111156200038e576200038d620005ed565b5b6200039c8a828b01620002b8565b9650506040620003af8a828b0162000302565b9550506060620003c28a828b01620002eb565b9450506080620003d58a828b01620002a1565b93505060a0620003e88a828b01620002eb565b92505060c0620003fb8a828b016200028a565b91505092959891949750929550565b60006200041662000429565b905062000424828262000520565b919050565b6000604051905090565b600067ffffffffffffffff821115620004515762000450620005b4565b5b6200045c82620005f7565b9050602081019050919050565b600062000476826200047d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015620004d4578082015181840152602081019050620004b7565b83811115620004e4576000848401525b50505050565b600060028204905060018216806200050357607f821691505b602082108114156200051a576200051962000585565b5b50919050565b6200052b82620005f7565b810181811067ffffffffffffffff821117156200054d576200054c620005b4565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620006138162000469565b81146200061f57600080fd5b50565b600381106200063057600080fd5b50565b6200063e816200049d565b81146200064a57600080fd5b50565b6200065881620004a7565b81146200066457600080fd5b50565b60805160a05160f81c61208e6200069e60003960006108d501526000818161081f01528181610ba20152610cd7015261208e6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806385e1f4d0116100b8578063c835d7cc1161007c578063c835d7cc146103a5578063d9eeebed146103c1578063dd62ed3e146103e0578063eddeb12314610410578063f2441b321461042c578063f687d12a1461044a57610142565b806385e1f4d0146102eb57806395d89b4114610309578063a3413d0314610327578063a9059cbb14610345578063c70126261461037557610142565b8063313ce5671161010a578063313ce567146102015780633ce4a5bc1461021f57806342966c681461023d57806347e7ef241461026d5780634d8943bb1461029d57806370a08231146102bb57610142565b806306fdde0314610147578063091d278814610165578063095ea7b31461018357806318160ddd146101b357806323b872dd146101d1575b600080fd5b61014f610466565b60405161015c9190611c04565b60405180910390f35b61016d6104f8565b60405161017a9190611c26565b60405180910390f35b61019d600480360381019061019891906118c5565b6104fe565b6040516101aa9190611b52565b60405180910390f35b6101bb61051c565b6040516101c89190611c26565b60405180910390f35b6101eb60048036038101906101e69190611872565b610526565b6040516101f89190611b52565b60405180910390f35b61020961061e565b6040516102169190611c41565b60405180910390f35b610227610635565b6040516102349190611ad7565b60405180910390f35b6102576004803603810190610252919061198e565b61064d565b6040516102649190611b52565b60405180910390f35b610287600480360381019061028291906118c5565b610662565b6040516102949190611b52565b60405180910390f35b6102a56107ce565b6040516102b29190611c26565b60405180910390f35b6102d560048036038101906102d091906117d8565b6107d4565b6040516102e29190611c26565b60405180910390f35b6102f361081d565b6040516103009190611c26565b60405180910390f35b610311610841565b60405161031e9190611c04565b60405180910390f35b61032f6108d3565b60405161033c9190611be9565b60405180910390f35b61035f600480360381019061035a91906118c5565b6108f7565b60405161036c9190611b52565b60405180910390f35b61038f600480360381019061038a9190611932565b610915565b60405161039c9190611b52565b60405180910390f35b6103bf60048036038101906103ba91906117d8565b610a6b565b005b6103c9610b5e565b6040516103d7929190611b29565b60405180910390f35b6103fa60048036038101906103f59190611832565b610dcb565b6040516104079190611c26565b60405180910390f35b61042a6004803603810190610425919061198e565b610e52565b005b610434610f0c565b6040516104419190611ad7565b60405180910390f35b610464600480360381019061045f919061198e565b610f30565b005b60606006805461047590611e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546104a190611e8a565b80156104ee5780601f106104c3576101008083540402835291602001916104ee565b820191906000526020600020905b8154815290600101906020018083116104d157829003601f168201915b5050505050905090565b60015481565b600061051261050b610fea565b8484610ff2565b6001905092915050565b6000600554905090565b60006105338484846111ab565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061057e610fea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156105f5576040517f10bad14700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61061285610601610fea565b858461060d9190611d9a565b610ff2565b60019150509392505050565b6000600860009054906101000a900460ff16905090565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60006106593383611407565b60019050919050565b600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610700575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610737576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61074183836115bf565b8273ffffffffffffffffffffffffffffffffffffffff167f67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab373735b14bb79463307aacbed86daf3322b1e6226ab60405160200161079e9190611abc565b604051602081830303815290604052846040516107bc929190611b6d565b60405180910390a26001905092915050565b60025481565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606007805461085090611e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461087c90611e8a565b80156108c95780601f1061089e576101008083540402835291602001916108c9565b820191906000526020600020905b8154815290600101906020018083116108ac57829003601f168201915b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061090b610904610fea565b84846111ab565b6001905092915050565b6000806000610922610b5e565b915091508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3373735b14bb79463307aacbed86daf3322b1e6226ab846040518463ffffffff1660e01b815260040161097793929190611af2565b602060405180830381600087803b15801561099157600080fd5b505af11580156109a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c99190611905565b6109ff576040517f0a7cd6d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a093385611407565b3373ffffffffffffffffffffffffffffffffffffffff167f9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955868684600254604051610a579493929190611b9d565b60405180910390a260019250505092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ae4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae81604051610b539190611ad7565b60405180910390a150565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630be155477f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610bdd9190611c26565b60206040518083038186803b158015610bf557600080fd5b505afa158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d9190611805565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c96576040517f78fff39600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7fd7afb7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610d129190611c26565b60206040518083038186803b158015610d2a57600080fd5b505afa158015610d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6291906119bb565b90506000811415610d9f576040517fe661aed000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060025460015483610db29190611d40565b610dbc9190611cea565b90508281945094505050509091565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ecb576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002819055507fef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f81604051610f019190611c26565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fa9576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055507fff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a81604051610fdf9190611c26565b60405180910390a150565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611059576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110c0576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161119e9190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611212576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611279576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156112f7576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816113039190611d9a565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113959190611cea565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113f99190611c26565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561146e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156114ec576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816114f89190611d9a565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816005600082825461154d9190611d9a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115b29190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611626576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560008282546116389190611cea565b9250508190555080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168e9190611cea565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116f39190611c26565b60405180910390a35050565b600061171261170d84611c81565b611c5c565b90508281526020810184848401111561172e5761172d611fd2565b5b611739848285611e48565b509392505050565b60008135905061175081612013565b92915050565b60008151905061176581612013565b92915050565b60008151905061177a8161202a565b92915050565b600082601f83011261179557611794611fcd565b5b81356117a58482602086016116ff565b91505092915050565b6000813590506117bd81612041565b92915050565b6000815190506117d281612041565b92915050565b6000602082840312156117ee576117ed611fdc565b5b60006117fc84828501611741565b91505092915050565b60006020828403121561181b5761181a611fdc565b5b600061182984828501611756565b91505092915050565b6000806040838503121561184957611848611fdc565b5b600061185785828601611741565b925050602061186885828601611741565b9150509250929050565b60008060006060848603121561188b5761188a611fdc565b5b600061189986828701611741565b93505060206118aa86828701611741565b92505060406118bb868287016117ae565b9150509250925092565b600080604083850312156118dc576118db611fdc565b5b60006118ea85828601611741565b92505060206118fb858286016117ae565b9150509250929050565b60006020828403121561191b5761191a611fdc565b5b60006119298482850161176b565b91505092915050565b6000806040838503121561194957611948611fdc565b5b600083013567ffffffffffffffff81111561196757611966611fd7565b5b61197385828601611780565b9250506020611984858286016117ae565b9150509250929050565b6000602082840312156119a4576119a3611fdc565b5b60006119b2848285016117ae565b91505092915050565b6000602082840312156119d1576119d0611fdc565b5b60006119df848285016117c3565b91505092915050565b6119f181611dce565b82525050565b611a08611a0382611dce565b611eed565b82525050565b611a1781611de0565b82525050565b6000611a2882611cb2565b611a328185611cc8565b9350611a42818560208601611e57565b611a4b81611fe1565b840191505092915050565b611a5f81611e36565b82525050565b6000611a7082611cbd565b611a7a8185611cd9565b9350611a8a818560208601611e57565b611a9381611fe1565b840191505092915050565b611aa781611e1f565b82525050565b611ab681611e29565b82525050565b6000611ac882846119f7565b60148201915081905092915050565b6000602082019050611aec60008301846119e8565b92915050565b6000606082019050611b0760008301866119e8565b611b1460208301856119e8565b611b216040830184611a9e565b949350505050565b6000604082019050611b3e60008301856119e8565b611b4b6020830184611a9e565b9392505050565b6000602082019050611b676000830184611a0e565b92915050565b60006040820190508181036000830152611b878185611a1d565b9050611b966020830184611a9e565b9392505050565b60006080820190508181036000830152611bb78187611a1d565b9050611bc66020830186611a9e565b611bd36040830185611a9e565b611be06060830184611a9e565b95945050505050565b6000602082019050611bfe6000830184611a56565b92915050565b60006020820190508181036000830152611c1e8184611a65565b905092915050565b6000602082019050611c3b6000830184611a9e565b92915050565b6000602082019050611c566000830184611aad565b92915050565b6000611c66611c77565b9050611c728282611ebc565b919050565b6000604051905090565b600067ffffffffffffffff821115611c9c57611c9b611f9e565b5b611ca582611fe1565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611cf582611e1f565b9150611d0083611e1f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d3557611d34611f11565b5b828201905092915050565b6000611d4b82611e1f565b9150611d5683611e1f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d8f57611d8e611f11565b5b828202905092915050565b6000611da582611e1f565b9150611db083611e1f565b925082821015611dc357611dc2611f11565b5b828203905092915050565b6000611dd982611dff565b9050919050565b60008115159050919050565b6000819050611dfa82611fff565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611e4182611dec565b9050919050565b82818337600083830152505050565b60005b83811015611e75578082015181840152602081019050611e5a565b83811115611e84576000848401525b50505050565b60006002820490506001821680611ea257607f821691505b60208210811415611eb657611eb5611f6f565b5b50919050565b611ec582611fe1565b810181811067ffffffffffffffff82111715611ee457611ee3611f9e565b5b80604052505050565b6000611ef882611eff565b9050919050565b6000611f0a82611ff2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b600381106120105761200f611f40565b5b50565b61201c81611dce565b811461202757600080fd5b50565b61203381611de0565b811461203e57600080fd5b50565b61204a81611e1f565b811461205557600080fd5b5056fea2646970667358221220afef7d1a51c1829fcaf89af9a3239ae43ab2f828aa86ff901f729544637e39d464736f6c63430008070033", -} - -// ZRC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use ZRC20MetaData.ABI instead. -var ZRC20ABI = ZRC20MetaData.ABI - -// ZRC20Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ZRC20MetaData.Bin instead. -var ZRC20Bin = ZRC20MetaData.Bin - -// DeployZRC20 deploys a new Ethereum contract, binding an instance of ZRC20 to it. -func DeployZRC20(auth *bind.TransactOpts, backend bind.ContractBackend, name_ string, symbol_ string, decimals_ uint8, chainid_ *big.Int, coinType_ uint8, gasLimit_ *big.Int, systemContractAddress_ common.Address) (common.Address, *types.Transaction, *ZRC20, error) { - parsed, err := ZRC20MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ZRC20Bin), backend, name_, symbol_, decimals_, chainid_, coinType_, gasLimit_, systemContractAddress_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ZRC20{ZRC20Caller: ZRC20Caller{contract: contract}, ZRC20Transactor: ZRC20Transactor{contract: contract}, ZRC20Filterer: ZRC20Filterer{contract: contract}}, nil -} - -// ZRC20 is an auto generated Go binding around an Ethereum contract. -type ZRC20 struct { - ZRC20Caller // Read-only binding to the contract - ZRC20Transactor // Write-only binding to the contract - ZRC20Filterer // Log filterer for contract events -} - -// ZRC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type ZRC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type ZRC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZRC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZRC20Session struct { - Contract *ZRC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZRC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZRC20CallerSession struct { - Contract *ZRC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZRC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZRC20TransactorSession struct { - Contract *ZRC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZRC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type ZRC20Raw struct { - Contract *ZRC20 // Generic contract binding to access the raw methods on -} - -// ZRC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZRC20CallerRaw struct { - Contract *ZRC20Caller // Generic read-only contract binding to access the raw methods on -} - -// ZRC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZRC20TransactorRaw struct { - Contract *ZRC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewZRC20 creates a new instance of ZRC20, bound to a specific deployed contract. -func NewZRC20(address common.Address, backend bind.ContractBackend) (*ZRC20, error) { - contract, err := bindZRC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZRC20{ZRC20Caller: ZRC20Caller{contract: contract}, ZRC20Transactor: ZRC20Transactor{contract: contract}, ZRC20Filterer: ZRC20Filterer{contract: contract}}, nil -} - -// NewZRC20Caller creates a new read-only instance of ZRC20, bound to a specific deployed contract. -func NewZRC20Caller(address common.Address, caller bind.ContractCaller) (*ZRC20Caller, error) { - contract, err := bindZRC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZRC20Caller{contract: contract}, nil -} - -// NewZRC20Transactor creates a new write-only instance of ZRC20, bound to a specific deployed contract. -func NewZRC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ZRC20Transactor, error) { - contract, err := bindZRC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZRC20Transactor{contract: contract}, nil -} - -// NewZRC20Filterer creates a new log filterer instance of ZRC20, bound to a specific deployed contract. -func NewZRC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ZRC20Filterer, error) { - contract, err := bindZRC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZRC20Filterer{contract: contract}, nil -} - -// bindZRC20 binds a generic wrapper to an already deployed contract. -func bindZRC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZRC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZRC20 *ZRC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZRC20.Contract.ZRC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZRC20 *ZRC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZRC20.Contract.ZRC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZRC20 *ZRC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZRC20.Contract.ZRC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZRC20 *ZRC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZRC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZRC20 *ZRC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZRC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZRC20 *ZRC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZRC20.Contract.contract.Transact(opts, method, params...) -} - -// CHAINID is a free data retrieval call binding the contract method 0x85e1f4d0. -// -// Solidity: function CHAIN_ID() view returns(uint256) -func (_ZRC20 *ZRC20Caller) CHAINID(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "CHAIN_ID") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// CHAINID is a free data retrieval call binding the contract method 0x85e1f4d0. -// -// Solidity: function CHAIN_ID() view returns(uint256) -func (_ZRC20 *ZRC20Session) CHAINID() (*big.Int, error) { - return _ZRC20.Contract.CHAINID(&_ZRC20.CallOpts) -} - -// CHAINID is a free data retrieval call binding the contract method 0x85e1f4d0. -// -// Solidity: function CHAIN_ID() view returns(uint256) -func (_ZRC20 *ZRC20CallerSession) CHAINID() (*big.Int, error) { - return _ZRC20.Contract.CHAINID(&_ZRC20.CallOpts) -} - -// COINTYPE is a free data retrieval call binding the contract method 0xa3413d03. -// -// Solidity: function COIN_TYPE() view returns(uint8) -func (_ZRC20 *ZRC20Caller) COINTYPE(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "COIN_TYPE") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// COINTYPE is a free data retrieval call binding the contract method 0xa3413d03. -// -// Solidity: function COIN_TYPE() view returns(uint8) -func (_ZRC20 *ZRC20Session) COINTYPE() (uint8, error) { - return _ZRC20.Contract.COINTYPE(&_ZRC20.CallOpts) -} - -// COINTYPE is a free data retrieval call binding the contract method 0xa3413d03. -// -// Solidity: function COIN_TYPE() view returns(uint8) -func (_ZRC20 *ZRC20CallerSession) COINTYPE() (uint8, error) { - return _ZRC20.Contract.COINTYPE(&_ZRC20.CallOpts) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ZRC20 *ZRC20Caller) FUNGIBLEMODULEADDRESS(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "FUNGIBLE_MODULE_ADDRESS") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ZRC20 *ZRC20Session) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _ZRC20.Contract.FUNGIBLEMODULEADDRESS(&_ZRC20.CallOpts) -} - -// FUNGIBLEMODULEADDRESS is a free data retrieval call binding the contract method 0x3ce4a5bc. -// -// Solidity: function FUNGIBLE_MODULE_ADDRESS() view returns(address) -func (_ZRC20 *ZRC20CallerSession) FUNGIBLEMODULEADDRESS() (common.Address, error) { - return _ZRC20.Contract.FUNGIBLEMODULEADDRESS(&_ZRC20.CallOpts) -} - -// GASLIMIT is a free data retrieval call binding the contract method 0x091d2788. -// -// Solidity: function GAS_LIMIT() view returns(uint256) -func (_ZRC20 *ZRC20Caller) GASLIMIT(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "GAS_LIMIT") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GASLIMIT is a free data retrieval call binding the contract method 0x091d2788. -// -// Solidity: function GAS_LIMIT() view returns(uint256) -func (_ZRC20 *ZRC20Session) GASLIMIT() (*big.Int, error) { - return _ZRC20.Contract.GASLIMIT(&_ZRC20.CallOpts) -} - -// GASLIMIT is a free data retrieval call binding the contract method 0x091d2788. -// -// Solidity: function GAS_LIMIT() view returns(uint256) -func (_ZRC20 *ZRC20CallerSession) GASLIMIT() (*big.Int, error) { - return _ZRC20.Contract.GASLIMIT(&_ZRC20.CallOpts) -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_ZRC20 *ZRC20Caller) PROTOCOLFLATFEE(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "PROTOCOL_FLAT_FEE") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_ZRC20 *ZRC20Session) PROTOCOLFLATFEE() (*big.Int, error) { - return _ZRC20.Contract.PROTOCOLFLATFEE(&_ZRC20.CallOpts) -} - -// PROTOCOLFLATFEE is a free data retrieval call binding the contract method 0x4d8943bb. -// -// Solidity: function PROTOCOL_FLAT_FEE() view returns(uint256) -func (_ZRC20 *ZRC20CallerSession) PROTOCOLFLATFEE() (*big.Int, error) { - return _ZRC20.Contract.PROTOCOLFLATFEE(&_ZRC20.CallOpts) -} - -// SYSTEMCONTRACTADDRESS is a free data retrieval call binding the contract method 0xf2441b32. -// -// Solidity: function SYSTEM_CONTRACT_ADDRESS() view returns(address) -func (_ZRC20 *ZRC20Caller) SYSTEMCONTRACTADDRESS(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "SYSTEM_CONTRACT_ADDRESS") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// SYSTEMCONTRACTADDRESS is a free data retrieval call binding the contract method 0xf2441b32. -// -// Solidity: function SYSTEM_CONTRACT_ADDRESS() view returns(address) -func (_ZRC20 *ZRC20Session) SYSTEMCONTRACTADDRESS() (common.Address, error) { - return _ZRC20.Contract.SYSTEMCONTRACTADDRESS(&_ZRC20.CallOpts) -} - -// SYSTEMCONTRACTADDRESS is a free data retrieval call binding the contract method 0xf2441b32. -// -// Solidity: function SYSTEM_CONTRACT_ADDRESS() view returns(address) -func (_ZRC20 *ZRC20CallerSession) SYSTEMCONTRACTADDRESS() (common.Address, error) { - return _ZRC20.Contract.SYSTEMCONTRACTADDRESS(&_ZRC20.CallOpts) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZRC20 *ZRC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZRC20 *ZRC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZRC20.Contract.Allowance(&_ZRC20.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ZRC20 *ZRC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ZRC20.Contract.Allowance(&_ZRC20.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZRC20 *ZRC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZRC20 *ZRC20Session) BalanceOf(account common.Address) (*big.Int, error) { - return _ZRC20.Contract.BalanceOf(&_ZRC20.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ZRC20 *ZRC20CallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ZRC20.Contract.BalanceOf(&_ZRC20.CallOpts, account) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZRC20 *ZRC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZRC20 *ZRC20Session) Decimals() (uint8, error) { - return _ZRC20.Contract.Decimals(&_ZRC20.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ZRC20 *ZRC20CallerSession) Decimals() (uint8, error) { - return _ZRC20.Contract.Decimals(&_ZRC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZRC20 *ZRC20Caller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZRC20 *ZRC20Session) Name() (string, error) { - return _ZRC20.Contract.Name(&_ZRC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ZRC20 *ZRC20CallerSession) Name() (string, error) { - return _ZRC20.Contract.Name(&_ZRC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZRC20 *ZRC20Caller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZRC20 *ZRC20Session) Symbol() (string, error) { - return _ZRC20.Contract.Symbol(&_ZRC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ZRC20 *ZRC20CallerSession) Symbol() (string, error) { - return _ZRC20.Contract.Symbol(&_ZRC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZRC20 *ZRC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZRC20 *ZRC20Session) TotalSupply() (*big.Int, error) { - return _ZRC20.Contract.TotalSupply(&_ZRC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ZRC20 *ZRC20CallerSession) TotalSupply() (*big.Int, error) { - return _ZRC20.Contract.TotalSupply(&_ZRC20.CallOpts) -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_ZRC20 *ZRC20Caller) WithdrawGasFee(opts *bind.CallOpts) (common.Address, *big.Int, error) { - var out []interface{} - err := _ZRC20.contract.Call(opts, &out, "withdrawGasFee") - - if err != nil { - return *new(common.Address), *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - out1 := *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return out0, out1, err - -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_ZRC20 *ZRC20Session) WithdrawGasFee() (common.Address, *big.Int, error) { - return _ZRC20.Contract.WithdrawGasFee(&_ZRC20.CallOpts) -} - -// WithdrawGasFee is a free data retrieval call binding the contract method 0xd9eeebed. -// -// Solidity: function withdrawGasFee() view returns(address, uint256) -func (_ZRC20 *ZRC20CallerSession) WithdrawGasFee() (common.Address, *big.Int, error) { - return _ZRC20.Contract.WithdrawGasFee(&_ZRC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Approve(&_ZRC20.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Approve(&_ZRC20.TransactOpts, spender, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Transactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "burn", amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Session) Burn(amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Burn(&_ZRC20.TransactOpts, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns(bool) -func (_ZRC20 *ZRC20TransactorSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Burn(&_ZRC20.TransactOpts, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Transactor) Deposit(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "deposit", to, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Session) Deposit(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Deposit(&_ZRC20.TransactOpts, to, amount) -} - -// Deposit is a paid mutator transaction binding the contract method 0x47e7ef24. -// -// Solidity: function deposit(address to, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20TransactorSession) Deposit(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Deposit(&_ZRC20.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "transfer", recipient, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Transfer(&_ZRC20.TransactOpts, recipient, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address recipient, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Transfer(&_ZRC20.TransactOpts, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Transactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "transferFrom", sender, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Session) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.TransferFrom(&_ZRC20.TransactOpts, sender, recipient, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20TransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.TransferFrom(&_ZRC20.TransactOpts, sender, recipient, amount) -} - -// UpdateGasLimit is a paid mutator transaction binding the contract method 0xf687d12a. -// -// Solidity: function updateGasLimit(uint256 gasLimit) returns() -func (_ZRC20 *ZRC20Transactor) UpdateGasLimit(opts *bind.TransactOpts, gasLimit *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "updateGasLimit", gasLimit) -} - -// UpdateGasLimit is a paid mutator transaction binding the contract method 0xf687d12a. -// -// Solidity: function updateGasLimit(uint256 gasLimit) returns() -func (_ZRC20 *ZRC20Session) UpdateGasLimit(gasLimit *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.UpdateGasLimit(&_ZRC20.TransactOpts, gasLimit) -} - -// UpdateGasLimit is a paid mutator transaction binding the contract method 0xf687d12a. -// -// Solidity: function updateGasLimit(uint256 gasLimit) returns() -func (_ZRC20 *ZRC20TransactorSession) UpdateGasLimit(gasLimit *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.UpdateGasLimit(&_ZRC20.TransactOpts, gasLimit) -} - -// UpdateProtocolFlatFee is a paid mutator transaction binding the contract method 0xeddeb123. -// -// Solidity: function updateProtocolFlatFee(uint256 protocolFlatFee) returns() -func (_ZRC20 *ZRC20Transactor) UpdateProtocolFlatFee(opts *bind.TransactOpts, protocolFlatFee *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "updateProtocolFlatFee", protocolFlatFee) -} - -// UpdateProtocolFlatFee is a paid mutator transaction binding the contract method 0xeddeb123. -// -// Solidity: function updateProtocolFlatFee(uint256 protocolFlatFee) returns() -func (_ZRC20 *ZRC20Session) UpdateProtocolFlatFee(protocolFlatFee *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.UpdateProtocolFlatFee(&_ZRC20.TransactOpts, protocolFlatFee) -} - -// UpdateProtocolFlatFee is a paid mutator transaction binding the contract method 0xeddeb123. -// -// Solidity: function updateProtocolFlatFee(uint256 protocolFlatFee) returns() -func (_ZRC20 *ZRC20TransactorSession) UpdateProtocolFlatFee(protocolFlatFee *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.UpdateProtocolFlatFee(&_ZRC20.TransactOpts, protocolFlatFee) -} - -// UpdateSystemContractAddress is a paid mutator transaction binding the contract method 0xc835d7cc. -// -// Solidity: function updateSystemContractAddress(address addr) returns() -func (_ZRC20 *ZRC20Transactor) UpdateSystemContractAddress(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "updateSystemContractAddress", addr) -} - -// UpdateSystemContractAddress is a paid mutator transaction binding the contract method 0xc835d7cc. -// -// Solidity: function updateSystemContractAddress(address addr) returns() -func (_ZRC20 *ZRC20Session) UpdateSystemContractAddress(addr common.Address) (*types.Transaction, error) { - return _ZRC20.Contract.UpdateSystemContractAddress(&_ZRC20.TransactOpts, addr) -} - -// UpdateSystemContractAddress is a paid mutator transaction binding the contract method 0xc835d7cc. -// -// Solidity: function updateSystemContractAddress(address addr) returns() -func (_ZRC20 *ZRC20TransactorSession) UpdateSystemContractAddress(addr common.Address) (*types.Transaction, error) { - return _ZRC20.Contract.UpdateSystemContractAddress(&_ZRC20.TransactOpts, addr) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Transactor) Withdraw(opts *bind.TransactOpts, to []byte, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.contract.Transact(opts, "withdraw", to, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20Session) Withdraw(to []byte, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Withdraw(&_ZRC20.TransactOpts, to, amount) -} - -// Withdraw is a paid mutator transaction binding the contract method 0xc7012626. -// -// Solidity: function withdraw(bytes to, uint256 amount) returns(bool) -func (_ZRC20 *ZRC20TransactorSession) Withdraw(to []byte, amount *big.Int) (*types.Transaction, error) { - return _ZRC20.Contract.Withdraw(&_ZRC20.TransactOpts, to, amount) -} - -// ZRC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ZRC20 contract. -type ZRC20ApprovalIterator struct { - Event *ZRC20Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20Approval represents a Approval event raised by the ZRC20 contract. -type ZRC20Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZRC20 *ZRC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ZRC20ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZRC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ZRC20ApprovalIterator{contract: _ZRC20.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZRC20 *ZRC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ZRC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ZRC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20Approval) - if err := _ZRC20.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ZRC20 *ZRC20Filterer) ParseApproval(log types.Log) (*ZRC20Approval, error) { - event := new(ZRC20Approval) - if err := _ZRC20.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20DepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the ZRC20 contract. -type ZRC20DepositIterator struct { - Event *ZRC20Deposit // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20DepositIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20Deposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20Deposit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20DepositIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20DepositIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20Deposit represents a Deposit event raised by the ZRC20 contract. -type ZRC20Deposit struct { - From []byte - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterDeposit is a free log retrieval operation binding the contract event 0x67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab3. -// -// Solidity: event Deposit(bytes from, address indexed to, uint256 value) -func (_ZRC20 *ZRC20Filterer) FilterDeposit(opts *bind.FilterOpts, to []common.Address) (*ZRC20DepositIterator, error) { - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20.contract.FilterLogs(opts, "Deposit", toRule) - if err != nil { - return nil, err - } - return &ZRC20DepositIterator{contract: _ZRC20.contract, event: "Deposit", logs: logs, sub: sub}, nil -} - -// WatchDeposit is a free log subscription operation binding the contract event 0x67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab3. -// -// Solidity: event Deposit(bytes from, address indexed to, uint256 value) -func (_ZRC20 *ZRC20Filterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *ZRC20Deposit, to []common.Address) (event.Subscription, error) { - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20.contract.WatchLogs(opts, "Deposit", toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20Deposit) - if err := _ZRC20.contract.UnpackLog(event, "Deposit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseDeposit is a log parse operation binding the contract event 0x67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab3. -// -// Solidity: event Deposit(bytes from, address indexed to, uint256 value) -func (_ZRC20 *ZRC20Filterer) ParseDeposit(log types.Log) (*ZRC20Deposit, error) { - event := new(ZRC20Deposit) - if err := _ZRC20.contract.UnpackLog(event, "Deposit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ZRC20 contract. -type ZRC20TransferIterator struct { - Event *ZRC20Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20Transfer represents a Transfer event raised by the ZRC20 contract. -type ZRC20Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZRC20 *ZRC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ZRC20TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ZRC20TransferIterator{contract: _ZRC20.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZRC20 *ZRC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ZRC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ZRC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20Transfer) - if err := _ZRC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ZRC20 *ZRC20Filterer) ParseTransfer(log types.Log) (*ZRC20Transfer, error) { - event := new(ZRC20Transfer) - if err := _ZRC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20UpdatedGasLimitIterator is returned from FilterUpdatedGasLimit and is used to iterate over the raw logs and unpacked data for UpdatedGasLimit events raised by the ZRC20 contract. -type ZRC20UpdatedGasLimitIterator struct { - Event *ZRC20UpdatedGasLimit // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20UpdatedGasLimitIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20UpdatedGasLimit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20UpdatedGasLimit) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20UpdatedGasLimitIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20UpdatedGasLimitIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20UpdatedGasLimit represents a UpdatedGasLimit event raised by the ZRC20 contract. -type ZRC20UpdatedGasLimit struct { - GasLimit *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedGasLimit is a free log retrieval operation binding the contract event 0xff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a. -// -// Solidity: event UpdatedGasLimit(uint256 gasLimit) -func (_ZRC20 *ZRC20Filterer) FilterUpdatedGasLimit(opts *bind.FilterOpts) (*ZRC20UpdatedGasLimitIterator, error) { - - logs, sub, err := _ZRC20.contract.FilterLogs(opts, "UpdatedGasLimit") - if err != nil { - return nil, err - } - return &ZRC20UpdatedGasLimitIterator{contract: _ZRC20.contract, event: "UpdatedGasLimit", logs: logs, sub: sub}, nil -} - -// WatchUpdatedGasLimit is a free log subscription operation binding the contract event 0xff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a. -// -// Solidity: event UpdatedGasLimit(uint256 gasLimit) -func (_ZRC20 *ZRC20Filterer) WatchUpdatedGasLimit(opts *bind.WatchOpts, sink chan<- *ZRC20UpdatedGasLimit) (event.Subscription, error) { - - logs, sub, err := _ZRC20.contract.WatchLogs(opts, "UpdatedGasLimit") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20UpdatedGasLimit) - if err := _ZRC20.contract.UnpackLog(event, "UpdatedGasLimit", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedGasLimit is a log parse operation binding the contract event 0xff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a. -// -// Solidity: event UpdatedGasLimit(uint256 gasLimit) -func (_ZRC20 *ZRC20Filterer) ParseUpdatedGasLimit(log types.Log) (*ZRC20UpdatedGasLimit, error) { - event := new(ZRC20UpdatedGasLimit) - if err := _ZRC20.contract.UnpackLog(event, "UpdatedGasLimit", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20UpdatedProtocolFlatFeeIterator is returned from FilterUpdatedProtocolFlatFee and is used to iterate over the raw logs and unpacked data for UpdatedProtocolFlatFee events raised by the ZRC20 contract. -type ZRC20UpdatedProtocolFlatFeeIterator struct { - Event *ZRC20UpdatedProtocolFlatFee // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20UpdatedProtocolFlatFeeIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20UpdatedProtocolFlatFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20UpdatedProtocolFlatFee) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20UpdatedProtocolFlatFeeIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20UpdatedProtocolFlatFeeIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20UpdatedProtocolFlatFee represents a UpdatedProtocolFlatFee event raised by the ZRC20 contract. -type ZRC20UpdatedProtocolFlatFee struct { - ProtocolFlatFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedProtocolFlatFee is a free log retrieval operation binding the contract event 0xef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f. -// -// Solidity: event UpdatedProtocolFlatFee(uint256 protocolFlatFee) -func (_ZRC20 *ZRC20Filterer) FilterUpdatedProtocolFlatFee(opts *bind.FilterOpts) (*ZRC20UpdatedProtocolFlatFeeIterator, error) { - - logs, sub, err := _ZRC20.contract.FilterLogs(opts, "UpdatedProtocolFlatFee") - if err != nil { - return nil, err - } - return &ZRC20UpdatedProtocolFlatFeeIterator{contract: _ZRC20.contract, event: "UpdatedProtocolFlatFee", logs: logs, sub: sub}, nil -} - -// WatchUpdatedProtocolFlatFee is a free log subscription operation binding the contract event 0xef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f. -// -// Solidity: event UpdatedProtocolFlatFee(uint256 protocolFlatFee) -func (_ZRC20 *ZRC20Filterer) WatchUpdatedProtocolFlatFee(opts *bind.WatchOpts, sink chan<- *ZRC20UpdatedProtocolFlatFee) (event.Subscription, error) { - - logs, sub, err := _ZRC20.contract.WatchLogs(opts, "UpdatedProtocolFlatFee") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20UpdatedProtocolFlatFee) - if err := _ZRC20.contract.UnpackLog(event, "UpdatedProtocolFlatFee", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedProtocolFlatFee is a log parse operation binding the contract event 0xef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f. -// -// Solidity: event UpdatedProtocolFlatFee(uint256 protocolFlatFee) -func (_ZRC20 *ZRC20Filterer) ParseUpdatedProtocolFlatFee(log types.Log) (*ZRC20UpdatedProtocolFlatFee, error) { - event := new(ZRC20UpdatedProtocolFlatFee) - if err := _ZRC20.contract.UnpackLog(event, "UpdatedProtocolFlatFee", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20UpdatedSystemContractIterator is returned from FilterUpdatedSystemContract and is used to iterate over the raw logs and unpacked data for UpdatedSystemContract events raised by the ZRC20 contract. -type ZRC20UpdatedSystemContractIterator struct { - Event *ZRC20UpdatedSystemContract // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20UpdatedSystemContractIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20UpdatedSystemContract) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20UpdatedSystemContract) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20UpdatedSystemContractIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20UpdatedSystemContractIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20UpdatedSystemContract represents a UpdatedSystemContract event raised by the ZRC20 contract. -type ZRC20UpdatedSystemContract struct { - SystemContract common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUpdatedSystemContract is a free log retrieval operation binding the contract event 0xd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae. -// -// Solidity: event UpdatedSystemContract(address systemContract) -func (_ZRC20 *ZRC20Filterer) FilterUpdatedSystemContract(opts *bind.FilterOpts) (*ZRC20UpdatedSystemContractIterator, error) { - - logs, sub, err := _ZRC20.contract.FilterLogs(opts, "UpdatedSystemContract") - if err != nil { - return nil, err - } - return &ZRC20UpdatedSystemContractIterator{contract: _ZRC20.contract, event: "UpdatedSystemContract", logs: logs, sub: sub}, nil -} - -// WatchUpdatedSystemContract is a free log subscription operation binding the contract event 0xd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae. -// -// Solidity: event UpdatedSystemContract(address systemContract) -func (_ZRC20 *ZRC20Filterer) WatchUpdatedSystemContract(opts *bind.WatchOpts, sink chan<- *ZRC20UpdatedSystemContract) (event.Subscription, error) { - - logs, sub, err := _ZRC20.contract.WatchLogs(opts, "UpdatedSystemContract") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20UpdatedSystemContract) - if err := _ZRC20.contract.UnpackLog(event, "UpdatedSystemContract", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUpdatedSystemContract is a log parse operation binding the contract event 0xd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae. -// -// Solidity: event UpdatedSystemContract(address systemContract) -func (_ZRC20 *ZRC20Filterer) ParseUpdatedSystemContract(log types.Log) (*ZRC20UpdatedSystemContract, error) { - event := new(ZRC20UpdatedSystemContract) - if err := _ZRC20.contract.UnpackLog(event, "UpdatedSystemContract", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ZRC20WithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the ZRC20 contract. -type ZRC20WithdrawalIterator struct { - Event *ZRC20Withdrawal // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ZRC20WithdrawalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ZRC20Withdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ZRC20Withdrawal) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ZRC20WithdrawalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ZRC20WithdrawalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ZRC20Withdrawal represents a Withdrawal event raised by the ZRC20 contract. -type ZRC20Withdrawal struct { - From common.Address - To []byte - Value *big.Int - GasFee *big.Int - ProtocolFlatFee *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterWithdrawal is a free log retrieval operation binding the contract event 0x9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955. -// -// Solidity: event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee) -func (_ZRC20 *ZRC20Filterer) FilterWithdrawal(opts *bind.FilterOpts, from []common.Address) (*ZRC20WithdrawalIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - - logs, sub, err := _ZRC20.contract.FilterLogs(opts, "Withdrawal", fromRule) - if err != nil { - return nil, err - } - return &ZRC20WithdrawalIterator{contract: _ZRC20.contract, event: "Withdrawal", logs: logs, sub: sub}, nil -} - -// WatchWithdrawal is a free log subscription operation binding the contract event 0x9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955. -// -// Solidity: event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee) -func (_ZRC20 *ZRC20Filterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *ZRC20Withdrawal, from []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - - logs, sub, err := _ZRC20.contract.WatchLogs(opts, "Withdrawal", fromRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ZRC20Withdrawal) - if err := _ZRC20.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseWithdrawal is a log parse operation binding the contract event 0x9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955. -// -// Solidity: event Withdrawal(address indexed from, bytes to, uint256 value, uint256 gasFee, uint256 protocolFlatFee) -func (_ZRC20 *ZRC20Filterer) ParseWithdrawal(log types.Log) (*ZRC20Withdrawal, error) { - event := new(ZRC20Withdrawal) - if err := _ZRC20.contract.UnpackLog(event, "Withdrawal", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/contracts/zevm/zrc20.sol/zrc20errors.go b/v1/pkg/contracts/zevm/zrc20.sol/zrc20errors.go deleted file mode 100644 index d822cd2c0..000000000 --- a/v1/pkg/contracts/zevm/zrc20.sol/zrc20errors.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package zrc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ZRC20ErrorsMetaData contains all meta data concerning the ZRC20Errors contract. -var ZRC20ErrorsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"CallerIsNotFungibleModule\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GasFeeTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSender\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LowAllowance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LowBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroGasCoin\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroGasPrice\",\"type\":\"error\"}]", -} - -// ZRC20ErrorsABI is the input ABI used to generate the binding from. -// Deprecated: Use ZRC20ErrorsMetaData.ABI instead. -var ZRC20ErrorsABI = ZRC20ErrorsMetaData.ABI - -// ZRC20Errors is an auto generated Go binding around an Ethereum contract. -type ZRC20Errors struct { - ZRC20ErrorsCaller // Read-only binding to the contract - ZRC20ErrorsTransactor // Write-only binding to the contract - ZRC20ErrorsFilterer // Log filterer for contract events -} - -// ZRC20ErrorsCaller is an auto generated read-only Go binding around an Ethereum contract. -type ZRC20ErrorsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20ErrorsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ZRC20ErrorsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20ErrorsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ZRC20ErrorsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ZRC20ErrorsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ZRC20ErrorsSession struct { - Contract *ZRC20Errors // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZRC20ErrorsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ZRC20ErrorsCallerSession struct { - Contract *ZRC20ErrorsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ZRC20ErrorsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ZRC20ErrorsTransactorSession struct { - Contract *ZRC20ErrorsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ZRC20ErrorsRaw is an auto generated low-level Go binding around an Ethereum contract. -type ZRC20ErrorsRaw struct { - Contract *ZRC20Errors // Generic contract binding to access the raw methods on -} - -// ZRC20ErrorsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ZRC20ErrorsCallerRaw struct { - Contract *ZRC20ErrorsCaller // Generic read-only contract binding to access the raw methods on -} - -// ZRC20ErrorsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ZRC20ErrorsTransactorRaw struct { - Contract *ZRC20ErrorsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewZRC20Errors creates a new instance of ZRC20Errors, bound to a specific deployed contract. -func NewZRC20Errors(address common.Address, backend bind.ContractBackend) (*ZRC20Errors, error) { - contract, err := bindZRC20Errors(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ZRC20Errors{ZRC20ErrorsCaller: ZRC20ErrorsCaller{contract: contract}, ZRC20ErrorsTransactor: ZRC20ErrorsTransactor{contract: contract}, ZRC20ErrorsFilterer: ZRC20ErrorsFilterer{contract: contract}}, nil -} - -// NewZRC20ErrorsCaller creates a new read-only instance of ZRC20Errors, bound to a specific deployed contract. -func NewZRC20ErrorsCaller(address common.Address, caller bind.ContractCaller) (*ZRC20ErrorsCaller, error) { - contract, err := bindZRC20Errors(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ZRC20ErrorsCaller{contract: contract}, nil -} - -// NewZRC20ErrorsTransactor creates a new write-only instance of ZRC20Errors, bound to a specific deployed contract. -func NewZRC20ErrorsTransactor(address common.Address, transactor bind.ContractTransactor) (*ZRC20ErrorsTransactor, error) { - contract, err := bindZRC20Errors(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ZRC20ErrorsTransactor{contract: contract}, nil -} - -// NewZRC20ErrorsFilterer creates a new log filterer instance of ZRC20Errors, bound to a specific deployed contract. -func NewZRC20ErrorsFilterer(address common.Address, filterer bind.ContractFilterer) (*ZRC20ErrorsFilterer, error) { - contract, err := bindZRC20Errors(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ZRC20ErrorsFilterer{contract: contract}, nil -} - -// bindZRC20Errors binds a generic wrapper to an already deployed contract. -func bindZRC20Errors(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ZRC20ErrorsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZRC20Errors *ZRC20ErrorsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZRC20Errors.Contract.ZRC20ErrorsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZRC20Errors *ZRC20ErrorsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZRC20Errors.Contract.ZRC20ErrorsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZRC20Errors *ZRC20ErrorsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZRC20Errors.Contract.ZRC20ErrorsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ZRC20Errors *ZRC20ErrorsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ZRC20Errors.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ZRC20Errors *ZRC20ErrorsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ZRC20Errors.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ZRC20Errors *ZRC20ErrorsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ZRC20Errors.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/openzeppelin/contracts/access/ownable.sol/ownable.go b/v1/pkg/openzeppelin/contracts/access/ownable.sol/ownable.go deleted file mode 100644 index eae942621..000000000 --- a/v1/pkg/openzeppelin/contracts/access/ownable.sol/ownable.go +++ /dev/null @@ -1,407 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package ownable - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// OwnableMetaData contains all meta data concerning the Ownable contract. -var OwnableMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// OwnableABI is the input ABI used to generate the binding from. -// Deprecated: Use OwnableMetaData.ABI instead. -var OwnableABI = OwnableMetaData.ABI - -// Ownable is an auto generated Go binding around an Ethereum contract. -type Ownable struct { - OwnableCaller // Read-only binding to the contract - OwnableTransactor // Write-only binding to the contract - OwnableFilterer // Log filterer for contract events -} - -// OwnableCaller is an auto generated read-only Go binding around an Ethereum contract. -type OwnableCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// OwnableTransactor is an auto generated write-only Go binding around an Ethereum contract. -type OwnableTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// OwnableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type OwnableFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// OwnableSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type OwnableSession struct { - Contract *Ownable // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// OwnableCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type OwnableCallerSession struct { - Contract *OwnableCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// OwnableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type OwnableTransactorSession struct { - Contract *OwnableTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// OwnableRaw is an auto generated low-level Go binding around an Ethereum contract. -type OwnableRaw struct { - Contract *Ownable // Generic contract binding to access the raw methods on -} - -// OwnableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type OwnableCallerRaw struct { - Contract *OwnableCaller // Generic read-only contract binding to access the raw methods on -} - -// OwnableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type OwnableTransactorRaw struct { - Contract *OwnableTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewOwnable creates a new instance of Ownable, bound to a specific deployed contract. -func NewOwnable(address common.Address, backend bind.ContractBackend) (*Ownable, error) { - contract, err := bindOwnable(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Ownable{OwnableCaller: OwnableCaller{contract: contract}, OwnableTransactor: OwnableTransactor{contract: contract}, OwnableFilterer: OwnableFilterer{contract: contract}}, nil -} - -// NewOwnableCaller creates a new read-only instance of Ownable, bound to a specific deployed contract. -func NewOwnableCaller(address common.Address, caller bind.ContractCaller) (*OwnableCaller, error) { - contract, err := bindOwnable(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &OwnableCaller{contract: contract}, nil -} - -// NewOwnableTransactor creates a new write-only instance of Ownable, bound to a specific deployed contract. -func NewOwnableTransactor(address common.Address, transactor bind.ContractTransactor) (*OwnableTransactor, error) { - contract, err := bindOwnable(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &OwnableTransactor{contract: contract}, nil -} - -// NewOwnableFilterer creates a new log filterer instance of Ownable, bound to a specific deployed contract. -func NewOwnableFilterer(address common.Address, filterer bind.ContractFilterer) (*OwnableFilterer, error) { - contract, err := bindOwnable(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &OwnableFilterer{contract: contract}, nil -} - -// bindOwnable binds a generic wrapper to an already deployed contract. -func bindOwnable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := OwnableMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Ownable *OwnableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Ownable.Contract.OwnableCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Ownable *OwnableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable.Contract.OwnableTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Ownable *OwnableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Ownable.Contract.OwnableTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Ownable *OwnableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Ownable.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Ownable *OwnableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Ownable *OwnableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Ownable.Contract.contract.Transact(opts, method, params...) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_Ownable *OwnableCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _Ownable.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_Ownable *OwnableSession) Owner() (common.Address, error) { - return _Ownable.Contract.Owner(&_Ownable.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_Ownable *OwnableCallerSession) Owner() (common.Address, error) { - return _Ownable.Contract.Owner(&_Ownable.CallOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable.contract.Transact(opts, "renounceOwnership") -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error) { - return _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _Ownable.Contract.RenounceOwnership(&_Ownable.TransactOpts) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _Ownable.contract.Transact(opts, "transferOwnership", newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable *OwnableSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Ownable.Contract.TransferOwnership(&_Ownable.TransactOpts, newOwner) -} - -// OwnableOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Ownable contract. -type OwnableOwnershipTransferredIterator struct { - Event *OwnableOwnershipTransferred // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *OwnableOwnershipTransferredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(OwnableOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(OwnableOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *OwnableOwnershipTransferredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *OwnableOwnershipTransferredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// OwnableOwnershipTransferred represents a OwnershipTransferred event raised by the Ownable contract. -type OwnableOwnershipTransferred struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _Ownable.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &OwnableOwnershipTransferredIterator{contract: _Ownable.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _Ownable.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(OwnableOwnershipTransferred) - if err := _Ownable.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Ownable *OwnableFilterer) ParseOwnershipTransferred(log types.Log) (*OwnableOwnershipTransferred, error) { - event := new(OwnableOwnershipTransferred) - if err := _Ownable.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/openzeppelin/contracts/access/ownable2step.sol/ownable2step.go b/v1/pkg/openzeppelin/contracts/access/ownable2step.sol/ownable2step.go deleted file mode 100644 index c5ccc6fc3..000000000 --- a/v1/pkg/openzeppelin/contracts/access/ownable2step.sol/ownable2step.go +++ /dev/null @@ -1,612 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package ownable2step - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// Ownable2StepMetaData contains all meta data concerning the Ownable2Step contract. -var Ownable2StepMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// Ownable2StepABI is the input ABI used to generate the binding from. -// Deprecated: Use Ownable2StepMetaData.ABI instead. -var Ownable2StepABI = Ownable2StepMetaData.ABI - -// Ownable2Step is an auto generated Go binding around an Ethereum contract. -type Ownable2Step struct { - Ownable2StepCaller // Read-only binding to the contract - Ownable2StepTransactor // Write-only binding to the contract - Ownable2StepFilterer // Log filterer for contract events -} - -// Ownable2StepCaller is an auto generated read-only Go binding around an Ethereum contract. -type Ownable2StepCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// Ownable2StepTransactor is an auto generated write-only Go binding around an Ethereum contract. -type Ownable2StepTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// Ownable2StepFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type Ownable2StepFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// Ownable2StepSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type Ownable2StepSession struct { - Contract *Ownable2Step // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// Ownable2StepCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type Ownable2StepCallerSession struct { - Contract *Ownable2StepCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// Ownable2StepTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type Ownable2StepTransactorSession struct { - Contract *Ownable2StepTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// Ownable2StepRaw is an auto generated low-level Go binding around an Ethereum contract. -type Ownable2StepRaw struct { - Contract *Ownable2Step // Generic contract binding to access the raw methods on -} - -// Ownable2StepCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type Ownable2StepCallerRaw struct { - Contract *Ownable2StepCaller // Generic read-only contract binding to access the raw methods on -} - -// Ownable2StepTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type Ownable2StepTransactorRaw struct { - Contract *Ownable2StepTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewOwnable2Step creates a new instance of Ownable2Step, bound to a specific deployed contract. -func NewOwnable2Step(address common.Address, backend bind.ContractBackend) (*Ownable2Step, error) { - contract, err := bindOwnable2Step(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Ownable2Step{Ownable2StepCaller: Ownable2StepCaller{contract: contract}, Ownable2StepTransactor: Ownable2StepTransactor{contract: contract}, Ownable2StepFilterer: Ownable2StepFilterer{contract: contract}}, nil -} - -// NewOwnable2StepCaller creates a new read-only instance of Ownable2Step, bound to a specific deployed contract. -func NewOwnable2StepCaller(address common.Address, caller bind.ContractCaller) (*Ownable2StepCaller, error) { - contract, err := bindOwnable2Step(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &Ownable2StepCaller{contract: contract}, nil -} - -// NewOwnable2StepTransactor creates a new write-only instance of Ownable2Step, bound to a specific deployed contract. -func NewOwnable2StepTransactor(address common.Address, transactor bind.ContractTransactor) (*Ownable2StepTransactor, error) { - contract, err := bindOwnable2Step(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &Ownable2StepTransactor{contract: contract}, nil -} - -// NewOwnable2StepFilterer creates a new log filterer instance of Ownable2Step, bound to a specific deployed contract. -func NewOwnable2StepFilterer(address common.Address, filterer bind.ContractFilterer) (*Ownable2StepFilterer, error) { - contract, err := bindOwnable2Step(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &Ownable2StepFilterer{contract: contract}, nil -} - -// bindOwnable2Step binds a generic wrapper to an already deployed contract. -func bindOwnable2Step(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := Ownable2StepMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Ownable2Step *Ownable2StepRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Ownable2Step.Contract.Ownable2StepCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Ownable2Step *Ownable2StepRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable2Step.Contract.Ownable2StepTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Ownable2Step *Ownable2StepRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Ownable2Step.Contract.Ownable2StepTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Ownable2Step *Ownable2StepCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Ownable2Step.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Ownable2Step *Ownable2StepTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable2Step.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Ownable2Step *Ownable2StepTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Ownable2Step.Contract.contract.Transact(opts, method, params...) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_Ownable2Step *Ownable2StepCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _Ownable2Step.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_Ownable2Step *Ownable2StepSession) Owner() (common.Address, error) { - return _Ownable2Step.Contract.Owner(&_Ownable2Step.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_Ownable2Step *Ownable2StepCallerSession) Owner() (common.Address, error) { - return _Ownable2Step.Contract.Owner(&_Ownable2Step.CallOpts) -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_Ownable2Step *Ownable2StepCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _Ownable2Step.contract.Call(opts, &out, "pendingOwner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_Ownable2Step *Ownable2StepSession) PendingOwner() (common.Address, error) { - return _Ownable2Step.Contract.PendingOwner(&_Ownable2Step.CallOpts) -} - -// PendingOwner is a free data retrieval call binding the contract method 0xe30c3978. -// -// Solidity: function pendingOwner() view returns(address) -func (_Ownable2Step *Ownable2StepCallerSession) PendingOwner() (common.Address, error) { - return _Ownable2Step.Contract.PendingOwner(&_Ownable2Step.CallOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_Ownable2Step *Ownable2StepTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable2Step.contract.Transact(opts, "acceptOwnership") -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_Ownable2Step *Ownable2StepSession) AcceptOwnership() (*types.Transaction, error) { - return _Ownable2Step.Contract.AcceptOwnership(&_Ownable2Step.TransactOpts) -} - -// AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097. -// -// Solidity: function acceptOwnership() returns() -func (_Ownable2Step *Ownable2StepTransactorSession) AcceptOwnership() (*types.Transaction, error) { - return _Ownable2Step.Contract.AcceptOwnership(&_Ownable2Step.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_Ownable2Step *Ownable2StepTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Ownable2Step.contract.Transact(opts, "renounceOwnership") -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_Ownable2Step *Ownable2StepSession) RenounceOwnership() (*types.Transaction, error) { - return _Ownable2Step.Contract.RenounceOwnership(&_Ownable2Step.TransactOpts) -} - -// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. -// -// Solidity: function renounceOwnership() returns() -func (_Ownable2Step *Ownable2StepTransactorSession) RenounceOwnership() (*types.Transaction, error) { - return _Ownable2Step.Contract.RenounceOwnership(&_Ownable2Step.TransactOpts) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable2Step *Ownable2StepTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { - return _Ownable2Step.contract.Transact(opts, "transferOwnership", newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable2Step *Ownable2StepSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Ownable2Step.Contract.TransferOwnership(&_Ownable2Step.TransactOpts, newOwner) -} - -// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. -// -// Solidity: function transferOwnership(address newOwner) returns() -func (_Ownable2Step *Ownable2StepTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { - return _Ownable2Step.Contract.TransferOwnership(&_Ownable2Step.TransactOpts, newOwner) -} - -// Ownable2StepOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the Ownable2Step contract. -type Ownable2StepOwnershipTransferStartedIterator struct { - Event *Ownable2StepOwnershipTransferStarted // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *Ownable2StepOwnershipTransferStartedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(Ownable2StepOwnershipTransferStarted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(Ownable2StepOwnershipTransferStarted) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *Ownable2StepOwnershipTransferStartedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *Ownable2StepOwnershipTransferStartedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// Ownable2StepOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the Ownable2Step contract. -type Ownable2StepOwnershipTransferStarted struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_Ownable2Step *Ownable2StepFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Ownable2StepOwnershipTransferStartedIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _Ownable2Step.contract.FilterLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &Ownable2StepOwnershipTransferStartedIterator{contract: _Ownable2Step.contract, event: "OwnershipTransferStarted", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_Ownable2Step *Ownable2StepFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *Ownable2StepOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _Ownable2Step.contract.WatchLogs(opts, "OwnershipTransferStarted", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(Ownable2StepOwnershipTransferStarted) - if err := _Ownable2Step.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700. -// -// Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner) -func (_Ownable2Step *Ownable2StepFilterer) ParseOwnershipTransferStarted(log types.Log) (*Ownable2StepOwnershipTransferStarted, error) { - event := new(Ownable2StepOwnershipTransferStarted) - if err := _Ownable2Step.contract.UnpackLog(event, "OwnershipTransferStarted", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// Ownable2StepOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Ownable2Step contract. -type Ownable2StepOwnershipTransferredIterator struct { - Event *Ownable2StepOwnershipTransferred // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *Ownable2StepOwnershipTransferredIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(Ownable2StepOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(Ownable2StepOwnershipTransferred) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *Ownable2StepOwnershipTransferredIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *Ownable2StepOwnershipTransferredIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// Ownable2StepOwnershipTransferred represents a OwnershipTransferred event raised by the Ownable2Step contract. -type Ownable2StepOwnershipTransferred struct { - PreviousOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Ownable2Step *Ownable2StepFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Ownable2StepOwnershipTransferredIterator, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _Ownable2Step.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &Ownable2StepOwnershipTransferredIterator{contract: _Ownable2Step.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil -} - -// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Ownable2Step *Ownable2StepFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Ownable2StepOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var previousOwnerRule []interface{} - for _, previousOwnerItem := range previousOwner { - previousOwnerRule = append(previousOwnerRule, previousOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _Ownable2Step.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(Ownable2StepOwnershipTransferred) - if err := _Ownable2Step.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. -// -// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) -func (_Ownable2Step *Ownable2StepFilterer) ParseOwnershipTransferred(log types.Log) (*Ownable2StepOwnershipTransferred, error) { - event := new(Ownable2StepOwnershipTransferred) - if err := _Ownable2Step.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/openzeppelin/contracts/security/pausable.sol/pausable.go b/v1/pkg/openzeppelin/contracts/security/pausable.sol/pausable.go deleted file mode 100644 index 22199c55d..000000000 --- a/v1/pkg/openzeppelin/contracts/security/pausable.sol/pausable.go +++ /dev/null @@ -1,480 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package pausable - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// PausableMetaData contains all meta data concerning the Pausable contract. -var PausableMetaData = &bind.MetaData{ - ABI: "[{\"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\"}]", -} - -// PausableABI is the input ABI used to generate the binding from. -// Deprecated: Use PausableMetaData.ABI instead. -var PausableABI = PausableMetaData.ABI - -// Pausable is an auto generated Go binding around an Ethereum contract. -type Pausable struct { - PausableCaller // Read-only binding to the contract - PausableTransactor // Write-only binding to the contract - PausableFilterer // Log filterer for contract events -} - -// PausableCaller is an auto generated read-only Go binding around an Ethereum contract. -type PausableCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// PausableTransactor is an auto generated write-only Go binding around an Ethereum contract. -type PausableTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// PausableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type PausableFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// PausableSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type PausableSession struct { - Contract *Pausable // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// PausableCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type PausableCallerSession struct { - Contract *PausableCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// PausableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type PausableTransactorSession struct { - Contract *PausableTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// PausableRaw is an auto generated low-level Go binding around an Ethereum contract. -type PausableRaw struct { - Contract *Pausable // Generic contract binding to access the raw methods on -} - -// PausableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type PausableCallerRaw struct { - Contract *PausableCaller // Generic read-only contract binding to access the raw methods on -} - -// PausableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type PausableTransactorRaw struct { - Contract *PausableTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewPausable creates a new instance of Pausable, bound to a specific deployed contract. -func NewPausable(address common.Address, backend bind.ContractBackend) (*Pausable, error) { - contract, err := bindPausable(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Pausable{PausableCaller: PausableCaller{contract: contract}, PausableTransactor: PausableTransactor{contract: contract}, PausableFilterer: PausableFilterer{contract: contract}}, nil -} - -// NewPausableCaller creates a new read-only instance of Pausable, bound to a specific deployed contract. -func NewPausableCaller(address common.Address, caller bind.ContractCaller) (*PausableCaller, error) { - contract, err := bindPausable(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &PausableCaller{contract: contract}, nil -} - -// NewPausableTransactor creates a new write-only instance of Pausable, bound to a specific deployed contract. -func NewPausableTransactor(address common.Address, transactor bind.ContractTransactor) (*PausableTransactor, error) { - contract, err := bindPausable(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &PausableTransactor{contract: contract}, nil -} - -// NewPausableFilterer creates a new log filterer instance of Pausable, bound to a specific deployed contract. -func NewPausableFilterer(address common.Address, filterer bind.ContractFilterer) (*PausableFilterer, error) { - contract, err := bindPausable(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &PausableFilterer{contract: contract}, nil -} - -// bindPausable binds a generic wrapper to an already deployed contract. -func bindPausable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := PausableMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Pausable *PausableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Pausable.Contract.PausableCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Pausable *PausableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Pausable.Contract.PausableTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Pausable *PausableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Pausable.Contract.PausableTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Pausable *PausableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Pausable.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Pausable *PausableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Pausable.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Pausable *PausableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Pausable.Contract.contract.Transact(opts, method, params...) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_Pausable *PausableCaller) Paused(opts *bind.CallOpts) (bool, error) { - var out []interface{} - err := _Pausable.contract.Call(opts, &out, "paused") - - if err != nil { - return *new(bool), err - } - - out0 := *abi.ConvertType(out[0], new(bool)).(*bool) - - return out0, err - -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_Pausable *PausableSession) Paused() (bool, error) { - return _Pausable.Contract.Paused(&_Pausable.CallOpts) -} - -// Paused is a free data retrieval call binding the contract method 0x5c975abb. -// -// Solidity: function paused() view returns(bool) -func (_Pausable *PausableCallerSession) Paused() (bool, error) { - return _Pausable.Contract.Paused(&_Pausable.CallOpts) -} - -// PausablePausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Pausable contract. -type PausablePausedIterator struct { - Event *PausablePaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *PausablePausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(PausablePaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(PausablePaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *PausablePausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *PausablePausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// PausablePaused represents a Paused event raised by the Pausable contract. -type PausablePaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_Pausable *PausableFilterer) FilterPaused(opts *bind.FilterOpts) (*PausablePausedIterator, error) { - - logs, sub, err := _Pausable.contract.FilterLogs(opts, "Paused") - if err != nil { - return nil, err - } - return &PausablePausedIterator{contract: _Pausable.contract, event: "Paused", logs: logs, sub: sub}, nil -} - -// WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_Pausable *PausableFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *PausablePaused) (event.Subscription, error) { - - logs, sub, err := _Pausable.contract.WatchLogs(opts, "Paused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(PausablePaused) - if err := _Pausable.contract.UnpackLog(event, "Paused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. -// -// Solidity: event Paused(address account) -func (_Pausable *PausableFilterer) ParsePaused(log types.Log) (*PausablePaused, error) { - event := new(PausablePaused) - if err := _Pausable.contract.UnpackLog(event, "Paused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// PausableUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Pausable contract. -type PausableUnpausedIterator struct { - Event *PausableUnpaused // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *PausableUnpausedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(PausableUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(PausableUnpaused) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *PausableUnpausedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *PausableUnpausedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// PausableUnpaused represents a Unpaused event raised by the Pausable contract. -type PausableUnpaused struct { - Account common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_Pausable *PausableFilterer) FilterUnpaused(opts *bind.FilterOpts) (*PausableUnpausedIterator, error) { - - logs, sub, err := _Pausable.contract.FilterLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return &PausableUnpausedIterator{contract: _Pausable.contract, event: "Unpaused", logs: logs, sub: sub}, nil -} - -// WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_Pausable *PausableFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *PausableUnpaused) (event.Subscription, error) { - - logs, sub, err := _Pausable.contract.WatchLogs(opts, "Unpaused") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(PausableUnpaused) - if err := _Pausable.contract.UnpackLog(event, "Unpaused", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. -// -// Solidity: event Unpaused(address account) -func (_Pausable *PausableFilterer) ParseUnpaused(log types.Log) (*PausableUnpaused, error) { - event := new(PausableUnpaused) - if err := _Pausable.contract.UnpackLog(event, "Unpaused", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/openzeppelin/contracts/security/reentrancyguard.sol/reentrancyguard.go b/v1/pkg/openzeppelin/contracts/security/reentrancyguard.sol/reentrancyguard.go deleted file mode 100644 index e62fdc89f..000000000 --- a/v1/pkg/openzeppelin/contracts/security/reentrancyguard.sol/reentrancyguard.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package reentrancyguard - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ReentrancyGuardMetaData contains all meta data concerning the ReentrancyGuard contract. -var ReentrancyGuardMetaData = &bind.MetaData{ - ABI: "[]", -} - -// ReentrancyGuardABI is the input ABI used to generate the binding from. -// Deprecated: Use ReentrancyGuardMetaData.ABI instead. -var ReentrancyGuardABI = ReentrancyGuardMetaData.ABI - -// ReentrancyGuard is an auto generated Go binding around an Ethereum contract. -type ReentrancyGuard struct { - ReentrancyGuardCaller // Read-only binding to the contract - ReentrancyGuardTransactor // Write-only binding to the contract - ReentrancyGuardFilterer // Log filterer for contract events -} - -// ReentrancyGuardCaller is an auto generated read-only Go binding around an Ethereum contract. -type ReentrancyGuardCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ReentrancyGuardTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ReentrancyGuardTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ReentrancyGuardFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ReentrancyGuardFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ReentrancyGuardSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ReentrancyGuardSession struct { - Contract *ReentrancyGuard // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ReentrancyGuardCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ReentrancyGuardCallerSession struct { - Contract *ReentrancyGuardCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ReentrancyGuardTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ReentrancyGuardTransactorSession struct { - Contract *ReentrancyGuardTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ReentrancyGuardRaw is an auto generated low-level Go binding around an Ethereum contract. -type ReentrancyGuardRaw struct { - Contract *ReentrancyGuard // Generic contract binding to access the raw methods on -} - -// ReentrancyGuardCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ReentrancyGuardCallerRaw struct { - Contract *ReentrancyGuardCaller // Generic read-only contract binding to access the raw methods on -} - -// ReentrancyGuardTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ReentrancyGuardTransactorRaw struct { - Contract *ReentrancyGuardTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewReentrancyGuard creates a new instance of ReentrancyGuard, bound to a specific deployed contract. -func NewReentrancyGuard(address common.Address, backend bind.ContractBackend) (*ReentrancyGuard, error) { - contract, err := bindReentrancyGuard(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ReentrancyGuard{ReentrancyGuardCaller: ReentrancyGuardCaller{contract: contract}, ReentrancyGuardTransactor: ReentrancyGuardTransactor{contract: contract}, ReentrancyGuardFilterer: ReentrancyGuardFilterer{contract: contract}}, nil -} - -// NewReentrancyGuardCaller creates a new read-only instance of ReentrancyGuard, bound to a specific deployed contract. -func NewReentrancyGuardCaller(address common.Address, caller bind.ContractCaller) (*ReentrancyGuardCaller, error) { - contract, err := bindReentrancyGuard(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ReentrancyGuardCaller{contract: contract}, nil -} - -// NewReentrancyGuardTransactor creates a new write-only instance of ReentrancyGuard, bound to a specific deployed contract. -func NewReentrancyGuardTransactor(address common.Address, transactor bind.ContractTransactor) (*ReentrancyGuardTransactor, error) { - contract, err := bindReentrancyGuard(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ReentrancyGuardTransactor{contract: contract}, nil -} - -// NewReentrancyGuardFilterer creates a new log filterer instance of ReentrancyGuard, bound to a specific deployed contract. -func NewReentrancyGuardFilterer(address common.Address, filterer bind.ContractFilterer) (*ReentrancyGuardFilterer, error) { - contract, err := bindReentrancyGuard(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ReentrancyGuardFilterer{contract: contract}, nil -} - -// bindReentrancyGuard binds a generic wrapper to an already deployed contract. -func bindReentrancyGuard(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ReentrancyGuardMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ReentrancyGuard *ReentrancyGuardRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ReentrancyGuard.Contract.ReentrancyGuardCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ReentrancyGuard *ReentrancyGuardRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ReentrancyGuard.Contract.ReentrancyGuardTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ReentrancyGuard *ReentrancyGuardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ReentrancyGuard.Contract.ReentrancyGuardTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ReentrancyGuard *ReentrancyGuardCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ReentrancyGuard.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ReentrancyGuard *ReentrancyGuardTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ReentrancyGuard.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ReentrancyGuard *ReentrancyGuardTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ReentrancyGuard.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/openzeppelin/contracts/token/erc20/erc20.sol/erc20.go b/v1/pkg/openzeppelin/contracts/token/erc20/erc20.sol/erc20.go deleted file mode 100644 index f196876b5..000000000 --- a/v1/pkg/openzeppelin/contracts/token/erc20/erc20.sol/erc20.go +++ /dev/null @@ -1,802 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package erc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ERC20MetaData contains all meta data concerning the ERC20 contract. -var ERC20MetaData = &bind.MetaData{ - 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\"}]", - Bin: "0x60806040523480156200001157600080fd5b50604051620016173803806200161783398181016040528101906200003791906200019f565b81600390805190602001906200004f92919062000071565b5080600490805190602001906200006892919062000071565b505050620003a8565b8280546200007f90620002b9565b90600052602060002090601f016020900481019282620000a35760008555620000ef565b82601f10620000be57805160ff1916838001178555620000ef565b82800160010185558215620000ef579182015b82811115620000ee578251825591602001919060010190620000d1565b5b509050620000fe919062000102565b5090565b5b808211156200011d57600081600090555060010162000103565b5090565b60006200013862000132846200024d565b62000224565b90508281526020810184848401111562000157576200015662000388565b5b6200016484828562000283565b509392505050565b600082601f83011262000184576200018362000383565b5b81516200019684826020860162000121565b91505092915050565b60008060408385031215620001b957620001b862000392565b5b600083015167ffffffffffffffff811115620001da57620001d96200038d565b5b620001e8858286016200016c565b925050602083015167ffffffffffffffff8111156200020c576200020b6200038d565b5b6200021a858286016200016c565b9150509250929050565b60006200023062000243565b90506200023e8282620002ef565b919050565b6000604051905090565b600067ffffffffffffffff8211156200026b576200026a62000354565b5b620002768262000397565b9050602081019050919050565b60005b83811015620002a357808201518184015260208101905062000286565b83811115620002b3576000848401525b50505050565b60006002820490506001821680620002d257607f821691505b60208210811415620002e957620002e862000325565b5b50919050565b620002fa8262000397565b810181811067ffffffffffffffff821117156200031c576200031b62000354565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b61125f80620003b86000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea2646970667358221220c70e1992046ff573bf7e5981f8f62872dc98f375e08ea9d8a16f2a8da731c7ec64736f6c63430008070033", -} - -// ERC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use ERC20MetaData.ABI instead. -var ERC20ABI = ERC20MetaData.ABI - -// ERC20Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use ERC20MetaData.Bin instead. -var ERC20Bin = ERC20MetaData.Bin - -// DeployERC20 deploys a new Ethereum contract, binding an instance of ERC20 to it. -func DeployERC20(auth *bind.TransactOpts, backend bind.ContractBackend, name_ string, symbol_ string) (common.Address, *types.Transaction, *ERC20, error) { - parsed, err := ERC20MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ERC20Bin), backend, name_, symbol_) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &ERC20{ERC20Caller: ERC20Caller{contract: contract}, ERC20Transactor: ERC20Transactor{contract: contract}, ERC20Filterer: ERC20Filterer{contract: contract}}, nil -} - -// ERC20 is an auto generated Go binding around an Ethereum contract. -type ERC20 struct { - ERC20Caller // Read-only binding to the contract - ERC20Transactor // Write-only binding to the contract - ERC20Filterer // Log filterer for contract events -} - -// ERC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type ERC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type ERC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ERC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ERC20Session struct { - Contract *ERC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ERC20CallerSession struct { - Contract *ERC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ERC20TransactorSession struct { - Contract *ERC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type ERC20Raw struct { - Contract *ERC20 // Generic contract binding to access the raw methods on -} - -// ERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ERC20CallerRaw struct { - Contract *ERC20Caller // Generic read-only contract binding to access the raw methods on -} - -// ERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ERC20TransactorRaw struct { - Contract *ERC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewERC20 creates a new instance of ERC20, bound to a specific deployed contract. -func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error) { - contract, err := bindERC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ERC20{ERC20Caller: ERC20Caller{contract: contract}, ERC20Transactor: ERC20Transactor{contract: contract}, ERC20Filterer: ERC20Filterer{contract: contract}}, nil -} - -// NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract. -func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error) { - contract, err := bindERC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ERC20Caller{contract: contract}, nil -} - -// NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract. -func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error) { - contract, err := bindERC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ERC20Transactor{contract: contract}, nil -} - -// NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract. -func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error) { - contract, err := bindERC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ERC20Filterer{contract: contract}, nil -} - -// bindERC20 binds a generic wrapper to an already deployed contract. -func bindERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ERC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20.Contract.ERC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20.Contract.ERC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20 *ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20.Contract.ERC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20 *ERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20 *ERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _ERC20.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20 *ERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ERC20.Contract.Allowance(&_ERC20.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20 *ERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ERC20.Contract.Allowance(&_ERC20.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _ERC20.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20 *ERC20Session) BalanceOf(account common.Address) (*big.Int, error) { - return _ERC20.Contract.BalanceOf(&_ERC20.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20 *ERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ERC20.Contract.BalanceOf(&_ERC20.CallOpts, account) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _ERC20.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20 *ERC20Session) Decimals() (uint8, error) { - return _ERC20.Contract.Decimals(&_ERC20.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error) { - return _ERC20.Contract.Decimals(&_ERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20 *ERC20Caller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ERC20.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20 *ERC20Session) Name() (string, error) { - return _ERC20.Contract.Name(&_ERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20 *ERC20CallerSession) Name() (string, error) { - return _ERC20.Contract.Name(&_ERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20 *ERC20Caller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ERC20.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20 *ERC20Session) Symbol() (string, error) { - return _ERC20.Contract.Symbol(&_ERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20 *ERC20CallerSession) Symbol() (string, error) { - return _ERC20.Contract.Symbol(&_ERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ERC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error) { - return _ERC20.Contract.TotalSupply(&_ERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error) { - return _ERC20.Contract.TotalSupply(&_ERC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20 *ERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.Approve(&_ERC20.TransactOpts, spender, amount) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20 *ERC20Transactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20 *ERC20Session) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.DecreaseAllowance(&_ERC20.TransactOpts, spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20 *ERC20TransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.DecreaseAllowance(&_ERC20.TransactOpts, spender, subtractedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20 *ERC20Transactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20.contract.Transact(opts, "increaseAllowance", spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20 *ERC20Session) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.IncreaseAllowance(&_ERC20.TransactOpts, spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20 *ERC20TransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.IncreaseAllowance(&_ERC20.TransactOpts, spender, addedValue) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20 *ERC20Session) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.Transfer(&_ERC20.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20 *ERC20TransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.Transfer(&_ERC20.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20 *ERC20Session) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.TransferFrom(&_ERC20.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20 *ERC20TransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20.Contract.TransferFrom(&_ERC20.TransactOpts, from, to, amount) -} - -// ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20 contract. -type ERC20ApprovalIterator struct { - Event *ERC20Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20Approval represents a Approval event raised by the ERC20 contract. -type ERC20Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ERC20ApprovalIterator{contract: _ERC20.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20Approval) - if err := _ERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error) { - event := new(ERC20Approval) - if err := _ERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20 contract. -type ERC20TransferIterator struct { - Event *ERC20Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20Transfer represents a Transfer event raised by the ERC20 contract. -type ERC20Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ERC20TransferIterator{contract: _ERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20Transfer) - if err := _ERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error) { - event := new(ERC20Transfer) - if err := _ERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/openzeppelin/contracts/token/erc20/extensions/erc20burnable.sol/erc20burnable.go b/v1/pkg/openzeppelin/contracts/token/erc20/extensions/erc20burnable.sol/erc20burnable.go deleted file mode 100644 index 2d68dea7d..000000000 --- a/v1/pkg/openzeppelin/contracts/token/erc20/extensions/erc20burnable.sol/erc20burnable.go +++ /dev/null @@ -1,822 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package erc20burnable - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ERC20BurnableMetaData contains all meta data concerning the ERC20Burnable contract. -var ERC20BurnableMetaData = &bind.MetaData{ - 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\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\"}]", -} - -// ERC20BurnableABI is the input ABI used to generate the binding from. -// Deprecated: Use ERC20BurnableMetaData.ABI instead. -var ERC20BurnableABI = ERC20BurnableMetaData.ABI - -// ERC20Burnable is an auto generated Go binding around an Ethereum contract. -type ERC20Burnable struct { - ERC20BurnableCaller // Read-only binding to the contract - ERC20BurnableTransactor // Write-only binding to the contract - ERC20BurnableFilterer // Log filterer for contract events -} - -// ERC20BurnableCaller is an auto generated read-only Go binding around an Ethereum contract. -type ERC20BurnableCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20BurnableTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ERC20BurnableTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20BurnableFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ERC20BurnableFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ERC20BurnableSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ERC20BurnableSession struct { - Contract *ERC20Burnable // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20BurnableCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ERC20BurnableCallerSession struct { - Contract *ERC20BurnableCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ERC20BurnableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ERC20BurnableTransactorSession struct { - Contract *ERC20BurnableTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ERC20BurnableRaw is an auto generated low-level Go binding around an Ethereum contract. -type ERC20BurnableRaw struct { - Contract *ERC20Burnable // Generic contract binding to access the raw methods on -} - -// ERC20BurnableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ERC20BurnableCallerRaw struct { - Contract *ERC20BurnableCaller // Generic read-only contract binding to access the raw methods on -} - -// ERC20BurnableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ERC20BurnableTransactorRaw struct { - Contract *ERC20BurnableTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewERC20Burnable creates a new instance of ERC20Burnable, bound to a specific deployed contract. -func NewERC20Burnable(address common.Address, backend bind.ContractBackend) (*ERC20Burnable, error) { - contract, err := bindERC20Burnable(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ERC20Burnable{ERC20BurnableCaller: ERC20BurnableCaller{contract: contract}, ERC20BurnableTransactor: ERC20BurnableTransactor{contract: contract}, ERC20BurnableFilterer: ERC20BurnableFilterer{contract: contract}}, nil -} - -// NewERC20BurnableCaller creates a new read-only instance of ERC20Burnable, bound to a specific deployed contract. -func NewERC20BurnableCaller(address common.Address, caller bind.ContractCaller) (*ERC20BurnableCaller, error) { - contract, err := bindERC20Burnable(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ERC20BurnableCaller{contract: contract}, nil -} - -// NewERC20BurnableTransactor creates a new write-only instance of ERC20Burnable, bound to a specific deployed contract. -func NewERC20BurnableTransactor(address common.Address, transactor bind.ContractTransactor) (*ERC20BurnableTransactor, error) { - contract, err := bindERC20Burnable(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ERC20BurnableTransactor{contract: contract}, nil -} - -// NewERC20BurnableFilterer creates a new log filterer instance of ERC20Burnable, bound to a specific deployed contract. -func NewERC20BurnableFilterer(address common.Address, filterer bind.ContractFilterer) (*ERC20BurnableFilterer, error) { - contract, err := bindERC20Burnable(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ERC20BurnableFilterer{contract: contract}, nil -} - -// bindERC20Burnable binds a generic wrapper to an already deployed contract. -func bindERC20Burnable(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ERC20BurnableMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20Burnable *ERC20BurnableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20Burnable.Contract.ERC20BurnableCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20Burnable *ERC20BurnableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Burnable.Contract.ERC20BurnableTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20Burnable *ERC20BurnableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20Burnable.Contract.ERC20BurnableTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ERC20Burnable *ERC20BurnableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ERC20Burnable.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ERC20Burnable *ERC20BurnableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ERC20Burnable.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ERC20Burnable *ERC20BurnableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ERC20Burnable.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20Burnable *ERC20BurnableCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _ERC20Burnable.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20Burnable *ERC20BurnableSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ERC20Burnable.Contract.Allowance(&_ERC20Burnable.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_ERC20Burnable *ERC20BurnableCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _ERC20Burnable.Contract.Allowance(&_ERC20Burnable.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20Burnable *ERC20BurnableCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _ERC20Burnable.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20Burnable *ERC20BurnableSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ERC20Burnable.Contract.BalanceOf(&_ERC20Burnable.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_ERC20Burnable *ERC20BurnableCallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _ERC20Burnable.Contract.BalanceOf(&_ERC20Burnable.CallOpts, account) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20Burnable *ERC20BurnableCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _ERC20Burnable.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20Burnable *ERC20BurnableSession) Decimals() (uint8, error) { - return _ERC20Burnable.Contract.Decimals(&_ERC20Burnable.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_ERC20Burnable *ERC20BurnableCallerSession) Decimals() (uint8, error) { - return _ERC20Burnable.Contract.Decimals(&_ERC20Burnable.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20Burnable *ERC20BurnableCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ERC20Burnable.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20Burnable *ERC20BurnableSession) Name() (string, error) { - return _ERC20Burnable.Contract.Name(&_ERC20Burnable.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_ERC20Burnable *ERC20BurnableCallerSession) Name() (string, error) { - return _ERC20Burnable.Contract.Name(&_ERC20Burnable.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20Burnable *ERC20BurnableCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _ERC20Burnable.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20Burnable *ERC20BurnableSession) Symbol() (string, error) { - return _ERC20Burnable.Contract.Symbol(&_ERC20Burnable.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_ERC20Burnable *ERC20BurnableCallerSession) Symbol() (string, error) { - return _ERC20Burnable.Contract.Symbol(&_ERC20Burnable.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20Burnable *ERC20BurnableCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _ERC20Burnable.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20Burnable *ERC20BurnableSession) TotalSupply() (*big.Int, error) { - return _ERC20Burnable.Contract.TotalSupply(&_ERC20Burnable.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_ERC20Burnable *ERC20BurnableCallerSession) TotalSupply() (*big.Int, error) { - return _ERC20Burnable.Contract.TotalSupply(&_ERC20Burnable.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.Approve(&_ERC20Burnable.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.Approve(&_ERC20Burnable.TransactOpts, spender, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns() -func (_ERC20Burnable *ERC20BurnableTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.contract.Transact(opts, "burn", amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns() -func (_ERC20Burnable *ERC20BurnableSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.Burn(&_ERC20Burnable.TransactOpts, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0x42966c68. -// -// Solidity: function burn(uint256 amount) returns() -func (_ERC20Burnable *ERC20BurnableTransactorSession) Burn(amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.Burn(&_ERC20Burnable.TransactOpts, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ERC20Burnable *ERC20BurnableTransactor) BurnFrom(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.contract.Transact(opts, "burnFrom", account, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ERC20Burnable *ERC20BurnableSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.BurnFrom(&_ERC20Burnable.TransactOpts, account, amount) -} - -// BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790. -// -// Solidity: function burnFrom(address account, uint256 amount) returns() -func (_ERC20Burnable *ERC20BurnableTransactorSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.BurnFrom(&_ERC20Burnable.TransactOpts, account, amount) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20Burnable *ERC20BurnableSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.DecreaseAllowance(&_ERC20Burnable.TransactOpts, spender, subtractedValue) -} - -// DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. -// -// Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.DecreaseAllowance(&_ERC20Burnable.TransactOpts, spender, subtractedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.contract.Transact(opts, "increaseAllowance", spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20Burnable *ERC20BurnableSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.IncreaseAllowance(&_ERC20Burnable.TransactOpts, spender, addedValue) -} - -// IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. -// -// Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.IncreaseAllowance(&_ERC20Burnable.TransactOpts, spender, addedValue) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.Transfer(&_ERC20Burnable.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.Transfer(&_ERC20Burnable.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.TransferFrom(&_ERC20Burnable.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_ERC20Burnable *ERC20BurnableTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _ERC20Burnable.Contract.TransferFrom(&_ERC20Burnable.TransactOpts, from, to, amount) -} - -// ERC20BurnableApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20Burnable contract. -type ERC20BurnableApprovalIterator struct { - Event *ERC20BurnableApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20BurnableApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20BurnableApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20BurnableApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20BurnableApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20BurnableApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20BurnableApproval represents a Approval event raised by the ERC20Burnable contract. -type ERC20BurnableApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20Burnable *ERC20BurnableFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20BurnableApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ERC20Burnable.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &ERC20BurnableApprovalIterator{contract: _ERC20Burnable.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20Burnable *ERC20BurnableFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20BurnableApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _ERC20Burnable.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20BurnableApproval) - if err := _ERC20Burnable.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_ERC20Burnable *ERC20BurnableFilterer) ParseApproval(log types.Log) (*ERC20BurnableApproval, error) { - event := new(ERC20BurnableApproval) - if err := _ERC20Burnable.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// ERC20BurnableTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20Burnable contract. -type ERC20BurnableTransferIterator struct { - Event *ERC20BurnableTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *ERC20BurnableTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(ERC20BurnableTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(ERC20BurnableTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *ERC20BurnableTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *ERC20BurnableTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// ERC20BurnableTransfer represents a Transfer event raised by the ERC20Burnable contract. -type ERC20BurnableTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20Burnable *ERC20BurnableFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20BurnableTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ERC20Burnable.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &ERC20BurnableTransferIterator{contract: _ERC20Burnable.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20Burnable *ERC20BurnableFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20BurnableTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _ERC20Burnable.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(ERC20BurnableTransfer) - if err := _ERC20Burnable.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_ERC20Burnable *ERC20BurnableFilterer) ParseTransfer(log types.Log) (*ERC20BurnableTransfer, error) { - event := new(ERC20BurnableTransfer) - if err := _ERC20Burnable.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/openzeppelin/contracts/token/erc20/extensions/ierc20metadata.sol/ierc20metadata.go b/v1/pkg/openzeppelin/contracts/token/erc20/extensions/ierc20metadata.sol/ierc20metadata.go deleted file mode 100644 index f4daadad3..000000000 --- a/v1/pkg/openzeppelin/contracts/token/erc20/extensions/ierc20metadata.sol/ierc20metadata.go +++ /dev/null @@ -1,738 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package ierc20metadata - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IERC20MetadataMetaData contains all meta data concerning the IERC20Metadata contract. -var IERC20MetadataMetaData = &bind.MetaData{ - 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\"}]", -} - -// IERC20MetadataABI is the input ABI used to generate the binding from. -// Deprecated: Use IERC20MetadataMetaData.ABI instead. -var IERC20MetadataABI = IERC20MetadataMetaData.ABI - -// IERC20Metadata is an auto generated Go binding around an Ethereum contract. -type IERC20Metadata struct { - IERC20MetadataCaller // Read-only binding to the contract - IERC20MetadataTransactor // Write-only binding to the contract - IERC20MetadataFilterer // Log filterer for contract events -} - -// IERC20MetadataCaller is an auto generated read-only Go binding around an Ethereum contract. -type IERC20MetadataCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20MetadataTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IERC20MetadataTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20MetadataFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IERC20MetadataFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20MetadataSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IERC20MetadataSession struct { - Contract *IERC20Metadata // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20MetadataCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IERC20MetadataCallerSession struct { - Contract *IERC20MetadataCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IERC20MetadataTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IERC20MetadataTransactorSession struct { - Contract *IERC20MetadataTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20MetadataRaw is an auto generated low-level Go binding around an Ethereum contract. -type IERC20MetadataRaw struct { - Contract *IERC20Metadata // Generic contract binding to access the raw methods on -} - -// IERC20MetadataCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IERC20MetadataCallerRaw struct { - Contract *IERC20MetadataCaller // Generic read-only contract binding to access the raw methods on -} - -// IERC20MetadataTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IERC20MetadataTransactorRaw struct { - Contract *IERC20MetadataTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIERC20Metadata creates a new instance of IERC20Metadata, bound to a specific deployed contract. -func NewIERC20Metadata(address common.Address, backend bind.ContractBackend) (*IERC20Metadata, error) { - contract, err := bindIERC20Metadata(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IERC20Metadata{IERC20MetadataCaller: IERC20MetadataCaller{contract: contract}, IERC20MetadataTransactor: IERC20MetadataTransactor{contract: contract}, IERC20MetadataFilterer: IERC20MetadataFilterer{contract: contract}}, nil -} - -// NewIERC20MetadataCaller creates a new read-only instance of IERC20Metadata, bound to a specific deployed contract. -func NewIERC20MetadataCaller(address common.Address, caller bind.ContractCaller) (*IERC20MetadataCaller, error) { - contract, err := bindIERC20Metadata(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IERC20MetadataCaller{contract: contract}, nil -} - -// NewIERC20MetadataTransactor creates a new write-only instance of IERC20Metadata, bound to a specific deployed contract. -func NewIERC20MetadataTransactor(address common.Address, transactor bind.ContractTransactor) (*IERC20MetadataTransactor, error) { - contract, err := bindIERC20Metadata(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IERC20MetadataTransactor{contract: contract}, nil -} - -// NewIERC20MetadataFilterer creates a new log filterer instance of IERC20Metadata, bound to a specific deployed contract. -func NewIERC20MetadataFilterer(address common.Address, filterer bind.ContractFilterer) (*IERC20MetadataFilterer, error) { - contract, err := bindIERC20Metadata(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IERC20MetadataFilterer{contract: contract}, nil -} - -// bindIERC20Metadata binds a generic wrapper to an already deployed contract. -func bindIERC20Metadata(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IERC20MetadataMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20Metadata *IERC20MetadataRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20Metadata.Contract.IERC20MetadataCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20Metadata *IERC20MetadataRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20Metadata.Contract.IERC20MetadataTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20Metadata *IERC20MetadataRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20Metadata.Contract.IERC20MetadataTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20Metadata *IERC20MetadataCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20Metadata.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20Metadata *IERC20MetadataTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20Metadata.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20Metadata *IERC20MetadataTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20Metadata.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20Metadata *IERC20MetadataCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20Metadata.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20Metadata *IERC20MetadataSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20Metadata.Contract.Allowance(&_IERC20Metadata.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20Metadata *IERC20MetadataCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20Metadata.Contract.Allowance(&_IERC20Metadata.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IERC20Metadata *IERC20MetadataCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20Metadata.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IERC20Metadata *IERC20MetadataSession) BalanceOf(account common.Address) (*big.Int, error) { - return _IERC20Metadata.Contract.BalanceOf(&_IERC20Metadata.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IERC20Metadata *IERC20MetadataCallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _IERC20Metadata.Contract.BalanceOf(&_IERC20Metadata.CallOpts, account) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20Metadata *IERC20MetadataCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _IERC20Metadata.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20Metadata *IERC20MetadataSession) Decimals() (uint8, error) { - return _IERC20Metadata.Contract.Decimals(&_IERC20Metadata.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20Metadata *IERC20MetadataCallerSession) Decimals() (uint8, error) { - return _IERC20Metadata.Contract.Decimals(&_IERC20Metadata.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20Metadata *IERC20MetadataCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IERC20Metadata.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20Metadata *IERC20MetadataSession) Name() (string, error) { - return _IERC20Metadata.Contract.Name(&_IERC20Metadata.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20Metadata *IERC20MetadataCallerSession) Name() (string, error) { - return _IERC20Metadata.Contract.Name(&_IERC20Metadata.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20Metadata *IERC20MetadataCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IERC20Metadata.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20Metadata *IERC20MetadataSession) Symbol() (string, error) { - return _IERC20Metadata.Contract.Symbol(&_IERC20Metadata.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20Metadata *IERC20MetadataCallerSession) Symbol() (string, error) { - return _IERC20Metadata.Contract.Symbol(&_IERC20Metadata.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20Metadata *IERC20MetadataCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IERC20Metadata.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20Metadata *IERC20MetadataSession) TotalSupply() (*big.Int, error) { - return _IERC20Metadata.Contract.TotalSupply(&_IERC20Metadata.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20Metadata *IERC20MetadataCallerSession) TotalSupply() (*big.Int, error) { - return _IERC20Metadata.Contract.TotalSupply(&_IERC20Metadata.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.Contract.Approve(&_IERC20Metadata.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.Contract.Approve(&_IERC20Metadata.TransactOpts, spender, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.Contract.Transfer(&_IERC20Metadata.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.Contract.Transfer(&_IERC20Metadata.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.Contract.TransferFrom(&_IERC20Metadata.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_IERC20Metadata *IERC20MetadataTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20Metadata.Contract.TransferFrom(&_IERC20Metadata.TransactOpts, from, to, amount) -} - -// IERC20MetadataApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IERC20Metadata contract. -type IERC20MetadataApprovalIterator struct { - Event *IERC20MetadataApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20MetadataApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20MetadataApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20MetadataApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20MetadataApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20MetadataApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20MetadataApproval represents a Approval event raised by the IERC20Metadata contract. -type IERC20MetadataApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20Metadata *IERC20MetadataFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20MetadataApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20Metadata.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &IERC20MetadataApprovalIterator{contract: _IERC20Metadata.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20Metadata *IERC20MetadataFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20MetadataApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20Metadata.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20MetadataApproval) - if err := _IERC20Metadata.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20Metadata *IERC20MetadataFilterer) ParseApproval(log types.Log) (*IERC20MetadataApproval, error) { - event := new(IERC20MetadataApproval) - if err := _IERC20Metadata.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IERC20MetadataTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IERC20Metadata contract. -type IERC20MetadataTransferIterator struct { - Event *IERC20MetadataTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20MetadataTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20MetadataTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20MetadataTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20MetadataTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20MetadataTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20MetadataTransfer represents a Transfer event raised by the IERC20Metadata contract. -type IERC20MetadataTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20Metadata *IERC20MetadataFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20MetadataTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20Metadata.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &IERC20MetadataTransferIterator{contract: _IERC20Metadata.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20Metadata *IERC20MetadataFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20MetadataTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20Metadata.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20MetadataTransfer) - if err := _IERC20Metadata.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20Metadata *IERC20MetadataFilterer) ParseTransfer(log types.Log) (*IERC20MetadataTransfer, error) { - event := new(IERC20MetadataTransfer) - if err := _IERC20Metadata.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/openzeppelin/contracts/token/erc20/ierc20.sol/ierc20.go b/v1/pkg/openzeppelin/contracts/token/erc20/ierc20.sol/ierc20.go deleted file mode 100644 index 3dbe231f8..000000000 --- a/v1/pkg/openzeppelin/contracts/token/erc20/ierc20.sol/ierc20.go +++ /dev/null @@ -1,645 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package ierc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IERC20MetaData contains all meta data concerning the IERC20 contract. -var IERC20MetaData = &bind.MetaData{ - 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\"}]", -} - -// IERC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use IERC20MetaData.ABI instead. -var IERC20ABI = IERC20MetaData.ABI - -// IERC20 is an auto generated Go binding around an Ethereum contract. -type IERC20 struct { - IERC20Caller // Read-only binding to the contract - IERC20Transactor // Write-only binding to the contract - IERC20Filterer // Log filterer for contract events -} - -// IERC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type IERC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IERC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IERC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IERC20Session struct { - Contract *IERC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IERC20CallerSession struct { - Contract *IERC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IERC20TransactorSession struct { - Contract *IERC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type IERC20Raw struct { - Contract *IERC20 // Generic contract binding to access the raw methods on -} - -// IERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IERC20CallerRaw struct { - Contract *IERC20Caller // Generic read-only contract binding to access the raw methods on -} - -// IERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IERC20TransactorRaw struct { - Contract *IERC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIERC20 creates a new instance of IERC20, bound to a specific deployed contract. -func NewIERC20(address common.Address, backend bind.ContractBackend) (*IERC20, error) { - contract, err := bindIERC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IERC20{IERC20Caller: IERC20Caller{contract: contract}, IERC20Transactor: IERC20Transactor{contract: contract}, IERC20Filterer: IERC20Filterer{contract: contract}}, nil -} - -// NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract. -func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error) { - contract, err := bindIERC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IERC20Caller{contract: contract}, nil -} - -// NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract. -func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error) { - contract, err := bindIERC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IERC20Transactor{contract: contract}, nil -} - -// NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract. -func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error) { - contract, err := bindIERC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IERC20Filterer{contract: contract}, nil -} - -// bindIERC20 binds a generic wrapper to an already deployed contract. -func bindIERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IERC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20 *IERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20.Contract.IERC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20 *IERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20.Contract.IERC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20 *IERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20.Contract.IERC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20 *IERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20 *IERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20 *IERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IERC20 *IERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "balanceOf", account) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IERC20 *IERC20Session) BalanceOf(account common.Address) (*big.Int, error) { - return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, account) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address account) view returns(uint256) -func (_IERC20 *IERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error) { - return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, account) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20Session) TotalSupply() (*big.Int, error) { - return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20CallerSession) TotalSupply() (*big.Int, error) { - return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "approve", spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IERC20 *IERC20Session) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, amount) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 amount) returns(bool) -func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "transfer", to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_IERC20 *IERC20Session) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, amount) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 amount) returns(bool) -func (_IERC20 *IERC20TransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "transferFrom", from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_IERC20 *IERC20Session) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, amount) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) -func (_IERC20 *IERC20TransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, amount) -} - -// IERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IERC20 contract. -type IERC20ApprovalIterator struct { - Event *IERC20Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20Approval represents a Approval event raised by the IERC20 contract. -type IERC20Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &IERC20ApprovalIterator{contract: _IERC20.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20Approval) - if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) ParseApproval(log types.Log) (*IERC20Approval, error) { - event := new(IERC20Approval) - if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IERC20 contract. -type IERC20TransferIterator struct { - Event *IERC20Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20Transfer represents a Transfer event raised by the IERC20 contract. -type IERC20Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &IERC20TransferIterator{contract: _IERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20Transfer) - if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) ParseTransfer(log types.Log) (*IERC20Transfer, error) { - event := new(IERC20Transfer) - if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/openzeppelin/contracts/token/erc20/utils/safeerc20.sol/safeerc20.go b/v1/pkg/openzeppelin/contracts/token/erc20/utils/safeerc20.sol/safeerc20.go deleted file mode 100644 index 912d47c89..000000000 --- a/v1/pkg/openzeppelin/contracts/token/erc20/utils/safeerc20.sol/safeerc20.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package safeerc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// SafeERC20MetaData contains all meta data concerning the SafeERC20 contract. -var SafeERC20MetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a9b2fb39f884561bad7a62544d63197e691ed9b4bf51396178c74c59a554ce2f64736f6c63430008070033", -} - -// SafeERC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use SafeERC20MetaData.ABI instead. -var SafeERC20ABI = SafeERC20MetaData.ABI - -// SafeERC20Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use SafeERC20MetaData.Bin instead. -var SafeERC20Bin = SafeERC20MetaData.Bin - -// DeploySafeERC20 deploys a new Ethereum contract, binding an instance of SafeERC20 to it. -func DeploySafeERC20(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeERC20, error) { - parsed, err := SafeERC20MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SafeERC20Bin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &SafeERC20{SafeERC20Caller: SafeERC20Caller{contract: contract}, SafeERC20Transactor: SafeERC20Transactor{contract: contract}, SafeERC20Filterer: SafeERC20Filterer{contract: contract}}, nil -} - -// SafeERC20 is an auto generated Go binding around an Ethereum contract. -type SafeERC20 struct { - SafeERC20Caller // Read-only binding to the contract - SafeERC20Transactor // Write-only binding to the contract - SafeERC20Filterer // Log filterer for contract events -} - -// SafeERC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type SafeERC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type SafeERC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SafeERC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeERC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SafeERC20Session struct { - Contract *SafeERC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SafeERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SafeERC20CallerSession struct { - Contract *SafeERC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SafeERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SafeERC20TransactorSession struct { - Contract *SafeERC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SafeERC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type SafeERC20Raw struct { - Contract *SafeERC20 // Generic contract binding to access the raw methods on -} - -// SafeERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SafeERC20CallerRaw struct { - Contract *SafeERC20Caller // Generic read-only contract binding to access the raw methods on -} - -// SafeERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SafeERC20TransactorRaw struct { - Contract *SafeERC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewSafeERC20 creates a new instance of SafeERC20, bound to a specific deployed contract. -func NewSafeERC20(address common.Address, backend bind.ContractBackend) (*SafeERC20, error) { - contract, err := bindSafeERC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SafeERC20{SafeERC20Caller: SafeERC20Caller{contract: contract}, SafeERC20Transactor: SafeERC20Transactor{contract: contract}, SafeERC20Filterer: SafeERC20Filterer{contract: contract}}, nil -} - -// NewSafeERC20Caller creates a new read-only instance of SafeERC20, bound to a specific deployed contract. -func NewSafeERC20Caller(address common.Address, caller bind.ContractCaller) (*SafeERC20Caller, error) { - contract, err := bindSafeERC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SafeERC20Caller{contract: contract}, nil -} - -// NewSafeERC20Transactor creates a new write-only instance of SafeERC20, bound to a specific deployed contract. -func NewSafeERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*SafeERC20Transactor, error) { - contract, err := bindSafeERC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SafeERC20Transactor{contract: contract}, nil -} - -// NewSafeERC20Filterer creates a new log filterer instance of SafeERC20, bound to a specific deployed contract. -func NewSafeERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*SafeERC20Filterer, error) { - contract, err := bindSafeERC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SafeERC20Filterer{contract: contract}, nil -} - -// bindSafeERC20 binds a generic wrapper to an already deployed contract. -func bindSafeERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SafeERC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SafeERC20 *SafeERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SafeERC20.Contract.SafeERC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SafeERC20 *SafeERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SafeERC20.Contract.SafeERC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SafeERC20 *SafeERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SafeERC20.Contract.SafeERC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SafeERC20 *SafeERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SafeERC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SafeERC20 *SafeERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SafeERC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SafeERC20 *SafeERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SafeERC20.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/openzeppelin/contracts/utils/address.sol/address.go b/v1/pkg/openzeppelin/contracts/utils/address.sol/address.go deleted file mode 100644 index 9afb1c3a9..000000000 --- a/v1/pkg/openzeppelin/contracts/utils/address.sol/address.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package address - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// AddressMetaData contains all meta data concerning the Address contract. -var AddressMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220707b19f8ce8fee8f6afc7520aba0995f8916b0cf807093a219746de5a8d7065664736f6c63430008070033", -} - -// AddressABI is the input ABI used to generate the binding from. -// Deprecated: Use AddressMetaData.ABI instead. -var AddressABI = AddressMetaData.ABI - -// AddressBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use AddressMetaData.Bin instead. -var AddressBin = AddressMetaData.Bin - -// DeployAddress deploys a new Ethereum contract, binding an instance of Address to it. -func DeployAddress(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Address, error) { - parsed, err := AddressMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(AddressBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &Address{AddressCaller: AddressCaller{contract: contract}, AddressTransactor: AddressTransactor{contract: contract}, AddressFilterer: AddressFilterer{contract: contract}}, nil -} - -// Address is an auto generated Go binding around an Ethereum contract. -type Address struct { - AddressCaller // Read-only binding to the contract - AddressTransactor // Write-only binding to the contract - AddressFilterer // Log filterer for contract events -} - -// AddressCaller is an auto generated read-only Go binding around an Ethereum contract. -type AddressCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// AddressTransactor is an auto generated write-only Go binding around an Ethereum contract. -type AddressTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// AddressFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type AddressFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// AddressSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type AddressSession struct { - Contract *Address // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// AddressCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type AddressCallerSession struct { - Contract *AddressCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// AddressTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type AddressTransactorSession struct { - Contract *AddressTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// AddressRaw is an auto generated low-level Go binding around an Ethereum contract. -type AddressRaw struct { - Contract *Address // Generic contract binding to access the raw methods on -} - -// AddressCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type AddressCallerRaw struct { - Contract *AddressCaller // Generic read-only contract binding to access the raw methods on -} - -// AddressTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type AddressTransactorRaw struct { - Contract *AddressTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewAddress creates a new instance of Address, bound to a specific deployed contract. -func NewAddress(address common.Address, backend bind.ContractBackend) (*Address, error) { - contract, err := bindAddress(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Address{AddressCaller: AddressCaller{contract: contract}, AddressTransactor: AddressTransactor{contract: contract}, AddressFilterer: AddressFilterer{contract: contract}}, nil -} - -// NewAddressCaller creates a new read-only instance of Address, bound to a specific deployed contract. -func NewAddressCaller(address common.Address, caller bind.ContractCaller) (*AddressCaller, error) { - contract, err := bindAddress(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &AddressCaller{contract: contract}, nil -} - -// NewAddressTransactor creates a new write-only instance of Address, bound to a specific deployed contract. -func NewAddressTransactor(address common.Address, transactor bind.ContractTransactor) (*AddressTransactor, error) { - contract, err := bindAddress(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &AddressTransactor{contract: contract}, nil -} - -// NewAddressFilterer creates a new log filterer instance of Address, bound to a specific deployed contract. -func NewAddressFilterer(address common.Address, filterer bind.ContractFilterer) (*AddressFilterer, error) { - contract, err := bindAddress(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &AddressFilterer{contract: contract}, nil -} - -// bindAddress binds a generic wrapper to an already deployed contract. -func bindAddress(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := AddressMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Address *AddressRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Address.Contract.AddressCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Address *AddressRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Address.Contract.AddressTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Address *AddressRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Address.Contract.AddressTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Address *AddressCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Address.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Address *AddressTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Address.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Address *AddressTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Address.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/openzeppelin/contracts/utils/context.sol/context.go b/v1/pkg/openzeppelin/contracts/utils/context.sol/context.go deleted file mode 100644 index 90b3cdd02..000000000 --- a/v1/pkg/openzeppelin/contracts/utils/context.sol/context.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package context - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ContextMetaData contains all meta data concerning the Context contract. -var ContextMetaData = &bind.MetaData{ - ABI: "[]", -} - -// ContextABI is the input ABI used to generate the binding from. -// Deprecated: Use ContextMetaData.ABI instead. -var ContextABI = ContextMetaData.ABI - -// Context is an auto generated Go binding around an Ethereum contract. -type Context struct { - ContextCaller // Read-only binding to the contract - ContextTransactor // Write-only binding to the contract - ContextFilterer // Log filterer for contract events -} - -// ContextCaller is an auto generated read-only Go binding around an Ethereum contract. -type ContextCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ContextTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ContextTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ContextFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ContextFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ContextSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ContextSession struct { - Contract *Context // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ContextCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ContextCallerSession struct { - Contract *ContextCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ContextTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ContextTransactorSession struct { - Contract *ContextTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ContextRaw is an auto generated low-level Go binding around an Ethereum contract. -type ContextRaw struct { - Contract *Context // Generic contract binding to access the raw methods on -} - -// ContextCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ContextCallerRaw struct { - Contract *ContextCaller // Generic read-only contract binding to access the raw methods on -} - -// ContextTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ContextTransactorRaw struct { - Contract *ContextTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewContext creates a new instance of Context, bound to a specific deployed contract. -func NewContext(address common.Address, backend bind.ContractBackend) (*Context, error) { - contract, err := bindContext(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Context{ContextCaller: ContextCaller{contract: contract}, ContextTransactor: ContextTransactor{contract: contract}, ContextFilterer: ContextFilterer{contract: contract}}, nil -} - -// NewContextCaller creates a new read-only instance of Context, bound to a specific deployed contract. -func NewContextCaller(address common.Address, caller bind.ContractCaller) (*ContextCaller, error) { - contract, err := bindContext(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ContextCaller{contract: contract}, nil -} - -// NewContextTransactor creates a new write-only instance of Context, bound to a specific deployed contract. -func NewContextTransactor(address common.Address, transactor bind.ContractTransactor) (*ContextTransactor, error) { - contract, err := bindContext(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ContextTransactor{contract: contract}, nil -} - -// NewContextFilterer creates a new log filterer instance of Context, bound to a specific deployed contract. -func NewContextFilterer(address common.Address, filterer bind.ContractFilterer) (*ContextFilterer, error) { - contract, err := bindContext(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ContextFilterer{contract: contract}, nil -} - -// bindContext binds a generic wrapper to an already deployed contract. -func bindContext(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ContextMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Context *ContextRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Context.Contract.ContextCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Context *ContextRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Context.Contract.ContextTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Context *ContextRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Context.Contract.ContextTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Context *ContextCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Context.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Context *ContextTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Context.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Context *ContextTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Context.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/uniswap/lib/contracts/libraries/transferhelper.sol/transferhelper.go b/v1/pkg/uniswap/lib/contracts/libraries/transferhelper.sol/transferhelper.go deleted file mode 100644 index 648cd746c..000000000 --- a/v1/pkg/uniswap/lib/contracts/libraries/transferhelper.sol/transferhelper.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package transferhelper - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// TransferHelperMetaData contains all meta data concerning the TransferHelper contract. -var TransferHelperMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fc8360e2264df1f2cb9f3c42ca667d72961924439936105dfdf91ec11cb5a40964736f6c63430008070033", -} - -// TransferHelperABI is the input ABI used to generate the binding from. -// Deprecated: Use TransferHelperMetaData.ABI instead. -var TransferHelperABI = TransferHelperMetaData.ABI - -// TransferHelperBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use TransferHelperMetaData.Bin instead. -var TransferHelperBin = TransferHelperMetaData.Bin - -// DeployTransferHelper deploys a new Ethereum contract, binding an instance of TransferHelper to it. -func DeployTransferHelper(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TransferHelper, error) { - parsed, err := TransferHelperMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(TransferHelperBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &TransferHelper{TransferHelperCaller: TransferHelperCaller{contract: contract}, TransferHelperTransactor: TransferHelperTransactor{contract: contract}, TransferHelperFilterer: TransferHelperFilterer{contract: contract}}, nil -} - -// TransferHelper is an auto generated Go binding around an Ethereum contract. -type TransferHelper struct { - TransferHelperCaller // Read-only binding to the contract - TransferHelperTransactor // Write-only binding to the contract - TransferHelperFilterer // Log filterer for contract events -} - -// TransferHelperCaller is an auto generated read-only Go binding around an Ethereum contract. -type TransferHelperCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// TransferHelperTransactor is an auto generated write-only Go binding around an Ethereum contract. -type TransferHelperTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// TransferHelperFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type TransferHelperFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// TransferHelperSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type TransferHelperSession struct { - Contract *TransferHelper // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// TransferHelperCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type TransferHelperCallerSession struct { - Contract *TransferHelperCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// TransferHelperTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type TransferHelperTransactorSession struct { - Contract *TransferHelperTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// TransferHelperRaw is an auto generated low-level Go binding around an Ethereum contract. -type TransferHelperRaw struct { - Contract *TransferHelper // Generic contract binding to access the raw methods on -} - -// TransferHelperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type TransferHelperCallerRaw struct { - Contract *TransferHelperCaller // Generic read-only contract binding to access the raw methods on -} - -// TransferHelperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type TransferHelperTransactorRaw struct { - Contract *TransferHelperTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewTransferHelper creates a new instance of TransferHelper, bound to a specific deployed contract. -func NewTransferHelper(address common.Address, backend bind.ContractBackend) (*TransferHelper, error) { - contract, err := bindTransferHelper(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &TransferHelper{TransferHelperCaller: TransferHelperCaller{contract: contract}, TransferHelperTransactor: TransferHelperTransactor{contract: contract}, TransferHelperFilterer: TransferHelperFilterer{contract: contract}}, nil -} - -// NewTransferHelperCaller creates a new read-only instance of TransferHelper, bound to a specific deployed contract. -func NewTransferHelperCaller(address common.Address, caller bind.ContractCaller) (*TransferHelperCaller, error) { - contract, err := bindTransferHelper(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &TransferHelperCaller{contract: contract}, nil -} - -// NewTransferHelperTransactor creates a new write-only instance of TransferHelper, bound to a specific deployed contract. -func NewTransferHelperTransactor(address common.Address, transactor bind.ContractTransactor) (*TransferHelperTransactor, error) { - contract, err := bindTransferHelper(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &TransferHelperTransactor{contract: contract}, nil -} - -// NewTransferHelperFilterer creates a new log filterer instance of TransferHelper, bound to a specific deployed contract. -func NewTransferHelperFilterer(address common.Address, filterer bind.ContractFilterer) (*TransferHelperFilterer, error) { - contract, err := bindTransferHelper(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &TransferHelperFilterer{contract: contract}, nil -} - -// bindTransferHelper binds a generic wrapper to an already deployed contract. -func bindTransferHelper(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := TransferHelperMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_TransferHelper *TransferHelperRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _TransferHelper.Contract.TransferHelperCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_TransferHelper *TransferHelperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _TransferHelper.Contract.TransferHelperTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_TransferHelper *TransferHelperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _TransferHelper.Contract.TransferHelperTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_TransferHelper *TransferHelperCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _TransferHelper.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_TransferHelper *TransferHelperTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _TransferHelper.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_TransferHelper *TransferHelperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _TransferHelper.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/uniswap/v2-core/contracts/interfaces/ierc20.sol/ierc20.go b/v1/pkg/uniswap/v2-core/contracts/interfaces/ierc20.sol/ierc20.go deleted file mode 100644 index 31d0fc1f7..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/interfaces/ierc20.sol/ierc20.go +++ /dev/null @@ -1,738 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package ierc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IERC20MetaData contains all meta data concerning the IERC20 contract. -var IERC20MetaData = &bind.MetaData{ - 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\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IERC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use IERC20MetaData.ABI instead. -var IERC20ABI = IERC20MetaData.ABI - -// IERC20 is an auto generated Go binding around an Ethereum contract. -type IERC20 struct { - IERC20Caller // Read-only binding to the contract - IERC20Transactor // Write-only binding to the contract - IERC20Filterer // Log filterer for contract events -} - -// IERC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type IERC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IERC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IERC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IERC20Session struct { - Contract *IERC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IERC20CallerSession struct { - Contract *IERC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IERC20TransactorSession struct { - Contract *IERC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type IERC20Raw struct { - Contract *IERC20 // Generic contract binding to access the raw methods on -} - -// IERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IERC20CallerRaw struct { - Contract *IERC20Caller // Generic read-only contract binding to access the raw methods on -} - -// IERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IERC20TransactorRaw struct { - Contract *IERC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIERC20 creates a new instance of IERC20, bound to a specific deployed contract. -func NewIERC20(address common.Address, backend bind.ContractBackend) (*IERC20, error) { - contract, err := bindIERC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IERC20{IERC20Caller: IERC20Caller{contract: contract}, IERC20Transactor: IERC20Transactor{contract: contract}, IERC20Filterer: IERC20Filterer{contract: contract}}, nil -} - -// NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract. -func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error) { - contract, err := bindIERC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IERC20Caller{contract: contract}, nil -} - -// NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract. -func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error) { - contract, err := bindIERC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IERC20Transactor{contract: contract}, nil -} - -// NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract. -func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error) { - contract, err := bindIERC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IERC20Filterer{contract: contract}, nil -} - -// bindIERC20 binds a generic wrapper to an already deployed contract. -func bindIERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IERC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20 *IERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20.Contract.IERC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20 *IERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20.Contract.IERC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20 *IERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20.Contract.IERC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20 *IERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20 *IERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20 *IERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IERC20 *IERC20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "balanceOf", owner) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IERC20 *IERC20Session) BalanceOf(owner common.Address) (*big.Int, error) { - return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, owner) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IERC20 *IERC20CallerSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, owner) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20 *IERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20 *IERC20Session) Decimals() (uint8, error) { - return _IERC20.Contract.Decimals(&_IERC20.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20 *IERC20CallerSession) Decimals() (uint8, error) { - return _IERC20.Contract.Decimals(&_IERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20 *IERC20Caller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20 *IERC20Session) Name() (string, error) { - return _IERC20.Contract.Name(&_IERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20 *IERC20CallerSession) Name() (string, error) { - return _IERC20.Contract.Name(&_IERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20 *IERC20Caller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20 *IERC20Session) Symbol() (string, error) { - return _IERC20.Contract.Symbol(&_IERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20 *IERC20CallerSession) Symbol() (string, error) { - return _IERC20.Contract.Symbol(&_IERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20Session) TotalSupply() (*big.Int, error) { - return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20CallerSession) TotalSupply() (*big.Int, error) { - return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "approve", spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IERC20 *IERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "transfer", to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IERC20 *IERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "transferFrom", from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IERC20 *IERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, value) -} - -// IERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IERC20 contract. -type IERC20ApprovalIterator struct { - Event *IERC20Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20Approval represents a Approval event raised by the IERC20 contract. -type IERC20Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &IERC20ApprovalIterator{contract: _IERC20.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20Approval) - if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) ParseApproval(log types.Log) (*IERC20Approval, error) { - event := new(IERC20Approval) - if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IERC20 contract. -type IERC20TransferIterator struct { - Event *IERC20Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20Transfer represents a Transfer event raised by the IERC20 contract. -type IERC20Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &IERC20TransferIterator{contract: _IERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20Transfer) - if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) ParseTransfer(log types.Log) (*IERC20Transfer, error) { - event := new(IERC20Transfer) - if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2callee.sol/iuniswapv2callee.go b/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2callee.sol/iuniswapv2callee.go deleted file mode 100644 index f955a7fab..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2callee.sol/iuniswapv2callee.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2callee - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2CalleeMetaData contains all meta data concerning the IUniswapV2Callee contract. -var IUniswapV2CalleeMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV2Call\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2CalleeABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2CalleeMetaData.ABI instead. -var IUniswapV2CalleeABI = IUniswapV2CalleeMetaData.ABI - -// IUniswapV2Callee is an auto generated Go binding around an Ethereum contract. -type IUniswapV2Callee struct { - IUniswapV2CalleeCaller // Read-only binding to the contract - IUniswapV2CalleeTransactor // Write-only binding to the contract - IUniswapV2CalleeFilterer // Log filterer for contract events -} - -// IUniswapV2CalleeCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2CalleeCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2CalleeTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2CalleeTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2CalleeFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2CalleeFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2CalleeSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2CalleeSession struct { - Contract *IUniswapV2Callee // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2CalleeCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2CalleeCallerSession struct { - Contract *IUniswapV2CalleeCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2CalleeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2CalleeTransactorSession struct { - Contract *IUniswapV2CalleeTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2CalleeRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2CalleeRaw struct { - Contract *IUniswapV2Callee // Generic contract binding to access the raw methods on -} - -// IUniswapV2CalleeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2CalleeCallerRaw struct { - Contract *IUniswapV2CalleeCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2CalleeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2CalleeTransactorRaw struct { - Contract *IUniswapV2CalleeTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2Callee creates a new instance of IUniswapV2Callee, bound to a specific deployed contract. -func NewIUniswapV2Callee(address common.Address, backend bind.ContractBackend) (*IUniswapV2Callee, error) { - contract, err := bindIUniswapV2Callee(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2Callee{IUniswapV2CalleeCaller: IUniswapV2CalleeCaller{contract: contract}, IUniswapV2CalleeTransactor: IUniswapV2CalleeTransactor{contract: contract}, IUniswapV2CalleeFilterer: IUniswapV2CalleeFilterer{contract: contract}}, nil -} - -// NewIUniswapV2CalleeCaller creates a new read-only instance of IUniswapV2Callee, bound to a specific deployed contract. -func NewIUniswapV2CalleeCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV2CalleeCaller, error) { - contract, err := bindIUniswapV2Callee(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2CalleeCaller{contract: contract}, nil -} - -// NewIUniswapV2CalleeTransactor creates a new write-only instance of IUniswapV2Callee, bound to a specific deployed contract. -func NewIUniswapV2CalleeTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2CalleeTransactor, error) { - contract, err := bindIUniswapV2Callee(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2CalleeTransactor{contract: contract}, nil -} - -// NewIUniswapV2CalleeFilterer creates a new log filterer instance of IUniswapV2Callee, bound to a specific deployed contract. -func NewIUniswapV2CalleeFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2CalleeFilterer, error) { - contract, err := bindIUniswapV2Callee(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2CalleeFilterer{contract: contract}, nil -} - -// bindIUniswapV2Callee binds a generic wrapper to an already deployed contract. -func bindIUniswapV2Callee(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2CalleeMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Callee *IUniswapV2CalleeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Callee.Contract.IUniswapV2CalleeCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Callee *IUniswapV2CalleeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Callee.Contract.IUniswapV2CalleeTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Callee *IUniswapV2CalleeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Callee.Contract.IUniswapV2CalleeTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Callee *IUniswapV2CalleeCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Callee.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Callee *IUniswapV2CalleeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Callee.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Callee *IUniswapV2CalleeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Callee.Contract.contract.Transact(opts, method, params...) -} - -// UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c. -// -// Solidity: function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV2Callee *IUniswapV2CalleeTransactor) UniswapV2Call(opts *bind.TransactOpts, sender common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV2Callee.contract.Transact(opts, "uniswapV2Call", sender, amount0, amount1, data) -} - -// UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c. -// -// Solidity: function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV2Callee *IUniswapV2CalleeSession) UniswapV2Call(sender common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV2Callee.Contract.UniswapV2Call(&_IUniswapV2Callee.TransactOpts, sender, amount0, amount1, data) -} - -// UniswapV2Call is a paid mutator transaction binding the contract method 0x10d1e85c. -// -// Solidity: function uniswapV2Call(address sender, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV2Callee *IUniswapV2CalleeTransactorSession) UniswapV2Call(sender common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV2Callee.Contract.UniswapV2Call(&_IUniswapV2Callee.TransactOpts, sender, amount0, amount1, data) -} diff --git a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2erc20.sol/iuniswapv2erc20.go b/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2erc20.sol/iuniswapv2erc20.go deleted file mode 100644 index 39df56989..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2erc20.sol/iuniswapv2erc20.go +++ /dev/null @@ -1,852 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2erc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2ERC20MetaData contains all meta data concerning the IUniswapV2ERC20 contract. -var IUniswapV2ERC20MetaData = &bind.MetaData{ - 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\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"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\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2ERC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2ERC20MetaData.ABI instead. -var IUniswapV2ERC20ABI = IUniswapV2ERC20MetaData.ABI - -// IUniswapV2ERC20 is an auto generated Go binding around an Ethereum contract. -type IUniswapV2ERC20 struct { - IUniswapV2ERC20Caller // Read-only binding to the contract - IUniswapV2ERC20Transactor // Write-only binding to the contract - IUniswapV2ERC20Filterer // Log filterer for contract events -} - -// IUniswapV2ERC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2ERC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2ERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2ERC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2ERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2ERC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2ERC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2ERC20Session struct { - Contract *IUniswapV2ERC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2ERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2ERC20CallerSession struct { - Contract *IUniswapV2ERC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2ERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2ERC20TransactorSession struct { - Contract *IUniswapV2ERC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2ERC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2ERC20Raw struct { - Contract *IUniswapV2ERC20 // Generic contract binding to access the raw methods on -} - -// IUniswapV2ERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2ERC20CallerRaw struct { - Contract *IUniswapV2ERC20Caller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2ERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2ERC20TransactorRaw struct { - Contract *IUniswapV2ERC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2ERC20 creates a new instance of IUniswapV2ERC20, bound to a specific deployed contract. -func NewIUniswapV2ERC20(address common.Address, backend bind.ContractBackend) (*IUniswapV2ERC20, error) { - contract, err := bindIUniswapV2ERC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2ERC20{IUniswapV2ERC20Caller: IUniswapV2ERC20Caller{contract: contract}, IUniswapV2ERC20Transactor: IUniswapV2ERC20Transactor{contract: contract}, IUniswapV2ERC20Filterer: IUniswapV2ERC20Filterer{contract: contract}}, nil -} - -// NewIUniswapV2ERC20Caller creates a new read-only instance of IUniswapV2ERC20, bound to a specific deployed contract. -func NewIUniswapV2ERC20Caller(address common.Address, caller bind.ContractCaller) (*IUniswapV2ERC20Caller, error) { - contract, err := bindIUniswapV2ERC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2ERC20Caller{contract: contract}, nil -} - -// NewIUniswapV2ERC20Transactor creates a new write-only instance of IUniswapV2ERC20, bound to a specific deployed contract. -func NewIUniswapV2ERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2ERC20Transactor, error) { - contract, err := bindIUniswapV2ERC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2ERC20Transactor{contract: contract}, nil -} - -// NewIUniswapV2ERC20Filterer creates a new log filterer instance of IUniswapV2ERC20, bound to a specific deployed contract. -func NewIUniswapV2ERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2ERC20Filterer, error) { - contract, err := bindIUniswapV2ERC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2ERC20Filterer{contract: contract}, nil -} - -// bindIUniswapV2ERC20 binds a generic wrapper to an already deployed contract. -func bindIUniswapV2ERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2ERC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2ERC20 *IUniswapV2ERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2ERC20.Contract.IUniswapV2ERC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2ERC20 *IUniswapV2ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.IUniswapV2ERC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2ERC20 *IUniswapV2ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.IUniswapV2ERC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2ERC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2ERC20 *IUniswapV2ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2ERC20 *IUniswapV2ERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.contract.Transact(opts, method, params...) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "DOMAIN_SEPARATOR") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) DOMAINSEPARATOR() ([32]byte, error) { - return _IUniswapV2ERC20.Contract.DOMAINSEPARATOR(&_IUniswapV2ERC20.CallOpts) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) DOMAINSEPARATOR() ([32]byte, error) { - return _IUniswapV2ERC20.Contract.DOMAINSEPARATOR(&_IUniswapV2ERC20.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() pure returns(bytes32) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "PERMIT_TYPEHASH") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() pure returns(bytes32) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) PERMITTYPEHASH() ([32]byte, error) { - return _IUniswapV2ERC20.Contract.PERMITTYPEHASH(&_IUniswapV2ERC20.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() pure returns(bytes32) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) PERMITTYPEHASH() ([32]byte, error) { - return _IUniswapV2ERC20.Contract.PERMITTYPEHASH(&_IUniswapV2ERC20.CallOpts) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IUniswapV2ERC20.Contract.Allowance(&_IUniswapV2ERC20.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IUniswapV2ERC20.Contract.Allowance(&_IUniswapV2ERC20.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "balanceOf", owner) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) BalanceOf(owner common.Address) (*big.Int, error) { - return _IUniswapV2ERC20.Contract.BalanceOf(&_IUniswapV2ERC20.CallOpts, owner) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _IUniswapV2ERC20.Contract.BalanceOf(&_IUniswapV2ERC20.CallOpts, owner) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() pure returns(uint8) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() pure returns(uint8) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Decimals() (uint8, error) { - return _IUniswapV2ERC20.Contract.Decimals(&_IUniswapV2ERC20.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() pure returns(uint8) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) Decimals() (uint8, error) { - return _IUniswapV2ERC20.Contract.Decimals(&_IUniswapV2ERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() pure returns(string) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() pure returns(string) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Name() (string, error) { - return _IUniswapV2ERC20.Contract.Name(&_IUniswapV2ERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() pure returns(string) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) Name() (string, error) { - return _IUniswapV2ERC20.Contract.Name(&_IUniswapV2ERC20.CallOpts) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address owner) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "nonces", owner) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address owner) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Nonces(owner common.Address) (*big.Int, error) { - return _IUniswapV2ERC20.Contract.Nonces(&_IUniswapV2ERC20.CallOpts, owner) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address owner) view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) Nonces(owner common.Address) (*big.Int, error) { - return _IUniswapV2ERC20.Contract.Nonces(&_IUniswapV2ERC20.CallOpts, owner) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() pure returns(string) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() pure returns(string) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Symbol() (string, error) { - return _IUniswapV2ERC20.Contract.Symbol(&_IUniswapV2ERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() pure returns(string) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) Symbol() (string, error) { - return _IUniswapV2ERC20.Contract.Symbol(&_IUniswapV2ERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2ERC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) TotalSupply() (*big.Int, error) { - return _IUniswapV2ERC20.Contract.TotalSupply(&_IUniswapV2ERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IUniswapV2ERC20 *IUniswapV2ERC20CallerSession) TotalSupply() (*big.Int, error) { - return _IUniswapV2ERC20.Contract.TotalSupply(&_IUniswapV2ERC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.contract.Transact(opts, "approve", spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.Approve(&_IUniswapV2ERC20.TransactOpts, spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.Approve(&_IUniswapV2ERC20.TransactOpts, spender, value) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_IUniswapV2ERC20 *IUniswapV2ERC20Transactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2ERC20.contract.Transact(opts, "permit", owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.Permit(&_IUniswapV2ERC20.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_IUniswapV2ERC20 *IUniswapV2ERC20TransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.Permit(&_IUniswapV2ERC20.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.contract.Transact(opts, "transfer", to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.Transfer(&_IUniswapV2ERC20.TransactOpts, to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.Transfer(&_IUniswapV2ERC20.TransactOpts, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.contract.Transact(opts, "transferFrom", from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.TransferFrom(&_IUniswapV2ERC20.TransactOpts, from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IUniswapV2ERC20 *IUniswapV2ERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2ERC20.Contract.TransferFrom(&_IUniswapV2ERC20.TransactOpts, from, to, value) -} - -// IUniswapV2ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IUniswapV2ERC20 contract. -type IUniswapV2ERC20ApprovalIterator struct { - Event *IUniswapV2ERC20Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2ERC20ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2ERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2ERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2ERC20ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2ERC20ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2ERC20Approval represents a Approval event raised by the IUniswapV2ERC20 contract. -type IUniswapV2ERC20Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IUniswapV2ERC20ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IUniswapV2ERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &IUniswapV2ERC20ApprovalIterator{contract: _IUniswapV2ERC20.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IUniswapV2ERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IUniswapV2ERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2ERC20Approval) - if err := _IUniswapV2ERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Filterer) ParseApproval(log types.Log) (*IUniswapV2ERC20Approval, error) { - event := new(IUniswapV2ERC20Approval) - if err := _IUniswapV2ERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV2ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IUniswapV2ERC20 contract. -type IUniswapV2ERC20TransferIterator struct { - Event *IUniswapV2ERC20Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2ERC20TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2ERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2ERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2ERC20TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2ERC20TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2ERC20Transfer represents a Transfer event raised by the IUniswapV2ERC20 contract. -type IUniswapV2ERC20Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IUniswapV2ERC20TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2ERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &IUniswapV2ERC20TransferIterator{contract: _IUniswapV2ERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IUniswapV2ERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2ERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2ERC20Transfer) - if err := _IUniswapV2ERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IUniswapV2ERC20 *IUniswapV2ERC20Filterer) ParseTransfer(log types.Log) (*IUniswapV2ERC20Transfer, error) { - event := new(IUniswapV2ERC20Transfer) - if err := _IUniswapV2ERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2factory.sol/iuniswapv2factory.go b/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2factory.sol/iuniswapv2factory.go deleted file mode 100644 index a8ab28609..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2factory.sol/iuniswapv2factory.go +++ /dev/null @@ -1,554 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2factory - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2FactoryMetaData contains all meta data concerning the IUniswapV2Factory contract. -var IUniswapV2FactoryMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PairCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2FactoryABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2FactoryMetaData.ABI instead. -var IUniswapV2FactoryABI = IUniswapV2FactoryMetaData.ABI - -// IUniswapV2Factory is an auto generated Go binding around an Ethereum contract. -type IUniswapV2Factory struct { - IUniswapV2FactoryCaller // Read-only binding to the contract - IUniswapV2FactoryTransactor // Write-only binding to the contract - IUniswapV2FactoryFilterer // Log filterer for contract events -} - -// IUniswapV2FactoryCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2FactoryCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2FactoryTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2FactoryTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2FactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2FactoryFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2FactorySession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2FactorySession struct { - Contract *IUniswapV2Factory // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2FactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2FactoryCallerSession struct { - Contract *IUniswapV2FactoryCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2FactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2FactoryTransactorSession struct { - Contract *IUniswapV2FactoryTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2FactoryRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2FactoryRaw struct { - Contract *IUniswapV2Factory // Generic contract binding to access the raw methods on -} - -// IUniswapV2FactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2FactoryCallerRaw struct { - Contract *IUniswapV2FactoryCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2FactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2FactoryTransactorRaw struct { - Contract *IUniswapV2FactoryTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2Factory creates a new instance of IUniswapV2Factory, bound to a specific deployed contract. -func NewIUniswapV2Factory(address common.Address, backend bind.ContractBackend) (*IUniswapV2Factory, error) { - contract, err := bindIUniswapV2Factory(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2Factory{IUniswapV2FactoryCaller: IUniswapV2FactoryCaller{contract: contract}, IUniswapV2FactoryTransactor: IUniswapV2FactoryTransactor{contract: contract}, IUniswapV2FactoryFilterer: IUniswapV2FactoryFilterer{contract: contract}}, nil -} - -// NewIUniswapV2FactoryCaller creates a new read-only instance of IUniswapV2Factory, bound to a specific deployed contract. -func NewIUniswapV2FactoryCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV2FactoryCaller, error) { - contract, err := bindIUniswapV2Factory(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2FactoryCaller{contract: contract}, nil -} - -// NewIUniswapV2FactoryTransactor creates a new write-only instance of IUniswapV2Factory, bound to a specific deployed contract. -func NewIUniswapV2FactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2FactoryTransactor, error) { - contract, err := bindIUniswapV2Factory(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2FactoryTransactor{contract: contract}, nil -} - -// NewIUniswapV2FactoryFilterer creates a new log filterer instance of IUniswapV2Factory, bound to a specific deployed contract. -func NewIUniswapV2FactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2FactoryFilterer, error) { - contract, err := bindIUniswapV2Factory(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2FactoryFilterer{contract: contract}, nil -} - -// bindIUniswapV2Factory binds a generic wrapper to an already deployed contract. -func bindIUniswapV2Factory(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2FactoryMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Factory *IUniswapV2FactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Factory.Contract.IUniswapV2FactoryCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Factory *IUniswapV2FactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.IUniswapV2FactoryTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Factory *IUniswapV2FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.IUniswapV2FactoryTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Factory *IUniswapV2FactoryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Factory.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Factory *IUniswapV2FactoryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Factory *IUniswapV2FactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.contract.Transact(opts, method, params...) -} - -// AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. -// -// Solidity: function allPairs(uint256 ) view returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactoryCaller) AllPairs(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Factory.contract.Call(opts, &out, "allPairs", arg0) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. -// -// Solidity: function allPairs(uint256 ) view returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactorySession) AllPairs(arg0 *big.Int) (common.Address, error) { - return _IUniswapV2Factory.Contract.AllPairs(&_IUniswapV2Factory.CallOpts, arg0) -} - -// AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. -// -// Solidity: function allPairs(uint256 ) view returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) AllPairs(arg0 *big.Int) (common.Address, error) { - return _IUniswapV2Factory.Contract.AllPairs(&_IUniswapV2Factory.CallOpts, arg0) -} - -// AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. -// -// Solidity: function allPairsLength() view returns(uint256) -func (_IUniswapV2Factory *IUniswapV2FactoryCaller) AllPairsLength(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Factory.contract.Call(opts, &out, "allPairsLength") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. -// -// Solidity: function allPairsLength() view returns(uint256) -func (_IUniswapV2Factory *IUniswapV2FactorySession) AllPairsLength() (*big.Int, error) { - return _IUniswapV2Factory.Contract.AllPairsLength(&_IUniswapV2Factory.CallOpts) -} - -// AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. -// -// Solidity: function allPairsLength() view returns(uint256) -func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) AllPairsLength() (*big.Int, error) { - return _IUniswapV2Factory.Contract.AllPairsLength(&_IUniswapV2Factory.CallOpts) -} - -// FeeTo is a free data retrieval call binding the contract method 0x017e7e58. -// -// Solidity: function feeTo() view returns(address) -func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Factory.contract.Call(opts, &out, "feeTo") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FeeTo is a free data retrieval call binding the contract method 0x017e7e58. -// -// Solidity: function feeTo() view returns(address) -func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeTo() (common.Address, error) { - return _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts) -} - -// FeeTo is a free data retrieval call binding the contract method 0x017e7e58. -// -// Solidity: function feeTo() view returns(address) -func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeTo() (common.Address, error) { - return _IUniswapV2Factory.Contract.FeeTo(&_IUniswapV2Factory.CallOpts) -} - -// FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. -// -// Solidity: function feeToSetter() view returns(address) -func (_IUniswapV2Factory *IUniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Factory.contract.Call(opts, &out, "feeToSetter") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. -// -// Solidity: function feeToSetter() view returns(address) -func (_IUniswapV2Factory *IUniswapV2FactorySession) FeeToSetter() (common.Address, error) { - return _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts) -} - -// FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. -// -// Solidity: function feeToSetter() view returns(address) -func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) { - return _IUniswapV2Factory.Contract.FeeToSetter(&_IUniswapV2Factory.CallOpts) -} - -// GetPair is a free data retrieval call binding the contract method 0xe6a43905. -// -// Solidity: function getPair(address tokenA, address tokenB) view returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactoryCaller) GetPair(opts *bind.CallOpts, tokenA common.Address, tokenB common.Address) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Factory.contract.Call(opts, &out, "getPair", tokenA, tokenB) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetPair is a free data retrieval call binding the contract method 0xe6a43905. -// -// Solidity: function getPair(address tokenA, address tokenB) view returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactorySession) GetPair(tokenA common.Address, tokenB common.Address) (common.Address, error) { - return _IUniswapV2Factory.Contract.GetPair(&_IUniswapV2Factory.CallOpts, tokenA, tokenB) -} - -// GetPair is a free data retrieval call binding the contract method 0xe6a43905. -// -// Solidity: function getPair(address tokenA, address tokenB) view returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactoryCallerSession) GetPair(tokenA common.Address, tokenB common.Address) (common.Address, error) { - return _IUniswapV2Factory.Contract.GetPair(&_IUniswapV2Factory.CallOpts, tokenA, tokenB) -} - -// CreatePair is a paid mutator transaction binding the contract method 0xc9c65396. -// -// Solidity: function createPair(address tokenA, address tokenB) returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) CreatePair(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.contract.Transact(opts, "createPair", tokenA, tokenB) -} - -// CreatePair is a paid mutator transaction binding the contract method 0xc9c65396. -// -// Solidity: function createPair(address tokenA, address tokenB) returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactorySession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.CreatePair(&_IUniswapV2Factory.TransactOpts, tokenA, tokenB) -} - -// CreatePair is a paid mutator transaction binding the contract method 0xc9c65396. -// -// Solidity: function createPair(address tokenA, address tokenB) returns(address pair) -func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.CreatePair(&_IUniswapV2Factory.TransactOpts, tokenA, tokenB) -} - -// SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed. -// -// Solidity: function setFeeTo(address ) returns() -func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.contract.Transact(opts, "setFeeTo", arg0) -} - -// SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed. -// -// Solidity: function setFeeTo(address ) returns() -func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0) -} - -// SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed. -// -// Solidity: function setFeeTo(address ) returns() -func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeTo(arg0 common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.SetFeeTo(&_IUniswapV2Factory.TransactOpts, arg0) -} - -// SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6. -// -// Solidity: function setFeeToSetter(address ) returns() -func (_IUniswapV2Factory *IUniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.contract.Transact(opts, "setFeeToSetter", arg0) -} - -// SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6. -// -// Solidity: function setFeeToSetter(address ) returns() -func (_IUniswapV2Factory *IUniswapV2FactorySession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0) -} - -// SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6. -// -// Solidity: function setFeeToSetter(address ) returns() -func (_IUniswapV2Factory *IUniswapV2FactoryTransactorSession) SetFeeToSetter(arg0 common.Address) (*types.Transaction, error) { - return _IUniswapV2Factory.Contract.SetFeeToSetter(&_IUniswapV2Factory.TransactOpts, arg0) -} - -// IUniswapV2FactoryPairCreatedIterator is returned from FilterPairCreated and is used to iterate over the raw logs and unpacked data for PairCreated events raised by the IUniswapV2Factory contract. -type IUniswapV2FactoryPairCreatedIterator struct { - Event *IUniswapV2FactoryPairCreated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2FactoryPairCreatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2FactoryPairCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2FactoryPairCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2FactoryPairCreatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2FactoryPairCreatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2FactoryPairCreated represents a PairCreated event raised by the IUniswapV2Factory contract. -type IUniswapV2FactoryPairCreated struct { - Token0 common.Address - Token1 common.Address - Pair common.Address - Arg3 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPairCreated is a free log retrieval operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9. -// -// Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3) -func (_IUniswapV2Factory *IUniswapV2FactoryFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*IUniswapV2FactoryPairCreatedIterator, error) { - - var token0Rule []interface{} - for _, token0Item := range token0 { - token0Rule = append(token0Rule, token0Item) - } - var token1Rule []interface{} - for _, token1Item := range token1 { - token1Rule = append(token1Rule, token1Item) - } - - logs, sub, err := _IUniswapV2Factory.contract.FilterLogs(opts, "PairCreated", token0Rule, token1Rule) - if err != nil { - return nil, err - } - return &IUniswapV2FactoryPairCreatedIterator{contract: _IUniswapV2Factory.contract, event: "PairCreated", logs: logs, sub: sub}, nil -} - -// WatchPairCreated is a free log subscription operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9. -// -// Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3) -func (_IUniswapV2Factory *IUniswapV2FactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *IUniswapV2FactoryPairCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error) { - - var token0Rule []interface{} - for _, token0Item := range token0 { - token0Rule = append(token0Rule, token0Item) - } - var token1Rule []interface{} - for _, token1Item := range token1 { - token1Rule = append(token1Rule, token1Item) - } - - logs, sub, err := _IUniswapV2Factory.contract.WatchLogs(opts, "PairCreated", token0Rule, token1Rule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2FactoryPairCreated) - if err := _IUniswapV2Factory.contract.UnpackLog(event, "PairCreated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePairCreated is a log parse operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9. -// -// Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3) -func (_IUniswapV2Factory *IUniswapV2FactoryFilterer) ParsePairCreated(log types.Log) (*IUniswapV2FactoryPairCreated, error) { - event := new(IUniswapV2FactoryPairCreated) - if err := _IUniswapV2Factory.contract.UnpackLog(event, "PairCreated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2pair.sol/iuniswapv2pair.go b/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2pair.sol/iuniswapv2pair.go deleted file mode 100644 index 61cf1f4b8..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/interfaces/iuniswapv2pair.sol/iuniswapv2pair.go +++ /dev/null @@ -1,1842 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2pair - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2PairMetaData contains all meta data concerning the IUniswapV2Pair contract. -var IUniswapV2PairMetaData = &bind.MetaData{ - 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\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"}],\"name\":\"Sync\",\"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\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINIMUM_LIQUIDITY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"blockTimestampLast\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"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\"},{\"inputs\":[],\"name\":\"price0CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price1CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2PairABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2PairMetaData.ABI instead. -var IUniswapV2PairABI = IUniswapV2PairMetaData.ABI - -// IUniswapV2Pair is an auto generated Go binding around an Ethereum contract. -type IUniswapV2Pair struct { - IUniswapV2PairCaller // Read-only binding to the contract - IUniswapV2PairTransactor // Write-only binding to the contract - IUniswapV2PairFilterer // Log filterer for contract events -} - -// IUniswapV2PairCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2PairCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2PairTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2PairTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2PairFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2PairFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2PairSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2PairSession struct { - Contract *IUniswapV2Pair // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2PairCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2PairCallerSession struct { - Contract *IUniswapV2PairCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2PairTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2PairTransactorSession struct { - Contract *IUniswapV2PairTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2PairRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2PairRaw struct { - Contract *IUniswapV2Pair // Generic contract binding to access the raw methods on -} - -// IUniswapV2PairCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2PairCallerRaw struct { - Contract *IUniswapV2PairCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2PairTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2PairTransactorRaw struct { - Contract *IUniswapV2PairTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2Pair creates a new instance of IUniswapV2Pair, bound to a specific deployed contract. -func NewIUniswapV2Pair(address common.Address, backend bind.ContractBackend) (*IUniswapV2Pair, error) { - contract, err := bindIUniswapV2Pair(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2Pair{IUniswapV2PairCaller: IUniswapV2PairCaller{contract: contract}, IUniswapV2PairTransactor: IUniswapV2PairTransactor{contract: contract}, IUniswapV2PairFilterer: IUniswapV2PairFilterer{contract: contract}}, nil -} - -// NewIUniswapV2PairCaller creates a new read-only instance of IUniswapV2Pair, bound to a specific deployed contract. -func NewIUniswapV2PairCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV2PairCaller, error) { - contract, err := bindIUniswapV2Pair(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2PairCaller{contract: contract}, nil -} - -// NewIUniswapV2PairTransactor creates a new write-only instance of IUniswapV2Pair, bound to a specific deployed contract. -func NewIUniswapV2PairTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2PairTransactor, error) { - contract, err := bindIUniswapV2Pair(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2PairTransactor{contract: contract}, nil -} - -// NewIUniswapV2PairFilterer creates a new log filterer instance of IUniswapV2Pair, bound to a specific deployed contract. -func NewIUniswapV2PairFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2PairFilterer, error) { - contract, err := bindIUniswapV2Pair(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2PairFilterer{contract: contract}, nil -} - -// bindIUniswapV2Pair binds a generic wrapper to an already deployed contract. -func bindIUniswapV2Pair(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2PairMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Pair *IUniswapV2PairRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Pair.Contract.IUniswapV2PairCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Pair *IUniswapV2PairRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.IUniswapV2PairTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Pair *IUniswapV2PairRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.IUniswapV2PairTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Pair *IUniswapV2PairCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Pair.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Pair *IUniswapV2PairTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Pair *IUniswapV2PairTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.contract.Transact(opts, method, params...) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_IUniswapV2Pair *IUniswapV2PairCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "DOMAIN_SEPARATOR") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_IUniswapV2Pair *IUniswapV2PairSession) DOMAINSEPARATOR() ([32]byte, error) { - return _IUniswapV2Pair.Contract.DOMAINSEPARATOR(&_IUniswapV2Pair.CallOpts) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) DOMAINSEPARATOR() ([32]byte, error) { - return _IUniswapV2Pair.Contract.DOMAINSEPARATOR(&_IUniswapV2Pair.CallOpts) -} - -// MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. -// -// Solidity: function MINIMUM_LIQUIDITY() pure returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "MINIMUM_LIQUIDITY") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. -// -// Solidity: function MINIMUM_LIQUIDITY() pure returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) MINIMUMLIQUIDITY() (*big.Int, error) { - return _IUniswapV2Pair.Contract.MINIMUMLIQUIDITY(&_IUniswapV2Pair.CallOpts) -} - -// MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. -// -// Solidity: function MINIMUM_LIQUIDITY() pure returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) MINIMUMLIQUIDITY() (*big.Int, error) { - return _IUniswapV2Pair.Contract.MINIMUMLIQUIDITY(&_IUniswapV2Pair.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() pure returns(bytes32) -func (_IUniswapV2Pair *IUniswapV2PairCaller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "PERMIT_TYPEHASH") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() pure returns(bytes32) -func (_IUniswapV2Pair *IUniswapV2PairSession) PERMITTYPEHASH() ([32]byte, error) { - return _IUniswapV2Pair.Contract.PERMITTYPEHASH(&_IUniswapV2Pair.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() pure returns(bytes32) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) PERMITTYPEHASH() ([32]byte, error) { - return _IUniswapV2Pair.Contract.PERMITTYPEHASH(&_IUniswapV2Pair.CallOpts) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IUniswapV2Pair.Contract.Allowance(&_IUniswapV2Pair.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IUniswapV2Pair.Contract.Allowance(&_IUniswapV2Pair.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "balanceOf", owner) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _IUniswapV2Pair.Contract.BalanceOf(&_IUniswapV2Pair.CallOpts, owner) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _IUniswapV2Pair.Contract.BalanceOf(&_IUniswapV2Pair.CallOpts, owner) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() pure returns(uint8) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() pure returns(uint8) -func (_IUniswapV2Pair *IUniswapV2PairSession) Decimals() (uint8, error) { - return _IUniswapV2Pair.Contract.Decimals(&_IUniswapV2Pair.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() pure returns(uint8) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Decimals() (uint8, error) { - return _IUniswapV2Pair.Contract.Decimals(&_IUniswapV2Pair.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairSession) Factory() (common.Address, error) { - return _IUniswapV2Pair.Contract.Factory(&_IUniswapV2Pair.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Factory() (common.Address, error) { - return _IUniswapV2Pair.Contract.Factory(&_IUniswapV2Pair.CallOpts) -} - -// GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. -// -// Solidity: function getReserves() view returns(uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) -func (_IUniswapV2Pair *IUniswapV2PairCaller) GetReserves(opts *bind.CallOpts) (struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 -}, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "getReserves") - - outstruct := new(struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 - }) - if err != nil { - return *outstruct, err - } - - outstruct.Reserve0 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Reserve1 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.BlockTimestampLast = *abi.ConvertType(out[2], new(uint32)).(*uint32) - - return *outstruct, err - -} - -// GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. -// -// Solidity: function getReserves() view returns(uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) -func (_IUniswapV2Pair *IUniswapV2PairSession) GetReserves() (struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 -}, error) { - return _IUniswapV2Pair.Contract.GetReserves(&_IUniswapV2Pair.CallOpts) -} - -// GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. -// -// Solidity: function getReserves() view returns(uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) GetReserves() (struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 -}, error) { - return _IUniswapV2Pair.Contract.GetReserves(&_IUniswapV2Pair.CallOpts) -} - -// KLast is a free data retrieval call binding the contract method 0x7464fc3d. -// -// Solidity: function kLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) KLast(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "kLast") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// KLast is a free data retrieval call binding the contract method 0x7464fc3d. -// -// Solidity: function kLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) KLast() (*big.Int, error) { - return _IUniswapV2Pair.Contract.KLast(&_IUniswapV2Pair.CallOpts) -} - -// KLast is a free data retrieval call binding the contract method 0x7464fc3d. -// -// Solidity: function kLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) KLast() (*big.Int, error) { - return _IUniswapV2Pair.Contract.KLast(&_IUniswapV2Pair.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() pure returns(string) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() pure returns(string) -func (_IUniswapV2Pair *IUniswapV2PairSession) Name() (string, error) { - return _IUniswapV2Pair.Contract.Name(&_IUniswapV2Pair.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() pure returns(string) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Name() (string, error) { - return _IUniswapV2Pair.Contract.Name(&_IUniswapV2Pair.CallOpts) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address owner) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "nonces", owner) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address owner) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) Nonces(owner common.Address) (*big.Int, error) { - return _IUniswapV2Pair.Contract.Nonces(&_IUniswapV2Pair.CallOpts, owner) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address owner) view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Nonces(owner common.Address) (*big.Int, error) { - return _IUniswapV2Pair.Contract.Nonces(&_IUniswapV2Pair.CallOpts, owner) -} - -// Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5. -// -// Solidity: function price0CumulativeLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Price0CumulativeLast(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "price0CumulativeLast") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5. -// -// Solidity: function price0CumulativeLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) Price0CumulativeLast() (*big.Int, error) { - return _IUniswapV2Pair.Contract.Price0CumulativeLast(&_IUniswapV2Pair.CallOpts) -} - -// Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5. -// -// Solidity: function price0CumulativeLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Price0CumulativeLast() (*big.Int, error) { - return _IUniswapV2Pair.Contract.Price0CumulativeLast(&_IUniswapV2Pair.CallOpts) -} - -// Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493. -// -// Solidity: function price1CumulativeLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Price1CumulativeLast(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "price1CumulativeLast") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493. -// -// Solidity: function price1CumulativeLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) Price1CumulativeLast() (*big.Int, error) { - return _IUniswapV2Pair.Contract.Price1CumulativeLast(&_IUniswapV2Pair.CallOpts) -} - -// Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493. -// -// Solidity: function price1CumulativeLast() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Price1CumulativeLast() (*big.Int, error) { - return _IUniswapV2Pair.Contract.Price1CumulativeLast(&_IUniswapV2Pair.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() pure returns(string) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() pure returns(string) -func (_IUniswapV2Pair *IUniswapV2PairSession) Symbol() (string, error) { - return _IUniswapV2Pair.Contract.Symbol(&_IUniswapV2Pair.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() pure returns(string) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Symbol() (string, error) { - return _IUniswapV2Pair.Contract.Symbol(&_IUniswapV2Pair.CallOpts) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Token0(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "token0") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairSession) Token0() (common.Address, error) { - return _IUniswapV2Pair.Contract.Token0(&_IUniswapV2Pair.CallOpts) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Token0() (common.Address, error) { - return _IUniswapV2Pair.Contract.Token0(&_IUniswapV2Pair.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairCaller) Token1(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "token1") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairSession) Token1() (common.Address, error) { - return _IUniswapV2Pair.Contract.Token1(&_IUniswapV2Pair.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) Token1() (common.Address, error) { - return _IUniswapV2Pair.Contract.Token1(&_IUniswapV2Pair.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Pair.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairSession) TotalSupply() (*big.Int, error) { - return _IUniswapV2Pair.Contract.TotalSupply(&_IUniswapV2Pair.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IUniswapV2Pair *IUniswapV2PairCallerSession) TotalSupply() (*big.Int, error) { - return _IUniswapV2Pair.Contract.TotalSupply(&_IUniswapV2Pair.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "approve", spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Approve(&_IUniswapV2Pair.TransactOpts, spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Approve(&_IUniswapV2Pair.TransactOpts, spender, value) -} - -// Burn is a paid mutator transaction binding the contract method 0x89afcb44. -// -// Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "burn", to) -} - -// Burn is a paid mutator transaction binding the contract method 0x89afcb44. -// -// Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV2Pair *IUniswapV2PairSession) Burn(to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Burn(&_IUniswapV2Pair.TransactOpts, to) -} - -// Burn is a paid mutator transaction binding the contract method 0x89afcb44. -// -// Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Burn(to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Burn(&_IUniswapV2Pair.TransactOpts, to) -} - -// Initialize is a paid mutator transaction binding the contract method 0x485cc955. -// -// Solidity: function initialize(address , address ) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Initialize(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "initialize", arg0, arg1) -} - -// Initialize is a paid mutator transaction binding the contract method 0x485cc955. -// -// Solidity: function initialize(address , address ) returns() -func (_IUniswapV2Pair *IUniswapV2PairSession) Initialize(arg0 common.Address, arg1 common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Initialize(&_IUniswapV2Pair.TransactOpts, arg0, arg1) -} - -// Initialize is a paid mutator transaction binding the contract method 0x485cc955. -// -// Solidity: function initialize(address , address ) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Initialize(arg0 common.Address, arg1 common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Initialize(&_IUniswapV2Pair.TransactOpts, arg0, arg1) -} - -// Mint is a paid mutator transaction binding the contract method 0x6a627842. -// -// Solidity: function mint(address to) returns(uint256 liquidity) -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "mint", to) -} - -// Mint is a paid mutator transaction binding the contract method 0x6a627842. -// -// Solidity: function mint(address to) returns(uint256 liquidity) -func (_IUniswapV2Pair *IUniswapV2PairSession) Mint(to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Mint(&_IUniswapV2Pair.TransactOpts, to) -} - -// Mint is a paid mutator transaction binding the contract method 0x6a627842. -// -// Solidity: function mint(address to) returns(uint256 liquidity) -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Mint(to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Mint(&_IUniswapV2Pair.TransactOpts, to) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "permit", owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_IUniswapV2Pair *IUniswapV2PairSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Permit(&_IUniswapV2Pair.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Permit(&_IUniswapV2Pair.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Skim is a paid mutator transaction binding the contract method 0xbc25cf77. -// -// Solidity: function skim(address to) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "skim", to) -} - -// Skim is a paid mutator transaction binding the contract method 0xbc25cf77. -// -// Solidity: function skim(address to) returns() -func (_IUniswapV2Pair *IUniswapV2PairSession) Skim(to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Skim(&_IUniswapV2Pair.TransactOpts, to) -} - -// Skim is a paid mutator transaction binding the contract method 0xbc25cf77. -// -// Solidity: function skim(address to) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Skim(to common.Address) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Skim(&_IUniswapV2Pair.TransactOpts, to) -} - -// Swap is a paid mutator transaction binding the contract method 0x022c0d9f. -// -// Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "swap", amount0Out, amount1Out, to, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x022c0d9f. -// -// Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns() -func (_IUniswapV2Pair *IUniswapV2PairSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Swap(&_IUniswapV2Pair.TransactOpts, amount0Out, amount1Out, to, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x022c0d9f. -// -// Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Swap(&_IUniswapV2Pair.TransactOpts, amount0Out, amount1Out, to, data) -} - -// Sync is a paid mutator transaction binding the contract method 0xfff6cae9. -// -// Solidity: function sync() returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "sync") -} - -// Sync is a paid mutator transaction binding the contract method 0xfff6cae9. -// -// Solidity: function sync() returns() -func (_IUniswapV2Pair *IUniswapV2PairSession) Sync() (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Sync(&_IUniswapV2Pair.TransactOpts) -} - -// Sync is a paid mutator transaction binding the contract method 0xfff6cae9. -// -// Solidity: function sync() returns() -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Sync() (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Sync(&_IUniswapV2Pair.TransactOpts) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "transfer", to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Transfer(&_IUniswapV2Pair.TransactOpts, to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.Transfer(&_IUniswapV2Pair.TransactOpts, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.contract.Transact(opts, "transferFrom", from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.TransferFrom(&_IUniswapV2Pair.TransactOpts, from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IUniswapV2Pair *IUniswapV2PairTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IUniswapV2Pair.Contract.TransferFrom(&_IUniswapV2Pair.TransactOpts, from, to, value) -} - -// IUniswapV2PairApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IUniswapV2Pair contract. -type IUniswapV2PairApprovalIterator struct { - Event *IUniswapV2PairApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2PairApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2PairApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2PairApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2PairApproval represents a Approval event raised by the IUniswapV2Pair contract. -type IUniswapV2PairApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IUniswapV2PairApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &IUniswapV2PairApprovalIterator{contract: _IUniswapV2Pair.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2PairApproval) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) ParseApproval(log types.Log) (*IUniswapV2PairApproval, error) { - event := new(IUniswapV2PairApproval) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV2PairBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the IUniswapV2Pair contract. -type IUniswapV2PairBurnIterator struct { - Event *IUniswapV2PairBurn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2PairBurnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2PairBurnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2PairBurnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2PairBurn represents a Burn event raised by the IUniswapV2Pair contract. -type IUniswapV2PairBurn struct { - Sender common.Address - Amount0 *big.Int - Amount1 *big.Int - To common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterBurn is a free log retrieval operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496. -// -// Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*IUniswapV2PairBurnIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, "Burn", senderRule, toRule) - if err != nil { - return nil, err - } - return &IUniswapV2PairBurnIterator{contract: _IUniswapV2Pair.contract, event: "Burn", logs: logs, sub: sub}, nil -} - -// WatchBurn is a free log subscription operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496. -// -// Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairBurn, sender []common.Address, to []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, "Burn", senderRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2PairBurn) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Burn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseBurn is a log parse operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496. -// -// Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) ParseBurn(log types.Log) (*IUniswapV2PairBurn, error) { - event := new(IUniswapV2PairBurn) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Burn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV2PairMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the IUniswapV2Pair contract. -type IUniswapV2PairMintIterator struct { - Event *IUniswapV2PairMint // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2PairMintIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2PairMintIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2PairMintIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2PairMint represents a Mint event raised by the IUniswapV2Pair contract. -type IUniswapV2PairMint struct { - Sender common.Address - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f. -// -// Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*IUniswapV2PairMintIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, "Mint", senderRule) - if err != nil { - return nil, err - } - return &IUniswapV2PairMintIterator{contract: _IUniswapV2Pair.contract, event: "Mint", logs: logs, sub: sub}, nil -} - -// WatchMint is a free log subscription operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f. -// -// Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairMint, sender []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, "Mint", senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2PairMint) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Mint", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f. -// -// Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) ParseMint(log types.Log) (*IUniswapV2PairMint, error) { - event := new(IUniswapV2PairMint) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Mint", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV2PairSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the IUniswapV2Pair contract. -type IUniswapV2PairSwapIterator struct { - Event *IUniswapV2PairSwap // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2PairSwapIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2PairSwapIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2PairSwapIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2PairSwap represents a Swap event raised by the IUniswapV2Pair contract. -type IUniswapV2PairSwap struct { - Sender common.Address - Amount0In *big.Int - Amount1In *big.Int - Amount0Out *big.Int - Amount1Out *big.Int - To common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSwap is a free log retrieval operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822. -// -// Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*IUniswapV2PairSwapIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, "Swap", senderRule, toRule) - if err != nil { - return nil, err - } - return &IUniswapV2PairSwapIterator{contract: _IUniswapV2Pair.contract, event: "Swap", logs: logs, sub: sub}, nil -} - -// WatchSwap is a free log subscription operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822. -// -// Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairSwap, sender []common.Address, to []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, "Swap", senderRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2PairSwap) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Swap", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSwap is a log parse operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822. -// -// Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) ParseSwap(log types.Log) (*IUniswapV2PairSwap, error) { - event := new(IUniswapV2PairSwap) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Swap", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV2PairSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the IUniswapV2Pair contract. -type IUniswapV2PairSyncIterator struct { - Event *IUniswapV2PairSync // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2PairSyncIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairSync) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairSync) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2PairSyncIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2PairSyncIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2PairSync represents a Sync event raised by the IUniswapV2Pair contract. -type IUniswapV2PairSync struct { - Reserve0 *big.Int - Reserve1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1. -// -// Solidity: event Sync(uint112 reserve0, uint112 reserve1) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterSync(opts *bind.FilterOpts) (*IUniswapV2PairSyncIterator, error) { - - logs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, "Sync") - if err != nil { - return nil, err - } - return &IUniswapV2PairSyncIterator{contract: _IUniswapV2Pair.contract, event: "Sync", logs: logs, sub: sub}, nil -} - -// WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1. -// -// Solidity: event Sync(uint112 reserve0, uint112 reserve1) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairSync) (event.Subscription, error) { - - logs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, "Sync") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2PairSync) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Sync", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1. -// -// Solidity: event Sync(uint112 reserve0, uint112 reserve1) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) ParseSync(log types.Log) (*IUniswapV2PairSync, error) { - event := new(IUniswapV2PairSync) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Sync", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV2PairTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IUniswapV2Pair contract. -type IUniswapV2PairTransferIterator struct { - Event *IUniswapV2PairTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV2PairTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV2PairTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV2PairTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV2PairTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV2PairTransfer represents a Transfer event raised by the IUniswapV2Pair contract. -type IUniswapV2PairTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IUniswapV2PairTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &IUniswapV2PairTransferIterator{contract: _IUniswapV2Pair.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IUniswapV2PairTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IUniswapV2Pair.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV2PairTransfer) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IUniswapV2Pair *IUniswapV2PairFilterer) ParseTransfer(log types.Log) (*IUniswapV2PairTransfer, error) { - event := new(IUniswapV2PairTransfer) - if err := _IUniswapV2Pair.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-core/contracts/libraries/math.sol/math.go b/v1/pkg/uniswap/v2-core/contracts/libraries/math.sol/math.go deleted file mode 100644 index da2c97a05..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/libraries/math.sol/math.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package math - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// MathMetaData contains all meta data concerning the Math contract. -var MathMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a7231582036ebcfaac2554db76c89ce048a11e2a035fd87545ae459a0f16e5e15e0c6532964736f6c63430005100032", -} - -// MathABI is the input ABI used to generate the binding from. -// Deprecated: Use MathMetaData.ABI instead. -var MathABI = MathMetaData.ABI - -// MathBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use MathMetaData.Bin instead. -var MathBin = MathMetaData.Bin - -// DeployMath deploys a new Ethereum contract, binding an instance of Math to it. -func DeployMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Math, error) { - parsed, err := MathMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(MathBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &Math{MathCaller: MathCaller{contract: contract}, MathTransactor: MathTransactor{contract: contract}, MathFilterer: MathFilterer{contract: contract}}, nil -} - -// Math is an auto generated Go binding around an Ethereum contract. -type Math struct { - MathCaller // Read-only binding to the contract - MathTransactor // Write-only binding to the contract - MathFilterer // Log filterer for contract events -} - -// MathCaller is an auto generated read-only Go binding around an Ethereum contract. -type MathCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// MathTransactor is an auto generated write-only Go binding around an Ethereum contract. -type MathTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// MathFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type MathFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// MathSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type MathSession struct { - Contract *Math // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// MathCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type MathCallerSession struct { - Contract *MathCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// MathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type MathTransactorSession struct { - Contract *MathTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// MathRaw is an auto generated low-level Go binding around an Ethereum contract. -type MathRaw struct { - Contract *Math // Generic contract binding to access the raw methods on -} - -// MathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type MathCallerRaw struct { - Contract *MathCaller // Generic read-only contract binding to access the raw methods on -} - -// MathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type MathTransactorRaw struct { - Contract *MathTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewMath creates a new instance of Math, bound to a specific deployed contract. -func NewMath(address common.Address, backend bind.ContractBackend) (*Math, error) { - contract, err := bindMath(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &Math{MathCaller: MathCaller{contract: contract}, MathTransactor: MathTransactor{contract: contract}, MathFilterer: MathFilterer{contract: contract}}, nil -} - -// NewMathCaller creates a new read-only instance of Math, bound to a specific deployed contract. -func NewMathCaller(address common.Address, caller bind.ContractCaller) (*MathCaller, error) { - contract, err := bindMath(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &MathCaller{contract: contract}, nil -} - -// NewMathTransactor creates a new write-only instance of Math, bound to a specific deployed contract. -func NewMathTransactor(address common.Address, transactor bind.ContractTransactor) (*MathTransactor, error) { - contract, err := bindMath(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &MathTransactor{contract: contract}, nil -} - -// NewMathFilterer creates a new log filterer instance of Math, bound to a specific deployed contract. -func NewMathFilterer(address common.Address, filterer bind.ContractFilterer) (*MathFilterer, error) { - contract, err := bindMath(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &MathFilterer{contract: contract}, nil -} - -// bindMath binds a generic wrapper to an already deployed contract. -func bindMath(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := MathMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Math *MathRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Math.Contract.MathCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Math *MathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Math.Contract.MathTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Math *MathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Math.Contract.MathTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_Math *MathCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _Math.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_Math *MathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _Math.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_Math *MathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _Math.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/uniswap/v2-core/contracts/libraries/safemath.sol/safemath.go b/v1/pkg/uniswap/v2-core/contracts/libraries/safemath.sol/safemath.go deleted file mode 100644 index dd80cb9b1..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/libraries/safemath.sol/safemath.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package safemath - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// SafeMathMetaData contains all meta data concerning the SafeMath contract. -var SafeMathMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820bc1c290dcae2f326bd131e1959ee8796f40aded46d889061bd483ecfcb42f19664736f6c63430005100032", -} - -// SafeMathABI is the input ABI used to generate the binding from. -// Deprecated: Use SafeMathMetaData.ABI instead. -var SafeMathABI = SafeMathMetaData.ABI - -// SafeMathBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use SafeMathMetaData.Bin instead. -var SafeMathBin = SafeMathMetaData.Bin - -// DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it. -func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error) { - parsed, err := SafeMathMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SafeMathBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil -} - -// SafeMath is an auto generated Go binding around an Ethereum contract. -type SafeMath struct { - SafeMathCaller // Read-only binding to the contract - SafeMathTransactor // Write-only binding to the contract - SafeMathFilterer // Log filterer for contract events -} - -// SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract. -type SafeMathCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SafeMathTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SafeMathFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeMathSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SafeMathSession struct { - Contract *SafeMath // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SafeMathCallerSession struct { - Contract *SafeMathCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SafeMathTransactorSession struct { - Contract *SafeMathTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract. -type SafeMathRaw struct { - Contract *SafeMath // Generic contract binding to access the raw methods on -} - -// SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SafeMathCallerRaw struct { - Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on -} - -// SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SafeMathTransactorRaw struct { - Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract. -func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error) { - contract, err := bindSafeMath(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil -} - -// NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract. -func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error) { - contract, err := bindSafeMath(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SafeMathCaller{contract: contract}, nil -} - -// NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract. -func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error) { - contract, err := bindSafeMath(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SafeMathTransactor{contract: contract}, nil -} - -// NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract. -func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error) { - contract, err := bindSafeMath(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SafeMathFilterer{contract: contract}, nil -} - -// bindSafeMath binds a generic wrapper to an already deployed contract. -func bindSafeMath(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SafeMathMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SafeMath.Contract.SafeMathCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SafeMath.Contract.SafeMathTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SafeMath.Contract.SafeMathTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SafeMath *SafeMathCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SafeMath.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SafeMath *SafeMathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SafeMath.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SafeMath.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/uniswap/v2-core/contracts/libraries/uq112x112.sol/uq112x112.go b/v1/pkg/uniswap/v2-core/contracts/libraries/uq112x112.sol/uq112x112.go deleted file mode 100644 index 13e1b83dc..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/libraries/uq112x112.sol/uq112x112.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uq112x112 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UQ112x112MetaData contains all meta data concerning the UQ112x112 contract. -var UQ112x112MetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a72315820c4e545b71eb450fec89d3fbcceea2f62f8971fce94db924228248b088e907ed864736f6c63430005100032", -} - -// UQ112x112ABI is the input ABI used to generate the binding from. -// Deprecated: Use UQ112x112MetaData.ABI instead. -var UQ112x112ABI = UQ112x112MetaData.ABI - -// UQ112x112Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UQ112x112MetaData.Bin instead. -var UQ112x112Bin = UQ112x112MetaData.Bin - -// DeployUQ112x112 deploys a new Ethereum contract, binding an instance of UQ112x112 to it. -func DeployUQ112x112(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *UQ112x112, error) { - parsed, err := UQ112x112MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UQ112x112Bin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UQ112x112{UQ112x112Caller: UQ112x112Caller{contract: contract}, UQ112x112Transactor: UQ112x112Transactor{contract: contract}, UQ112x112Filterer: UQ112x112Filterer{contract: contract}}, nil -} - -// UQ112x112 is an auto generated Go binding around an Ethereum contract. -type UQ112x112 struct { - UQ112x112Caller // Read-only binding to the contract - UQ112x112Transactor // Write-only binding to the contract - UQ112x112Filterer // Log filterer for contract events -} - -// UQ112x112Caller is an auto generated read-only Go binding around an Ethereum contract. -type UQ112x112Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UQ112x112Transactor is an auto generated write-only Go binding around an Ethereum contract. -type UQ112x112Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UQ112x112Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UQ112x112Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UQ112x112Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UQ112x112Session struct { - Contract *UQ112x112 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UQ112x112CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UQ112x112CallerSession struct { - Contract *UQ112x112Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UQ112x112TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UQ112x112TransactorSession struct { - Contract *UQ112x112Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UQ112x112Raw is an auto generated low-level Go binding around an Ethereum contract. -type UQ112x112Raw struct { - Contract *UQ112x112 // Generic contract binding to access the raw methods on -} - -// UQ112x112CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UQ112x112CallerRaw struct { - Contract *UQ112x112Caller // Generic read-only contract binding to access the raw methods on -} - -// UQ112x112TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UQ112x112TransactorRaw struct { - Contract *UQ112x112Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewUQ112x112 creates a new instance of UQ112x112, bound to a specific deployed contract. -func NewUQ112x112(address common.Address, backend bind.ContractBackend) (*UQ112x112, error) { - contract, err := bindUQ112x112(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UQ112x112{UQ112x112Caller: UQ112x112Caller{contract: contract}, UQ112x112Transactor: UQ112x112Transactor{contract: contract}, UQ112x112Filterer: UQ112x112Filterer{contract: contract}}, nil -} - -// NewUQ112x112Caller creates a new read-only instance of UQ112x112, bound to a specific deployed contract. -func NewUQ112x112Caller(address common.Address, caller bind.ContractCaller) (*UQ112x112Caller, error) { - contract, err := bindUQ112x112(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UQ112x112Caller{contract: contract}, nil -} - -// NewUQ112x112Transactor creates a new write-only instance of UQ112x112, bound to a specific deployed contract. -func NewUQ112x112Transactor(address common.Address, transactor bind.ContractTransactor) (*UQ112x112Transactor, error) { - contract, err := bindUQ112x112(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UQ112x112Transactor{contract: contract}, nil -} - -// NewUQ112x112Filterer creates a new log filterer instance of UQ112x112, bound to a specific deployed contract. -func NewUQ112x112Filterer(address common.Address, filterer bind.ContractFilterer) (*UQ112x112Filterer, error) { - contract, err := bindUQ112x112(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UQ112x112Filterer{contract: contract}, nil -} - -// bindUQ112x112 binds a generic wrapper to an already deployed contract. -func bindUQ112x112(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UQ112x112MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UQ112x112 *UQ112x112Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UQ112x112.Contract.UQ112x112Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UQ112x112 *UQ112x112Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UQ112x112.Contract.UQ112x112Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UQ112x112 *UQ112x112Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UQ112x112.Contract.UQ112x112Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UQ112x112 *UQ112x112CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UQ112x112.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UQ112x112 *UQ112x112TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UQ112x112.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UQ112x112 *UQ112x112TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UQ112x112.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/uniswap/v2-core/contracts/uniswapv2erc20.sol/uniswapv2erc20.go b/v1/pkg/uniswap/v2-core/contracts/uniswapv2erc20.sol/uniswapv2erc20.go deleted file mode 100644 index f8b3aaed6..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/uniswapv2erc20.sol/uniswapv2erc20.go +++ /dev/null @@ -1,874 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uniswapv2erc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UniswapV2ERC20MetaData contains all meta data concerning the UniswapV2ERC20 contract. -var UniswapV2ERC20MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"payable\":false,\"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\"},{\"constant\":true,\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"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\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", - Bin: "0x608060405234801561001057600080fd5b506040514690806052610b898239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550610a9b806100ee6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80633644e5151161008c57806395d89b411161006657806395d89b411461029f578063a9059cbb146102a7578063d505accf146102e0578063dd62ed3e14610340576100df565b80633644e5151461023157806370a08231146102395780637ecebe001461026c576100df565b806323b872dd116100bd57806323b872dd146101c857806330adf81f1461020b578063313ce56714610213576100df565b806306fdde03146100e4578063095ea7b31461016157806318160ddd146101ae575b600080fd5b6100ec61037b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019a6004803603604081101561017757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103b4565b604080519115158252519081900360200190f35b6101b66103cb565b60408051918252519081900360200190f35b61019a600480360360608110156101de57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103d1565b6101b66104b0565b61021b6104d4565b6040805160ff9092168252519081900360200190f35b6101b66104d9565b6101b66004803603602081101561024f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104df565b6101b66004803603602081101561028257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104f1565b6100ec610503565b61019a600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561053c565b61033e600480360360e08110156102f657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610549565b005b6101b66004803603604081101561035657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610815565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b60006103c1338484610832565b5060015b92915050565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461049b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610469908363ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b6104a6848484610913565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60016020526000908152604090205481565b60046020526000908152604090205481565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b60006103c1338484610913565b428410156105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015610719573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061079457508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b6107ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b61080a898989610832565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b808203828111156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054610949908263ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220939093559084168152205461098b908263ffffffff6109f416565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b808201828110156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea265627a7a72315820fbe850bc397a587736b017d75ce8021dd8dafcfd54ab43add14fd21753cc6c3564736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429", -} - -// UniswapV2ERC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use UniswapV2ERC20MetaData.ABI instead. -var UniswapV2ERC20ABI = UniswapV2ERC20MetaData.ABI - -// UniswapV2ERC20Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UniswapV2ERC20MetaData.Bin instead. -var UniswapV2ERC20Bin = UniswapV2ERC20MetaData.Bin - -// DeployUniswapV2ERC20 deploys a new Ethereum contract, binding an instance of UniswapV2ERC20 to it. -func DeployUniswapV2ERC20(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *UniswapV2ERC20, error) { - parsed, err := UniswapV2ERC20MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UniswapV2ERC20Bin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UniswapV2ERC20{UniswapV2ERC20Caller: UniswapV2ERC20Caller{contract: contract}, UniswapV2ERC20Transactor: UniswapV2ERC20Transactor{contract: contract}, UniswapV2ERC20Filterer: UniswapV2ERC20Filterer{contract: contract}}, nil -} - -// UniswapV2ERC20 is an auto generated Go binding around an Ethereum contract. -type UniswapV2ERC20 struct { - UniswapV2ERC20Caller // Read-only binding to the contract - UniswapV2ERC20Transactor // Write-only binding to the contract - UniswapV2ERC20Filterer // Log filterer for contract events -} - -// UniswapV2ERC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type UniswapV2ERC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2ERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type UniswapV2ERC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2ERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniswapV2ERC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2ERC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniswapV2ERC20Session struct { - Contract *UniswapV2ERC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2ERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniswapV2ERC20CallerSession struct { - Contract *UniswapV2ERC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniswapV2ERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniswapV2ERC20TransactorSession struct { - Contract *UniswapV2ERC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2ERC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type UniswapV2ERC20Raw struct { - Contract *UniswapV2ERC20 // Generic contract binding to access the raw methods on -} - -// UniswapV2ERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniswapV2ERC20CallerRaw struct { - Contract *UniswapV2ERC20Caller // Generic read-only contract binding to access the raw methods on -} - -// UniswapV2ERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniswapV2ERC20TransactorRaw struct { - Contract *UniswapV2ERC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniswapV2ERC20 creates a new instance of UniswapV2ERC20, bound to a specific deployed contract. -func NewUniswapV2ERC20(address common.Address, backend bind.ContractBackend) (*UniswapV2ERC20, error) { - contract, err := bindUniswapV2ERC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniswapV2ERC20{UniswapV2ERC20Caller: UniswapV2ERC20Caller{contract: contract}, UniswapV2ERC20Transactor: UniswapV2ERC20Transactor{contract: contract}, UniswapV2ERC20Filterer: UniswapV2ERC20Filterer{contract: contract}}, nil -} - -// NewUniswapV2ERC20Caller creates a new read-only instance of UniswapV2ERC20, bound to a specific deployed contract. -func NewUniswapV2ERC20Caller(address common.Address, caller bind.ContractCaller) (*UniswapV2ERC20Caller, error) { - contract, err := bindUniswapV2ERC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniswapV2ERC20Caller{contract: contract}, nil -} - -// NewUniswapV2ERC20Transactor creates a new write-only instance of UniswapV2ERC20, bound to a specific deployed contract. -func NewUniswapV2ERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV2ERC20Transactor, error) { - contract, err := bindUniswapV2ERC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniswapV2ERC20Transactor{contract: contract}, nil -} - -// NewUniswapV2ERC20Filterer creates a new log filterer instance of UniswapV2ERC20, bound to a specific deployed contract. -func NewUniswapV2ERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV2ERC20Filterer, error) { - contract, err := bindUniswapV2ERC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniswapV2ERC20Filterer{contract: contract}, nil -} - -// bindUniswapV2ERC20 binds a generic wrapper to an already deployed contract. -func bindUniswapV2ERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniswapV2ERC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2ERC20 *UniswapV2ERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2ERC20.Contract.UniswapV2ERC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2ERC20 *UniswapV2ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.UniswapV2ERC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2ERC20 *UniswapV2ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.UniswapV2ERC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2ERC20 *UniswapV2ERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2ERC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2ERC20 *UniswapV2ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2ERC20 *UniswapV2ERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.contract.Transact(opts, method, params...) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "DOMAIN_SEPARATOR") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) DOMAINSEPARATOR() ([32]byte, error) { - return _UniswapV2ERC20.Contract.DOMAINSEPARATOR(&_UniswapV2ERC20.CallOpts) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) DOMAINSEPARATOR() ([32]byte, error) { - return _UniswapV2ERC20.Contract.DOMAINSEPARATOR(&_UniswapV2ERC20.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() view returns(bytes32) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "PERMIT_TYPEHASH") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() view returns(bytes32) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) PERMITTYPEHASH() ([32]byte, error) { - return _UniswapV2ERC20.Contract.PERMITTYPEHASH(&_UniswapV2ERC20.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() view returns(bytes32) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) PERMITTYPEHASH() ([32]byte, error) { - return _UniswapV2ERC20.Contract.PERMITTYPEHASH(&_UniswapV2ERC20.CallOpts) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "allowance", arg0, arg1) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) { - return _UniswapV2ERC20.Contract.Allowance(&_UniswapV2ERC20.CallOpts, arg0, arg1) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) { - return _UniswapV2ERC20.Contract.Allowance(&_UniswapV2ERC20.CallOpts, arg0, arg1) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "balanceOf", arg0) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) BalanceOf(arg0 common.Address) (*big.Int, error) { - return _UniswapV2ERC20.Contract.BalanceOf(&_UniswapV2ERC20.CallOpts, arg0) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) BalanceOf(arg0 common.Address) (*big.Int, error) { - return _UniswapV2ERC20.Contract.BalanceOf(&_UniswapV2ERC20.CallOpts, arg0) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Decimals() (uint8, error) { - return _UniswapV2ERC20.Contract.Decimals(&_UniswapV2ERC20.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) Decimals() (uint8, error) { - return _UniswapV2ERC20.Contract.Decimals(&_UniswapV2ERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Name() (string, error) { - return _UniswapV2ERC20.Contract.Name(&_UniswapV2ERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) Name() (string, error) { - return _UniswapV2ERC20.Contract.Name(&_UniswapV2ERC20.CallOpts) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "nonces", arg0) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Nonces(arg0 common.Address) (*big.Int, error) { - return _UniswapV2ERC20.Contract.Nonces(&_UniswapV2ERC20.CallOpts, arg0) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address ) view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) Nonces(arg0 common.Address) (*big.Int, error) { - return _UniswapV2ERC20.Contract.Nonces(&_UniswapV2ERC20.CallOpts, arg0) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Symbol() (string, error) { - return _UniswapV2ERC20.Contract.Symbol(&_UniswapV2ERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) Symbol() (string, error) { - return _UniswapV2ERC20.Contract.Symbol(&_UniswapV2ERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _UniswapV2ERC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) TotalSupply() (*big.Int, error) { - return _UniswapV2ERC20.Contract.TotalSupply(&_UniswapV2ERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_UniswapV2ERC20 *UniswapV2ERC20CallerSession) TotalSupply() (*big.Int, error) { - return _UniswapV2ERC20.Contract.TotalSupply(&_UniswapV2ERC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.contract.Transact(opts, "approve", spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.Approve(&_UniswapV2ERC20.TransactOpts, spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.Approve(&_UniswapV2ERC20.TransactOpts, spender, value) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_UniswapV2ERC20 *UniswapV2ERC20Transactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2ERC20.contract.Transact(opts, "permit", owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.Permit(&_UniswapV2ERC20.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_UniswapV2ERC20 *UniswapV2ERC20TransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.Permit(&_UniswapV2ERC20.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.contract.Transact(opts, "transfer", to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.Transfer(&_UniswapV2ERC20.TransactOpts, to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.Transfer(&_UniswapV2ERC20.TransactOpts, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.contract.Transact(opts, "transferFrom", from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.TransferFrom(&_UniswapV2ERC20.TransactOpts, from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_UniswapV2ERC20 *UniswapV2ERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2ERC20.Contract.TransferFrom(&_UniswapV2ERC20.TransactOpts, from, to, value) -} - -// UniswapV2ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the UniswapV2ERC20 contract. -type UniswapV2ERC20ApprovalIterator struct { - Event *UniswapV2ERC20Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2ERC20ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2ERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2ERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2ERC20ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2ERC20ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2ERC20Approval represents a Approval event raised by the UniswapV2ERC20 contract. -type UniswapV2ERC20Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_UniswapV2ERC20 *UniswapV2ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*UniswapV2ERC20ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _UniswapV2ERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &UniswapV2ERC20ApprovalIterator{contract: _UniswapV2ERC20.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_UniswapV2ERC20 *UniswapV2ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UniswapV2ERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _UniswapV2ERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2ERC20Approval) - if err := _UniswapV2ERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_UniswapV2ERC20 *UniswapV2ERC20Filterer) ParseApproval(log types.Log) (*UniswapV2ERC20Approval, error) { - event := new(UniswapV2ERC20Approval) - if err := _UniswapV2ERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// UniswapV2ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the UniswapV2ERC20 contract. -type UniswapV2ERC20TransferIterator struct { - Event *UniswapV2ERC20Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2ERC20TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2ERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2ERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2ERC20TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2ERC20TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2ERC20Transfer represents a Transfer event raised by the UniswapV2ERC20 contract. -type UniswapV2ERC20Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_UniswapV2ERC20 *UniswapV2ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*UniswapV2ERC20TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2ERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &UniswapV2ERC20TransferIterator{contract: _UniswapV2ERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_UniswapV2ERC20 *UniswapV2ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UniswapV2ERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2ERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2ERC20Transfer) - if err := _UniswapV2ERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_UniswapV2ERC20 *UniswapV2ERC20Filterer) ParseTransfer(log types.Log) (*UniswapV2ERC20Transfer, error) { - event := new(UniswapV2ERC20Transfer) - if err := _UniswapV2ERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-core/contracts/uniswapv2factory.sol/uniswapv2factory.go b/v1/pkg/uniswap/v2-core/contracts/uniswapv2factory.sol/uniswapv2factory.go deleted file mode 100644 index 90df63d46..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/uniswapv2factory.sol/uniswapv2factory.go +++ /dev/null @@ -1,576 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uniswapv2factory - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UniswapV2FactoryMetaData contains all meta data concerning the UniswapV2Factory contract. -var UniswapV2FactoryMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PairCreated\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeTo\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_feeToSetter\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", - Bin: "0x608060405234801561001057600080fd5b506040516136863803806136868339818101604052602081101561003357600080fd5b5051600180546001600160a01b0319166001600160a01b03909216919091179055613623806100636000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063a2e74af61161005b578063a2e74af6146100fd578063c9c6539614610132578063e6a439051461016d578063f46901ed146101a857610088565b8063017e7e581461008d578063094b7415146100be5780631e3dd18b146100c6578063574f2ba3146100e3575b600080fd5b6100956101db565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100956101f7565b610095600480360360208110156100dc57600080fd5b5035610213565b6100eb610247565b60408051918252519081900360200190f35b6101306004803603602081101561011357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661024d565b005b6100956004803603604081101561014857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661031a565b6100956004803603604081101561018357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661076d565b610130600480360360208110156101be57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166107a0565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6003818154811061022057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60035490565b60015473ffffffffffffffffffffffffffffffffffffffff1633146102d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156103b757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056323a204944454e544943414c5f4144445245535345530000604482015290519081900360640190fd5b6000808373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16106103f45783856103f7565b84845b909250905073ffffffffffffffffffffffffffffffffffffffff821661047e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f556e697377617056323a205a45524f5f41444452455353000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602090815260408083208585168452909152902054161561051f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f556e697377617056323a20504149525f45584953545300000000000000000000604482015290519081900360640190fd5b6060604051806020016105319061086d565b6020820181038252601f19601f82011660405250905060008383604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b81526014018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f5604080517f485cc95500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015291519297509087169163485cc9559160448082019260009290919082900301818387803b15801561065e57600080fd5b505af1158015610672573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff84811660008181526002602081815260408084208987168086529083528185208054978d167fffffffffffffffffffffffff000000000000000000000000000000000000000098891681179091559383528185208686528352818520805488168517905560038054600181018255958190527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90950180549097168417909655925483519283529082015281517f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9929181900390910190a35050505092915050565b600260209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff16331461082657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b612d748061087b8339019056fe60806040526001600c5534801561001557600080fd5b506040514690806052612d228239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b03191633179055612c1d806101056000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a7146105da578063d505accf146105e2578063dd62ed3e14610640578063fff6cae91461067b576101b9565b8063ba9a7a5614610597578063bc25cf771461059f578063c45a0155146105d2576101b9565b80637ecebe00116100d35780637ecebe00146104d757806389afcb441461050a57806395d89b4114610556578063a9059cbb1461055e576101b9565b80636a6278421461046957806370a082311461049c5780637464fc3d146104cf576101b9565b806323b872dd116101665780633644e515116101405780633644e51514610416578063485cc9551461041e5780635909c0d5146104595780635a3d549314610461576101b9565b806323b872dd146103ad57806330adf81f146103f0578063313ce567146103f8576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610683565b005b610261610d57565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610d90565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610de5565b604080519115158252519081900360200190f35b61036a610dfc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e18565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e1e565b61039b610efd565b610400610f21565b6040805160ff9092168252519081900360200190f35b61039b610f26565b6102576004803603604081101561043457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f2c565b61039b611005565b61039b61100b565b61039b6004803603602081101561047f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611011565b61039b600480360360208110156104b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113cb565b61039b6113dd565b61039b600480360360208110156104ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113e3565b61053d6004803603602081101561052057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f5565b6040805192835260208301919091528051918290030190f35b610261611892565b61034e6004803603604081101561057457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356118cb565b61039b6118d8565b610257600480360360208110156105b557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118de565b61036a611ad4565b61036a611af0565b610257600480360360e08110156105f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611b0c565b61039b6004803603604081101561065657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611dd8565b610257611df5565b600c546001146106f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107075750600084115b61075c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612b2f6025913960400191505060405180910390fd5b600080610767610d90565b5091509150816dffffffffffffffffffffffffffff168710801561079a5750806dffffffffffffffffffffffffffff1686105b6107ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612b786021913960400191505060405180910390fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061085457508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108bf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f556e697377617056323a20494e56414c49445f544f0000000000000000000000604482015290519081900360640190fd5b8a156108d0576108d0828a8d611fdb565b89156108e1576108e1818a8c611fdb565b86156109c3578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109aa57600080fd5b505af11580156109be573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a2f57600080fd5b505afa158015610a43573d6000803e3d6000fd5b505050506040513d6020811015610a5957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b1f576000610b35565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b59576000610b6f565b89856dffffffffffffffffffffffffffff160383035b90506000821180610b805750600081115b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b546024913960400191505060405180910390fd5b6000610c09610beb84600363ffffffff6121e816565b610bfd876103e863ffffffff6121e816565b9063ffffffff61226e16565b90506000610c21610beb84600363ffffffff6121e816565b9050610c59620f4240610c4d6dffffffffffffffffffffffffffff8b8116908b1663ffffffff6121e816565b9063ffffffff6121e816565b610c69838363ffffffff6121e816565b1015610cd657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e697377617056323a204b0000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610ce4848488886122e0565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610df233848461259c565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610ee85773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610eb6908363ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610ef384848461260b565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c5460011461108457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611094610d90565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156111b157600080fd5b505afa1580156111c5573d6000803e3d6000fd5b505050506040513d60208110156111db57600080fd5b505190506000611201836dffffffffffffffffffffffffffff871663ffffffff61226e16565b90506000611225836dffffffffffffffffffffffffffff871663ffffffff61226e16565b9050600061123387876126ec565b600054909150806112705761125c6103e8610bfd611257878763ffffffff6121e816565b612878565b985061126b60006103e86128ca565b6112cd565b6112ca6dffffffffffffffffffffffffffff8916611294868463ffffffff6121e816565b8161129b57fe5b046dffffffffffffffffffffffffffff89166112bd868563ffffffff6121e816565b816112c457fe5b0461297a565b98505b60008911611326576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612bc16028913960400191505060405180910390fd5b6113308a8a6128ca565b61133c86868a8a6122e0565b811561137e5760085461137a906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c5460011461146957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611479610d90565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b1580156114fb57600080fd5b505afa15801561150f573d6000803e3d6000fd5b505050506040513d602081101561152557600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d60208110156115c357600080fd5b5051306000908152600160205260408120549192506115e288886126ec565b600054909150806115f9848763ffffffff6121e816565b8161160057fe5b049a5080611614848663ffffffff6121e816565b8161161b57fe5b04995060008b11801561162e575060008a115b611683576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612b996028913960400191505060405180910390fd5b61168d3084612992565b611698878d8d611fdb565b6116a3868d8c611fdb565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156117ab57600080fd5b505afa1580156117bf573d6000803e3d6000fd5b505050506040513d60208110156117d557600080fd5b505193506117e585858b8b6122e0565b811561182757600854611823906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b604080518c8152602081018c9052815173ffffffffffffffffffffffffffffffffffffffff8f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b6000610df233848461260b565b6103e881565b600c5460011461194f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9485169490931692611a2b9285928792611a26926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d6020811015611a1857600080fd5b50519063ffffffff61226e16565b611fdb565b600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611aca9284928792611a26926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b42841015611b7b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015611cdc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590611d5757508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611dc257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b611dcd89898961259c565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c54600114611e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611fd49273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611edd57600080fd5b505afa158015611ef1573d6000803e3d6000fd5b505050506040513d6020811015611f0757600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611f7a57600080fd5b505afa158015611f8e573d6000803e3d6000fd5b505050506040513d6020811015611fa457600080fd5b50516008546dffffffffffffffffffffffffffff808216916e0100000000000000000000000000009004166122e0565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b602083106120e157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016120a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612143576040519150601f19603f3d011682016040523d82523d6000602084013e612148565b606091505b5091509150818015612176575080511580612176575080806020019051602081101561217357600080fd5b50515b6121e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f556e697377617056323a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b60008115806122035750508082028282828161220057fe5b04145b610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061230c57506dffffffffffffffffffffffffffff8311155b61237757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f556e697377617056323a204f564552464c4f5700000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c0100000000000000000000000000000000000000000000000000000000900481168203908116158015906123c757506dffffffffffffffffffffffffffff841615155b80156123e257506dffffffffffffffffffffffffffff831615155b15612492578063ffffffff16612425856123fb86612a57565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612a7b16565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116612465846123fb87612a57565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054612641908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054612683908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561275757600080fd5b505afa15801561276b573d6000803e3d6000fd5b505050506040513d602081101561278157600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff821615801594509192509061286457801561285f5760006127d86112576dffffffffffffffffffffffffffff88811690881663ffffffff6121e816565b905060006127e583612878565b90508082111561285c576000612813612804848463ffffffff61226e16565b6000549063ffffffff6121e816565b905060006128388361282c86600563ffffffff6121e816565b9063ffffffff612abc16565b9050600081838161284557fe5b04905080156128585761285887826128ca565b5050505b50505b612870565b8015612870576000600b555b505092915050565b600060038211156128bb575080600160028204015b818110156128b5578091506002818285816128a457fe5b0401816128ad57fe5b04905061288d565b506128c5565b81156128c5575060015b919050565b6000546128dd908263ffffffff612abc16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612915908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612989578161298b565b825b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020546129c8908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612a02908263ffffffff61226e16565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612ab457fe5b049392505050565b80820182811015610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe556e697377617056323a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f4c4951554944495459556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4255524e4544556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a72315820841b93a7dff584da07aecb7efe1de139d1b94052d48051f920879ff29f44c0f264736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429a265627a7a7231582077bc274fa98d252ff2309addaae7f2e624d726c5087635460bbf380e8727721864736f6c63430005100032", -} - -// UniswapV2FactoryABI is the input ABI used to generate the binding from. -// Deprecated: Use UniswapV2FactoryMetaData.ABI instead. -var UniswapV2FactoryABI = UniswapV2FactoryMetaData.ABI - -// UniswapV2FactoryBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UniswapV2FactoryMetaData.Bin instead. -var UniswapV2FactoryBin = UniswapV2FactoryMetaData.Bin - -// DeployUniswapV2Factory deploys a new Ethereum contract, binding an instance of UniswapV2Factory to it. -func DeployUniswapV2Factory(auth *bind.TransactOpts, backend bind.ContractBackend, _feeToSetter common.Address) (common.Address, *types.Transaction, *UniswapV2Factory, error) { - parsed, err := UniswapV2FactoryMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UniswapV2FactoryBin), backend, _feeToSetter) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UniswapV2Factory{UniswapV2FactoryCaller: UniswapV2FactoryCaller{contract: contract}, UniswapV2FactoryTransactor: UniswapV2FactoryTransactor{contract: contract}, UniswapV2FactoryFilterer: UniswapV2FactoryFilterer{contract: contract}}, nil -} - -// UniswapV2Factory is an auto generated Go binding around an Ethereum contract. -type UniswapV2Factory struct { - UniswapV2FactoryCaller // Read-only binding to the contract - UniswapV2FactoryTransactor // Write-only binding to the contract - UniswapV2FactoryFilterer // Log filterer for contract events -} - -// UniswapV2FactoryCaller is an auto generated read-only Go binding around an Ethereum contract. -type UniswapV2FactoryCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2FactoryTransactor is an auto generated write-only Go binding around an Ethereum contract. -type UniswapV2FactoryTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2FactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniswapV2FactoryFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2FactorySession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniswapV2FactorySession struct { - Contract *UniswapV2Factory // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2FactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniswapV2FactoryCallerSession struct { - Contract *UniswapV2FactoryCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniswapV2FactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniswapV2FactoryTransactorSession struct { - Contract *UniswapV2FactoryTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2FactoryRaw is an auto generated low-level Go binding around an Ethereum contract. -type UniswapV2FactoryRaw struct { - Contract *UniswapV2Factory // Generic contract binding to access the raw methods on -} - -// UniswapV2FactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniswapV2FactoryCallerRaw struct { - Contract *UniswapV2FactoryCaller // Generic read-only contract binding to access the raw methods on -} - -// UniswapV2FactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniswapV2FactoryTransactorRaw struct { - Contract *UniswapV2FactoryTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniswapV2Factory creates a new instance of UniswapV2Factory, bound to a specific deployed contract. -func NewUniswapV2Factory(address common.Address, backend bind.ContractBackend) (*UniswapV2Factory, error) { - contract, err := bindUniswapV2Factory(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniswapV2Factory{UniswapV2FactoryCaller: UniswapV2FactoryCaller{contract: contract}, UniswapV2FactoryTransactor: UniswapV2FactoryTransactor{contract: contract}, UniswapV2FactoryFilterer: UniswapV2FactoryFilterer{contract: contract}}, nil -} - -// NewUniswapV2FactoryCaller creates a new read-only instance of UniswapV2Factory, bound to a specific deployed contract. -func NewUniswapV2FactoryCaller(address common.Address, caller bind.ContractCaller) (*UniswapV2FactoryCaller, error) { - contract, err := bindUniswapV2Factory(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniswapV2FactoryCaller{contract: contract}, nil -} - -// NewUniswapV2FactoryTransactor creates a new write-only instance of UniswapV2Factory, bound to a specific deployed contract. -func NewUniswapV2FactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV2FactoryTransactor, error) { - contract, err := bindUniswapV2Factory(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniswapV2FactoryTransactor{contract: contract}, nil -} - -// NewUniswapV2FactoryFilterer creates a new log filterer instance of UniswapV2Factory, bound to a specific deployed contract. -func NewUniswapV2FactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV2FactoryFilterer, error) { - contract, err := bindUniswapV2Factory(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniswapV2FactoryFilterer{contract: contract}, nil -} - -// bindUniswapV2Factory binds a generic wrapper to an already deployed contract. -func bindUniswapV2Factory(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniswapV2FactoryMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Factory *UniswapV2FactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Factory.Contract.UniswapV2FactoryCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Factory *UniswapV2FactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.UniswapV2FactoryTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Factory *UniswapV2FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.UniswapV2FactoryTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Factory *UniswapV2FactoryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Factory.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Factory *UniswapV2FactoryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Factory *UniswapV2FactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.contract.Transact(opts, method, params...) -} - -// AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. -// -// Solidity: function allPairs(uint256 ) view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCaller) AllPairs(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) { - var out []interface{} - err := _UniswapV2Factory.contract.Call(opts, &out, "allPairs", arg0) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. -// -// Solidity: function allPairs(uint256 ) view returns(address) -func (_UniswapV2Factory *UniswapV2FactorySession) AllPairs(arg0 *big.Int) (common.Address, error) { - return _UniswapV2Factory.Contract.AllPairs(&_UniswapV2Factory.CallOpts, arg0) -} - -// AllPairs is a free data retrieval call binding the contract method 0x1e3dd18b. -// -// Solidity: function allPairs(uint256 ) view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCallerSession) AllPairs(arg0 *big.Int) (common.Address, error) { - return _UniswapV2Factory.Contract.AllPairs(&_UniswapV2Factory.CallOpts, arg0) -} - -// AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. -// -// Solidity: function allPairsLength() view returns(uint256) -func (_UniswapV2Factory *UniswapV2FactoryCaller) AllPairsLength(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Factory.contract.Call(opts, &out, "allPairsLength") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. -// -// Solidity: function allPairsLength() view returns(uint256) -func (_UniswapV2Factory *UniswapV2FactorySession) AllPairsLength() (*big.Int, error) { - return _UniswapV2Factory.Contract.AllPairsLength(&_UniswapV2Factory.CallOpts) -} - -// AllPairsLength is a free data retrieval call binding the contract method 0x574f2ba3. -// -// Solidity: function allPairsLength() view returns(uint256) -func (_UniswapV2Factory *UniswapV2FactoryCallerSession) AllPairsLength() (*big.Int, error) { - return _UniswapV2Factory.Contract.AllPairsLength(&_UniswapV2Factory.CallOpts) -} - -// FeeTo is a free data retrieval call binding the contract method 0x017e7e58. -// -// Solidity: function feeTo() view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCaller) FeeTo(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _UniswapV2Factory.contract.Call(opts, &out, "feeTo") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FeeTo is a free data retrieval call binding the contract method 0x017e7e58. -// -// Solidity: function feeTo() view returns(address) -func (_UniswapV2Factory *UniswapV2FactorySession) FeeTo() (common.Address, error) { - return _UniswapV2Factory.Contract.FeeTo(&_UniswapV2Factory.CallOpts) -} - -// FeeTo is a free data retrieval call binding the contract method 0x017e7e58. -// -// Solidity: function feeTo() view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCallerSession) FeeTo() (common.Address, error) { - return _UniswapV2Factory.Contract.FeeTo(&_UniswapV2Factory.CallOpts) -} - -// FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. -// -// Solidity: function feeToSetter() view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCaller) FeeToSetter(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _UniswapV2Factory.contract.Call(opts, &out, "feeToSetter") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. -// -// Solidity: function feeToSetter() view returns(address) -func (_UniswapV2Factory *UniswapV2FactorySession) FeeToSetter() (common.Address, error) { - return _UniswapV2Factory.Contract.FeeToSetter(&_UniswapV2Factory.CallOpts) -} - -// FeeToSetter is a free data retrieval call binding the contract method 0x094b7415. -// -// Solidity: function feeToSetter() view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCallerSession) FeeToSetter() (common.Address, error) { - return _UniswapV2Factory.Contract.FeeToSetter(&_UniswapV2Factory.CallOpts) -} - -// GetPair is a free data retrieval call binding the contract method 0xe6a43905. -// -// Solidity: function getPair(address , address ) view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCaller) GetPair(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error) { - var out []interface{} - err := _UniswapV2Factory.contract.Call(opts, &out, "getPair", arg0, arg1) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetPair is a free data retrieval call binding the contract method 0xe6a43905. -// -// Solidity: function getPair(address , address ) view returns(address) -func (_UniswapV2Factory *UniswapV2FactorySession) GetPair(arg0 common.Address, arg1 common.Address) (common.Address, error) { - return _UniswapV2Factory.Contract.GetPair(&_UniswapV2Factory.CallOpts, arg0, arg1) -} - -// GetPair is a free data retrieval call binding the contract method 0xe6a43905. -// -// Solidity: function getPair(address , address ) view returns(address) -func (_UniswapV2Factory *UniswapV2FactoryCallerSession) GetPair(arg0 common.Address, arg1 common.Address) (common.Address, error) { - return _UniswapV2Factory.Contract.GetPair(&_UniswapV2Factory.CallOpts, arg0, arg1) -} - -// CreatePair is a paid mutator transaction binding the contract method 0xc9c65396. -// -// Solidity: function createPair(address tokenA, address tokenB) returns(address pair) -func (_UniswapV2Factory *UniswapV2FactoryTransactor) CreatePair(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.contract.Transact(opts, "createPair", tokenA, tokenB) -} - -// CreatePair is a paid mutator transaction binding the contract method 0xc9c65396. -// -// Solidity: function createPair(address tokenA, address tokenB) returns(address pair) -func (_UniswapV2Factory *UniswapV2FactorySession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.CreatePair(&_UniswapV2Factory.TransactOpts, tokenA, tokenB) -} - -// CreatePair is a paid mutator transaction binding the contract method 0xc9c65396. -// -// Solidity: function createPair(address tokenA, address tokenB) returns(address pair) -func (_UniswapV2Factory *UniswapV2FactoryTransactorSession) CreatePair(tokenA common.Address, tokenB common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.CreatePair(&_UniswapV2Factory.TransactOpts, tokenA, tokenB) -} - -// SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed. -// -// Solidity: function setFeeTo(address _feeTo) returns() -func (_UniswapV2Factory *UniswapV2FactoryTransactor) SetFeeTo(opts *bind.TransactOpts, _feeTo common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.contract.Transact(opts, "setFeeTo", _feeTo) -} - -// SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed. -// -// Solidity: function setFeeTo(address _feeTo) returns() -func (_UniswapV2Factory *UniswapV2FactorySession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.SetFeeTo(&_UniswapV2Factory.TransactOpts, _feeTo) -} - -// SetFeeTo is a paid mutator transaction binding the contract method 0xf46901ed. -// -// Solidity: function setFeeTo(address _feeTo) returns() -func (_UniswapV2Factory *UniswapV2FactoryTransactorSession) SetFeeTo(_feeTo common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.SetFeeTo(&_UniswapV2Factory.TransactOpts, _feeTo) -} - -// SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6. -// -// Solidity: function setFeeToSetter(address _feeToSetter) returns() -func (_UniswapV2Factory *UniswapV2FactoryTransactor) SetFeeToSetter(opts *bind.TransactOpts, _feeToSetter common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.contract.Transact(opts, "setFeeToSetter", _feeToSetter) -} - -// SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6. -// -// Solidity: function setFeeToSetter(address _feeToSetter) returns() -func (_UniswapV2Factory *UniswapV2FactorySession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.SetFeeToSetter(&_UniswapV2Factory.TransactOpts, _feeToSetter) -} - -// SetFeeToSetter is a paid mutator transaction binding the contract method 0xa2e74af6. -// -// Solidity: function setFeeToSetter(address _feeToSetter) returns() -func (_UniswapV2Factory *UniswapV2FactoryTransactorSession) SetFeeToSetter(_feeToSetter common.Address) (*types.Transaction, error) { - return _UniswapV2Factory.Contract.SetFeeToSetter(&_UniswapV2Factory.TransactOpts, _feeToSetter) -} - -// UniswapV2FactoryPairCreatedIterator is returned from FilterPairCreated and is used to iterate over the raw logs and unpacked data for PairCreated events raised by the UniswapV2Factory contract. -type UniswapV2FactoryPairCreatedIterator struct { - Event *UniswapV2FactoryPairCreated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2FactoryPairCreatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2FactoryPairCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2FactoryPairCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2FactoryPairCreatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2FactoryPairCreatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2FactoryPairCreated represents a PairCreated event raised by the UniswapV2Factory contract. -type UniswapV2FactoryPairCreated struct { - Token0 common.Address - Token1 common.Address - Pair common.Address - Arg3 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPairCreated is a free log retrieval operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9. -// -// Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3) -func (_UniswapV2Factory *UniswapV2FactoryFilterer) FilterPairCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*UniswapV2FactoryPairCreatedIterator, error) { - - var token0Rule []interface{} - for _, token0Item := range token0 { - token0Rule = append(token0Rule, token0Item) - } - var token1Rule []interface{} - for _, token1Item := range token1 { - token1Rule = append(token1Rule, token1Item) - } - - logs, sub, err := _UniswapV2Factory.contract.FilterLogs(opts, "PairCreated", token0Rule, token1Rule) - if err != nil { - return nil, err - } - return &UniswapV2FactoryPairCreatedIterator{contract: _UniswapV2Factory.contract, event: "PairCreated", logs: logs, sub: sub}, nil -} - -// WatchPairCreated is a free log subscription operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9. -// -// Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3) -func (_UniswapV2Factory *UniswapV2FactoryFilterer) WatchPairCreated(opts *bind.WatchOpts, sink chan<- *UniswapV2FactoryPairCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error) { - - var token0Rule []interface{} - for _, token0Item := range token0 { - token0Rule = append(token0Rule, token0Item) - } - var token1Rule []interface{} - for _, token1Item := range token1 { - token1Rule = append(token1Rule, token1Item) - } - - logs, sub, err := _UniswapV2Factory.contract.WatchLogs(opts, "PairCreated", token0Rule, token1Rule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2FactoryPairCreated) - if err := _UniswapV2Factory.contract.UnpackLog(event, "PairCreated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePairCreated is a log parse operation binding the contract event 0x0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9. -// -// Solidity: event PairCreated(address indexed token0, address indexed token1, address pair, uint256 arg3) -func (_UniswapV2Factory *UniswapV2FactoryFilterer) ParsePairCreated(log types.Log) (*UniswapV2FactoryPairCreated, error) { - event := new(UniswapV2FactoryPairCreated) - if err := _UniswapV2Factory.contract.UnpackLog(event, "PairCreated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-core/contracts/uniswapv2pair.sol/uniswapv2pair.go b/v1/pkg/uniswap/v2-core/contracts/uniswapv2pair.sol/uniswapv2pair.go deleted file mode 100644 index e96f23912..000000000 --- a/v1/pkg/uniswap/v2-core/contracts/uniswapv2pair.sol/uniswapv2pair.go +++ /dev/null @@ -1,1864 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uniswapv2pair - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UniswapV2PairMetaData contains all meta data concerning the UniswapV2Pair contract. -var UniswapV2PairMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"payable\":false,\"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\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"}],\"name\":\"Sync\",\"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\"},{\"constant\":true,\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"MINIMUM_LIQUIDITY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"_reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"_reserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"_blockTimestampLast\",\"type\":\"uint32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_token1\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"kLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"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\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"price0CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"price1CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"skim\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", - Bin: "0x60806040526001600c5534801561001557600080fd5b506040514690806052612d228239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b03191633179055612c1d806101056000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a7146105da578063d505accf146105e2578063dd62ed3e14610640578063fff6cae91461067b576101b9565b8063ba9a7a5614610597578063bc25cf771461059f578063c45a0155146105d2576101b9565b80637ecebe00116100d35780637ecebe00146104d757806389afcb441461050a57806395d89b4114610556578063a9059cbb1461055e576101b9565b80636a6278421461046957806370a082311461049c5780637464fc3d146104cf576101b9565b806323b872dd116101665780633644e515116101405780633644e51514610416578063485cc9551461041e5780635909c0d5146104595780635a3d549314610461576101b9565b806323b872dd146103ad57806330adf81f146103f0578063313ce567146103f8576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610683565b005b610261610d57565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610d90565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610de5565b604080519115158252519081900360200190f35b61036a610dfc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e18565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e1e565b61039b610efd565b610400610f21565b6040805160ff9092168252519081900360200190f35b61039b610f26565b6102576004803603604081101561043457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f2c565b61039b611005565b61039b61100b565b61039b6004803603602081101561047f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611011565b61039b600480360360208110156104b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113cb565b61039b6113dd565b61039b600480360360208110156104ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113e3565b61053d6004803603602081101561052057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f5565b6040805192835260208301919091528051918290030190f35b610261611892565b61034e6004803603604081101561057457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356118cb565b61039b6118d8565b610257600480360360208110156105b557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118de565b61036a611ad4565b61036a611af0565b610257600480360360e08110156105f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611b0c565b61039b6004803603604081101561065657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611dd8565b610257611df5565b600c546001146106f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107075750600084115b61075c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612b2f6025913960400191505060405180910390fd5b600080610767610d90565b5091509150816dffffffffffffffffffffffffffff168710801561079a5750806dffffffffffffffffffffffffffff1686105b6107ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612b786021913960400191505060405180910390fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061085457508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108bf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f556e697377617056323a20494e56414c49445f544f0000000000000000000000604482015290519081900360640190fd5b8a156108d0576108d0828a8d611fdb565b89156108e1576108e1818a8c611fdb565b86156109c3578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109aa57600080fd5b505af11580156109be573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a2f57600080fd5b505afa158015610a43573d6000803e3d6000fd5b505050506040513d6020811015610a5957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b1f576000610b35565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b59576000610b6f565b89856dffffffffffffffffffffffffffff160383035b90506000821180610b805750600081115b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b546024913960400191505060405180910390fd5b6000610c09610beb84600363ffffffff6121e816565b610bfd876103e863ffffffff6121e816565b9063ffffffff61226e16565b90506000610c21610beb84600363ffffffff6121e816565b9050610c59620f4240610c4d6dffffffffffffffffffffffffffff8b8116908b1663ffffffff6121e816565b9063ffffffff6121e816565b610c69838363ffffffff6121e816565b1015610cd657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e697377617056323a204b0000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610ce4848488886122e0565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610df233848461259c565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610ee85773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610eb6908363ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610ef384848461260b565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c5460011461108457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611094610d90565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156111b157600080fd5b505afa1580156111c5573d6000803e3d6000fd5b505050506040513d60208110156111db57600080fd5b505190506000611201836dffffffffffffffffffffffffffff871663ffffffff61226e16565b90506000611225836dffffffffffffffffffffffffffff871663ffffffff61226e16565b9050600061123387876126ec565b600054909150806112705761125c6103e8610bfd611257878763ffffffff6121e816565b612878565b985061126b60006103e86128ca565b6112cd565b6112ca6dffffffffffffffffffffffffffff8916611294868463ffffffff6121e816565b8161129b57fe5b046dffffffffffffffffffffffffffff89166112bd868563ffffffff6121e816565b816112c457fe5b0461297a565b98505b60008911611326576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612bc16028913960400191505060405180910390fd5b6113308a8a6128ca565b61133c86868a8a6122e0565b811561137e5760085461137a906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c5460011461146957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611479610d90565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b1580156114fb57600080fd5b505afa15801561150f573d6000803e3d6000fd5b505050506040513d602081101561152557600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d60208110156115c357600080fd5b5051306000908152600160205260408120549192506115e288886126ec565b600054909150806115f9848763ffffffff6121e816565b8161160057fe5b049a5080611614848663ffffffff6121e816565b8161161b57fe5b04995060008b11801561162e575060008a115b611683576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612b996028913960400191505060405180910390fd5b61168d3084612992565b611698878d8d611fdb565b6116a3868d8c611fdb565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156117ab57600080fd5b505afa1580156117bf573d6000803e3d6000fd5b505050506040513d60208110156117d557600080fd5b505193506117e585858b8b6122e0565b811561182757600854611823906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b604080518c8152602081018c9052815173ffffffffffffffffffffffffffffffffffffffff8f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b6000610df233848461260b565b6103e881565b600c5460011461194f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9485169490931692611a2b9285928792611a26926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d6020811015611a1857600080fd5b50519063ffffffff61226e16565b611fdb565b600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611aca9284928792611a26926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b42841015611b7b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015611cdc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590611d5757508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611dc257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b611dcd89898961259c565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c54600114611e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611fd49273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611edd57600080fd5b505afa158015611ef1573d6000803e3d6000fd5b505050506040513d6020811015611f0757600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611f7a57600080fd5b505afa158015611f8e573d6000803e3d6000fd5b505050506040513d6020811015611fa457600080fd5b50516008546dffffffffffffffffffffffffffff808216916e0100000000000000000000000000009004166122e0565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b602083106120e157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016120a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612143576040519150601f19603f3d011682016040523d82523d6000602084013e612148565b606091505b5091509150818015612176575080511580612176575080806020019051602081101561217357600080fd5b50515b6121e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f556e697377617056323a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b60008115806122035750508082028282828161220057fe5b04145b610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061230c57506dffffffffffffffffffffffffffff8311155b61237757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f556e697377617056323a204f564552464c4f5700000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c0100000000000000000000000000000000000000000000000000000000900481168203908116158015906123c757506dffffffffffffffffffffffffffff841615155b80156123e257506dffffffffffffffffffffffffffff831615155b15612492578063ffffffff16612425856123fb86612a57565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612a7b16565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116612465846123fb87612a57565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054612641908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054612683908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561275757600080fd5b505afa15801561276b573d6000803e3d6000fd5b505050506040513d602081101561278157600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff821615801594509192509061286457801561285f5760006127d86112576dffffffffffffffffffffffffffff88811690881663ffffffff6121e816565b905060006127e583612878565b90508082111561285c576000612813612804848463ffffffff61226e16565b6000549063ffffffff6121e816565b905060006128388361282c86600563ffffffff6121e816565b9063ffffffff612abc16565b9050600081838161284557fe5b04905080156128585761285887826128ca565b5050505b50505b612870565b8015612870576000600b555b505092915050565b600060038211156128bb575080600160028204015b818110156128b5578091506002818285816128a457fe5b0401816128ad57fe5b04905061288d565b506128c5565b81156128c5575060015b919050565b6000546128dd908263ffffffff612abc16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612915908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612989578161298b565b825b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020546129c8908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612a02908263ffffffff61226e16565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612ab457fe5b049392505050565b80820182811015610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe556e697377617056323a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f4c4951554944495459556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4255524e4544556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a72315820841b93a7dff584da07aecb7efe1de139d1b94052d48051f920879ff29f44c0f264736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429", -} - -// UniswapV2PairABI is the input ABI used to generate the binding from. -// Deprecated: Use UniswapV2PairMetaData.ABI instead. -var UniswapV2PairABI = UniswapV2PairMetaData.ABI - -// UniswapV2PairBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UniswapV2PairMetaData.Bin instead. -var UniswapV2PairBin = UniswapV2PairMetaData.Bin - -// DeployUniswapV2Pair deploys a new Ethereum contract, binding an instance of UniswapV2Pair to it. -func DeployUniswapV2Pair(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *UniswapV2Pair, error) { - parsed, err := UniswapV2PairMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UniswapV2PairBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UniswapV2Pair{UniswapV2PairCaller: UniswapV2PairCaller{contract: contract}, UniswapV2PairTransactor: UniswapV2PairTransactor{contract: contract}, UniswapV2PairFilterer: UniswapV2PairFilterer{contract: contract}}, nil -} - -// UniswapV2Pair is an auto generated Go binding around an Ethereum contract. -type UniswapV2Pair struct { - UniswapV2PairCaller // Read-only binding to the contract - UniswapV2PairTransactor // Write-only binding to the contract - UniswapV2PairFilterer // Log filterer for contract events -} - -// UniswapV2PairCaller is an auto generated read-only Go binding around an Ethereum contract. -type UniswapV2PairCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2PairTransactor is an auto generated write-only Go binding around an Ethereum contract. -type UniswapV2PairTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2PairFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniswapV2PairFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2PairSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniswapV2PairSession struct { - Contract *UniswapV2Pair // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2PairCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniswapV2PairCallerSession struct { - Contract *UniswapV2PairCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniswapV2PairTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniswapV2PairTransactorSession struct { - Contract *UniswapV2PairTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2PairRaw is an auto generated low-level Go binding around an Ethereum contract. -type UniswapV2PairRaw struct { - Contract *UniswapV2Pair // Generic contract binding to access the raw methods on -} - -// UniswapV2PairCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniswapV2PairCallerRaw struct { - Contract *UniswapV2PairCaller // Generic read-only contract binding to access the raw methods on -} - -// UniswapV2PairTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniswapV2PairTransactorRaw struct { - Contract *UniswapV2PairTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniswapV2Pair creates a new instance of UniswapV2Pair, bound to a specific deployed contract. -func NewUniswapV2Pair(address common.Address, backend bind.ContractBackend) (*UniswapV2Pair, error) { - contract, err := bindUniswapV2Pair(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniswapV2Pair{UniswapV2PairCaller: UniswapV2PairCaller{contract: contract}, UniswapV2PairTransactor: UniswapV2PairTransactor{contract: contract}, UniswapV2PairFilterer: UniswapV2PairFilterer{contract: contract}}, nil -} - -// NewUniswapV2PairCaller creates a new read-only instance of UniswapV2Pair, bound to a specific deployed contract. -func NewUniswapV2PairCaller(address common.Address, caller bind.ContractCaller) (*UniswapV2PairCaller, error) { - contract, err := bindUniswapV2Pair(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniswapV2PairCaller{contract: contract}, nil -} - -// NewUniswapV2PairTransactor creates a new write-only instance of UniswapV2Pair, bound to a specific deployed contract. -func NewUniswapV2PairTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV2PairTransactor, error) { - contract, err := bindUniswapV2Pair(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniswapV2PairTransactor{contract: contract}, nil -} - -// NewUniswapV2PairFilterer creates a new log filterer instance of UniswapV2Pair, bound to a specific deployed contract. -func NewUniswapV2PairFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV2PairFilterer, error) { - contract, err := bindUniswapV2Pair(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniswapV2PairFilterer{contract: contract}, nil -} - -// bindUniswapV2Pair binds a generic wrapper to an already deployed contract. -func bindUniswapV2Pair(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniswapV2PairMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Pair *UniswapV2PairRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Pair.Contract.UniswapV2PairCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Pair *UniswapV2PairRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.UniswapV2PairTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Pair *UniswapV2PairRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.UniswapV2PairTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Pair *UniswapV2PairCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Pair.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Pair *UniswapV2PairTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Pair *UniswapV2PairTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.contract.Transact(opts, method, params...) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_UniswapV2Pair *UniswapV2PairCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "DOMAIN_SEPARATOR") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_UniswapV2Pair *UniswapV2PairSession) DOMAINSEPARATOR() ([32]byte, error) { - return _UniswapV2Pair.Contract.DOMAINSEPARATOR(&_UniswapV2Pair.CallOpts) -} - -// DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515. -// -// Solidity: function DOMAIN_SEPARATOR() view returns(bytes32) -func (_UniswapV2Pair *UniswapV2PairCallerSession) DOMAINSEPARATOR() ([32]byte, error) { - return _UniswapV2Pair.Contract.DOMAINSEPARATOR(&_UniswapV2Pair.CallOpts) -} - -// MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. -// -// Solidity: function MINIMUM_LIQUIDITY() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "MINIMUM_LIQUIDITY") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. -// -// Solidity: function MINIMUM_LIQUIDITY() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) MINIMUMLIQUIDITY() (*big.Int, error) { - return _UniswapV2Pair.Contract.MINIMUMLIQUIDITY(&_UniswapV2Pair.CallOpts) -} - -// MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56. -// -// Solidity: function MINIMUM_LIQUIDITY() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) MINIMUMLIQUIDITY() (*big.Int, error) { - return _UniswapV2Pair.Contract.MINIMUMLIQUIDITY(&_UniswapV2Pair.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() view returns(bytes32) -func (_UniswapV2Pair *UniswapV2PairCaller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "PERMIT_TYPEHASH") - - if err != nil { - return *new([32]byte), err - } - - out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) - - return out0, err - -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() view returns(bytes32) -func (_UniswapV2Pair *UniswapV2PairSession) PERMITTYPEHASH() ([32]byte, error) { - return _UniswapV2Pair.Contract.PERMITTYPEHASH(&_UniswapV2Pair.CallOpts) -} - -// PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f. -// -// Solidity: function PERMIT_TYPEHASH() view returns(bytes32) -func (_UniswapV2Pair *UniswapV2PairCallerSession) PERMITTYPEHASH() ([32]byte, error) { - return _UniswapV2Pair.Contract.PERMITTYPEHASH(&_UniswapV2Pair.CallOpts) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "allowance", arg0, arg1) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) { - return _UniswapV2Pair.Contract.Allowance(&_UniswapV2Pair.CallOpts, arg0, arg1) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address , address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error) { - return _UniswapV2Pair.Contract.Allowance(&_UniswapV2Pair.CallOpts, arg0, arg1) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "balanceOf", arg0) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) BalanceOf(arg0 common.Address) (*big.Int, error) { - return _UniswapV2Pair.Contract.BalanceOf(&_UniswapV2Pair.CallOpts, arg0) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error) { - return _UniswapV2Pair.Contract.BalanceOf(&_UniswapV2Pair.CallOpts, arg0) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_UniswapV2Pair *UniswapV2PairCaller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_UniswapV2Pair *UniswapV2PairSession) Decimals() (uint8, error) { - return _UniswapV2Pair.Contract.Decimals(&_UniswapV2Pair.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Decimals() (uint8, error) { - return _UniswapV2Pair.Contract.Decimals(&_UniswapV2Pair.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_UniswapV2Pair *UniswapV2PairCaller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_UniswapV2Pair *UniswapV2PairSession) Factory() (common.Address, error) { - return _UniswapV2Pair.Contract.Factory(&_UniswapV2Pair.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Factory() (common.Address, error) { - return _UniswapV2Pair.Contract.Factory(&_UniswapV2Pair.CallOpts) -} - -// GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. -// -// Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) -func (_UniswapV2Pair *UniswapV2PairCaller) GetReserves(opts *bind.CallOpts) (struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 -}, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "getReserves") - - outstruct := new(struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 - }) - if err != nil { - return *outstruct, err - } - - outstruct.Reserve0 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Reserve1 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.BlockTimestampLast = *abi.ConvertType(out[2], new(uint32)).(*uint32) - - return *outstruct, err - -} - -// GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. -// -// Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) -func (_UniswapV2Pair *UniswapV2PairSession) GetReserves() (struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 -}, error) { - return _UniswapV2Pair.Contract.GetReserves(&_UniswapV2Pair.CallOpts) -} - -// GetReserves is a free data retrieval call binding the contract method 0x0902f1ac. -// -// Solidity: function getReserves() view returns(uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast) -func (_UniswapV2Pair *UniswapV2PairCallerSession) GetReserves() (struct { - Reserve0 *big.Int - Reserve1 *big.Int - BlockTimestampLast uint32 -}, error) { - return _UniswapV2Pair.Contract.GetReserves(&_UniswapV2Pair.CallOpts) -} - -// KLast is a free data retrieval call binding the contract method 0x7464fc3d. -// -// Solidity: function kLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) KLast(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "kLast") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// KLast is a free data retrieval call binding the contract method 0x7464fc3d. -// -// Solidity: function kLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) KLast() (*big.Int, error) { - return _UniswapV2Pair.Contract.KLast(&_UniswapV2Pair.CallOpts) -} - -// KLast is a free data retrieval call binding the contract method 0x7464fc3d. -// -// Solidity: function kLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) KLast() (*big.Int, error) { - return _UniswapV2Pair.Contract.KLast(&_UniswapV2Pair.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_UniswapV2Pair *UniswapV2PairCaller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_UniswapV2Pair *UniswapV2PairSession) Name() (string, error) { - return _UniswapV2Pair.Contract.Name(&_UniswapV2Pair.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Name() (string, error) { - return _UniswapV2Pair.Contract.Name(&_UniswapV2Pair.CallOpts) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "nonces", arg0) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) Nonces(arg0 common.Address) (*big.Int, error) { - return _UniswapV2Pair.Contract.Nonces(&_UniswapV2Pair.CallOpts, arg0) -} - -// Nonces is a free data retrieval call binding the contract method 0x7ecebe00. -// -// Solidity: function nonces(address ) view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Nonces(arg0 common.Address) (*big.Int, error) { - return _UniswapV2Pair.Contract.Nonces(&_UniswapV2Pair.CallOpts, arg0) -} - -// Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5. -// -// Solidity: function price0CumulativeLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) Price0CumulativeLast(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "price0CumulativeLast") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5. -// -// Solidity: function price0CumulativeLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) Price0CumulativeLast() (*big.Int, error) { - return _UniswapV2Pair.Contract.Price0CumulativeLast(&_UniswapV2Pair.CallOpts) -} - -// Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5. -// -// Solidity: function price0CumulativeLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Price0CumulativeLast() (*big.Int, error) { - return _UniswapV2Pair.Contract.Price0CumulativeLast(&_UniswapV2Pair.CallOpts) -} - -// Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493. -// -// Solidity: function price1CumulativeLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) Price1CumulativeLast(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "price1CumulativeLast") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493. -// -// Solidity: function price1CumulativeLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) Price1CumulativeLast() (*big.Int, error) { - return _UniswapV2Pair.Contract.Price1CumulativeLast(&_UniswapV2Pair.CallOpts) -} - -// Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493. -// -// Solidity: function price1CumulativeLast() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Price1CumulativeLast() (*big.Int, error) { - return _UniswapV2Pair.Contract.Price1CumulativeLast(&_UniswapV2Pair.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_UniswapV2Pair *UniswapV2PairCaller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_UniswapV2Pair *UniswapV2PairSession) Symbol() (string, error) { - return _UniswapV2Pair.Contract.Symbol(&_UniswapV2Pair.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Symbol() (string, error) { - return _UniswapV2Pair.Contract.Symbol(&_UniswapV2Pair.CallOpts) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_UniswapV2Pair *UniswapV2PairCaller) Token0(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "token0") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_UniswapV2Pair *UniswapV2PairSession) Token0() (common.Address, error) { - return _UniswapV2Pair.Contract.Token0(&_UniswapV2Pair.CallOpts) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Token0() (common.Address, error) { - return _UniswapV2Pair.Contract.Token0(&_UniswapV2Pair.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_UniswapV2Pair *UniswapV2PairCaller) Token1(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "token1") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_UniswapV2Pair *UniswapV2PairSession) Token1() (common.Address, error) { - return _UniswapV2Pair.Contract.Token1(&_UniswapV2Pair.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_UniswapV2Pair *UniswapV2PairCallerSession) Token1() (common.Address, error) { - return _UniswapV2Pair.Contract.Token1(&_UniswapV2Pair.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Pair.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairSession) TotalSupply() (*big.Int, error) { - return _UniswapV2Pair.Contract.TotalSupply(&_UniswapV2Pair.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_UniswapV2Pair *UniswapV2PairCallerSession) TotalSupply() (*big.Int, error) { - return _UniswapV2Pair.Contract.TotalSupply(&_UniswapV2Pair.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "approve", spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Approve(&_UniswapV2Pair.TransactOpts, spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Approve(&_UniswapV2Pair.TransactOpts, spender, value) -} - -// Burn is a paid mutator transaction binding the contract method 0x89afcb44. -// -// Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1) -func (_UniswapV2Pair *UniswapV2PairTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "burn", to) -} - -// Burn is a paid mutator transaction binding the contract method 0x89afcb44. -// -// Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1) -func (_UniswapV2Pair *UniswapV2PairSession) Burn(to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Burn(&_UniswapV2Pair.TransactOpts, to) -} - -// Burn is a paid mutator transaction binding the contract method 0x89afcb44. -// -// Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1) -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Burn(to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Burn(&_UniswapV2Pair.TransactOpts, to) -} - -// Initialize is a paid mutator transaction binding the contract method 0x485cc955. -// -// Solidity: function initialize(address _token0, address _token1) returns() -func (_UniswapV2Pair *UniswapV2PairTransactor) Initialize(opts *bind.TransactOpts, _token0 common.Address, _token1 common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "initialize", _token0, _token1) -} - -// Initialize is a paid mutator transaction binding the contract method 0x485cc955. -// -// Solidity: function initialize(address _token0, address _token1) returns() -func (_UniswapV2Pair *UniswapV2PairSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Initialize(&_UniswapV2Pair.TransactOpts, _token0, _token1) -} - -// Initialize is a paid mutator transaction binding the contract method 0x485cc955. -// -// Solidity: function initialize(address _token0, address _token1) returns() -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Initialize(&_UniswapV2Pair.TransactOpts, _token0, _token1) -} - -// Mint is a paid mutator transaction binding the contract method 0x6a627842. -// -// Solidity: function mint(address to) returns(uint256 liquidity) -func (_UniswapV2Pair *UniswapV2PairTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "mint", to) -} - -// Mint is a paid mutator transaction binding the contract method 0x6a627842. -// -// Solidity: function mint(address to) returns(uint256 liquidity) -func (_UniswapV2Pair *UniswapV2PairSession) Mint(to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Mint(&_UniswapV2Pair.TransactOpts, to) -} - -// Mint is a paid mutator transaction binding the contract method 0x6a627842. -// -// Solidity: function mint(address to) returns(uint256 liquidity) -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Mint(to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Mint(&_UniswapV2Pair.TransactOpts, to) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_UniswapV2Pair *UniswapV2PairTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "permit", owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_UniswapV2Pair *UniswapV2PairSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Permit(&_UniswapV2Pair.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Permit is a paid mutator transaction binding the contract method 0xd505accf. -// -// Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns() -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Permit(&_UniswapV2Pair.TransactOpts, owner, spender, value, deadline, v, r, s) -} - -// Skim is a paid mutator transaction binding the contract method 0xbc25cf77. -// -// Solidity: function skim(address to) returns() -func (_UniswapV2Pair *UniswapV2PairTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "skim", to) -} - -// Skim is a paid mutator transaction binding the contract method 0xbc25cf77. -// -// Solidity: function skim(address to) returns() -func (_UniswapV2Pair *UniswapV2PairSession) Skim(to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Skim(&_UniswapV2Pair.TransactOpts, to) -} - -// Skim is a paid mutator transaction binding the contract method 0xbc25cf77. -// -// Solidity: function skim(address to) returns() -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Skim(to common.Address) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Skim(&_UniswapV2Pair.TransactOpts, to) -} - -// Swap is a paid mutator transaction binding the contract method 0x022c0d9f. -// -// Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns() -func (_UniswapV2Pair *UniswapV2PairTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "swap", amount0Out, amount1Out, to, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x022c0d9f. -// -// Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns() -func (_UniswapV2Pair *UniswapV2PairSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Swap(&_UniswapV2Pair.TransactOpts, amount0Out, amount1Out, to, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x022c0d9f. -// -// Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns() -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Swap(&_UniswapV2Pair.TransactOpts, amount0Out, amount1Out, to, data) -} - -// Sync is a paid mutator transaction binding the contract method 0xfff6cae9. -// -// Solidity: function sync() returns() -func (_UniswapV2Pair *UniswapV2PairTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "sync") -} - -// Sync is a paid mutator transaction binding the contract method 0xfff6cae9. -// -// Solidity: function sync() returns() -func (_UniswapV2Pair *UniswapV2PairSession) Sync() (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Sync(&_UniswapV2Pair.TransactOpts) -} - -// Sync is a paid mutator transaction binding the contract method 0xfff6cae9. -// -// Solidity: function sync() returns() -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Sync() (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Sync(&_UniswapV2Pair.TransactOpts) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "transfer", to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Transfer(&_UniswapV2Pair.TransactOpts, to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.Transfer(&_UniswapV2Pair.TransactOpts, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.contract.Transact(opts, "transferFrom", from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.TransferFrom(&_UniswapV2Pair.TransactOpts, from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_UniswapV2Pair *UniswapV2PairTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _UniswapV2Pair.Contract.TransferFrom(&_UniswapV2Pair.TransactOpts, from, to, value) -} - -// UniswapV2PairApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the UniswapV2Pair contract. -type UniswapV2PairApprovalIterator struct { - Event *UniswapV2PairApproval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2PairApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairApproval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2PairApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2PairApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2PairApproval represents a Approval event raised by the UniswapV2Pair contract. -type UniswapV2PairApproval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_UniswapV2Pair *UniswapV2PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*UniswapV2PairApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _UniswapV2Pair.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &UniswapV2PairApprovalIterator{contract: _UniswapV2Pair.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_UniswapV2Pair *UniswapV2PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UniswapV2PairApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _UniswapV2Pair.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2PairApproval) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_UniswapV2Pair *UniswapV2PairFilterer) ParseApproval(log types.Log) (*UniswapV2PairApproval, error) { - event := new(UniswapV2PairApproval) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// UniswapV2PairBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the UniswapV2Pair contract. -type UniswapV2PairBurnIterator struct { - Event *UniswapV2PairBurn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2PairBurnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2PairBurnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2PairBurnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2PairBurn represents a Burn event raised by the UniswapV2Pair contract. -type UniswapV2PairBurn struct { - Sender common.Address - Amount0 *big.Int - Amount1 *big.Int - To common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterBurn is a free log retrieval operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496. -// -// Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to) -func (_UniswapV2Pair *UniswapV2PairFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*UniswapV2PairBurnIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2Pair.contract.FilterLogs(opts, "Burn", senderRule, toRule) - if err != nil { - return nil, err - } - return &UniswapV2PairBurnIterator{contract: _UniswapV2Pair.contract, event: "Burn", logs: logs, sub: sub}, nil -} - -// WatchBurn is a free log subscription operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496. -// -// Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to) -func (_UniswapV2Pair *UniswapV2PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *UniswapV2PairBurn, sender []common.Address, to []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2Pair.contract.WatchLogs(opts, "Burn", senderRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2PairBurn) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Burn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseBurn is a log parse operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496. -// -// Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to) -func (_UniswapV2Pair *UniswapV2PairFilterer) ParseBurn(log types.Log) (*UniswapV2PairBurn, error) { - event := new(UniswapV2PairBurn) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Burn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// UniswapV2PairMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the UniswapV2Pair contract. -type UniswapV2PairMintIterator struct { - Event *UniswapV2PairMint // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2PairMintIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2PairMintIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2PairMintIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2PairMint represents a Mint event raised by the UniswapV2Pair contract. -type UniswapV2PairMint struct { - Sender common.Address - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f. -// -// Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1) -func (_UniswapV2Pair *UniswapV2PairFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*UniswapV2PairMintIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _UniswapV2Pair.contract.FilterLogs(opts, "Mint", senderRule) - if err != nil { - return nil, err - } - return &UniswapV2PairMintIterator{contract: _UniswapV2Pair.contract, event: "Mint", logs: logs, sub: sub}, nil -} - -// WatchMint is a free log subscription operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f. -// -// Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1) -func (_UniswapV2Pair *UniswapV2PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *UniswapV2PairMint, sender []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - logs, sub, err := _UniswapV2Pair.contract.WatchLogs(opts, "Mint", senderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2PairMint) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Mint", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f. -// -// Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1) -func (_UniswapV2Pair *UniswapV2PairFilterer) ParseMint(log types.Log) (*UniswapV2PairMint, error) { - event := new(UniswapV2PairMint) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Mint", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// UniswapV2PairSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the UniswapV2Pair contract. -type UniswapV2PairSwapIterator struct { - Event *UniswapV2PairSwap // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2PairSwapIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2PairSwapIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2PairSwapIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2PairSwap represents a Swap event raised by the UniswapV2Pair contract. -type UniswapV2PairSwap struct { - Sender common.Address - Amount0In *big.Int - Amount1In *big.Int - Amount0Out *big.Int - Amount1Out *big.Int - To common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSwap is a free log retrieval operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822. -// -// Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to) -func (_UniswapV2Pair *UniswapV2PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*UniswapV2PairSwapIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2Pair.contract.FilterLogs(opts, "Swap", senderRule, toRule) - if err != nil { - return nil, err - } - return &UniswapV2PairSwapIterator{contract: _UniswapV2Pair.contract, event: "Swap", logs: logs, sub: sub}, nil -} - -// WatchSwap is a free log subscription operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822. -// -// Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to) -func (_UniswapV2Pair *UniswapV2PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *UniswapV2PairSwap, sender []common.Address, to []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2Pair.contract.WatchLogs(opts, "Swap", senderRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2PairSwap) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Swap", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSwap is a log parse operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822. -// -// Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to) -func (_UniswapV2Pair *UniswapV2PairFilterer) ParseSwap(log types.Log) (*UniswapV2PairSwap, error) { - event := new(UniswapV2PairSwap) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Swap", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// UniswapV2PairSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the UniswapV2Pair contract. -type UniswapV2PairSyncIterator struct { - Event *UniswapV2PairSync // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2PairSyncIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairSync) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairSync) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2PairSyncIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2PairSyncIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2PairSync represents a Sync event raised by the UniswapV2Pair contract. -type UniswapV2PairSync struct { - Reserve0 *big.Int - Reserve1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1. -// -// Solidity: event Sync(uint112 reserve0, uint112 reserve1) -func (_UniswapV2Pair *UniswapV2PairFilterer) FilterSync(opts *bind.FilterOpts) (*UniswapV2PairSyncIterator, error) { - - logs, sub, err := _UniswapV2Pair.contract.FilterLogs(opts, "Sync") - if err != nil { - return nil, err - } - return &UniswapV2PairSyncIterator{contract: _UniswapV2Pair.contract, event: "Sync", logs: logs, sub: sub}, nil -} - -// WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1. -// -// Solidity: event Sync(uint112 reserve0, uint112 reserve1) -func (_UniswapV2Pair *UniswapV2PairFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *UniswapV2PairSync) (event.Subscription, error) { - - logs, sub, err := _UniswapV2Pair.contract.WatchLogs(opts, "Sync") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2PairSync) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Sync", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1. -// -// Solidity: event Sync(uint112 reserve0, uint112 reserve1) -func (_UniswapV2Pair *UniswapV2PairFilterer) ParseSync(log types.Log) (*UniswapV2PairSync, error) { - event := new(UniswapV2PairSync) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Sync", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// UniswapV2PairTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the UniswapV2Pair contract. -type UniswapV2PairTransferIterator struct { - Event *UniswapV2PairTransfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *UniswapV2PairTransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(UniswapV2PairTransfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *UniswapV2PairTransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *UniswapV2PairTransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// UniswapV2PairTransfer represents a Transfer event raised by the UniswapV2Pair contract. -type UniswapV2PairTransfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_UniswapV2Pair *UniswapV2PairFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*UniswapV2PairTransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2Pair.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &UniswapV2PairTransferIterator{contract: _UniswapV2Pair.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_UniswapV2Pair *UniswapV2PairFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UniswapV2PairTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _UniswapV2Pair.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(UniswapV2PairTransfer) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_UniswapV2Pair *UniswapV2PairFilterer) ParseTransfer(log types.Log) (*UniswapV2PairTransfer, error) { - event := new(UniswapV2PairTransfer) - if err := _UniswapV2Pair.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/ierc20.sol/ierc20.go b/v1/pkg/uniswap/v2-periphery/contracts/interfaces/ierc20.sol/ierc20.go deleted file mode 100644 index 31d0fc1f7..000000000 --- a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/ierc20.sol/ierc20.go +++ /dev/null @@ -1,738 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package ierc20 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IERC20MetaData contains all meta data concerning the IERC20 contract. -var IERC20MetaData = &bind.MetaData{ - 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\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"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\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IERC20ABI is the input ABI used to generate the binding from. -// Deprecated: Use IERC20MetaData.ABI instead. -var IERC20ABI = IERC20MetaData.ABI - -// IERC20 is an auto generated Go binding around an Ethereum contract. -type IERC20 struct { - IERC20Caller // Read-only binding to the contract - IERC20Transactor // Write-only binding to the contract - IERC20Filterer // Log filterer for contract events -} - -// IERC20Caller is an auto generated read-only Go binding around an Ethereum contract. -type IERC20Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IERC20Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IERC20Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IERC20Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IERC20Session struct { - Contract *IERC20 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IERC20CallerSession struct { - Contract *IERC20Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IERC20TransactorSession struct { - Contract *IERC20Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IERC20Raw is an auto generated low-level Go binding around an Ethereum contract. -type IERC20Raw struct { - Contract *IERC20 // Generic contract binding to access the raw methods on -} - -// IERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IERC20CallerRaw struct { - Contract *IERC20Caller // Generic read-only contract binding to access the raw methods on -} - -// IERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IERC20TransactorRaw struct { - Contract *IERC20Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIERC20 creates a new instance of IERC20, bound to a specific deployed contract. -func NewIERC20(address common.Address, backend bind.ContractBackend) (*IERC20, error) { - contract, err := bindIERC20(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IERC20{IERC20Caller: IERC20Caller{contract: contract}, IERC20Transactor: IERC20Transactor{contract: contract}, IERC20Filterer: IERC20Filterer{contract: contract}}, nil -} - -// NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract. -func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error) { - contract, err := bindIERC20(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IERC20Caller{contract: contract}, nil -} - -// NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract. -func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error) { - contract, err := bindIERC20(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IERC20Transactor{contract: contract}, nil -} - -// NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract. -func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error) { - contract, err := bindIERC20(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IERC20Filterer{contract: contract}, nil -} - -// bindIERC20 binds a generic wrapper to an already deployed contract. -func bindIERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IERC20MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20 *IERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20.Contract.IERC20Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20 *IERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20.Contract.IERC20Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20 *IERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20.Contract.IERC20Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IERC20 *IERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IERC20.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IERC20 *IERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IERC20.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IERC20 *IERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IERC20.Contract.contract.Transact(opts, method, params...) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "allowance", owner, spender) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender) -} - -// Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. -// -// Solidity: function allowance(address owner, address spender) view returns(uint256) -func (_IERC20 *IERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { - return _IERC20.Contract.Allowance(&_IERC20.CallOpts, owner, spender) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IERC20 *IERC20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "balanceOf", owner) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IERC20 *IERC20Session) BalanceOf(owner common.Address) (*big.Int, error) { - return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, owner) -} - -// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. -// -// Solidity: function balanceOf(address owner) view returns(uint256) -func (_IERC20 *IERC20CallerSession) BalanceOf(owner common.Address) (*big.Int, error) { - return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, owner) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20 *IERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "decimals") - - if err != nil { - return *new(uint8), err - } - - out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) - - return out0, err - -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20 *IERC20Session) Decimals() (uint8, error) { - return _IERC20.Contract.Decimals(&_IERC20.CallOpts) -} - -// Decimals is a free data retrieval call binding the contract method 0x313ce567. -// -// Solidity: function decimals() view returns(uint8) -func (_IERC20 *IERC20CallerSession) Decimals() (uint8, error) { - return _IERC20.Contract.Decimals(&_IERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20 *IERC20Caller) Name(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "name") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20 *IERC20Session) Name() (string, error) { - return _IERC20.Contract.Name(&_IERC20.CallOpts) -} - -// Name is a free data retrieval call binding the contract method 0x06fdde03. -// -// Solidity: function name() view returns(string) -func (_IERC20 *IERC20CallerSession) Name() (string, error) { - return _IERC20.Contract.Name(&_IERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20 *IERC20Caller) Symbol(opts *bind.CallOpts) (string, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "symbol") - - if err != nil { - return *new(string), err - } - - out0 := *abi.ConvertType(out[0], new(string)).(*string) - - return out0, err - -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20 *IERC20Session) Symbol() (string, error) { - return _IERC20.Contract.Symbol(&_IERC20.CallOpts) -} - -// Symbol is a free data retrieval call binding the contract method 0x95d89b41. -// -// Solidity: function symbol() view returns(string) -func (_IERC20 *IERC20CallerSession) Symbol() (string, error) { - return _IERC20.Contract.Symbol(&_IERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IERC20.contract.Call(opts, &out, "totalSupply") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20Session) TotalSupply() (*big.Int, error) { - return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts) -} - -// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. -// -// Solidity: function totalSupply() view returns(uint256) -func (_IERC20 *IERC20CallerSession) TotalSupply() (*big.Int, error) { - return _IERC20.Contract.TotalSupply(&_IERC20.CallOpts) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "approve", spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IERC20 *IERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, value) -} - -// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. -// -// Solidity: function approve(address spender, uint256 value) returns(bool) -func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "transfer", to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IERC20 *IERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.contract.Transact(opts, "transferFrom", from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IERC20 *IERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, value) -} - -// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. -// -// Solidity: function transferFrom(address from, address to, uint256 value) returns(bool) -func (_IERC20 *IERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, value) -} - -// IERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the IERC20 contract. -type IERC20ApprovalIterator struct { - Event *IERC20Approval // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20ApprovalIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20Approval) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20ApprovalIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20ApprovalIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20Approval represents a Approval event raised by the IERC20 contract. -type IERC20Approval struct { - Owner common.Address - Spender common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return &IERC20ApprovalIterator{contract: _IERC20.contract, event: "Approval", logs: logs, sub: sub}, nil -} - -// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var spenderRule []interface{} - for _, spenderItem := range spender { - spenderRule = append(spenderRule, spenderItem) - } - - logs, sub, err := _IERC20.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20Approval) - if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. -// -// Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) -func (_IERC20 *IERC20Filterer) ParseApproval(log types.Log) (*IERC20Approval, error) { - event := new(IERC20Approval) - if err := _IERC20.contract.UnpackLog(event, "Approval", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the IERC20 contract. -type IERC20TransferIterator struct { - Event *IERC20Transfer // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IERC20TransferIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IERC20Transfer) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IERC20TransferIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IERC20TransferIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IERC20Transfer represents a Transfer event raised by the IERC20 contract. -type IERC20Transfer struct { - From common.Address - To common.Address - Value *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20.contract.FilterLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return &IERC20TransferIterator{contract: _IERC20.contract, event: "Transfer", logs: logs, sub: sub}, nil -} - -// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { - - var fromRule []interface{} - for _, fromItem := range from { - fromRule = append(fromRule, fromItem) - } - var toRule []interface{} - for _, toItem := range to { - toRule = append(toRule, toItem) - } - - logs, sub, err := _IERC20.contract.WatchLogs(opts, "Transfer", fromRule, toRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IERC20Transfer) - if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. -// -// Solidity: event Transfer(address indexed from, address indexed to, uint256 value) -func (_IERC20 *IERC20Filterer) ParseTransfer(log types.Log) (*IERC20Transfer, error) { - event := new(IERC20Transfer) - if err := _IERC20.contract.UnpackLog(event, "Transfer", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go b/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go deleted file mode 100644 index a3572ed21..000000000 --- a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router01.sol/iuniswapv2router01.go +++ /dev/null @@ -1,650 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2router01 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2Router01MetaData contains all meta data concerning the IUniswapV2Router01 contract. -var IUniswapV2Router01MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2Router01ABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2Router01MetaData.ABI instead. -var IUniswapV2Router01ABI = IUniswapV2Router01MetaData.ABI - -// IUniswapV2Router01 is an auto generated Go binding around an Ethereum contract. -type IUniswapV2Router01 struct { - IUniswapV2Router01Caller // Read-only binding to the contract - IUniswapV2Router01Transactor // Write-only binding to the contract - IUniswapV2Router01Filterer // Log filterer for contract events -} - -// IUniswapV2Router01Caller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2Router01Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router01Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2Router01Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router01Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2Router01Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router01Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2Router01Session struct { - Contract *IUniswapV2Router01 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router01CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2Router01CallerSession struct { - Contract *IUniswapV2Router01Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2Router01TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2Router01TransactorSession struct { - Contract *IUniswapV2Router01Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router01Raw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2Router01Raw struct { - Contract *IUniswapV2Router01 // Generic contract binding to access the raw methods on -} - -// IUniswapV2Router01CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2Router01CallerRaw struct { - Contract *IUniswapV2Router01Caller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2Router01TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2Router01TransactorRaw struct { - Contract *IUniswapV2Router01Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2Router01 creates a new instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01(address common.Address, backend bind.ContractBackend) (*IUniswapV2Router01, error) { - contract, err := bindIUniswapV2Router01(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2Router01{IUniswapV2Router01Caller: IUniswapV2Router01Caller{contract: contract}, IUniswapV2Router01Transactor: IUniswapV2Router01Transactor{contract: contract}, IUniswapV2Router01Filterer: IUniswapV2Router01Filterer{contract: contract}}, nil -} - -// NewIUniswapV2Router01Caller creates a new read-only instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01Caller(address common.Address, caller bind.ContractCaller) (*IUniswapV2Router01Caller, error) { - contract, err := bindIUniswapV2Router01(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router01Caller{contract: contract}, nil -} - -// NewIUniswapV2Router01Transactor creates a new write-only instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01Transactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2Router01Transactor, error) { - contract, err := bindIUniswapV2Router01(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router01Transactor{contract: contract}, nil -} - -// NewIUniswapV2Router01Filterer creates a new log filterer instance of IUniswapV2Router01, bound to a specific deployed contract. -func NewIUniswapV2Router01Filterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2Router01Filterer, error) { - contract, err := bindIUniswapV2Router01(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2Router01Filterer{contract: contract}, nil -} - -// bindIUniswapV2Router01 binds a generic wrapper to an already deployed contract. -func bindIUniswapV2Router01(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2Router01MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router01 *IUniswapV2Router01Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router01.Contract.IUniswapV2Router01Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router01 *IUniswapV2Router01Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.IUniswapV2Router01Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router01 *IUniswapV2Router01Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.IUniswapV2Router01Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router01 *IUniswapV2Router01CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router01.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.contract.Transact(opts, method, params...) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) WETH(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "WETH") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) WETH() (common.Address, error) { - return _IUniswapV2Router01.Contract.WETH(&_IUniswapV2Router01.CallOpts) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) WETH() (common.Address, error) { - return _IUniswapV2Router01.Contract.WETH(&_IUniswapV2Router01.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) Factory() (common.Address, error) { - return _IUniswapV2Router01.Contract.Factory(&_IUniswapV2Router01.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) Factory() (common.Address, error) { - return _IUniswapV2Router01.Contract.Factory(&_IUniswapV2Router01.CallOpts) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountIn", amountOut, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountIn(&_IUniswapV2Router01.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountIn(&_IUniswapV2Router01.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountOut", amountIn, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountOut(&_IUniswapV2Router01.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountOut(&_IUniswapV2Router01.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountsIn", amountOut, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsIn(&_IUniswapV2Router01.CallOpts, amountOut, path) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsIn(&_IUniswapV2Router01.CallOpts, amountOut, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "getAmountsOut", amountIn, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsOut(&_IUniswapV2Router01.CallOpts, amountIn, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router01.Contract.GetAmountsOut(&_IUniswapV2Router01.CallOpts, amountIn, path) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Caller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router01.contract.Call(opts, &out, "quote", amountA, reserveA, reserveB) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.Quote(&_IUniswapV2Router01.CallOpts, amountA, reserveA, reserveB) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01CallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router01.Contract.Quote(&_IUniswapV2Router01.CallOpts, amountA, reserveA, reserveB) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "addLiquidity", tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "addLiquidityETH", token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.AddLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidity", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidity(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidityETH", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETH(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidityETHWithPermit", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router01.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "removeLiquidityWithPermit", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router01.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapETHForExactTokens", amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapETHForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapETHForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapExactETHForTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactETHForTokens(&_IUniswapV2Router01.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactETHForTokens(&_IUniswapV2Router01.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapExactTokensForETH", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForETH(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForETH(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapExactTokensForTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForTokens(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapExactTokensForTokens(&_IUniswapV2Router01.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapTokensForExactETH", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactETH(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactETH(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Transactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.contract.Transact(opts, "swapTokensForExactTokens", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01Session) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router01 *IUniswapV2Router01TransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router01.Contract.SwapTokensForExactTokens(&_IUniswapV2Router01.TransactOpts, amountOut, amountInMax, path, to, deadline) -} diff --git a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go b/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go deleted file mode 100644 index 69969100a..000000000 --- a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iuniswapv2router02.sol/iuniswapv2router02.go +++ /dev/null @@ -1,755 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv2router02 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV2Router02MetaData contains all meta data concerning the IUniswapV2Router02 contract. -var IUniswapV2Router02MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETHSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETHSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV2Router02ABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV2Router02MetaData.ABI instead. -var IUniswapV2Router02ABI = IUniswapV2Router02MetaData.ABI - -// IUniswapV2Router02 is an auto generated Go binding around an Ethereum contract. -type IUniswapV2Router02 struct { - IUniswapV2Router02Caller // Read-only binding to the contract - IUniswapV2Router02Transactor // Write-only binding to the contract - IUniswapV2Router02Filterer // Log filterer for contract events -} - -// IUniswapV2Router02Caller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV2Router02Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router02Transactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV2Router02Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router02Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV2Router02Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV2Router02Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV2Router02Session struct { - Contract *IUniswapV2Router02 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router02CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV2Router02CallerSession struct { - Contract *IUniswapV2Router02Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV2Router02TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV2Router02TransactorSession struct { - Contract *IUniswapV2Router02Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV2Router02Raw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV2Router02Raw struct { - Contract *IUniswapV2Router02 // Generic contract binding to access the raw methods on -} - -// IUniswapV2Router02CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV2Router02CallerRaw struct { - Contract *IUniswapV2Router02Caller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV2Router02TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV2Router02TransactorRaw struct { - Contract *IUniswapV2Router02Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV2Router02 creates a new instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02(address common.Address, backend bind.ContractBackend) (*IUniswapV2Router02, error) { - contract, err := bindIUniswapV2Router02(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV2Router02{IUniswapV2Router02Caller: IUniswapV2Router02Caller{contract: contract}, IUniswapV2Router02Transactor: IUniswapV2Router02Transactor{contract: contract}, IUniswapV2Router02Filterer: IUniswapV2Router02Filterer{contract: contract}}, nil -} - -// NewIUniswapV2Router02Caller creates a new read-only instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02Caller(address common.Address, caller bind.ContractCaller) (*IUniswapV2Router02Caller, error) { - contract, err := bindIUniswapV2Router02(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router02Caller{contract: contract}, nil -} - -// NewIUniswapV2Router02Transactor creates a new write-only instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02Transactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV2Router02Transactor, error) { - contract, err := bindIUniswapV2Router02(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV2Router02Transactor{contract: contract}, nil -} - -// NewIUniswapV2Router02Filterer creates a new log filterer instance of IUniswapV2Router02, bound to a specific deployed contract. -func NewIUniswapV2Router02Filterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV2Router02Filterer, error) { - contract, err := bindIUniswapV2Router02(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV2Router02Filterer{contract: contract}, nil -} - -// bindIUniswapV2Router02 binds a generic wrapper to an already deployed contract. -func bindIUniswapV2Router02(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV2Router02MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router02 *IUniswapV2Router02Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router02.Contract.IUniswapV2Router02Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router02 *IUniswapV2Router02Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.IUniswapV2Router02Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router02 *IUniswapV2Router02Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.IUniswapV2Router02Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV2Router02 *IUniswapV2Router02CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV2Router02.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.contract.Transact(opts, method, params...) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) WETH(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "WETH") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) WETH() (common.Address, error) { - return _IUniswapV2Router02.Contract.WETH(&_IUniswapV2Router02.CallOpts) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) WETH() (common.Address, error) { - return _IUniswapV2Router02.Contract.WETH(&_IUniswapV2Router02.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) Factory() (common.Address, error) { - return _IUniswapV2Router02.Contract.Factory(&_IUniswapV2Router02.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() pure returns(address) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) Factory() (common.Address, error) { - return _IUniswapV2Router02.Contract.Factory(&_IUniswapV2Router02.CallOpts) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountIn", amountOut, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountIn(&_IUniswapV2Router02.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountIn(&_IUniswapV2Router02.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountOut", amountIn, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountOut(&_IUniswapV2Router02.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountOut(&_IUniswapV2Router02.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountsIn", amountOut, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsIn(&_IUniswapV2Router02.CallOpts, amountOut, path) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsIn(&_IUniswapV2Router02.CallOpts, amountOut, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "getAmountsOut", amountIn, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsOut(&_IUniswapV2Router02.CallOpts, amountIn, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _IUniswapV2Router02.Contract.GetAmountsOut(&_IUniswapV2Router02.CallOpts, amountIn, path) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Caller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV2Router02.contract.Call(opts, &out, "quote", amountA, reserveA, reserveB) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.Quote(&_IUniswapV2Router02.CallOpts, amountA, reserveA, reserveB) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02CallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _IUniswapV2Router02.Contract.Quote(&_IUniswapV2Router02.CallOpts, amountA, reserveA, reserveB) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "addLiquidity", tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "addLiquidityETH", token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.AddLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidity", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidity(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETH", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETH(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETHSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETHWithPermit", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermit(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "removeLiquidityWithPermit", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.RemoveLiquidityWithPermit(&_IUniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapETHForExactTokens", amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapETHForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapETHForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactETHForTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactETHForTokensSupportingFeeOnTransferTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForETH", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETH(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETH(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForETHSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapExactTokensForTokensSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_IUniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapTokensForExactETH", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactETH(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactETH(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Transactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.contract.Transact(opts, "swapTokensForExactTokens", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02Session) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_IUniswapV2Router02 *IUniswapV2Router02TransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _IUniswapV2Router02.Contract.SwapTokensForExactTokens(&_IUniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} diff --git a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iweth.sol/iweth.go b/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iweth.sol/iweth.go deleted file mode 100644 index 5e2c9dc55..000000000 --- a/v1/pkg/uniswap/v2-periphery/contracts/interfaces/iweth.sol/iweth.go +++ /dev/null @@ -1,244 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iweth - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IWETHMetaData contains all meta data concerning the IWETH contract. -var IWETHMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IWETHABI is the input ABI used to generate the binding from. -// Deprecated: Use IWETHMetaData.ABI instead. -var IWETHABI = IWETHMetaData.ABI - -// IWETH is an auto generated Go binding around an Ethereum contract. -type IWETH struct { - IWETHCaller // Read-only binding to the contract - IWETHTransactor // Write-only binding to the contract - IWETHFilterer // Log filterer for contract events -} - -// IWETHCaller is an auto generated read-only Go binding around an Ethereum contract. -type IWETHCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IWETHTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IWETHTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IWETHFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IWETHFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IWETHSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IWETHSession struct { - Contract *IWETH // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IWETHCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IWETHCallerSession struct { - Contract *IWETHCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IWETHTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IWETHTransactorSession struct { - Contract *IWETHTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IWETHRaw is an auto generated low-level Go binding around an Ethereum contract. -type IWETHRaw struct { - Contract *IWETH // Generic contract binding to access the raw methods on -} - -// IWETHCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IWETHCallerRaw struct { - Contract *IWETHCaller // Generic read-only contract binding to access the raw methods on -} - -// IWETHTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IWETHTransactorRaw struct { - Contract *IWETHTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIWETH creates a new instance of IWETH, bound to a specific deployed contract. -func NewIWETH(address common.Address, backend bind.ContractBackend) (*IWETH, error) { - contract, err := bindIWETH(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IWETH{IWETHCaller: IWETHCaller{contract: contract}, IWETHTransactor: IWETHTransactor{contract: contract}, IWETHFilterer: IWETHFilterer{contract: contract}}, nil -} - -// NewIWETHCaller creates a new read-only instance of IWETH, bound to a specific deployed contract. -func NewIWETHCaller(address common.Address, caller bind.ContractCaller) (*IWETHCaller, error) { - contract, err := bindIWETH(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IWETHCaller{contract: contract}, nil -} - -// NewIWETHTransactor creates a new write-only instance of IWETH, bound to a specific deployed contract. -func NewIWETHTransactor(address common.Address, transactor bind.ContractTransactor) (*IWETHTransactor, error) { - contract, err := bindIWETH(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IWETHTransactor{contract: contract}, nil -} - -// NewIWETHFilterer creates a new log filterer instance of IWETH, bound to a specific deployed contract. -func NewIWETHFilterer(address common.Address, filterer bind.ContractFilterer) (*IWETHFilterer, error) { - contract, err := bindIWETH(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IWETHFilterer{contract: contract}, nil -} - -// bindIWETH binds a generic wrapper to an already deployed contract. -func bindIWETH(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IWETHMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IWETH *IWETHRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IWETH.Contract.IWETHCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IWETH *IWETHRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IWETH.Contract.IWETHTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IWETH *IWETHRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IWETH.Contract.IWETHTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IWETH *IWETHCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IWETH.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IWETH *IWETHTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IWETH.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IWETH *IWETHTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IWETH.Contract.contract.Transact(opts, method, params...) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_IWETH *IWETHTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IWETH.contract.Transact(opts, "deposit") -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_IWETH *IWETHSession) Deposit() (*types.Transaction, error) { - return _IWETH.Contract.Deposit(&_IWETH.TransactOpts) -} - -// Deposit is a paid mutator transaction binding the contract method 0xd0e30db0. -// -// Solidity: function deposit() payable returns() -func (_IWETH *IWETHTransactorSession) Deposit() (*types.Transaction, error) { - return _IWETH.Contract.Deposit(&_IWETH.TransactOpts) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IWETH *IWETHTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) { - return _IWETH.contract.Transact(opts, "transfer", to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IWETH *IWETHSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IWETH.Contract.Transfer(&_IWETH.TransactOpts, to, value) -} - -// Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. -// -// Solidity: function transfer(address to, uint256 value) returns(bool) -func (_IWETH *IWETHTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) { - return _IWETH.Contract.Transfer(&_IWETH.TransactOpts, to, value) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 ) returns() -func (_IWETH *IWETHTransactor) Withdraw(opts *bind.TransactOpts, arg0 *big.Int) (*types.Transaction, error) { - return _IWETH.contract.Transact(opts, "withdraw", arg0) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 ) returns() -func (_IWETH *IWETHSession) Withdraw(arg0 *big.Int) (*types.Transaction, error) { - return _IWETH.Contract.Withdraw(&_IWETH.TransactOpts, arg0) -} - -// Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d. -// -// Solidity: function withdraw(uint256 ) returns() -func (_IWETH *IWETHTransactorSession) Withdraw(arg0 *big.Int) (*types.Transaction, error) { - return _IWETH.Contract.Withdraw(&_IWETH.TransactOpts, arg0) -} diff --git a/v1/pkg/uniswap/v2-periphery/contracts/libraries/safemath.sol/safemath.go b/v1/pkg/uniswap/v2-periphery/contracts/libraries/safemath.sol/safemath.go deleted file mode 100644 index cb7868e28..000000000 --- a/v1/pkg/uniswap/v2-periphery/contracts/libraries/safemath.sol/safemath.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package safemath - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// SafeMathMetaData contains all meta data concerning the SafeMath contract. -var SafeMathMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212209280478828a71436ad42fb262d99756ed7d7277ccde8fb7ef92c2abeb2d8f36164736f6c63430006060033", -} - -// SafeMathABI is the input ABI used to generate the binding from. -// Deprecated: Use SafeMathMetaData.ABI instead. -var SafeMathABI = SafeMathMetaData.ABI - -// SafeMathBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use SafeMathMetaData.Bin instead. -var SafeMathBin = SafeMathMetaData.Bin - -// DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it. -func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error) { - parsed, err := SafeMathMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SafeMathBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil -} - -// SafeMath is an auto generated Go binding around an Ethereum contract. -type SafeMath struct { - SafeMathCaller // Read-only binding to the contract - SafeMathTransactor // Write-only binding to the contract - SafeMathFilterer // Log filterer for contract events -} - -// SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract. -type SafeMathCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract. -type SafeMathTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type SafeMathFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// SafeMathSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type SafeMathSession struct { - Contract *SafeMath // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type SafeMathCallerSession struct { - Contract *SafeMathCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type SafeMathTransactorSession struct { - Contract *SafeMathTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract. -type SafeMathRaw struct { - Contract *SafeMath // Generic contract binding to access the raw methods on -} - -// SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type SafeMathCallerRaw struct { - Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on -} - -// SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type SafeMathTransactorRaw struct { - Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract. -func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error) { - contract, err := bindSafeMath(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil -} - -// NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract. -func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error) { - contract, err := bindSafeMath(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &SafeMathCaller{contract: contract}, nil -} - -// NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract. -func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error) { - contract, err := bindSafeMath(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &SafeMathTransactor{contract: contract}, nil -} - -// NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract. -func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error) { - contract, err := bindSafeMath(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &SafeMathFilterer{contract: contract}, nil -} - -// bindSafeMath binds a generic wrapper to an already deployed contract. -func bindSafeMath(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := SafeMathMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SafeMath.Contract.SafeMathCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SafeMath.Contract.SafeMathTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SafeMath.Contract.SafeMathTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_SafeMath *SafeMathCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _SafeMath.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_SafeMath *SafeMathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _SafeMath.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _SafeMath.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/uniswap/v2-periphery/contracts/libraries/uniswapv2library.sol/uniswapv2library.go b/v1/pkg/uniswap/v2-periphery/contracts/libraries/uniswapv2library.sol/uniswapv2library.go deleted file mode 100644 index ea7744ae1..000000000 --- a/v1/pkg/uniswap/v2-periphery/contracts/libraries/uniswapv2library.sol/uniswapv2library.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uniswapv2library - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UniswapV2LibraryMetaData contains all meta data concerning the UniswapV2Library contract. -var UniswapV2LibraryMetaData = &bind.MetaData{ - ABI: "[]", - Bin: "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212208421bd92ba607f7025ef11dd3ba3c30a46c62559adc890b6863b512efbd8984464736f6c63430006060033", -} - -// UniswapV2LibraryABI is the input ABI used to generate the binding from. -// Deprecated: Use UniswapV2LibraryMetaData.ABI instead. -var UniswapV2LibraryABI = UniswapV2LibraryMetaData.ABI - -// UniswapV2LibraryBin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UniswapV2LibraryMetaData.Bin instead. -var UniswapV2LibraryBin = UniswapV2LibraryMetaData.Bin - -// DeployUniswapV2Library deploys a new Ethereum contract, binding an instance of UniswapV2Library to it. -func DeployUniswapV2Library(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *UniswapV2Library, error) { - parsed, err := UniswapV2LibraryMetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UniswapV2LibraryBin), backend) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UniswapV2Library{UniswapV2LibraryCaller: UniswapV2LibraryCaller{contract: contract}, UniswapV2LibraryTransactor: UniswapV2LibraryTransactor{contract: contract}, UniswapV2LibraryFilterer: UniswapV2LibraryFilterer{contract: contract}}, nil -} - -// UniswapV2Library is an auto generated Go binding around an Ethereum contract. -type UniswapV2Library struct { - UniswapV2LibraryCaller // Read-only binding to the contract - UniswapV2LibraryTransactor // Write-only binding to the contract - UniswapV2LibraryFilterer // Log filterer for contract events -} - -// UniswapV2LibraryCaller is an auto generated read-only Go binding around an Ethereum contract. -type UniswapV2LibraryCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2LibraryTransactor is an auto generated write-only Go binding around an Ethereum contract. -type UniswapV2LibraryTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2LibraryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniswapV2LibraryFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2LibrarySession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniswapV2LibrarySession struct { - Contract *UniswapV2Library // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2LibraryCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniswapV2LibraryCallerSession struct { - Contract *UniswapV2LibraryCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniswapV2LibraryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniswapV2LibraryTransactorSession struct { - Contract *UniswapV2LibraryTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2LibraryRaw is an auto generated low-level Go binding around an Ethereum contract. -type UniswapV2LibraryRaw struct { - Contract *UniswapV2Library // Generic contract binding to access the raw methods on -} - -// UniswapV2LibraryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniswapV2LibraryCallerRaw struct { - Contract *UniswapV2LibraryCaller // Generic read-only contract binding to access the raw methods on -} - -// UniswapV2LibraryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniswapV2LibraryTransactorRaw struct { - Contract *UniswapV2LibraryTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniswapV2Library creates a new instance of UniswapV2Library, bound to a specific deployed contract. -func NewUniswapV2Library(address common.Address, backend bind.ContractBackend) (*UniswapV2Library, error) { - contract, err := bindUniswapV2Library(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniswapV2Library{UniswapV2LibraryCaller: UniswapV2LibraryCaller{contract: contract}, UniswapV2LibraryTransactor: UniswapV2LibraryTransactor{contract: contract}, UniswapV2LibraryFilterer: UniswapV2LibraryFilterer{contract: contract}}, nil -} - -// NewUniswapV2LibraryCaller creates a new read-only instance of UniswapV2Library, bound to a specific deployed contract. -func NewUniswapV2LibraryCaller(address common.Address, caller bind.ContractCaller) (*UniswapV2LibraryCaller, error) { - contract, err := bindUniswapV2Library(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniswapV2LibraryCaller{contract: contract}, nil -} - -// NewUniswapV2LibraryTransactor creates a new write-only instance of UniswapV2Library, bound to a specific deployed contract. -func NewUniswapV2LibraryTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV2LibraryTransactor, error) { - contract, err := bindUniswapV2Library(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniswapV2LibraryTransactor{contract: contract}, nil -} - -// NewUniswapV2LibraryFilterer creates a new log filterer instance of UniswapV2Library, bound to a specific deployed contract. -func NewUniswapV2LibraryFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV2LibraryFilterer, error) { - contract, err := bindUniswapV2Library(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniswapV2LibraryFilterer{contract: contract}, nil -} - -// bindUniswapV2Library binds a generic wrapper to an already deployed contract. -func bindUniswapV2Library(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniswapV2LibraryMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Library *UniswapV2LibraryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Library.Contract.UniswapV2LibraryCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Library *UniswapV2LibraryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Library.Contract.UniswapV2LibraryTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Library *UniswapV2LibraryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Library.Contract.UniswapV2LibraryTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Library *UniswapV2LibraryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Library.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Library *UniswapV2LibraryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Library.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Library *UniswapV2LibraryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Library.Contract.contract.Transact(opts, method, params...) -} diff --git a/v1/pkg/uniswap/v2-periphery/contracts/uniswapv2router02.sol/uniswapv2router02.go b/v1/pkg/uniswap/v2-periphery/contracts/uniswapv2router02.sol/uniswapv2router02.go deleted file mode 100644 index 42fa84898..000000000 --- a/v1/pkg/uniswap/v2-periphery/contracts/uniswapv2router02.sol/uniswapv2router02.go +++ /dev/null @@ -1,798 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package uniswapv2router02 - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// UniswapV2Router02MetaData contains all meta data concerning the UniswapV2Router02 contract. -var UniswapV2Router02MetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_WETH\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"WETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveOut\",\"type\":\"uint256\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsIn\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"getAmountsOut\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserveB\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETHSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"approveMax\",\"type\":\"bool\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"removeLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactETHForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForETHSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapExactTokensForTokensSupportingFeeOnTransferTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]", - Bin: "0x60c06040523480156200001157600080fd5b506040516200573e3803806200573e833981810160405260408110156200003757600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c6155b762000187600039806101ac5280610e5d5280610e985280610fd5528061129852806116f252806118d65280611e1e5280611fa252806120725280612179528061232c52806123c15280612673528061271a52806127ef52806128f452806129dc5280612a5d52806130ec5280613422528061347852806134ac528061352d528061374752806138f7528061398c5250806110c752806111c5528061136b52806113a4528061154f52806117e452806118b45280611aa1528061225f528061240052806125a95280612a9c5280612ddf5280613071528061309a52806130ca52806132a75280613456528061382d52806139cb528061444a528061448d52806147ed52806149ce5280614f49528061502a52806150aa52506155b76000f3fe60806040526004361061018f5760003560e01c80638803dbee116100d6578063c45a01551161007f578063e8e3370011610059578063e8e3370014610c71578063f305d71914610cfe578063fb3bdb4114610d51576101d5565b8063c45a015514610b25578063d06ca61f14610b3a578063ded9382a14610bf1576101d5565b8063af2979eb116100b0578063af2979eb146109c8578063b6f9de9514610a28578063baa2abde14610abb576101d5565b80638803dbee146108af578063ad5c464814610954578063ad615dec14610992576101d5565b80634a25d94a11610138578063791ac94711610112578063791ac947146107415780637ff36ab5146107e657806385f8c25914610879576101d5565b80634a25d94a146105775780635b0d59841461061c5780635c11d7951461069c576101d5565b80631f00ca74116101695780631f00ca74146103905780632195995c1461044757806338ed1739146104d2576101d5565b806302751cec146101da578063054d50d41461025357806318cbafe51461029b576101d5565b366101d5573373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146101d357fe5b005b600080fd5b3480156101e657600080fd5b5061023a600480360360c08110156101fd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a00135610de4565b6040805192835260208301919091528051918290030190f35b34801561025f57600080fd5b506102896004803603606081101561027657600080fd5b5080359060208101359060400135610f37565b60408051918252519081900360200190f35b3480156102a757600080fd5b50610340600480360360a08110156102be57600080fd5b8135916020810135918101906060810160408201356401000000008111156102e557600080fd5b8201836020820111156102f757600080fd5b8035906020019184602083028401116401000000008311171561031957600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135610f4c565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561037c578181015183820152602001610364565b505050509050019250505060405180910390f35b34801561039c57600080fd5b50610340600480360360408110156103b357600080fd5b813591908101906040810160208201356401000000008111156103d557600080fd5b8201836020820111156103e757600080fd5b8035906020019184602083028401116401000000008311171561040957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611364945050505050565b34801561045357600080fd5b5061023a600480360361016081101561046b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff610100820135169061012081013590610140013561139a565b3480156104de57600080fd5b50610340600480360360a08110156104f557600080fd5b81359160208101359181019060608101604082013564010000000081111561051c57600080fd5b82018360208201111561052e57600080fd5b8035906020019184602083028401116401000000008311171561055057600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356114d8565b34801561058357600080fd5b50610340600480360360a081101561059a57600080fd5b8135916020810135918101906060810160408201356401000000008111156105c157600080fd5b8201836020820111156105d357600080fd5b803590602001918460208302840111640100000000831117156105f557600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611669565b34801561062857600080fd5b50610289600480360361014081101561064057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356118ac565b3480156106a857600080fd5b506101d3600480360360a08110156106bf57600080fd5b8135916020810135918101906060810160408201356401000000008111156106e657600080fd5b8201836020820111156106f857600080fd5b8035906020019184602083028401116401000000008311171561071a57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356119fe565b34801561074d57600080fd5b506101d3600480360360a081101561076457600080fd5b81359160208101359181019060608101604082013564010000000081111561078b57600080fd5b82018360208201111561079d57600080fd5b803590602001918460208302840111640100000000831117156107bf57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611d97565b610340600480360360808110156107fc57600080fd5b8135919081019060408101602082013564010000000081111561081e57600080fd5b82018360208201111561083057600080fd5b8035906020019184602083028401116401000000008311171561085257600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135612105565b34801561088557600080fd5b506102896004803603606081101561089c57600080fd5b5080359060208101359060400135612525565b3480156108bb57600080fd5b50610340600480360360a08110156108d257600080fd5b8135916020810135918101906060810160408201356401000000008111156108f957600080fd5b82018360208201111561090b57600080fd5b8035906020019184602083028401116401000000008311171561092d57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135612532565b34801561096057600080fd5b50610969612671565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561099e57600080fd5b50610289600480360360608110156109b557600080fd5b5080359060208101359060400135612695565b3480156109d457600080fd5b50610289600480360360c08110156109eb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a001356126a2565b6101d360048036036080811015610a3e57600080fd5b81359190810190604081016020820135640100000000811115610a6057600080fd5b820183602082011115610a7257600080fd5b80359060200191846020830284011164010000000083111715610a9457600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135612882565b348015610ac757600080fd5b5061023a600480360360e0811015610ade57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135612d65565b348015610b3157600080fd5b5061096961306f565b348015610b4657600080fd5b5061034060048036036040811015610b5d57600080fd5b81359190810190604081016020820135640100000000811115610b7f57600080fd5b820183602082011115610b9157600080fd5b80359060200191846020830284011164010000000083111715610bb357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550613093945050505050565b348015610bfd57600080fd5b5061023a6004803603610140811015610c1557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356130c0565b348015610c7d57600080fd5b50610ce06004803603610100811015610c9557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135613218565b60408051938452602084019290925282820152519081900360600190f35b610ce0600480360360c0811015610d1457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a001356133a7565b61034060048036036080811015610d6757600080fd5b81359190810190604081016020820135640100000000811115610d8957600080fd5b820183602082011115610d9b57600080fd5b80359060200191846020830284011164010000000083111715610dbd57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356136d3565b6000808242811015610e5757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b610e86897f00000000000000000000000000000000000000000000000000000000000000008a8a8a308a612d65565b9093509150610e96898685613b22565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610f0957600080fd5b505af1158015610f1d573d6000803e3d6000fd5b50505050610f2b8583613cff565b50965096945050505050565b6000610f44848484613e3c565b949350505050565b60608142811015610fbe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001686867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810181811061102357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110c257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b6111207f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613f6092505050565b9150868260018451038151811061113357fe5b60200260200101511015611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b611257868660008181106111a257fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff163361123d7f00000000000000000000000000000000000000000000000000000000000000008a8a60008181106111f157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff168b8b600181811061121b57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff166140c6565b8560008151811061124a57fe5b60200260200101516141b1565b61129682878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614381915050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836001855103815181106112e257fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561132057600080fd5b505af1158015611334573d6000803e3d6000fd5b50505050611359848360018551038151811061134c57fe5b6020026020010151613cff565b509695505050505050565b60606113917f00000000000000000000000000000000000000000000000000000000000000008484614608565b90505b92915050565b60008060006113ca7f00000000000000000000000000000000000000000000000000000000000000008f8f6140c6565b90506000876113d9578c6113fb565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c48101889052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b15801561149757600080fd5b505af11580156114ab573d6000803e3d6000fd5b505050506114be8f8f8f8f8f8f8f612d65565b809450819550505050509b509b9950505050505050505050565b6060814281101561154a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b6115a87f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613f6092505050565b915086826001845103815181106115bb57fe5b6020026020010151101561161a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b61162a868660008181106111a257fe5b61135982878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614381915050565b606081428110156116db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001686867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810181811061174057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117df57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b61183d7f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061460892505050565b9150868260008151811061184d57fe5b60200260200101511115611192576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154986027913960400191505060405180910390fd5b6000806118fa7f00000000000000000000000000000000000000000000000000000000000000008d7f00000000000000000000000000000000000000000000000000000000000000006140c6565b9050600086611909578b61192b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c48101879052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b1580156119c757600080fd5b505af11580156119db573d6000803e3d6000fd5b505050506119ed8d8d8d8d8d8d6126a2565b9d9c50505050505050505050505050565b8042811015611a6e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b611afd85856000818110611a7e57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1633611af77f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff168a8a600181811061121b57fe5b8a6141b1565b600085857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611b2d57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611bc657600080fd5b505afa158015611bda573d6000803e3d6000fd5b505050506040513d6020811015611bf057600080fd5b50516040805160208881028281018201909352888252929350611c32929091899189918291850190849080828437600092019190915250889250614796915050565b86611d368288887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611c6557fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611cfe57600080fd5b505afa158015611d12573d6000803e3d6000fd5b505050506040513d6020811015611d2857600080fd5b50519063ffffffff614b2916565b1015611d8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b5050505050505050565b8042811015611e0757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001685857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611e6c57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f0b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b611f1b85856000818110611a7e57fe5b611f59858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614796915050565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015611fe957600080fd5b505afa158015611ffd573d6000803e3d6000fd5b505050506040513d602081101561201357600080fd5b5051905086811015612070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156120e357600080fd5b505af11580156120f7573d6000803e3d6000fd5b50505050611d8d8482613cff565b6060814281101561217757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16868660008181106121bb57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461225a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b6122b87f000000000000000000000000000000000000000000000000000000000000000034888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613f6092505050565b915086826001845103815181106122cb57fe5b6020026020010151101561232a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08360008151811061237357fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156123a657600080fd5b505af11580156123ba573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61242c7f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b8460008151811061243957fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156124aa57600080fd5b505af11580156124be573d6000803e3d6000fd5b505050506040513d60208110156124d457600080fd5b50516124dc57fe5b61251b82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614381915050565b5095945050505050565b6000610f44848484614b9b565b606081428110156125a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b6126027f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061460892505050565b9150868260008151811061261257fe5b6020026020010151111561161a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154986027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610f44848484614cbf565b6000814281101561271457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b612743887f00000000000000000000000000000000000000000000000000000000000000008989893089612d65565b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519194506127ed92508a91879173ffffffffffffffffffffffffffffffffffffffff8416916370a0823191602480820192602092909190829003018186803b1580156127bc57600080fd5b505afa1580156127d0573d6000803e3d6000fd5b505050506040513d60208110156127e657600080fd5b5051613b22565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561286057600080fd5b505af1158015612874573d6000803e3d6000fd5b505050506113598483613cff565b80428110156128f257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168585600081811061293657fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146129d557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b60003490507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612a4257600080fd5b505af1158015612a56573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb612ac87f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612b3257600080fd5b505af1158015612b46573d6000803e3d6000fd5b505050506040513d6020811015612b5c57600080fd5b5051612b6457fe5b600086867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110612b9457fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612c2d57600080fd5b505afa158015612c41573d6000803e3d6000fd5b505050506040513d6020811015612c5757600080fd5b50516040805160208981028281018201909352898252929350612c999290918a918a918291850190849080828437600092019190915250899250614796915050565b87611d368289897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110612ccc57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611cfe57600080fd5b6000808242811015612dd857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b6000612e057f00000000000000000000000000000000000000000000000000000000000000008c8c6140c6565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015612e8657600080fd5b505af1158015612e9a573d6000803e3d6000fd5b505050506040513d6020811015612eb057600080fd5b5050604080517f89afcb4400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015612f2357600080fd5b505af1158015612f37573d6000803e3d6000fd5b505050506040513d6040811015612f4d57600080fd5b50805160209091015190925090506000612f678e8e614d9f565b5090508073ffffffffffffffffffffffffffffffffffffffff168e73ffffffffffffffffffffffffffffffffffffffff1614612fa4578183612fa7565b82825b90975095508a871015613005576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154bf6026913960400191505060405180910390fd5b8986101561305e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154256026913960400191505060405180910390fd5b505050505097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606113917f00000000000000000000000000000000000000000000000000000000000000008484613f60565b60008060006131107f00000000000000000000000000000000000000000000000000000000000000008e7f00000000000000000000000000000000000000000000000000000000000000006140c6565b905060008761311f578c613141565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c48101889052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b1580156131dd57600080fd5b505af11580156131f1573d6000803e3d6000fd5b505050506132038e8e8e8e8e8e610de4565b909f909e509c50505050505050505050505050565b6000806000834281101561328d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b61329b8c8c8c8c8c8c614ef2565b909450925060006132cd7f00000000000000000000000000000000000000000000000000000000000000008e8e6140c6565b90506132db8d3383886141b1565b6132e78c3383876141b1565b8073ffffffffffffffffffffffffffffffffffffffff16636a627842886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561336657600080fd5b505af115801561337a573d6000803e3d6000fd5b505050506040513d602081101561339057600080fd5b5051949d939c50939a509198505050505050505050565b6000806000834281101561341c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b61344a8a7f00000000000000000000000000000000000000000000000000000000000000008b348c8c614ef2565b9094509250600061349c7f00000000000000000000000000000000000000000000000000000000000000008c7f00000000000000000000000000000000000000000000000000000000000000006140c6565b90506134aa8b3383886141b1565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561351257600080fd5b505af1158015613526573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156135d257600080fd5b505af11580156135e6573d6000803e3d6000fd5b505050506040513d60208110156135fc57600080fd5b505161360457fe5b8073ffffffffffffffffffffffffffffffffffffffff16636a627842886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561368357600080fd5b505af1158015613697573d6000803e3d6000fd5b505050506040513d60208110156136ad57600080fd5b50519250348410156136c5576136c533853403613cff565b505096509650969350505050565b6060814281101561374557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168686600081811061378957fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461382857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b6138867f00000000000000000000000000000000000000000000000000000000000000008888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061460892505050565b9150348260008151811061389657fe5b602002602001015111156138f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154986027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08360008151811061393e57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561397157600080fd5b505af1158015613985573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6139f77f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b84600081518110613a0457fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015613a7557600080fd5b505af1158015613a89573d6000803e3d6000fd5b505050506040513d6020811015613a9f57600080fd5b5051613aa757fe5b613ae682878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614381915050565b81600081518110613af357fe5b602002602001015134111561251b5761251b3383600081518110613b1357fe5b60200260200101513403613cff565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310613bf857805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613bbb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613c5a576040519150601f19603f3d011682016040523d82523d6000602084013e613c5f565b606091505b5091509150818015613c8d575080511580613c8d5750808060200190516020811015613c8a57600080fd5b50515b613cf857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040518082805190602001908083835b60208310613d7657805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613d39565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613dd8576040519150601f19603f3d011682016040523d82523d6000602084013e613ddd565b606091505b5050905080613e37576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806154e56023913960400191505060405180910390fd5b505050565b6000808411613e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615557602b913960400191505060405180910390fd5b600083118015613ea65750600082115b613efb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061544b6028913960400191505060405180910390fd5b6000613f0f856103e563ffffffff6151f316565b90506000613f23828563ffffffff6151f316565b90506000613f4983613f3d886103e863ffffffff6151f316565b9063ffffffff61527916565b9050808281613f5457fe5b04979650505050505050565b6060600282511015613fd357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015613feb57600080fd5b50604051908082528060200260200182016040528015614015578160200160208202803683370190505b509050828160008151811061402657fe5b60200260200101818152505060005b60018351038110156140be576000806140788786858151811061405457fe5b602002602001015187866001018151811061406b57fe5b60200260200101516152eb565b9150915061409a84848151811061408b57fe5b60200260200101518383613e3c565b8484600101815181106140a957fe5b60209081029190910101525050600101614035565b509392505050565b60008060006140d58585614d9f565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501207fff0000000000000000000000000000000000000000000000000000000000000060688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017815292518251600094606094938a169392918291908083835b6020831061428f57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101614252565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146142f1576040519150601f19603f3d011682016040523d82523d6000602084013e6142f6565b606091505b5091509150818015614324575080511580614324575080806020019051602081101561432157600080fd5b50515b614379576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806155336024913960400191505060405180910390fd5b505050505050565b60005b60018351038110156146025760008084838151811061439f57fe5b60200260200101518584600101815181106143b657fe5b60200260200101519150915060006143ce8383614d9f565b50905060008785600101815181106143e257fe5b602002602001015190506000808373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161461442a5782600061442e565b6000835b91509150600060028a510388106144455788614486565b6144867f0000000000000000000000000000000000000000000000000000000000000000878c8b6002018151811061447957fe5b60200260200101516140c6565b90506144b37f000000000000000000000000000000000000000000000000000000000000000088886140c6565b73ffffffffffffffffffffffffffffffffffffffff1663022c0d9f84848460006040519080825280601f01601f1916602001820160405280156144fd576020820181803683370190505b506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614588578181015183820152602001614570565b50505050905090810190601f1680156145b55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156145d757600080fd5b505af11580156145eb573d6000803e3d6000fd5b505060019099019850614384975050505050505050565b50505050565b606060028251101561467b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561469357600080fd5b506040519080825280602002602001820160405280156146bd578160200160208202803683370190505b50905082816001835103815181106146d157fe5b602090810291909101015281517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b80156140be576000806147318786600186038151811061471d57fe5b602002602001015187868151811061406b57fe5b9150915061475384848151811061474457fe5b60200260200101518383614b9b565b84600185038151811061476257fe5b602090810291909101015250507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01614701565b60005b6001835103811015613e37576000808483815181106147b457fe5b60200260200101518584600101815181106147cb57fe5b60200260200101519150915060006147e38383614d9f565b50905060006148137f000000000000000000000000000000000000000000000000000000000000000085856140c6565b90506000806000808473ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561486157600080fd5b505afa158015614875573d6000803e3d6000fd5b505050506040513d606081101561488b57600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905060008073ffffffffffffffffffffffffffffffffffffffff8a8116908916146148d55782846148d8565b83835b9150915061495d828b73ffffffffffffffffffffffffffffffffffffffff166370a082318a6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611cfe57600080fd5b955061496a868383613e3c565b9450505050506000808573ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146149ae578260006149b2565b6000835b91509150600060028c51038a106149c9578a6149fd565b6149fd7f0000000000000000000000000000000000000000000000000000000000000000898e8d6002018151811061447957fe5b60408051600080825260208201928390527f022c0d9f000000000000000000000000000000000000000000000000000000008352602482018781526044830187905273ffffffffffffffffffffffffffffffffffffffff8086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015614aad578181015183820152602001614a95565b50505050905090810190601f168015614ada5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015614afc57600080fd5b505af1158015614b10573d6000803e3d6000fd5b50506001909b019a506147999950505050505050505050565b8082038281111561139457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6000808411614bf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806153d4602c913960400191505060405180910390fd5b600083118015614c055750600082115b614c5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061544b6028913960400191505060405180910390fd5b6000614c7e6103e8614c72868863ffffffff6151f316565b9063ffffffff6151f316565b90506000614c986103e5614c72868963ffffffff614b2916565b9050614cb56001828481614ca857fe5b049063ffffffff61527916565b9695505050505050565b6000808411614d19576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806154736025913960400191505060405180910390fd5b600083118015614d295750600082115b614d7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061544b6028913960400191505060405180910390fd5b82614d8f858463ffffffff6151f316565b81614d9657fe5b04949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415614e27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806154006025913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610614e61578284614e64565b83835b909250905073ffffffffffffffffffffffffffffffffffffffff8216614eeb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015287811660248301529151600092839283927f00000000000000000000000000000000000000000000000000000000000000009092169163e6a4390591604480820192602092909190829003018186803b158015614f9257600080fd5b505afa158015614fa6573d6000803e3d6000fd5b505050506040513d6020811015614fbc57600080fd5b505173ffffffffffffffffffffffffffffffffffffffff1614156150a257604080517fc9c6539600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830152898116602483015291517f00000000000000000000000000000000000000000000000000000000000000009092169163c9c65396916044808201926020929091908290030181600087803b15801561507557600080fd5b505af1158015615089573d6000803e3d6000fd5b505050506040513d602081101561509f57600080fd5b50505b6000806150d07f00000000000000000000000000000000000000000000000000000000000000008b8b6152eb565b915091508160001480156150e2575080155b156150f2578793508692506151e6565b60006150ff898484614cbf565b905087811161516c5785811015615161576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154256026913960400191505060405180910390fd5b8894509250826151e4565b6000615179898486614cbf565b90508981111561518557fe5b878110156151de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154bf6026913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b600081158061520e5750508082028282828161520b57fe5b04145b61139457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b8082018281101561139457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b60008060006152fa8585614d9f565b50905060008061530b8888886140c6565b73ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561535057600080fd5b505afa158015615364573d6000803e3d6000fd5b505050506040513d606081101561537a57600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905073ffffffffffffffffffffffffffffffffffffffff878116908416146153c15780826153c4565b81815b9099909850965050505050505056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e69737761705632526f757465723a20494e53554646494349454e545f425f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e54556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54556e69737761705632526f757465723a20494e53554646494349454e545f415f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c4544556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a2646970667358221220d767e6d3ae379997e75048713bb6ac2dcd987d96aa9e28fe4d4f219ea31a4f8864736f6c63430006060033", -} - -// UniswapV2Router02ABI is the input ABI used to generate the binding from. -// Deprecated: Use UniswapV2Router02MetaData.ABI instead. -var UniswapV2Router02ABI = UniswapV2Router02MetaData.ABI - -// UniswapV2Router02Bin is the compiled bytecode used for deploying new contracts. -// Deprecated: Use UniswapV2Router02MetaData.Bin instead. -var UniswapV2Router02Bin = UniswapV2Router02MetaData.Bin - -// DeployUniswapV2Router02 deploys a new Ethereum contract, binding an instance of UniswapV2Router02 to it. -func DeployUniswapV2Router02(auth *bind.TransactOpts, backend bind.ContractBackend, _factory common.Address, _WETH common.Address) (common.Address, *types.Transaction, *UniswapV2Router02, error) { - parsed, err := UniswapV2Router02MetaData.GetAbi() - if err != nil { - return common.Address{}, nil, nil, err - } - if parsed == nil { - return common.Address{}, nil, nil, errors.New("GetABI returned nil") - } - - address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(UniswapV2Router02Bin), backend, _factory, _WETH) - if err != nil { - return common.Address{}, nil, nil, err - } - return address, tx, &UniswapV2Router02{UniswapV2Router02Caller: UniswapV2Router02Caller{contract: contract}, UniswapV2Router02Transactor: UniswapV2Router02Transactor{contract: contract}, UniswapV2Router02Filterer: UniswapV2Router02Filterer{contract: contract}}, nil -} - -// UniswapV2Router02 is an auto generated Go binding around an Ethereum contract. -type UniswapV2Router02 struct { - UniswapV2Router02Caller // Read-only binding to the contract - UniswapV2Router02Transactor // Write-only binding to the contract - UniswapV2Router02Filterer // Log filterer for contract events -} - -// UniswapV2Router02Caller is an auto generated read-only Go binding around an Ethereum contract. -type UniswapV2Router02Caller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2Router02Transactor is an auto generated write-only Go binding around an Ethereum contract. -type UniswapV2Router02Transactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2Router02Filterer is an auto generated log filtering Go binding around an Ethereum contract events. -type UniswapV2Router02Filterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// UniswapV2Router02Session is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type UniswapV2Router02Session struct { - Contract *UniswapV2Router02 // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2Router02CallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type UniswapV2Router02CallerSession struct { - Contract *UniswapV2Router02Caller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// UniswapV2Router02TransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type UniswapV2Router02TransactorSession struct { - Contract *UniswapV2Router02Transactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// UniswapV2Router02Raw is an auto generated low-level Go binding around an Ethereum contract. -type UniswapV2Router02Raw struct { - Contract *UniswapV2Router02 // Generic contract binding to access the raw methods on -} - -// UniswapV2Router02CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type UniswapV2Router02CallerRaw struct { - Contract *UniswapV2Router02Caller // Generic read-only contract binding to access the raw methods on -} - -// UniswapV2Router02TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type UniswapV2Router02TransactorRaw struct { - Contract *UniswapV2Router02Transactor // Generic write-only contract binding to access the raw methods on -} - -// NewUniswapV2Router02 creates a new instance of UniswapV2Router02, bound to a specific deployed contract. -func NewUniswapV2Router02(address common.Address, backend bind.ContractBackend) (*UniswapV2Router02, error) { - contract, err := bindUniswapV2Router02(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &UniswapV2Router02{UniswapV2Router02Caller: UniswapV2Router02Caller{contract: contract}, UniswapV2Router02Transactor: UniswapV2Router02Transactor{contract: contract}, UniswapV2Router02Filterer: UniswapV2Router02Filterer{contract: contract}}, nil -} - -// NewUniswapV2Router02Caller creates a new read-only instance of UniswapV2Router02, bound to a specific deployed contract. -func NewUniswapV2Router02Caller(address common.Address, caller bind.ContractCaller) (*UniswapV2Router02Caller, error) { - contract, err := bindUniswapV2Router02(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &UniswapV2Router02Caller{contract: contract}, nil -} - -// NewUniswapV2Router02Transactor creates a new write-only instance of UniswapV2Router02, bound to a specific deployed contract. -func NewUniswapV2Router02Transactor(address common.Address, transactor bind.ContractTransactor) (*UniswapV2Router02Transactor, error) { - contract, err := bindUniswapV2Router02(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &UniswapV2Router02Transactor{contract: contract}, nil -} - -// NewUniswapV2Router02Filterer creates a new log filterer instance of UniswapV2Router02, bound to a specific deployed contract. -func NewUniswapV2Router02Filterer(address common.Address, filterer bind.ContractFilterer) (*UniswapV2Router02Filterer, error) { - contract, err := bindUniswapV2Router02(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &UniswapV2Router02Filterer{contract: contract}, nil -} - -// bindUniswapV2Router02 binds a generic wrapper to an already deployed contract. -func bindUniswapV2Router02(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := UniswapV2Router02MetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Router02 *UniswapV2Router02Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Router02.Contract.UniswapV2Router02Caller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Router02 *UniswapV2Router02Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.UniswapV2Router02Transactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Router02 *UniswapV2Router02Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.UniswapV2Router02Transactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_UniswapV2Router02 *UniswapV2Router02CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _UniswapV2Router02.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_UniswapV2Router02 *UniswapV2Router02TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_UniswapV2Router02 *UniswapV2Router02TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.contract.Transact(opts, method, params...) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() view returns(address) -func (_UniswapV2Router02 *UniswapV2Router02Caller) WETH(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _UniswapV2Router02.contract.Call(opts, &out, "WETH") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() view returns(address) -func (_UniswapV2Router02 *UniswapV2Router02Session) WETH() (common.Address, error) { - return _UniswapV2Router02.Contract.WETH(&_UniswapV2Router02.CallOpts) -} - -// WETH is a free data retrieval call binding the contract method 0xad5c4648. -// -// Solidity: function WETH() view returns(address) -func (_UniswapV2Router02 *UniswapV2Router02CallerSession) WETH() (common.Address, error) { - return _UniswapV2Router02.Contract.WETH(&_UniswapV2Router02.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_UniswapV2Router02 *UniswapV2Router02Caller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _UniswapV2Router02.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_UniswapV2Router02 *UniswapV2Router02Session) Factory() (common.Address, error) { - return _UniswapV2Router02.Contract.Factory(&_UniswapV2Router02.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_UniswapV2Router02 *UniswapV2Router02CallerSession) Factory() (common.Address, error) { - return _UniswapV2Router02.Contract.Factory(&_UniswapV2Router02.CallOpts) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_UniswapV2Router02 *UniswapV2Router02Caller) GetAmountIn(opts *bind.CallOpts, amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Router02.contract.Call(opts, &out, "getAmountIn", amountOut, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_UniswapV2Router02 *UniswapV2Router02Session) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountIn(&_UniswapV2Router02.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountIn is a free data retrieval call binding the contract method 0x85f8c259. -// -// Solidity: function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountIn) -func (_UniswapV2Router02 *UniswapV2Router02CallerSession) GetAmountIn(amountOut *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountIn(&_UniswapV2Router02.CallOpts, amountOut, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_UniswapV2Router02 *UniswapV2Router02Caller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Router02.contract.Call(opts, &out, "getAmountOut", amountIn, reserveIn, reserveOut) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_UniswapV2Router02 *UniswapV2Router02Session) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountOut(&_UniswapV2Router02.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountOut is a free data retrieval call binding the contract method 0x054d50d4. -// -// Solidity: function getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) pure returns(uint256 amountOut) -func (_UniswapV2Router02 *UniswapV2Router02CallerSession) GetAmountOut(amountIn *big.Int, reserveIn *big.Int, reserveOut *big.Int) (*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountOut(&_UniswapV2Router02.CallOpts, amountIn, reserveIn, reserveOut) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Caller) GetAmountsIn(opts *bind.CallOpts, amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _UniswapV2Router02.contract.Call(opts, &out, "getAmountsIn", amountOut, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountsIn(&_UniswapV2Router02.CallOpts, amountOut, path) -} - -// GetAmountsIn is a free data retrieval call binding the contract method 0x1f00ca74. -// -// Solidity: function getAmountsIn(uint256 amountOut, address[] path) view returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02CallerSession) GetAmountsIn(amountOut *big.Int, path []common.Address) ([]*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountsIn(&_UniswapV2Router02.CallOpts, amountOut, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Caller) GetAmountsOut(opts *bind.CallOpts, amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - var out []interface{} - err := _UniswapV2Router02.contract.Call(opts, &out, "getAmountsOut", amountIn, path) - - if err != nil { - return *new([]*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - - return out0, err - -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountsOut(&_UniswapV2Router02.CallOpts, amountIn, path) -} - -// GetAmountsOut is a free data retrieval call binding the contract method 0xd06ca61f. -// -// Solidity: function getAmountsOut(uint256 amountIn, address[] path) view returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02CallerSession) GetAmountsOut(amountIn *big.Int, path []common.Address) ([]*big.Int, error) { - return _UniswapV2Router02.Contract.GetAmountsOut(&_UniswapV2Router02.CallOpts, amountIn, path) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02Caller) Quote(opts *bind.CallOpts, amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - var out []interface{} - err := _UniswapV2Router02.contract.Call(opts, &out, "quote", amountA, reserveA, reserveB) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02Session) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _UniswapV2Router02.Contract.Quote(&_UniswapV2Router02.CallOpts, amountA, reserveA, reserveB) -} - -// Quote is a free data retrieval call binding the contract method 0xad615dec. -// -// Solidity: function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) pure returns(uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02CallerSession) Quote(amountA *big.Int, reserveA *big.Int, reserveB *big.Int) (*big.Int, error) { - return _UniswapV2Router02.Contract.Quote(&_UniswapV2Router02.CallOpts, amountA, reserveA, reserveB) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "addLiquidity", tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_UniswapV2Router02 *UniswapV2Router02Session) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.AddLiquidity(&_UniswapV2Router02.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidity is a paid mutator transaction binding the contract method 0xe8e33700. -// -// Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB, uint256 liquidity) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.AddLiquidity(&_UniswapV2Router02.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) AddLiquidityETH(opts *bind.TransactOpts, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "addLiquidityETH", token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_UniswapV2Router02 *UniswapV2Router02Session) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.AddLiquidityETH(&_UniswapV2Router02.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// AddLiquidityETH is a paid mutator transaction binding the contract method 0xf305d719. -// -// Solidity: function addLiquidityETH(address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) AddLiquidityETH(token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.AddLiquidityETH(&_UniswapV2Router02.TransactOpts, token, amountTokenDesired, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "removeLiquidity", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02Session) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidity(&_UniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidity is a paid mutator transaction binding the contract method 0xbaa2abde. -// -// Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline) returns(uint256 amountA, uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidity(&_UniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "removeLiquidityETH", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Session) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETH(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETH is a paid mutator transaction binding the contract method 0x02751cec. -// -// Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountToken, uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETH(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) RemoveLiquidityETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "removeLiquidityETHSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Session) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xaf2979eb. -// -// Solidity: function removeLiquidityETHSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline) returns(uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) RemoveLiquidityETHSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETHSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) RemoveLiquidityETHWithPermit(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "removeLiquidityETHWithPermit", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Session) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETHWithPermit(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermit is a paid mutator transaction binding the contract method 0xded9382a. -// -// Solidity: function removeLiquidityETHWithPermit(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountToken, uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) RemoveLiquidityETHWithPermit(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETHWithPermit(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02Session) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5b0d5984. -// -// Solidity: function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountETH) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityETHWithPermitSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, token, liquidity, amountTokenMin, amountETHMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) RemoveLiquidityWithPermit(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "removeLiquidityWithPermit", tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02Session) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityWithPermit(&_UniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// RemoveLiquidityWithPermit is a paid mutator transaction binding the contract method 0x2195995c. -// -// Solidity: function removeLiquidityWithPermit(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) returns(uint256 amountA, uint256 amountB) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) RemoveLiquidityWithPermit(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int, to common.Address, deadline *big.Int, approveMax bool, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.RemoveLiquidityWithPermit(&_UniswapV2Router02.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin, to, deadline, approveMax, v, r, s) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapETHForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapETHForExactTokens", amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapETHForExactTokens(&_UniswapV2Router02.TransactOpts, amountOut, path, to, deadline) -} - -// SwapETHForExactTokens is a paid mutator transaction binding the contract method 0xfb3bdb41. -// -// Solidity: function swapETHForExactTokens(uint256 amountOut, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapETHForExactTokens(amountOut *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapETHForExactTokens(&_UniswapV2Router02.TransactOpts, amountOut, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapExactETHForTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapExactETHForTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactETHForTokens(&_UniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokens is a paid mutator transaction binding the contract method 0x7ff36ab5. -// -// Solidity: function swapExactETHForTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapExactETHForTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactETHForTokens(&_UniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapExactETHForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapExactETHForTokensSupportingFeeOnTransferTokens", amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactETHForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0xb6f9de95. -// -// Solidity: function swapExactETHForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, address[] path, address to, uint256 deadline) payable returns() -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapExactETHForTokensSupportingFeeOnTransferTokens(amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactETHForTokensSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapExactTokensForETH", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForETH(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETH is a paid mutator transaction binding the contract method 0x18cbafe5. -// -// Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForETH(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapExactTokensForETHSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapExactTokensForETHSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForETHSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x791ac947. -// -// Solidity: function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapExactTokensForETHSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForETHSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapExactTokensForTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForTokens(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x38ed1739. -// -// Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForTokens(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapExactTokensForTokensSupportingFeeOnTransferTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapExactTokensForTokensSupportingFeeOnTransferTokens", amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapExactTokensForTokensSupportingFeeOnTransferTokens is a paid mutator transaction binding the contract method 0x5c11d795. -// -// Solidity: function swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) returns() -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapExactTokensForTokensSupportingFeeOnTransferTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapExactTokensForTokensSupportingFeeOnTransferTokens(&_UniswapV2Router02.TransactOpts, amountIn, amountOutMin, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapTokensForExactETH", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapTokensForExactETH(&_UniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x4a25d94a. -// -// Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapTokensForExactETH(&_UniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Transactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.contract.Transact(opts, "swapTokensForExactTokens", amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02Session) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapTokensForExactTokens(&_UniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x8803dbee. -// -// Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path, address to, uint256 deadline) returns(uint256[] amounts) -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address, to common.Address, deadline *big.Int) (*types.Transaction, error) { - return _UniswapV2Router02.Contract.SwapTokensForExactTokens(&_UniswapV2Router02.TransactOpts, amountOut, amountInMax, path, to, deadline) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_UniswapV2Router02 *UniswapV2Router02Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error) { - return _UniswapV2Router02.contract.RawTransact(opts, nil) // calldata is disallowed for receive function -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_UniswapV2Router02 *UniswapV2Router02Session) Receive() (*types.Transaction, error) { - return _UniswapV2Router02.Contract.Receive(&_UniswapV2Router02.TransactOpts) -} - -// Receive is a paid mutator transaction binding the contract receive function. -// -// Solidity: receive() payable returns() -func (_UniswapV2Router02 *UniswapV2Router02TransactorSession) Receive() (*types.Transaction, error) { - return _UniswapV2Router02.Contract.Receive(&_UniswapV2Router02.TransactOpts) -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/callback/iuniswapv3swapcallback.sol/iuniswapv3swapcallback.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/callback/iuniswapv3swapcallback.sol/iuniswapv3swapcallback.go deleted file mode 100644 index cefe43474..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/callback/iuniswapv3swapcallback.sol/iuniswapv3swapcallback.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3swapcallback - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3SwapCallbackMetaData contains all meta data concerning the IUniswapV3SwapCallback contract. -var IUniswapV3SwapCallbackMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV3SwapCallbackABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3SwapCallbackMetaData.ABI instead. -var IUniswapV3SwapCallbackABI = IUniswapV3SwapCallbackMetaData.ABI - -// IUniswapV3SwapCallback is an auto generated Go binding around an Ethereum contract. -type IUniswapV3SwapCallback struct { - IUniswapV3SwapCallbackCaller // Read-only binding to the contract - IUniswapV3SwapCallbackTransactor // Write-only binding to the contract - IUniswapV3SwapCallbackFilterer // Log filterer for contract events -} - -// IUniswapV3SwapCallbackCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3SwapCallbackCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3SwapCallbackTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3SwapCallbackTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3SwapCallbackFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3SwapCallbackFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3SwapCallbackSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3SwapCallbackSession struct { - Contract *IUniswapV3SwapCallback // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3SwapCallbackCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3SwapCallbackCallerSession struct { - Contract *IUniswapV3SwapCallbackCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3SwapCallbackTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3SwapCallbackTransactorSession struct { - Contract *IUniswapV3SwapCallbackTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3SwapCallbackRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3SwapCallbackRaw struct { - Contract *IUniswapV3SwapCallback // Generic contract binding to access the raw methods on -} - -// IUniswapV3SwapCallbackCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3SwapCallbackCallerRaw struct { - Contract *IUniswapV3SwapCallbackCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3SwapCallbackTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3SwapCallbackTransactorRaw struct { - Contract *IUniswapV3SwapCallbackTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3SwapCallback creates a new instance of IUniswapV3SwapCallback, bound to a specific deployed contract. -func NewIUniswapV3SwapCallback(address common.Address, backend bind.ContractBackend) (*IUniswapV3SwapCallback, error) { - contract, err := bindIUniswapV3SwapCallback(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3SwapCallback{IUniswapV3SwapCallbackCaller: IUniswapV3SwapCallbackCaller{contract: contract}, IUniswapV3SwapCallbackTransactor: IUniswapV3SwapCallbackTransactor{contract: contract}, IUniswapV3SwapCallbackFilterer: IUniswapV3SwapCallbackFilterer{contract: contract}}, nil -} - -// NewIUniswapV3SwapCallbackCaller creates a new read-only instance of IUniswapV3SwapCallback, bound to a specific deployed contract. -func NewIUniswapV3SwapCallbackCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3SwapCallbackCaller, error) { - contract, err := bindIUniswapV3SwapCallback(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3SwapCallbackCaller{contract: contract}, nil -} - -// NewIUniswapV3SwapCallbackTransactor creates a new write-only instance of IUniswapV3SwapCallback, bound to a specific deployed contract. -func NewIUniswapV3SwapCallbackTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3SwapCallbackTransactor, error) { - contract, err := bindIUniswapV3SwapCallback(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3SwapCallbackTransactor{contract: contract}, nil -} - -// NewIUniswapV3SwapCallbackFilterer creates a new log filterer instance of IUniswapV3SwapCallback, bound to a specific deployed contract. -func NewIUniswapV3SwapCallbackFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3SwapCallbackFilterer, error) { - contract, err := bindIUniswapV3SwapCallback(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3SwapCallbackFilterer{contract: contract}, nil -} - -// bindIUniswapV3SwapCallback binds a generic wrapper to an already deployed contract. -func bindIUniswapV3SwapCallback(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3SwapCallbackMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3SwapCallback.Contract.IUniswapV3SwapCallbackCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3SwapCallback.Contract.IUniswapV3SwapCallbackTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3SwapCallback.Contract.IUniswapV3SwapCallbackTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3SwapCallback.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3SwapCallback.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3SwapCallback.Contract.contract.Transact(opts, method, params...) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackTransactor) UniswapV3SwapCallback(opts *bind.TransactOpts, amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3SwapCallback.contract.Transact(opts, "uniswapV3SwapCallback", amount0Delta, amount1Delta, data) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3SwapCallback.Contract.UniswapV3SwapCallback(&_IUniswapV3SwapCallback.TransactOpts, amount0Delta, amount1Delta, data) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_IUniswapV3SwapCallback *IUniswapV3SwapCallbackTransactorSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3SwapCallback.Contract.UniswapV3SwapCallback(&_IUniswapV3SwapCallback.TransactOpts, amount0Delta, amount1Delta, data) -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3factory.sol/iuniswapv3factory.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3factory.sol/iuniswapv3factory.go deleted file mode 100644 index 048c69bd1..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3factory.sol/iuniswapv3factory.go +++ /dev/null @@ -1,807 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3factory - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3FactoryMetaData contains all meta data concerning the IUniswapV3Factory contract. -var IUniswapV3FactoryMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"}],\"name\":\"FeeAmountEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"oldOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnerChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"int24\",\"name\":\"tickSpacing\",\"type\":\"int24\"}],\"name\":\"enableFeeAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"feeAmountTickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"}],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV3FactoryABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3FactoryMetaData.ABI instead. -var IUniswapV3FactoryABI = IUniswapV3FactoryMetaData.ABI - -// IUniswapV3Factory is an auto generated Go binding around an Ethereum contract. -type IUniswapV3Factory struct { - IUniswapV3FactoryCaller // Read-only binding to the contract - IUniswapV3FactoryTransactor // Write-only binding to the contract - IUniswapV3FactoryFilterer // Log filterer for contract events -} - -// IUniswapV3FactoryCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3FactoryCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3FactoryTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3FactoryTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3FactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3FactoryFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3FactorySession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3FactorySession struct { - Contract *IUniswapV3Factory // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3FactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3FactoryCallerSession struct { - Contract *IUniswapV3FactoryCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3FactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3FactoryTransactorSession struct { - Contract *IUniswapV3FactoryTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3FactoryRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3FactoryRaw struct { - Contract *IUniswapV3Factory // Generic contract binding to access the raw methods on -} - -// IUniswapV3FactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3FactoryCallerRaw struct { - Contract *IUniswapV3FactoryCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3FactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3FactoryTransactorRaw struct { - Contract *IUniswapV3FactoryTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3Factory creates a new instance of IUniswapV3Factory, bound to a specific deployed contract. -func NewIUniswapV3Factory(address common.Address, backend bind.ContractBackend) (*IUniswapV3Factory, error) { - contract, err := bindIUniswapV3Factory(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3Factory{IUniswapV3FactoryCaller: IUniswapV3FactoryCaller{contract: contract}, IUniswapV3FactoryTransactor: IUniswapV3FactoryTransactor{contract: contract}, IUniswapV3FactoryFilterer: IUniswapV3FactoryFilterer{contract: contract}}, nil -} - -// NewIUniswapV3FactoryCaller creates a new read-only instance of IUniswapV3Factory, bound to a specific deployed contract. -func NewIUniswapV3FactoryCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3FactoryCaller, error) { - contract, err := bindIUniswapV3Factory(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3FactoryCaller{contract: contract}, nil -} - -// NewIUniswapV3FactoryTransactor creates a new write-only instance of IUniswapV3Factory, bound to a specific deployed contract. -func NewIUniswapV3FactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3FactoryTransactor, error) { - contract, err := bindIUniswapV3Factory(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3FactoryTransactor{contract: contract}, nil -} - -// NewIUniswapV3FactoryFilterer creates a new log filterer instance of IUniswapV3Factory, bound to a specific deployed contract. -func NewIUniswapV3FactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3FactoryFilterer, error) { - contract, err := bindIUniswapV3Factory(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3FactoryFilterer{contract: contract}, nil -} - -// bindIUniswapV3Factory binds a generic wrapper to an already deployed contract. -func bindIUniswapV3Factory(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3FactoryMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3Factory *IUniswapV3FactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3Factory.Contract.IUniswapV3FactoryCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3Factory *IUniswapV3FactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.IUniswapV3FactoryTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3Factory *IUniswapV3FactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.IUniswapV3FactoryTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3Factory *IUniswapV3FactoryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3Factory.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3Factory *IUniswapV3FactoryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3Factory *IUniswapV3FactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.contract.Transact(opts, method, params...) -} - -// FeeAmountTickSpacing is a free data retrieval call binding the contract method 0x22afcccb. -// -// Solidity: function feeAmountTickSpacing(uint24 fee) view returns(int24) -func (_IUniswapV3Factory *IUniswapV3FactoryCaller) FeeAmountTickSpacing(opts *bind.CallOpts, fee *big.Int) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Factory.contract.Call(opts, &out, "feeAmountTickSpacing", fee) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// FeeAmountTickSpacing is a free data retrieval call binding the contract method 0x22afcccb. -// -// Solidity: function feeAmountTickSpacing(uint24 fee) view returns(int24) -func (_IUniswapV3Factory *IUniswapV3FactorySession) FeeAmountTickSpacing(fee *big.Int) (*big.Int, error) { - return _IUniswapV3Factory.Contract.FeeAmountTickSpacing(&_IUniswapV3Factory.CallOpts, fee) -} - -// FeeAmountTickSpacing is a free data retrieval call binding the contract method 0x22afcccb. -// -// Solidity: function feeAmountTickSpacing(uint24 fee) view returns(int24) -func (_IUniswapV3Factory *IUniswapV3FactoryCallerSession) FeeAmountTickSpacing(fee *big.Int) (*big.Int, error) { - return _IUniswapV3Factory.Contract.FeeAmountTickSpacing(&_IUniswapV3Factory.CallOpts, fee) -} - -// GetPool is a free data retrieval call binding the contract method 0x1698ee82. -// -// Solidity: function getPool(address tokenA, address tokenB, uint24 fee) view returns(address pool) -func (_IUniswapV3Factory *IUniswapV3FactoryCaller) GetPool(opts *bind.CallOpts, tokenA common.Address, tokenB common.Address, fee *big.Int) (common.Address, error) { - var out []interface{} - err := _IUniswapV3Factory.contract.Call(opts, &out, "getPool", tokenA, tokenB, fee) - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// GetPool is a free data retrieval call binding the contract method 0x1698ee82. -// -// Solidity: function getPool(address tokenA, address tokenB, uint24 fee) view returns(address pool) -func (_IUniswapV3Factory *IUniswapV3FactorySession) GetPool(tokenA common.Address, tokenB common.Address, fee *big.Int) (common.Address, error) { - return _IUniswapV3Factory.Contract.GetPool(&_IUniswapV3Factory.CallOpts, tokenA, tokenB, fee) -} - -// GetPool is a free data retrieval call binding the contract method 0x1698ee82. -// -// Solidity: function getPool(address tokenA, address tokenB, uint24 fee) view returns(address pool) -func (_IUniswapV3Factory *IUniswapV3FactoryCallerSession) GetPool(tokenA common.Address, tokenB common.Address, fee *big.Int) (common.Address, error) { - return _IUniswapV3Factory.Contract.GetPool(&_IUniswapV3Factory.CallOpts, tokenA, tokenB, fee) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_IUniswapV3Factory *IUniswapV3FactoryCaller) Owner(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV3Factory.contract.Call(opts, &out, "owner") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_IUniswapV3Factory *IUniswapV3FactorySession) Owner() (common.Address, error) { - return _IUniswapV3Factory.Contract.Owner(&_IUniswapV3Factory.CallOpts) -} - -// Owner is a free data retrieval call binding the contract method 0x8da5cb5b. -// -// Solidity: function owner() view returns(address) -func (_IUniswapV3Factory *IUniswapV3FactoryCallerSession) Owner() (common.Address, error) { - return _IUniswapV3Factory.Contract.Owner(&_IUniswapV3Factory.CallOpts) -} - -// CreatePool is a paid mutator transaction binding the contract method 0xa1671295. -// -// Solidity: function createPool(address tokenA, address tokenB, uint24 fee) returns(address pool) -func (_IUniswapV3Factory *IUniswapV3FactoryTransactor) CreatePool(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, fee *big.Int) (*types.Transaction, error) { - return _IUniswapV3Factory.contract.Transact(opts, "createPool", tokenA, tokenB, fee) -} - -// CreatePool is a paid mutator transaction binding the contract method 0xa1671295. -// -// Solidity: function createPool(address tokenA, address tokenB, uint24 fee) returns(address pool) -func (_IUniswapV3Factory *IUniswapV3FactorySession) CreatePool(tokenA common.Address, tokenB common.Address, fee *big.Int) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.CreatePool(&_IUniswapV3Factory.TransactOpts, tokenA, tokenB, fee) -} - -// CreatePool is a paid mutator transaction binding the contract method 0xa1671295. -// -// Solidity: function createPool(address tokenA, address tokenB, uint24 fee) returns(address pool) -func (_IUniswapV3Factory *IUniswapV3FactoryTransactorSession) CreatePool(tokenA common.Address, tokenB common.Address, fee *big.Int) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.CreatePool(&_IUniswapV3Factory.TransactOpts, tokenA, tokenB, fee) -} - -// EnableFeeAmount is a paid mutator transaction binding the contract method 0x8a7c195f. -// -// Solidity: function enableFeeAmount(uint24 fee, int24 tickSpacing) returns() -func (_IUniswapV3Factory *IUniswapV3FactoryTransactor) EnableFeeAmount(opts *bind.TransactOpts, fee *big.Int, tickSpacing *big.Int) (*types.Transaction, error) { - return _IUniswapV3Factory.contract.Transact(opts, "enableFeeAmount", fee, tickSpacing) -} - -// EnableFeeAmount is a paid mutator transaction binding the contract method 0x8a7c195f. -// -// Solidity: function enableFeeAmount(uint24 fee, int24 tickSpacing) returns() -func (_IUniswapV3Factory *IUniswapV3FactorySession) EnableFeeAmount(fee *big.Int, tickSpacing *big.Int) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.EnableFeeAmount(&_IUniswapV3Factory.TransactOpts, fee, tickSpacing) -} - -// EnableFeeAmount is a paid mutator transaction binding the contract method 0x8a7c195f. -// -// Solidity: function enableFeeAmount(uint24 fee, int24 tickSpacing) returns() -func (_IUniswapV3Factory *IUniswapV3FactoryTransactorSession) EnableFeeAmount(fee *big.Int, tickSpacing *big.Int) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.EnableFeeAmount(&_IUniswapV3Factory.TransactOpts, fee, tickSpacing) -} - -// SetOwner is a paid mutator transaction binding the contract method 0x13af4035. -// -// Solidity: function setOwner(address _owner) returns() -func (_IUniswapV3Factory *IUniswapV3FactoryTransactor) SetOwner(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error) { - return _IUniswapV3Factory.contract.Transact(opts, "setOwner", _owner) -} - -// SetOwner is a paid mutator transaction binding the contract method 0x13af4035. -// -// Solidity: function setOwner(address _owner) returns() -func (_IUniswapV3Factory *IUniswapV3FactorySession) SetOwner(_owner common.Address) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.SetOwner(&_IUniswapV3Factory.TransactOpts, _owner) -} - -// SetOwner is a paid mutator transaction binding the contract method 0x13af4035. -// -// Solidity: function setOwner(address _owner) returns() -func (_IUniswapV3Factory *IUniswapV3FactoryTransactorSession) SetOwner(_owner common.Address) (*types.Transaction, error) { - return _IUniswapV3Factory.Contract.SetOwner(&_IUniswapV3Factory.TransactOpts, _owner) -} - -// IUniswapV3FactoryFeeAmountEnabledIterator is returned from FilterFeeAmountEnabled and is used to iterate over the raw logs and unpacked data for FeeAmountEnabled events raised by the IUniswapV3Factory contract. -type IUniswapV3FactoryFeeAmountEnabledIterator struct { - Event *IUniswapV3FactoryFeeAmountEnabled // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3FactoryFeeAmountEnabledIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3FactoryFeeAmountEnabled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3FactoryFeeAmountEnabled) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3FactoryFeeAmountEnabledIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3FactoryFeeAmountEnabledIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3FactoryFeeAmountEnabled represents a FeeAmountEnabled event raised by the IUniswapV3Factory contract. -type IUniswapV3FactoryFeeAmountEnabled struct { - Fee *big.Int - TickSpacing *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFeeAmountEnabled is a free log retrieval operation binding the contract event 0xc66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc. -// -// Solidity: event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) FilterFeeAmountEnabled(opts *bind.FilterOpts, fee []*big.Int, tickSpacing []*big.Int) (*IUniswapV3FactoryFeeAmountEnabledIterator, error) { - - var feeRule []interface{} - for _, feeItem := range fee { - feeRule = append(feeRule, feeItem) - } - var tickSpacingRule []interface{} - for _, tickSpacingItem := range tickSpacing { - tickSpacingRule = append(tickSpacingRule, tickSpacingItem) - } - - logs, sub, err := _IUniswapV3Factory.contract.FilterLogs(opts, "FeeAmountEnabled", feeRule, tickSpacingRule) - if err != nil { - return nil, err - } - return &IUniswapV3FactoryFeeAmountEnabledIterator{contract: _IUniswapV3Factory.contract, event: "FeeAmountEnabled", logs: logs, sub: sub}, nil -} - -// WatchFeeAmountEnabled is a free log subscription operation binding the contract event 0xc66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc. -// -// Solidity: event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) WatchFeeAmountEnabled(opts *bind.WatchOpts, sink chan<- *IUniswapV3FactoryFeeAmountEnabled, fee []*big.Int, tickSpacing []*big.Int) (event.Subscription, error) { - - var feeRule []interface{} - for _, feeItem := range fee { - feeRule = append(feeRule, feeItem) - } - var tickSpacingRule []interface{} - for _, tickSpacingItem := range tickSpacing { - tickSpacingRule = append(tickSpacingRule, tickSpacingItem) - } - - logs, sub, err := _IUniswapV3Factory.contract.WatchLogs(opts, "FeeAmountEnabled", feeRule, tickSpacingRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3FactoryFeeAmountEnabled) - if err := _IUniswapV3Factory.contract.UnpackLog(event, "FeeAmountEnabled", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFeeAmountEnabled is a log parse operation binding the contract event 0xc66a3fdf07232cdd185febcc6579d408c241b47ae2f9907d84be655141eeaecc. -// -// Solidity: event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) ParseFeeAmountEnabled(log types.Log) (*IUniswapV3FactoryFeeAmountEnabled, error) { - event := new(IUniswapV3FactoryFeeAmountEnabled) - if err := _IUniswapV3Factory.contract.UnpackLog(event, "FeeAmountEnabled", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3FactoryOwnerChangedIterator is returned from FilterOwnerChanged and is used to iterate over the raw logs and unpacked data for OwnerChanged events raised by the IUniswapV3Factory contract. -type IUniswapV3FactoryOwnerChangedIterator struct { - Event *IUniswapV3FactoryOwnerChanged // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3FactoryOwnerChangedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3FactoryOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3FactoryOwnerChanged) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3FactoryOwnerChangedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3FactoryOwnerChangedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3FactoryOwnerChanged represents a OwnerChanged event raised by the IUniswapV3Factory contract. -type IUniswapV3FactoryOwnerChanged struct { - OldOwner common.Address - NewOwner common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterOwnerChanged is a free log retrieval operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address indexed oldOwner, address indexed newOwner) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) FilterOwnerChanged(opts *bind.FilterOpts, oldOwner []common.Address, newOwner []common.Address) (*IUniswapV3FactoryOwnerChangedIterator, error) { - - var oldOwnerRule []interface{} - for _, oldOwnerItem := range oldOwner { - oldOwnerRule = append(oldOwnerRule, oldOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _IUniswapV3Factory.contract.FilterLogs(opts, "OwnerChanged", oldOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return &IUniswapV3FactoryOwnerChangedIterator{contract: _IUniswapV3Factory.contract, event: "OwnerChanged", logs: logs, sub: sub}, nil -} - -// WatchOwnerChanged is a free log subscription operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address indexed oldOwner, address indexed newOwner) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) WatchOwnerChanged(opts *bind.WatchOpts, sink chan<- *IUniswapV3FactoryOwnerChanged, oldOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { - - var oldOwnerRule []interface{} - for _, oldOwnerItem := range oldOwner { - oldOwnerRule = append(oldOwnerRule, oldOwnerItem) - } - var newOwnerRule []interface{} - for _, newOwnerItem := range newOwner { - newOwnerRule = append(newOwnerRule, newOwnerItem) - } - - logs, sub, err := _IUniswapV3Factory.contract.WatchLogs(opts, "OwnerChanged", oldOwnerRule, newOwnerRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3FactoryOwnerChanged) - if err := _IUniswapV3Factory.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseOwnerChanged is a log parse operation binding the contract event 0xb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c. -// -// Solidity: event OwnerChanged(address indexed oldOwner, address indexed newOwner) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) ParseOwnerChanged(log types.Log) (*IUniswapV3FactoryOwnerChanged, error) { - event := new(IUniswapV3FactoryOwnerChanged) - if err := _IUniswapV3Factory.contract.UnpackLog(event, "OwnerChanged", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3FactoryPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the IUniswapV3Factory contract. -type IUniswapV3FactoryPoolCreatedIterator struct { - Event *IUniswapV3FactoryPoolCreated // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3FactoryPoolCreatedIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3FactoryPoolCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3FactoryPoolCreated) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3FactoryPoolCreatedIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3FactoryPoolCreatedIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3FactoryPoolCreated represents a PoolCreated event raised by the IUniswapV3Factory contract. -type IUniswapV3FactoryPoolCreated struct { - Token0 common.Address - Token1 common.Address - Fee *big.Int - TickSpacing *big.Int - Pool common.Address - Raw types.Log // Blockchain specific contextual infos -} - -// FilterPoolCreated is a free log retrieval operation binding the contract event 0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118. -// -// Solidity: event PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) FilterPoolCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address, fee []*big.Int) (*IUniswapV3FactoryPoolCreatedIterator, error) { - - var token0Rule []interface{} - for _, token0Item := range token0 { - token0Rule = append(token0Rule, token0Item) - } - var token1Rule []interface{} - for _, token1Item := range token1 { - token1Rule = append(token1Rule, token1Item) - } - var feeRule []interface{} - for _, feeItem := range fee { - feeRule = append(feeRule, feeItem) - } - - logs, sub, err := _IUniswapV3Factory.contract.FilterLogs(opts, "PoolCreated", token0Rule, token1Rule, feeRule) - if err != nil { - return nil, err - } - return &IUniswapV3FactoryPoolCreatedIterator{contract: _IUniswapV3Factory.contract, event: "PoolCreated", logs: logs, sub: sub}, nil -} - -// WatchPoolCreated is a free log subscription operation binding the contract event 0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118. -// -// Solidity: event PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *IUniswapV3FactoryPoolCreated, token0 []common.Address, token1 []common.Address, fee []*big.Int) (event.Subscription, error) { - - var token0Rule []interface{} - for _, token0Item := range token0 { - token0Rule = append(token0Rule, token0Item) - } - var token1Rule []interface{} - for _, token1Item := range token1 { - token1Rule = append(token1Rule, token1Item) - } - var feeRule []interface{} - for _, feeItem := range fee { - feeRule = append(feeRule, feeItem) - } - - logs, sub, err := _IUniswapV3Factory.contract.WatchLogs(opts, "PoolCreated", token0Rule, token1Rule, feeRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3FactoryPoolCreated) - if err := _IUniswapV3Factory.contract.UnpackLog(event, "PoolCreated", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParsePoolCreated is a log parse operation binding the contract event 0x783cca1c0412dd0d695e784568c96da2e9c22ff989357a2e8b1d9b2b4e6b7118. -// -// Solidity: event PoolCreated(address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool) -func (_IUniswapV3Factory *IUniswapV3FactoryFilterer) ParsePoolCreated(log types.Log) (*IUniswapV3FactoryPoolCreated, error) { - event := new(IUniswapV3FactoryPoolCreated) - if err := _IUniswapV3Factory.contract.UnpackLog(event, "PoolCreated", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3pool.sol/iuniswapv3pool.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3pool.sol/iuniswapv3pool.go deleted file mode 100644 index 9a6f17abf..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/iuniswapv3pool.sol/iuniswapv3pool.go +++ /dev/null @@ -1,2455 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3pool - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3PoolMetaData contains all meta data concerning the IUniswapV3Pool contract. -var IUniswapV3PoolMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"CollectProtocol\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"}],\"name\":\"Flash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"observationCardinalityNextOld\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"observationCardinalityNextNew\",\"type\":\"uint16\"}],\"name\":\"IncreaseObservationCardinalityNext\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol0Old\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol1Old\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol0New\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol1New\",\"type\":\"uint8\"}],\"name\":\"SetFeeProtocol\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collectProtocol\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeGrowthGlobal0X128\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeGrowthGlobal1X128\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"observationCardinalityNext\",\"type\":\"uint16\"}],\"name\":\"increaseObservationCardinalityNext\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"observations\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"blockTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int56\",\"name\":\"tickCumulative\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityCumulativeX128\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32[]\",\"name\":\"secondsAgos\",\"type\":\"uint32[]\"}],\"name\":\"observe\",\"outputs\":[{\"internalType\":\"int56[]\",\"name\":\"tickCumulatives\",\"type\":\"int56[]\"},{\"internalType\":\"uint160[]\",\"name\":\"secondsPerLiquidityCumulativeX128s\",\"type\":\"uint160[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"_liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside0LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside1LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolFees\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"token0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"token1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"feeProtocol0\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol1\",\"type\":\"uint8\"}],\"name\":\"setFeeProtocol\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"slot0\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"observationIndex\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"observationCardinality\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"observationCardinalityNext\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"}],\"name\":\"snapshotCumulativesInside\",\"outputs\":[{\"internalType\":\"int56\",\"name\":\"tickCumulativeInside\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityInsideX128\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"secondsInside\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountSpecified\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"wordPosition\",\"type\":\"int16\"}],\"name\":\"tickBitmap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"liquidityGross\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"liquidityNet\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthOutside0X128\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthOutside1X128\",\"type\":\"uint256\"},{\"internalType\":\"int56\",\"name\":\"tickCumulativeOutside\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityOutsideX128\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"secondsOutside\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// IUniswapV3PoolABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3PoolMetaData.ABI instead. -var IUniswapV3PoolABI = IUniswapV3PoolMetaData.ABI - -// IUniswapV3Pool is an auto generated Go binding around an Ethereum contract. -type IUniswapV3Pool struct { - IUniswapV3PoolCaller // Read-only binding to the contract - IUniswapV3PoolTransactor // Write-only binding to the contract - IUniswapV3PoolFilterer // Log filterer for contract events -} - -// IUniswapV3PoolCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3PoolCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3PoolTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3PoolFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3PoolSession struct { - Contract *IUniswapV3Pool // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3PoolCallerSession struct { - Contract *IUniswapV3PoolCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3PoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3PoolTransactorSession struct { - Contract *IUniswapV3PoolTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3PoolRaw struct { - Contract *IUniswapV3Pool // Generic contract binding to access the raw methods on -} - -// IUniswapV3PoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3PoolCallerRaw struct { - Contract *IUniswapV3PoolCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3PoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3PoolTransactorRaw struct { - Contract *IUniswapV3PoolTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3Pool creates a new instance of IUniswapV3Pool, bound to a specific deployed contract. -func NewIUniswapV3Pool(address common.Address, backend bind.ContractBackend) (*IUniswapV3Pool, error) { - contract, err := bindIUniswapV3Pool(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3Pool{IUniswapV3PoolCaller: IUniswapV3PoolCaller{contract: contract}, IUniswapV3PoolTransactor: IUniswapV3PoolTransactor{contract: contract}, IUniswapV3PoolFilterer: IUniswapV3PoolFilterer{contract: contract}}, nil -} - -// NewIUniswapV3PoolCaller creates a new read-only instance of IUniswapV3Pool, bound to a specific deployed contract. -func NewIUniswapV3PoolCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3PoolCaller, error) { - contract, err := bindIUniswapV3Pool(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolCaller{contract: contract}, nil -} - -// NewIUniswapV3PoolTransactor creates a new write-only instance of IUniswapV3Pool, bound to a specific deployed contract. -func NewIUniswapV3PoolTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3PoolTransactor, error) { - contract, err := bindIUniswapV3Pool(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolTransactor{contract: contract}, nil -} - -// NewIUniswapV3PoolFilterer creates a new log filterer instance of IUniswapV3Pool, bound to a specific deployed contract. -func NewIUniswapV3PoolFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3PoolFilterer, error) { - contract, err := bindIUniswapV3Pool(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3PoolFilterer{contract: contract}, nil -} - -// bindIUniswapV3Pool binds a generic wrapper to an already deployed contract. -func bindIUniswapV3Pool(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3PoolMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3Pool *IUniswapV3PoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3Pool.Contract.IUniswapV3PoolCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3Pool *IUniswapV3PoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.IUniswapV3PoolTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3Pool *IUniswapV3PoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.IUniswapV3PoolTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3Pool *IUniswapV3PoolCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3Pool.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3Pool *IUniswapV3PoolTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3Pool *IUniswapV3PoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.contract.Transact(opts, method, params...) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Factory() (common.Address, error) { - return _IUniswapV3Pool.Contract.Factory(&_IUniswapV3Pool.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Factory() (common.Address, error) { - return _IUniswapV3Pool.Contract.Factory(&_IUniswapV3Pool.CallOpts) -} - -// Fee is a free data retrieval call binding the contract method 0xddca3f43. -// -// Solidity: function fee() view returns(uint24) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Fee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "fee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Fee is a free data retrieval call binding the contract method 0xddca3f43. -// -// Solidity: function fee() view returns(uint24) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Fee() (*big.Int, error) { - return _IUniswapV3Pool.Contract.Fee(&_IUniswapV3Pool.CallOpts) -} - -// Fee is a free data retrieval call binding the contract method 0xddca3f43. -// -// Solidity: function fee() view returns(uint24) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Fee() (*big.Int, error) { - return _IUniswapV3Pool.Contract.Fee(&_IUniswapV3Pool.CallOpts) -} - -// FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. -// -// Solidity: function feeGrowthGlobal0X128() view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) FeeGrowthGlobal0X128(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "feeGrowthGlobal0X128") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. -// -// Solidity: function feeGrowthGlobal0X128() view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolSession) FeeGrowthGlobal0X128() (*big.Int, error) { - return _IUniswapV3Pool.Contract.FeeGrowthGlobal0X128(&_IUniswapV3Pool.CallOpts) -} - -// FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. -// -// Solidity: function feeGrowthGlobal0X128() view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) FeeGrowthGlobal0X128() (*big.Int, error) { - return _IUniswapV3Pool.Contract.FeeGrowthGlobal0X128(&_IUniswapV3Pool.CallOpts) -} - -// FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. -// -// Solidity: function feeGrowthGlobal1X128() view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) FeeGrowthGlobal1X128(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "feeGrowthGlobal1X128") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. -// -// Solidity: function feeGrowthGlobal1X128() view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolSession) FeeGrowthGlobal1X128() (*big.Int, error) { - return _IUniswapV3Pool.Contract.FeeGrowthGlobal1X128(&_IUniswapV3Pool.CallOpts) -} - -// FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. -// -// Solidity: function feeGrowthGlobal1X128() view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) FeeGrowthGlobal1X128() (*big.Int, error) { - return _IUniswapV3Pool.Contract.FeeGrowthGlobal1X128(&_IUniswapV3Pool.CallOpts) -} - -// Liquidity is a free data retrieval call binding the contract method 0x1a686502. -// -// Solidity: function liquidity() view returns(uint128) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Liquidity(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "liquidity") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Liquidity is a free data retrieval call binding the contract method 0x1a686502. -// -// Solidity: function liquidity() view returns(uint128) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Liquidity() (*big.Int, error) { - return _IUniswapV3Pool.Contract.Liquidity(&_IUniswapV3Pool.CallOpts) -} - -// Liquidity is a free data retrieval call binding the contract method 0x1a686502. -// -// Solidity: function liquidity() view returns(uint128) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Liquidity() (*big.Int, error) { - return _IUniswapV3Pool.Contract.Liquidity(&_IUniswapV3Pool.CallOpts) -} - -// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. -// -// Solidity: function maxLiquidityPerTick() view returns(uint128) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) MaxLiquidityPerTick(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "maxLiquidityPerTick") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. -// -// Solidity: function maxLiquidityPerTick() view returns(uint128) -func (_IUniswapV3Pool *IUniswapV3PoolSession) MaxLiquidityPerTick() (*big.Int, error) { - return _IUniswapV3Pool.Contract.MaxLiquidityPerTick(&_IUniswapV3Pool.CallOpts) -} - -// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. -// -// Solidity: function maxLiquidityPerTick() view returns(uint128) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) MaxLiquidityPerTick() (*big.Int, error) { - return _IUniswapV3Pool.Contract.MaxLiquidityPerTick(&_IUniswapV3Pool.CallOpts) -} - -// Observations is a free data retrieval call binding the contract method 0x252c09d7. -// -// Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Observations(opts *bind.CallOpts, index *big.Int) (struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool -}, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "observations", index) - - outstruct := new(struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool - }) - if err != nil { - return *outstruct, err - } - - outstruct.BlockTimestamp = *abi.ConvertType(out[0], new(uint32)).(*uint32) - outstruct.TickCumulative = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.SecondsPerLiquidityCumulativeX128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.Initialized = *abi.ConvertType(out[3], new(bool)).(*bool) - - return *outstruct, err - -} - -// Observations is a free data retrieval call binding the contract method 0x252c09d7. -// -// Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Observations(index *big.Int) (struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool -}, error) { - return _IUniswapV3Pool.Contract.Observations(&_IUniswapV3Pool.CallOpts, index) -} - -// Observations is a free data retrieval call binding the contract method 0x252c09d7. -// -// Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Observations(index *big.Int) (struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool -}, error) { - return _IUniswapV3Pool.Contract.Observations(&_IUniswapV3Pool.CallOpts, index) -} - -// Observe is a free data retrieval call binding the contract method 0x883bdbfd. -// -// Solidity: function observe(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Observe(opts *bind.CallOpts, secondsAgos []uint32) (struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int -}, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "observe", secondsAgos) - - outstruct := new(struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.TickCumulatives = *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - outstruct.SecondsPerLiquidityCumulativeX128s = *abi.ConvertType(out[1], new([]*big.Int)).(*[]*big.Int) - - return *outstruct, err - -} - -// Observe is a free data retrieval call binding the contract method 0x883bdbfd. -// -// Solidity: function observe(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Observe(secondsAgos []uint32) (struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int -}, error) { - return _IUniswapV3Pool.Contract.Observe(&_IUniswapV3Pool.CallOpts, secondsAgos) -} - -// Observe is a free data retrieval call binding the contract method 0x883bdbfd. -// -// Solidity: function observe(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Observe(secondsAgos []uint32) (struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int -}, error) { - return _IUniswapV3Pool.Contract.Observe(&_IUniswapV3Pool.CallOpts, secondsAgos) -} - -// Positions is a free data retrieval call binding the contract method 0x514ea4bf. -// -// Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Positions(opts *bind.CallOpts, key [32]byte) (struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "positions", key) - - outstruct := new(struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.Liquidity = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthInside0LastX128 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthInside1LastX128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.TokensOwed0 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) - outstruct.TokensOwed1 = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// Positions is a free data retrieval call binding the contract method 0x514ea4bf. -// -// Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Positions(key [32]byte) (struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - return _IUniswapV3Pool.Contract.Positions(&_IUniswapV3Pool.CallOpts, key) -} - -// Positions is a free data retrieval call binding the contract method 0x514ea4bf. -// -// Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Positions(key [32]byte) (struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - return _IUniswapV3Pool.Contract.Positions(&_IUniswapV3Pool.CallOpts, key) -} - -// ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b. -// -// Solidity: function protocolFees() view returns(uint128 token0, uint128 token1) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) ProtocolFees(opts *bind.CallOpts) (struct { - Token0 *big.Int - Token1 *big.Int -}, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "protocolFees") - - outstruct := new(struct { - Token0 *big.Int - Token1 *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.Token0 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Token1 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b. -// -// Solidity: function protocolFees() view returns(uint128 token0, uint128 token1) -func (_IUniswapV3Pool *IUniswapV3PoolSession) ProtocolFees() (struct { - Token0 *big.Int - Token1 *big.Int -}, error) { - return _IUniswapV3Pool.Contract.ProtocolFees(&_IUniswapV3Pool.CallOpts) -} - -// ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b. -// -// Solidity: function protocolFees() view returns(uint128 token0, uint128 token1) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) ProtocolFees() (struct { - Token0 *big.Int - Token1 *big.Int -}, error) { - return _IUniswapV3Pool.Contract.ProtocolFees(&_IUniswapV3Pool.CallOpts) -} - -// Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. -// -// Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Slot0(opts *bind.CallOpts) (struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool -}, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "slot0") - - outstruct := new(struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool - }) - if err != nil { - return *outstruct, err - } - - outstruct.SqrtPriceX96 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Tick = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.ObservationIndex = *abi.ConvertType(out[2], new(uint16)).(*uint16) - outstruct.ObservationCardinality = *abi.ConvertType(out[3], new(uint16)).(*uint16) - outstruct.ObservationCardinalityNext = *abi.ConvertType(out[4], new(uint16)).(*uint16) - outstruct.FeeProtocol = *abi.ConvertType(out[5], new(uint8)).(*uint8) - outstruct.Unlocked = *abi.ConvertType(out[6], new(bool)).(*bool) - - return *outstruct, err - -} - -// Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. -// -// Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Slot0() (struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool -}, error) { - return _IUniswapV3Pool.Contract.Slot0(&_IUniswapV3Pool.CallOpts) -} - -// Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. -// -// Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Slot0() (struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool -}, error) { - return _IUniswapV3Pool.Contract.Slot0(&_IUniswapV3Pool.CallOpts) -} - -// SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2. -// -// Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) SnapshotCumulativesInside(opts *bind.CallOpts, tickLower *big.Int, tickUpper *big.Int) (struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 -}, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "snapshotCumulativesInside", tickLower, tickUpper) - - outstruct := new(struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 - }) - if err != nil { - return *outstruct, err - } - - outstruct.TickCumulativeInside = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.SecondsPerLiquidityInsideX128 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.SecondsInside = *abi.ConvertType(out[2], new(uint32)).(*uint32) - - return *outstruct, err - -} - -// SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2. -// -// Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside) -func (_IUniswapV3Pool *IUniswapV3PoolSession) SnapshotCumulativesInside(tickLower *big.Int, tickUpper *big.Int) (struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 -}, error) { - return _IUniswapV3Pool.Contract.SnapshotCumulativesInside(&_IUniswapV3Pool.CallOpts, tickLower, tickUpper) -} - -// SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2. -// -// Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) SnapshotCumulativesInside(tickLower *big.Int, tickUpper *big.Int) (struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 -}, error) { - return _IUniswapV3Pool.Contract.SnapshotCumulativesInside(&_IUniswapV3Pool.CallOpts, tickLower, tickUpper) -} - -// TickBitmap is a free data retrieval call binding the contract method 0x5339c296. -// -// Solidity: function tickBitmap(int16 wordPosition) view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) TickBitmap(opts *bind.CallOpts, wordPosition int16) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "tickBitmap", wordPosition) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TickBitmap is a free data retrieval call binding the contract method 0x5339c296. -// -// Solidity: function tickBitmap(int16 wordPosition) view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolSession) TickBitmap(wordPosition int16) (*big.Int, error) { - return _IUniswapV3Pool.Contract.TickBitmap(&_IUniswapV3Pool.CallOpts, wordPosition) -} - -// TickBitmap is a free data retrieval call binding the contract method 0x5339c296. -// -// Solidity: function tickBitmap(int16 wordPosition) view returns(uint256) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) TickBitmap(wordPosition int16) (*big.Int, error) { - return _IUniswapV3Pool.Contract.TickBitmap(&_IUniswapV3Pool.CallOpts, wordPosition) -} - -// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. -// -// Solidity: function tickSpacing() view returns(int24) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) TickSpacing(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "tickSpacing") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. -// -// Solidity: function tickSpacing() view returns(int24) -func (_IUniswapV3Pool *IUniswapV3PoolSession) TickSpacing() (*big.Int, error) { - return _IUniswapV3Pool.Contract.TickSpacing(&_IUniswapV3Pool.CallOpts) -} - -// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. -// -// Solidity: function tickSpacing() view returns(int24) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) TickSpacing() (*big.Int, error) { - return _IUniswapV3Pool.Contract.TickSpacing(&_IUniswapV3Pool.CallOpts) -} - -// Ticks is a free data retrieval call binding the contract method 0xf30dba93. -// -// Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Ticks(opts *bind.CallOpts, tick *big.Int) (struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool -}, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "ticks", tick) - - outstruct := new(struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool - }) - if err != nil { - return *outstruct, err - } - - outstruct.LiquidityGross = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.LiquidityNet = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthOutside0X128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthOutside1X128 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) - outstruct.TickCumulativeOutside = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int) - outstruct.SecondsPerLiquidityOutsideX128 = *abi.ConvertType(out[5], new(*big.Int)).(**big.Int) - outstruct.SecondsOutside = *abi.ConvertType(out[6], new(uint32)).(*uint32) - outstruct.Initialized = *abi.ConvertType(out[7], new(bool)).(*bool) - - return *outstruct, err - -} - -// Ticks is a free data retrieval call binding the contract method 0xf30dba93. -// -// Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Ticks(tick *big.Int) (struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool -}, error) { - return _IUniswapV3Pool.Contract.Ticks(&_IUniswapV3Pool.CallOpts, tick) -} - -// Ticks is a free data retrieval call binding the contract method 0xf30dba93. -// -// Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Ticks(tick *big.Int) (struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool -}, error) { - return _IUniswapV3Pool.Contract.Ticks(&_IUniswapV3Pool.CallOpts, tick) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Token0(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "token0") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Token0() (common.Address, error) { - return _IUniswapV3Pool.Contract.Token0(&_IUniswapV3Pool.CallOpts) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Token0() (common.Address, error) { - return _IUniswapV3Pool.Contract.Token0(&_IUniswapV3Pool.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolCaller) Token1(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV3Pool.contract.Call(opts, &out, "token1") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Token1() (common.Address, error) { - return _IUniswapV3Pool.Contract.Token1(&_IUniswapV3Pool.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV3Pool *IUniswapV3PoolCallerSession) Token1() (common.Address, error) { - return _IUniswapV3Pool.Contract.Token1(&_IUniswapV3Pool.CallOpts) -} - -// Burn is a paid mutator transaction binding the contract method 0xa34123a7. -// -// Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) Burn(opts *bind.TransactOpts, tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "burn", tickLower, tickUpper, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0xa34123a7. -// -// Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Burn(tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Burn(&_IUniswapV3Pool.TransactOpts, tickLower, tickUpper, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0xa34123a7. -// -// Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) Burn(tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Burn(&_IUniswapV3Pool.TransactOpts, tickLower, tickUpper, amount) -} - -// Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8. -// -// Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) Collect(opts *bind.TransactOpts, recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "collect", recipient, tickLower, tickUpper, amount0Requested, amount1Requested) -} - -// Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8. -// -// Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Collect(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Collect(&_IUniswapV3Pool.TransactOpts, recipient, tickLower, tickUpper, amount0Requested, amount1Requested) -} - -// Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8. -// -// Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) Collect(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Collect(&_IUniswapV3Pool.TransactOpts, recipient, tickLower, tickUpper, amount0Requested, amount1Requested) -} - -// CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729. -// -// Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) CollectProtocol(opts *bind.TransactOpts, recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "collectProtocol", recipient, amount0Requested, amount1Requested) -} - -// CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729. -// -// Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolSession) CollectProtocol(recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.CollectProtocol(&_IUniswapV3Pool.TransactOpts, recipient, amount0Requested, amount1Requested) -} - -// CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729. -// -// Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) CollectProtocol(recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.CollectProtocol(&_IUniswapV3Pool.TransactOpts, recipient, amount0Requested, amount1Requested) -} - -// Flash is a paid mutator transaction binding the contract method 0x490e6cbc. -// -// Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) Flash(opts *bind.TransactOpts, recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "flash", recipient, amount0, amount1, data) -} - -// Flash is a paid mutator transaction binding the contract method 0x490e6cbc. -// -// Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV3Pool *IUniswapV3PoolSession) Flash(recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Flash(&_IUniswapV3Pool.TransactOpts, recipient, amount0, amount1, data) -} - -// Flash is a paid mutator transaction binding the contract method 0x490e6cbc. -// -// Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) Flash(recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Flash(&_IUniswapV3Pool.TransactOpts, recipient, amount0, amount1, data) -} - -// IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67. -// -// Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) IncreaseObservationCardinalityNext(opts *bind.TransactOpts, observationCardinalityNext uint16) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "increaseObservationCardinalityNext", observationCardinalityNext) -} - -// IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67. -// -// Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns() -func (_IUniswapV3Pool *IUniswapV3PoolSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.IncreaseObservationCardinalityNext(&_IUniswapV3Pool.TransactOpts, observationCardinalityNext) -} - -// IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67. -// -// Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.IncreaseObservationCardinalityNext(&_IUniswapV3Pool.TransactOpts, observationCardinalityNext) -} - -// Initialize is a paid mutator transaction binding the contract method 0xf637731d. -// -// Solidity: function initialize(uint160 sqrtPriceX96) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) Initialize(opts *bind.TransactOpts, sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "initialize", sqrtPriceX96) -} - -// Initialize is a paid mutator transaction binding the contract method 0xf637731d. -// -// Solidity: function initialize(uint160 sqrtPriceX96) returns() -func (_IUniswapV3Pool *IUniswapV3PoolSession) Initialize(sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Initialize(&_IUniswapV3Pool.TransactOpts, sqrtPriceX96) -} - -// Initialize is a paid mutator transaction binding the contract method 0xf637731d. -// -// Solidity: function initialize(uint160 sqrtPriceX96) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) Initialize(sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Initialize(&_IUniswapV3Pool.TransactOpts, sqrtPriceX96) -} - -// Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d. -// -// Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) Mint(opts *bind.TransactOpts, recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "mint", recipient, tickLower, tickUpper, amount, data) -} - -// Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d. -// -// Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Mint(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Mint(&_IUniswapV3Pool.TransactOpts, recipient, tickLower, tickUpper, amount, data) -} - -// Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d. -// -// Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) Mint(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Mint(&_IUniswapV3Pool.TransactOpts, recipient, tickLower, tickUpper, amount, data) -} - -// SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1. -// -// Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) SetFeeProtocol(opts *bind.TransactOpts, feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "setFeeProtocol", feeProtocol0, feeProtocol1) -} - -// SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1. -// -// Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns() -func (_IUniswapV3Pool *IUniswapV3PoolSession) SetFeeProtocol(feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.SetFeeProtocol(&_IUniswapV3Pool.TransactOpts, feeProtocol0, feeProtocol1) -} - -// SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1. -// -// Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns() -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) SetFeeProtocol(feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.SetFeeProtocol(&_IUniswapV3Pool.TransactOpts, feeProtocol0, feeProtocol1) -} - -// Swap is a paid mutator transaction binding the contract method 0x128acb08. -// -// Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactor) Swap(opts *bind.TransactOpts, recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.contract.Transact(opts, "swap", recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x128acb08. -// -// Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Swap(&_IUniswapV3Pool.TransactOpts, recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x128acb08. -// -// Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolTransactorSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3Pool.Contract.Swap(&_IUniswapV3Pool.TransactOpts, recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) -} - -// IUniswapV3PoolBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolBurnIterator struct { - Event *IUniswapV3PoolBurn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolBurnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolBurnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolBurnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolBurn represents a Burn event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolBurn struct { - Owner common.Address - TickLower *big.Int - TickUpper *big.Int - Amount *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterBurn is a free log retrieval operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c. -// -// Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterBurn(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*IUniswapV3PoolBurnIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "Burn", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolBurnIterator{contract: _IUniswapV3Pool.contract, event: "Burn", logs: logs, sub: sub}, nil -} - -// WatchBurn is a free log subscription operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c. -// -// Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolBurn, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "Burn", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolBurn) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Burn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseBurn is a log parse operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c. -// -// Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseBurn(log types.Log) (*IUniswapV3PoolBurn, error) { - event := new(IUniswapV3PoolBurn) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Burn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolCollectIterator is returned from FilterCollect and is used to iterate over the raw logs and unpacked data for Collect events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolCollectIterator struct { - Event *IUniswapV3PoolCollect // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolCollectIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolCollect) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolCollect) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolCollectIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolCollectIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolCollect represents a Collect event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolCollect struct { - Owner common.Address - Recipient common.Address - TickLower *big.Int - TickUpper *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollect is a free log retrieval operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0. -// -// Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterCollect(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*IUniswapV3PoolCollectIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "Collect", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolCollectIterator{contract: _IUniswapV3Pool.contract, event: "Collect", logs: logs, sub: sub}, nil -} - -// WatchCollect is a free log subscription operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0. -// -// Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchCollect(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolCollect, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "Collect", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolCollect) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Collect", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollect is a log parse operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0. -// -// Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseCollect(log types.Log) (*IUniswapV3PoolCollect, error) { - event := new(IUniswapV3PoolCollect) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Collect", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolCollectProtocolIterator is returned from FilterCollectProtocol and is used to iterate over the raw logs and unpacked data for CollectProtocol events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolCollectProtocolIterator struct { - Event *IUniswapV3PoolCollectProtocol // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolCollectProtocolIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolCollectProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolCollectProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolCollectProtocolIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolCollectProtocolIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolCollectProtocol represents a CollectProtocol event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolCollectProtocol struct { - Sender common.Address - Recipient common.Address - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollectProtocol is a free log retrieval operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151. -// -// Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterCollectProtocol(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*IUniswapV3PoolCollectProtocolIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "CollectProtocol", senderRule, recipientRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolCollectProtocolIterator{contract: _IUniswapV3Pool.contract, event: "CollectProtocol", logs: logs, sub: sub}, nil -} - -// WatchCollectProtocol is a free log subscription operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151. -// -// Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchCollectProtocol(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolCollectProtocol, sender []common.Address, recipient []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "CollectProtocol", senderRule, recipientRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolCollectProtocol) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "CollectProtocol", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollectProtocol is a log parse operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151. -// -// Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseCollectProtocol(log types.Log) (*IUniswapV3PoolCollectProtocol, error) { - event := new(IUniswapV3PoolCollectProtocol) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "CollectProtocol", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolFlashIterator is returned from FilterFlash and is used to iterate over the raw logs and unpacked data for Flash events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolFlashIterator struct { - Event *IUniswapV3PoolFlash // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolFlashIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolFlash) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolFlash) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolFlashIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolFlashIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolFlash represents a Flash event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolFlash struct { - Sender common.Address - Recipient common.Address - Amount0 *big.Int - Amount1 *big.Int - Paid0 *big.Int - Paid1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFlash is a free log retrieval operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633. -// -// Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterFlash(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*IUniswapV3PoolFlashIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "Flash", senderRule, recipientRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolFlashIterator{contract: _IUniswapV3Pool.contract, event: "Flash", logs: logs, sub: sub}, nil -} - -// WatchFlash is a free log subscription operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633. -// -// Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchFlash(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolFlash, sender []common.Address, recipient []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "Flash", senderRule, recipientRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolFlash) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Flash", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFlash is a log parse operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633. -// -// Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseFlash(log types.Log) (*IUniswapV3PoolFlash, error) { - event := new(IUniswapV3PoolFlash) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Flash", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolIncreaseObservationCardinalityNextIterator is returned from FilterIncreaseObservationCardinalityNext and is used to iterate over the raw logs and unpacked data for IncreaseObservationCardinalityNext events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolIncreaseObservationCardinalityNextIterator struct { - Event *IUniswapV3PoolIncreaseObservationCardinalityNext // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolIncreaseObservationCardinalityNextIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolIncreaseObservationCardinalityNext) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolIncreaseObservationCardinalityNext) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolIncreaseObservationCardinalityNextIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolIncreaseObservationCardinalityNextIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolIncreaseObservationCardinalityNext represents a IncreaseObservationCardinalityNext event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolIncreaseObservationCardinalityNext struct { - ObservationCardinalityNextOld uint16 - ObservationCardinalityNextNew uint16 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterIncreaseObservationCardinalityNext is a free log retrieval operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a. -// -// Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterIncreaseObservationCardinalityNext(opts *bind.FilterOpts) (*IUniswapV3PoolIncreaseObservationCardinalityNextIterator, error) { - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "IncreaseObservationCardinalityNext") - if err != nil { - return nil, err - } - return &IUniswapV3PoolIncreaseObservationCardinalityNextIterator{contract: _IUniswapV3Pool.contract, event: "IncreaseObservationCardinalityNext", logs: logs, sub: sub}, nil -} - -// WatchIncreaseObservationCardinalityNext is a free log subscription operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a. -// -// Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchIncreaseObservationCardinalityNext(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolIncreaseObservationCardinalityNext) (event.Subscription, error) { - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "IncreaseObservationCardinalityNext") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolIncreaseObservationCardinalityNext) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "IncreaseObservationCardinalityNext", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseIncreaseObservationCardinalityNext is a log parse operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a. -// -// Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseIncreaseObservationCardinalityNext(log types.Log) (*IUniswapV3PoolIncreaseObservationCardinalityNext, error) { - event := new(IUniswapV3PoolIncreaseObservationCardinalityNext) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "IncreaseObservationCardinalityNext", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolInitializeIterator is returned from FilterInitialize and is used to iterate over the raw logs and unpacked data for Initialize events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolInitializeIterator struct { - Event *IUniswapV3PoolInitialize // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolInitializeIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolInitialize) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolInitialize) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolInitializeIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolInitializeIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolInitialize represents a Initialize event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolInitialize struct { - SqrtPriceX96 *big.Int - Tick *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterInitialize is a free log retrieval operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95. -// -// Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterInitialize(opts *bind.FilterOpts) (*IUniswapV3PoolInitializeIterator, error) { - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "Initialize") - if err != nil { - return nil, err - } - return &IUniswapV3PoolInitializeIterator{contract: _IUniswapV3Pool.contract, event: "Initialize", logs: logs, sub: sub}, nil -} - -// WatchInitialize is a free log subscription operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95. -// -// Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchInitialize(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolInitialize) (event.Subscription, error) { - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "Initialize") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolInitialize) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Initialize", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseInitialize is a log parse operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95. -// -// Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseInitialize(log types.Log) (*IUniswapV3PoolInitialize, error) { - event := new(IUniswapV3PoolInitialize) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Initialize", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolMintIterator struct { - Event *IUniswapV3PoolMint // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolMintIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolMintIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolMintIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolMint represents a Mint event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolMint struct { - Sender common.Address - Owner common.Address - TickLower *big.Int - TickUpper *big.Int - Amount *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMint is a free log retrieval operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde. -// -// Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterMint(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*IUniswapV3PoolMintIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "Mint", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolMintIterator{contract: _IUniswapV3Pool.contract, event: "Mint", logs: logs, sub: sub}, nil -} - -// WatchMint is a free log subscription operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde. -// -// Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolMint, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "Mint", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolMint) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Mint", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMint is a log parse operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde. -// -// Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseMint(log types.Log) (*IUniswapV3PoolMint, error) { - event := new(IUniswapV3PoolMint) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Mint", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolSetFeeProtocolIterator is returned from FilterSetFeeProtocol and is used to iterate over the raw logs and unpacked data for SetFeeProtocol events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolSetFeeProtocolIterator struct { - Event *IUniswapV3PoolSetFeeProtocol // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolSetFeeProtocolIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolSetFeeProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolSetFeeProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolSetFeeProtocolIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolSetFeeProtocolIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolSetFeeProtocol represents a SetFeeProtocol event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolSetFeeProtocol struct { - FeeProtocol0Old uint8 - FeeProtocol1Old uint8 - FeeProtocol0New uint8 - FeeProtocol1New uint8 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetFeeProtocol is a free log retrieval operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133. -// -// Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterSetFeeProtocol(opts *bind.FilterOpts) (*IUniswapV3PoolSetFeeProtocolIterator, error) { - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "SetFeeProtocol") - if err != nil { - return nil, err - } - return &IUniswapV3PoolSetFeeProtocolIterator{contract: _IUniswapV3Pool.contract, event: "SetFeeProtocol", logs: logs, sub: sub}, nil -} - -// WatchSetFeeProtocol is a free log subscription operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133. -// -// Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchSetFeeProtocol(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolSetFeeProtocol) (event.Subscription, error) { - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "SetFeeProtocol") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolSetFeeProtocol) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "SetFeeProtocol", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetFeeProtocol is a log parse operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133. -// -// Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseSetFeeProtocol(log types.Log) (*IUniswapV3PoolSetFeeProtocol, error) { - event := new(IUniswapV3PoolSetFeeProtocol) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "SetFeeProtocol", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the IUniswapV3Pool contract. -type IUniswapV3PoolSwapIterator struct { - Event *IUniswapV3PoolSwap // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolSwapIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolSwapIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolSwapIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolSwap represents a Swap event raised by the IUniswapV3Pool contract. -type IUniswapV3PoolSwap struct { - Sender common.Address - Recipient common.Address - Amount0 *big.Int - Amount1 *big.Int - SqrtPriceX96 *big.Int - Liquidity *big.Int - Tick *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSwap is a free log retrieval operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67. -// -// Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*IUniswapV3PoolSwapIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.FilterLogs(opts, "Swap", senderRule, recipientRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolSwapIterator{contract: _IUniswapV3Pool.contract, event: "Swap", logs: logs, sub: sub}, nil -} - -// WatchSwap is a free log subscription operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67. -// -// Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolSwap, sender []common.Address, recipient []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3Pool.contract.WatchLogs(opts, "Swap", senderRule, recipientRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolSwap) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Swap", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSwap is a log parse operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67. -// -// Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick) -func (_IUniswapV3Pool *IUniswapV3PoolFilterer) ParseSwap(log types.Log) (*IUniswapV3PoolSwap, error) { - event := new(IUniswapV3PoolSwap) - if err := _IUniswapV3Pool.contract.UnpackLog(event, "Swap", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolactions.sol/iuniswapv3poolactions.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolactions.sol/iuniswapv3poolactions.go deleted file mode 100644 index faa639bc5..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolactions.sol/iuniswapv3poolactions.go +++ /dev/null @@ -1,328 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3poolactions - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3PoolActionsMetaData contains all meta data concerning the IUniswapV3PoolActions contract. -var IUniswapV3PoolActionsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collect\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"observationCardinalityNext\",\"type\":\"uint16\"}],\"name\":\"increaseObservationCardinalityNext\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"zeroForOne\",\"type\":\"bool\"},{\"internalType\":\"int256\",\"name\":\"amountSpecified\",\"type\":\"int256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV3PoolActionsABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3PoolActionsMetaData.ABI instead. -var IUniswapV3PoolActionsABI = IUniswapV3PoolActionsMetaData.ABI - -// IUniswapV3PoolActions is an auto generated Go binding around an Ethereum contract. -type IUniswapV3PoolActions struct { - IUniswapV3PoolActionsCaller // Read-only binding to the contract - IUniswapV3PoolActionsTransactor // Write-only binding to the contract - IUniswapV3PoolActionsFilterer // Log filterer for contract events -} - -// IUniswapV3PoolActionsCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3PoolActionsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolActionsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3PoolActionsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolActionsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3PoolActionsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolActionsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3PoolActionsSession struct { - Contract *IUniswapV3PoolActions // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolActionsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3PoolActionsCallerSession struct { - Contract *IUniswapV3PoolActionsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3PoolActionsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3PoolActionsTransactorSession struct { - Contract *IUniswapV3PoolActionsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolActionsRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3PoolActionsRaw struct { - Contract *IUniswapV3PoolActions // Generic contract binding to access the raw methods on -} - -// IUniswapV3PoolActionsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3PoolActionsCallerRaw struct { - Contract *IUniswapV3PoolActionsCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3PoolActionsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3PoolActionsTransactorRaw struct { - Contract *IUniswapV3PoolActionsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3PoolActions creates a new instance of IUniswapV3PoolActions, bound to a specific deployed contract. -func NewIUniswapV3PoolActions(address common.Address, backend bind.ContractBackend) (*IUniswapV3PoolActions, error) { - contract, err := bindIUniswapV3PoolActions(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3PoolActions{IUniswapV3PoolActionsCaller: IUniswapV3PoolActionsCaller{contract: contract}, IUniswapV3PoolActionsTransactor: IUniswapV3PoolActionsTransactor{contract: contract}, IUniswapV3PoolActionsFilterer: IUniswapV3PoolActionsFilterer{contract: contract}}, nil -} - -// NewIUniswapV3PoolActionsCaller creates a new read-only instance of IUniswapV3PoolActions, bound to a specific deployed contract. -func NewIUniswapV3PoolActionsCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3PoolActionsCaller, error) { - contract, err := bindIUniswapV3PoolActions(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolActionsCaller{contract: contract}, nil -} - -// NewIUniswapV3PoolActionsTransactor creates a new write-only instance of IUniswapV3PoolActions, bound to a specific deployed contract. -func NewIUniswapV3PoolActionsTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3PoolActionsTransactor, error) { - contract, err := bindIUniswapV3PoolActions(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolActionsTransactor{contract: contract}, nil -} - -// NewIUniswapV3PoolActionsFilterer creates a new log filterer instance of IUniswapV3PoolActions, bound to a specific deployed contract. -func NewIUniswapV3PoolActionsFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3PoolActionsFilterer, error) { - contract, err := bindIUniswapV3PoolActions(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3PoolActionsFilterer{contract: contract}, nil -} - -// bindIUniswapV3PoolActions binds a generic wrapper to an already deployed contract. -func bindIUniswapV3PoolActions(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3PoolActionsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolActions.Contract.IUniswapV3PoolActionsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.IUniswapV3PoolActionsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.IUniswapV3PoolActionsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolActions.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.contract.Transact(opts, method, params...) -} - -// Burn is a paid mutator transaction binding the contract method 0xa34123a7. -// -// Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactor) Burn(opts *bind.TransactOpts, tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.contract.Transact(opts, "burn", tickLower, tickUpper, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0xa34123a7. -// -// Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsSession) Burn(tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Burn(&_IUniswapV3PoolActions.TransactOpts, tickLower, tickUpper, amount) -} - -// Burn is a paid mutator transaction binding the contract method 0xa34123a7. -// -// Solidity: function burn(int24 tickLower, int24 tickUpper, uint128 amount) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorSession) Burn(tickLower *big.Int, tickUpper *big.Int, amount *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Burn(&_IUniswapV3PoolActions.TransactOpts, tickLower, tickUpper, amount) -} - -// Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8. -// -// Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactor) Collect(opts *bind.TransactOpts, recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.contract.Transact(opts, "collect", recipient, tickLower, tickUpper, amount0Requested, amount1Requested) -} - -// Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8. -// -// Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsSession) Collect(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Collect(&_IUniswapV3PoolActions.TransactOpts, recipient, tickLower, tickUpper, amount0Requested, amount1Requested) -} - -// Collect is a paid mutator transaction binding the contract method 0x4f1eb3d8. -// -// Solidity: function collect(address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorSession) Collect(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Collect(&_IUniswapV3PoolActions.TransactOpts, recipient, tickLower, tickUpper, amount0Requested, amount1Requested) -} - -// Flash is a paid mutator transaction binding the contract method 0x490e6cbc. -// -// Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactor) Flash(opts *bind.TransactOpts, recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.contract.Transact(opts, "flash", recipient, amount0, amount1, data) -} - -// Flash is a paid mutator transaction binding the contract method 0x490e6cbc. -// -// Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsSession) Flash(recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Flash(&_IUniswapV3PoolActions.TransactOpts, recipient, amount0, amount1, data) -} - -// Flash is a paid mutator transaction binding the contract method 0x490e6cbc. -// -// Solidity: function flash(address recipient, uint256 amount0, uint256 amount1, bytes data) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorSession) Flash(recipient common.Address, amount0 *big.Int, amount1 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Flash(&_IUniswapV3PoolActions.TransactOpts, recipient, amount0, amount1, data) -} - -// IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67. -// -// Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactor) IncreaseObservationCardinalityNext(opts *bind.TransactOpts, observationCardinalityNext uint16) (*types.Transaction, error) { - return _IUniswapV3PoolActions.contract.Transact(opts, "increaseObservationCardinalityNext", observationCardinalityNext) -} - -// IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67. -// -// Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.IncreaseObservationCardinalityNext(&_IUniswapV3PoolActions.TransactOpts, observationCardinalityNext) -} - -// IncreaseObservationCardinalityNext is a paid mutator transaction binding the contract method 0x32148f67. -// -// Solidity: function increaseObservationCardinalityNext(uint16 observationCardinalityNext) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorSession) IncreaseObservationCardinalityNext(observationCardinalityNext uint16) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.IncreaseObservationCardinalityNext(&_IUniswapV3PoolActions.TransactOpts, observationCardinalityNext) -} - -// Initialize is a paid mutator transaction binding the contract method 0xf637731d. -// -// Solidity: function initialize(uint160 sqrtPriceX96) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactor) Initialize(opts *bind.TransactOpts, sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.contract.Transact(opts, "initialize", sqrtPriceX96) -} - -// Initialize is a paid mutator transaction binding the contract method 0xf637731d. -// -// Solidity: function initialize(uint160 sqrtPriceX96) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsSession) Initialize(sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Initialize(&_IUniswapV3PoolActions.TransactOpts, sqrtPriceX96) -} - -// Initialize is a paid mutator transaction binding the contract method 0xf637731d. -// -// Solidity: function initialize(uint160 sqrtPriceX96) returns() -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorSession) Initialize(sqrtPriceX96 *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Initialize(&_IUniswapV3PoolActions.TransactOpts, sqrtPriceX96) -} - -// Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d. -// -// Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactor) Mint(opts *bind.TransactOpts, recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.contract.Transact(opts, "mint", recipient, tickLower, tickUpper, amount, data) -} - -// Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d. -// -// Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsSession) Mint(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Mint(&_IUniswapV3PoolActions.TransactOpts, recipient, tickLower, tickUpper, amount, data) -} - -// Mint is a paid mutator transaction binding the contract method 0x3c8a7d8d. -// -// Solidity: function mint(address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes data) returns(uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorSession) Mint(recipient common.Address, tickLower *big.Int, tickUpper *big.Int, amount *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Mint(&_IUniswapV3PoolActions.TransactOpts, recipient, tickLower, tickUpper, amount, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x128acb08. -// -// Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactor) Swap(opts *bind.TransactOpts, recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.contract.Transact(opts, "swap", recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x128acb08. -// -// Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Swap(&_IUniswapV3PoolActions.TransactOpts, recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) -} - -// Swap is a paid mutator transaction binding the contract method 0x128acb08. -// -// Solidity: function swap(address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes data) returns(int256 amount0, int256 amount1) -func (_IUniswapV3PoolActions *IUniswapV3PoolActionsTransactorSession) Swap(recipient common.Address, zeroForOne bool, amountSpecified *big.Int, sqrtPriceLimitX96 *big.Int, data []byte) (*types.Transaction, error) { - return _IUniswapV3PoolActions.Contract.Swap(&_IUniswapV3PoolActions.TransactOpts, recipient, zeroForOne, amountSpecified, sqrtPriceLimitX96, data) -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolderivedstate.sol/iuniswapv3poolderivedstate.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolderivedstate.sol/iuniswapv3poolderivedstate.go deleted file mode 100644 index efcbc37ae..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolderivedstate.sol/iuniswapv3poolderivedstate.go +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3poolderivedstate - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3PoolDerivedStateMetaData contains all meta data concerning the IUniswapV3PoolDerivedState contract. -var IUniswapV3PoolDerivedStateMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"uint32[]\",\"name\":\"secondsAgos\",\"type\":\"uint32[]\"}],\"name\":\"observe\",\"outputs\":[{\"internalType\":\"int56[]\",\"name\":\"tickCumulatives\",\"type\":\"int56[]\"},{\"internalType\":\"uint160[]\",\"name\":\"secondsPerLiquidityCumulativeX128s\",\"type\":\"uint160[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"}],\"name\":\"snapshotCumulativesInside\",\"outputs\":[{\"internalType\":\"int56\",\"name\":\"tickCumulativeInside\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityInsideX128\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"secondsInside\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// IUniswapV3PoolDerivedStateABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3PoolDerivedStateMetaData.ABI instead. -var IUniswapV3PoolDerivedStateABI = IUniswapV3PoolDerivedStateMetaData.ABI - -// IUniswapV3PoolDerivedState is an auto generated Go binding around an Ethereum contract. -type IUniswapV3PoolDerivedState struct { - IUniswapV3PoolDerivedStateCaller // Read-only binding to the contract - IUniswapV3PoolDerivedStateTransactor // Write-only binding to the contract - IUniswapV3PoolDerivedStateFilterer // Log filterer for contract events -} - -// IUniswapV3PoolDerivedStateCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3PoolDerivedStateCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolDerivedStateTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3PoolDerivedStateTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolDerivedStateFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3PoolDerivedStateFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolDerivedStateSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3PoolDerivedStateSession struct { - Contract *IUniswapV3PoolDerivedState // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolDerivedStateCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3PoolDerivedStateCallerSession struct { - Contract *IUniswapV3PoolDerivedStateCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3PoolDerivedStateTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3PoolDerivedStateTransactorSession struct { - Contract *IUniswapV3PoolDerivedStateTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolDerivedStateRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3PoolDerivedStateRaw struct { - Contract *IUniswapV3PoolDerivedState // Generic contract binding to access the raw methods on -} - -// IUniswapV3PoolDerivedStateCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3PoolDerivedStateCallerRaw struct { - Contract *IUniswapV3PoolDerivedStateCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3PoolDerivedStateTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3PoolDerivedStateTransactorRaw struct { - Contract *IUniswapV3PoolDerivedStateTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3PoolDerivedState creates a new instance of IUniswapV3PoolDerivedState, bound to a specific deployed contract. -func NewIUniswapV3PoolDerivedState(address common.Address, backend bind.ContractBackend) (*IUniswapV3PoolDerivedState, error) { - contract, err := bindIUniswapV3PoolDerivedState(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3PoolDerivedState{IUniswapV3PoolDerivedStateCaller: IUniswapV3PoolDerivedStateCaller{contract: contract}, IUniswapV3PoolDerivedStateTransactor: IUniswapV3PoolDerivedStateTransactor{contract: contract}, IUniswapV3PoolDerivedStateFilterer: IUniswapV3PoolDerivedStateFilterer{contract: contract}}, nil -} - -// NewIUniswapV3PoolDerivedStateCaller creates a new read-only instance of IUniswapV3PoolDerivedState, bound to a specific deployed contract. -func NewIUniswapV3PoolDerivedStateCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3PoolDerivedStateCaller, error) { - contract, err := bindIUniswapV3PoolDerivedState(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolDerivedStateCaller{contract: contract}, nil -} - -// NewIUniswapV3PoolDerivedStateTransactor creates a new write-only instance of IUniswapV3PoolDerivedState, bound to a specific deployed contract. -func NewIUniswapV3PoolDerivedStateTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3PoolDerivedStateTransactor, error) { - contract, err := bindIUniswapV3PoolDerivedState(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolDerivedStateTransactor{contract: contract}, nil -} - -// NewIUniswapV3PoolDerivedStateFilterer creates a new log filterer instance of IUniswapV3PoolDerivedState, bound to a specific deployed contract. -func NewIUniswapV3PoolDerivedStateFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3PoolDerivedStateFilterer, error) { - contract, err := bindIUniswapV3PoolDerivedState(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3PoolDerivedStateFilterer{contract: contract}, nil -} - -// bindIUniswapV3PoolDerivedState binds a generic wrapper to an already deployed contract. -func bindIUniswapV3PoolDerivedState(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3PoolDerivedStateMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolDerivedState.Contract.IUniswapV3PoolDerivedStateCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolDerivedState.Contract.IUniswapV3PoolDerivedStateTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolDerivedState.Contract.IUniswapV3PoolDerivedStateTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolDerivedState.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolDerivedState.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolDerivedState.Contract.contract.Transact(opts, method, params...) -} - -// Observe is a free data retrieval call binding the contract method 0x883bdbfd. -// -// Solidity: function observe(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s) -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateCaller) Observe(opts *bind.CallOpts, secondsAgos []uint32) (struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int -}, error) { - var out []interface{} - err := _IUniswapV3PoolDerivedState.contract.Call(opts, &out, "observe", secondsAgos) - - outstruct := new(struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.TickCumulatives = *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int) - outstruct.SecondsPerLiquidityCumulativeX128s = *abi.ConvertType(out[1], new([]*big.Int)).(*[]*big.Int) - - return *outstruct, err - -} - -// Observe is a free data retrieval call binding the contract method 0x883bdbfd. -// -// Solidity: function observe(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s) -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateSession) Observe(secondsAgos []uint32) (struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int -}, error) { - return _IUniswapV3PoolDerivedState.Contract.Observe(&_IUniswapV3PoolDerivedState.CallOpts, secondsAgos) -} - -// Observe is a free data retrieval call binding the contract method 0x883bdbfd. -// -// Solidity: function observe(uint32[] secondsAgos) view returns(int56[] tickCumulatives, uint160[] secondsPerLiquidityCumulativeX128s) -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateCallerSession) Observe(secondsAgos []uint32) (struct { - TickCumulatives []*big.Int - SecondsPerLiquidityCumulativeX128s []*big.Int -}, error) { - return _IUniswapV3PoolDerivedState.Contract.Observe(&_IUniswapV3PoolDerivedState.CallOpts, secondsAgos) -} - -// SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2. -// -// Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside) -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateCaller) SnapshotCumulativesInside(opts *bind.CallOpts, tickLower *big.Int, tickUpper *big.Int) (struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 -}, error) { - var out []interface{} - err := _IUniswapV3PoolDerivedState.contract.Call(opts, &out, "snapshotCumulativesInside", tickLower, tickUpper) - - outstruct := new(struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 - }) - if err != nil { - return *outstruct, err - } - - outstruct.TickCumulativeInside = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.SecondsPerLiquidityInsideX128 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.SecondsInside = *abi.ConvertType(out[2], new(uint32)).(*uint32) - - return *outstruct, err - -} - -// SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2. -// -// Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside) -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateSession) SnapshotCumulativesInside(tickLower *big.Int, tickUpper *big.Int) (struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 -}, error) { - return _IUniswapV3PoolDerivedState.Contract.SnapshotCumulativesInside(&_IUniswapV3PoolDerivedState.CallOpts, tickLower, tickUpper) -} - -// SnapshotCumulativesInside is a free data retrieval call binding the contract method 0xa38807f2. -// -// Solidity: function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) view returns(int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside) -func (_IUniswapV3PoolDerivedState *IUniswapV3PoolDerivedStateCallerSession) SnapshotCumulativesInside(tickLower *big.Int, tickUpper *big.Int) (struct { - TickCumulativeInside *big.Int - SecondsPerLiquidityInsideX128 *big.Int - SecondsInside uint32 -}, error) { - return _IUniswapV3PoolDerivedState.Contract.SnapshotCumulativesInside(&_IUniswapV3PoolDerivedState.CallOpts, tickLower, tickUpper) -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolevents.sol/iuniswapv3poolevents.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolevents.sol/iuniswapv3poolevents.go deleted file mode 100644 index 36eaf690f..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolevents.sol/iuniswapv3poolevents.go +++ /dev/null @@ -1,1556 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3poolevents - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3PoolEventsMetaData contains all meta data concerning the IUniswapV3PoolEvents contract. -var IUniswapV3PoolEventsMetaData = &bind.MetaData{ - ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"Collect\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"name\":\"CollectProtocol\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paid1\",\"type\":\"uint256\"}],\"name\":\"Flash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"observationCardinalityNextOld\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"observationCardinalityNextNew\",\"type\":\"uint16\"}],\"name\":\"IncreaseObservationCardinalityNext\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Initialize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickLower\",\"type\":\"int24\"},{\"indexed\":true,\"internalType\":\"int24\",\"name\":\"tickUpper\",\"type\":\"int24\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"amount\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol0Old\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol1Old\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol0New\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"feeProtocol1New\",\"type\":\"uint8\"}],\"name\":\"SetFeeProtocol\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount0\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"amount1\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"indexed\":false,\"internalType\":\"uint128\",\"name\":\"liquidity\",\"type\":\"uint128\"},{\"indexed\":false,\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"Swap\",\"type\":\"event\"}]", -} - -// IUniswapV3PoolEventsABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3PoolEventsMetaData.ABI instead. -var IUniswapV3PoolEventsABI = IUniswapV3PoolEventsMetaData.ABI - -// IUniswapV3PoolEvents is an auto generated Go binding around an Ethereum contract. -type IUniswapV3PoolEvents struct { - IUniswapV3PoolEventsCaller // Read-only binding to the contract - IUniswapV3PoolEventsTransactor // Write-only binding to the contract - IUniswapV3PoolEventsFilterer // Log filterer for contract events -} - -// IUniswapV3PoolEventsCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3PoolEventsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolEventsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3PoolEventsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolEventsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3PoolEventsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolEventsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3PoolEventsSession struct { - Contract *IUniswapV3PoolEvents // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolEventsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3PoolEventsCallerSession struct { - Contract *IUniswapV3PoolEventsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3PoolEventsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3PoolEventsTransactorSession struct { - Contract *IUniswapV3PoolEventsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolEventsRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3PoolEventsRaw struct { - Contract *IUniswapV3PoolEvents // Generic contract binding to access the raw methods on -} - -// IUniswapV3PoolEventsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3PoolEventsCallerRaw struct { - Contract *IUniswapV3PoolEventsCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3PoolEventsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3PoolEventsTransactorRaw struct { - Contract *IUniswapV3PoolEventsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3PoolEvents creates a new instance of IUniswapV3PoolEvents, bound to a specific deployed contract. -func NewIUniswapV3PoolEvents(address common.Address, backend bind.ContractBackend) (*IUniswapV3PoolEvents, error) { - contract, err := bindIUniswapV3PoolEvents(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEvents{IUniswapV3PoolEventsCaller: IUniswapV3PoolEventsCaller{contract: contract}, IUniswapV3PoolEventsTransactor: IUniswapV3PoolEventsTransactor{contract: contract}, IUniswapV3PoolEventsFilterer: IUniswapV3PoolEventsFilterer{contract: contract}}, nil -} - -// NewIUniswapV3PoolEventsCaller creates a new read-only instance of IUniswapV3PoolEvents, bound to a specific deployed contract. -func NewIUniswapV3PoolEventsCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3PoolEventsCaller, error) { - contract, err := bindIUniswapV3PoolEvents(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsCaller{contract: contract}, nil -} - -// NewIUniswapV3PoolEventsTransactor creates a new write-only instance of IUniswapV3PoolEvents, bound to a specific deployed contract. -func NewIUniswapV3PoolEventsTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3PoolEventsTransactor, error) { - contract, err := bindIUniswapV3PoolEvents(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsTransactor{contract: contract}, nil -} - -// NewIUniswapV3PoolEventsFilterer creates a new log filterer instance of IUniswapV3PoolEvents, bound to a specific deployed contract. -func NewIUniswapV3PoolEventsFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3PoolEventsFilterer, error) { - contract, err := bindIUniswapV3PoolEvents(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsFilterer{contract: contract}, nil -} - -// bindIUniswapV3PoolEvents binds a generic wrapper to an already deployed contract. -func bindIUniswapV3PoolEvents(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3PoolEventsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolEvents.Contract.IUniswapV3PoolEventsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolEvents.Contract.IUniswapV3PoolEventsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolEvents.Contract.IUniswapV3PoolEventsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolEvents.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolEvents.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolEvents.Contract.contract.Transact(opts, method, params...) -} - -// IUniswapV3PoolEventsBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsBurnIterator struct { - Event *IUniswapV3PoolEventsBurn // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsBurnIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsBurn) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsBurnIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsBurnIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsBurn represents a Burn event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsBurn struct { - Owner common.Address - TickLower *big.Int - TickUpper *big.Int - Amount *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterBurn is a free log retrieval operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c. -// -// Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterBurn(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*IUniswapV3PoolEventsBurnIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "Burn", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsBurnIterator{contract: _IUniswapV3PoolEvents.contract, event: "Burn", logs: logs, sub: sub}, nil -} - -// WatchBurn is a free log subscription operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c. -// -// Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsBurn, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "Burn", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsBurn) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Burn", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseBurn is a log parse operation binding the contract event 0x0c396cd989a39f4459b5fa1aed6a9a8dcdbc45908acfd67e028cd568da98982c. -// -// Solidity: event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseBurn(log types.Log) (*IUniswapV3PoolEventsBurn, error) { - event := new(IUniswapV3PoolEventsBurn) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Burn", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsCollectIterator is returned from FilterCollect and is used to iterate over the raw logs and unpacked data for Collect events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsCollectIterator struct { - Event *IUniswapV3PoolEventsCollect // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsCollectIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsCollect) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsCollect) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsCollectIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsCollectIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsCollect represents a Collect event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsCollect struct { - Owner common.Address - Recipient common.Address - TickLower *big.Int - TickUpper *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollect is a free log retrieval operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0. -// -// Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterCollect(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*IUniswapV3PoolEventsCollectIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "Collect", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsCollectIterator{contract: _IUniswapV3PoolEvents.contract, event: "Collect", logs: logs, sub: sub}, nil -} - -// WatchCollect is a free log subscription operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0. -// -// Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchCollect(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsCollect, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "Collect", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsCollect) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Collect", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollect is a log parse operation binding the contract event 0x70935338e69775456a85ddef226c395fb668b63fa0115f5f20610b388e6ca9c0. -// -// Solidity: event Collect(address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseCollect(log types.Log) (*IUniswapV3PoolEventsCollect, error) { - event := new(IUniswapV3PoolEventsCollect) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Collect", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsCollectProtocolIterator is returned from FilterCollectProtocol and is used to iterate over the raw logs and unpacked data for CollectProtocol events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsCollectProtocolIterator struct { - Event *IUniswapV3PoolEventsCollectProtocol // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsCollectProtocolIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsCollectProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsCollectProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsCollectProtocolIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsCollectProtocolIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsCollectProtocol represents a CollectProtocol event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsCollectProtocol struct { - Sender common.Address - Recipient common.Address - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterCollectProtocol is a free log retrieval operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151. -// -// Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterCollectProtocol(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*IUniswapV3PoolEventsCollectProtocolIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "CollectProtocol", senderRule, recipientRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsCollectProtocolIterator{contract: _IUniswapV3PoolEvents.contract, event: "CollectProtocol", logs: logs, sub: sub}, nil -} - -// WatchCollectProtocol is a free log subscription operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151. -// -// Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchCollectProtocol(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsCollectProtocol, sender []common.Address, recipient []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "CollectProtocol", senderRule, recipientRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsCollectProtocol) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "CollectProtocol", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseCollectProtocol is a log parse operation binding the contract event 0x596b573906218d3411850b26a6b437d6c4522fdb43d2d2386263f86d50b8b151. -// -// Solidity: event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseCollectProtocol(log types.Log) (*IUniswapV3PoolEventsCollectProtocol, error) { - event := new(IUniswapV3PoolEventsCollectProtocol) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "CollectProtocol", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsFlashIterator is returned from FilterFlash and is used to iterate over the raw logs and unpacked data for Flash events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsFlashIterator struct { - Event *IUniswapV3PoolEventsFlash // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsFlashIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsFlash) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsFlash) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsFlashIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsFlashIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsFlash represents a Flash event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsFlash struct { - Sender common.Address - Recipient common.Address - Amount0 *big.Int - Amount1 *big.Int - Paid0 *big.Int - Paid1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterFlash is a free log retrieval operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633. -// -// Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterFlash(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*IUniswapV3PoolEventsFlashIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "Flash", senderRule, recipientRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsFlashIterator{contract: _IUniswapV3PoolEvents.contract, event: "Flash", logs: logs, sub: sub}, nil -} - -// WatchFlash is a free log subscription operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633. -// -// Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchFlash(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsFlash, sender []common.Address, recipient []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "Flash", senderRule, recipientRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsFlash) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Flash", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseFlash is a log parse operation binding the contract event 0xbdbdb71d7860376ba52b25a5028beea23581364a40522f6bcfb86bb1f2dca633. -// -// Solidity: event Flash(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseFlash(log types.Log) (*IUniswapV3PoolEventsFlash, error) { - event := new(IUniswapV3PoolEventsFlash) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Flash", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsIncreaseObservationCardinalityNextIterator is returned from FilterIncreaseObservationCardinalityNext and is used to iterate over the raw logs and unpacked data for IncreaseObservationCardinalityNext events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsIncreaseObservationCardinalityNextIterator struct { - Event *IUniswapV3PoolEventsIncreaseObservationCardinalityNext // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsIncreaseObservationCardinalityNextIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsIncreaseObservationCardinalityNext) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsIncreaseObservationCardinalityNext) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsIncreaseObservationCardinalityNextIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsIncreaseObservationCardinalityNextIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsIncreaseObservationCardinalityNext represents a IncreaseObservationCardinalityNext event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsIncreaseObservationCardinalityNext struct { - ObservationCardinalityNextOld uint16 - ObservationCardinalityNextNew uint16 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterIncreaseObservationCardinalityNext is a free log retrieval operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a. -// -// Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterIncreaseObservationCardinalityNext(opts *bind.FilterOpts) (*IUniswapV3PoolEventsIncreaseObservationCardinalityNextIterator, error) { - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "IncreaseObservationCardinalityNext") - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsIncreaseObservationCardinalityNextIterator{contract: _IUniswapV3PoolEvents.contract, event: "IncreaseObservationCardinalityNext", logs: logs, sub: sub}, nil -} - -// WatchIncreaseObservationCardinalityNext is a free log subscription operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a. -// -// Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchIncreaseObservationCardinalityNext(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsIncreaseObservationCardinalityNext) (event.Subscription, error) { - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "IncreaseObservationCardinalityNext") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsIncreaseObservationCardinalityNext) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "IncreaseObservationCardinalityNext", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseIncreaseObservationCardinalityNext is a log parse operation binding the contract event 0xac49e518f90a358f652e4400164f05a5d8f7e35e7747279bc3a93dbf584e125a. -// -// Solidity: event IncreaseObservationCardinalityNext(uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseIncreaseObservationCardinalityNext(log types.Log) (*IUniswapV3PoolEventsIncreaseObservationCardinalityNext, error) { - event := new(IUniswapV3PoolEventsIncreaseObservationCardinalityNext) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "IncreaseObservationCardinalityNext", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsInitializeIterator is returned from FilterInitialize and is used to iterate over the raw logs and unpacked data for Initialize events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsInitializeIterator struct { - Event *IUniswapV3PoolEventsInitialize // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsInitializeIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsInitialize) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsInitialize) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsInitializeIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsInitializeIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsInitialize represents a Initialize event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsInitialize struct { - SqrtPriceX96 *big.Int - Tick *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterInitialize is a free log retrieval operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95. -// -// Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterInitialize(opts *bind.FilterOpts) (*IUniswapV3PoolEventsInitializeIterator, error) { - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "Initialize") - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsInitializeIterator{contract: _IUniswapV3PoolEvents.contract, event: "Initialize", logs: logs, sub: sub}, nil -} - -// WatchInitialize is a free log subscription operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95. -// -// Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchInitialize(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsInitialize) (event.Subscription, error) { - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "Initialize") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsInitialize) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Initialize", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseInitialize is a log parse operation binding the contract event 0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95. -// -// Solidity: event Initialize(uint160 sqrtPriceX96, int24 tick) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseInitialize(log types.Log) (*IUniswapV3PoolEventsInitialize, error) { - event := new(IUniswapV3PoolEventsInitialize) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Initialize", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsMintIterator struct { - Event *IUniswapV3PoolEventsMint // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsMintIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsMint) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsMintIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsMintIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsMint represents a Mint event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsMint struct { - Sender common.Address - Owner common.Address - TickLower *big.Int - TickUpper *big.Int - Amount *big.Int - Amount0 *big.Int - Amount1 *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterMint is a free log retrieval operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde. -// -// Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterMint(opts *bind.FilterOpts, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (*IUniswapV3PoolEventsMintIterator, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "Mint", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsMintIterator{contract: _IUniswapV3PoolEvents.contract, event: "Mint", logs: logs, sub: sub}, nil -} - -// WatchMint is a free log subscription operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde. -// -// Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsMint, owner []common.Address, tickLower []*big.Int, tickUpper []*big.Int) (event.Subscription, error) { - - var ownerRule []interface{} - for _, ownerItem := range owner { - ownerRule = append(ownerRule, ownerItem) - } - var tickLowerRule []interface{} - for _, tickLowerItem := range tickLower { - tickLowerRule = append(tickLowerRule, tickLowerItem) - } - var tickUpperRule []interface{} - for _, tickUpperItem := range tickUpper { - tickUpperRule = append(tickUpperRule, tickUpperItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "Mint", ownerRule, tickLowerRule, tickUpperRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsMint) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Mint", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseMint is a log parse operation binding the contract event 0x7a53080ba414158be7ec69b987b5fb7d07dee101fe85488f0853ae16239d0bde. -// -// Solidity: event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseMint(log types.Log) (*IUniswapV3PoolEventsMint, error) { - event := new(IUniswapV3PoolEventsMint) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Mint", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsSetFeeProtocolIterator is returned from FilterSetFeeProtocol and is used to iterate over the raw logs and unpacked data for SetFeeProtocol events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsSetFeeProtocolIterator struct { - Event *IUniswapV3PoolEventsSetFeeProtocol // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsSetFeeProtocolIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsSetFeeProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsSetFeeProtocol) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsSetFeeProtocolIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsSetFeeProtocolIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsSetFeeProtocol represents a SetFeeProtocol event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsSetFeeProtocol struct { - FeeProtocol0Old uint8 - FeeProtocol1Old uint8 - FeeProtocol0New uint8 - FeeProtocol1New uint8 - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSetFeeProtocol is a free log retrieval operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133. -// -// Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterSetFeeProtocol(opts *bind.FilterOpts) (*IUniswapV3PoolEventsSetFeeProtocolIterator, error) { - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "SetFeeProtocol") - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsSetFeeProtocolIterator{contract: _IUniswapV3PoolEvents.contract, event: "SetFeeProtocol", logs: logs, sub: sub}, nil -} - -// WatchSetFeeProtocol is a free log subscription operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133. -// -// Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchSetFeeProtocol(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsSetFeeProtocol) (event.Subscription, error) { - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "SetFeeProtocol") - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsSetFeeProtocol) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "SetFeeProtocol", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSetFeeProtocol is a log parse operation binding the contract event 0x973d8d92bb299f4af6ce49b52a8adb85ae46b9f214c4c4fc06ac77401237b133. -// -// Solidity: event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseSetFeeProtocol(log types.Log) (*IUniswapV3PoolEventsSetFeeProtocol, error) { - event := new(IUniswapV3PoolEventsSetFeeProtocol) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "SetFeeProtocol", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} - -// IUniswapV3PoolEventsSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsSwapIterator struct { - Event *IUniswapV3PoolEventsSwap // Event containing the contract specifics and raw log - - contract *bind.BoundContract // Generic contract to use for unpacking event data - event string // Event name to use for unpacking event data - - logs chan types.Log // Log channel receiving the found contract events - sub ethereum.Subscription // Subscription for errors, completion and termination - done bool // Whether the subscription completed delivering logs - fail error // Occurred error to stop iteration -} - -// Next advances the iterator to the subsequent event, returning whether there -// are any more events found. In case of a retrieval or parsing error, false is -// returned and Error() can be queried for the exact failure. -func (it *IUniswapV3PoolEventsSwapIterator) Next() bool { - // If the iterator failed, stop iterating - if it.fail != nil { - return false - } - // If the iterator completed, deliver directly whatever's available - if it.done { - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - default: - return false - } - } - // Iterator still in progress, wait for either a data or an error event - select { - case log := <-it.logs: - it.Event = new(IUniswapV3PoolEventsSwap) - if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { - it.fail = err - return false - } - it.Event.Raw = log - return true - - case err := <-it.sub.Err(): - it.done = true - it.fail = err - return it.Next() - } -} - -// Error returns any retrieval or parsing error occurred during filtering. -func (it *IUniswapV3PoolEventsSwapIterator) Error() error { - return it.fail -} - -// Close terminates the iteration process, releasing any pending underlying -// resources. -func (it *IUniswapV3PoolEventsSwapIterator) Close() error { - it.sub.Unsubscribe() - return nil -} - -// IUniswapV3PoolEventsSwap represents a Swap event raised by the IUniswapV3PoolEvents contract. -type IUniswapV3PoolEventsSwap struct { - Sender common.Address - Recipient common.Address - Amount0 *big.Int - Amount1 *big.Int - SqrtPriceX96 *big.Int - Liquidity *big.Int - Tick *big.Int - Raw types.Log // Blockchain specific contextual infos -} - -// FilterSwap is a free log retrieval operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67. -// -// Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*IUniswapV3PoolEventsSwapIterator, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.FilterLogs(opts, "Swap", senderRule, recipientRule) - if err != nil { - return nil, err - } - return &IUniswapV3PoolEventsSwapIterator{contract: _IUniswapV3PoolEvents.contract, event: "Swap", logs: logs, sub: sub}, nil -} - -// WatchSwap is a free log subscription operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67. -// -// Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *IUniswapV3PoolEventsSwap, sender []common.Address, recipient []common.Address) (event.Subscription, error) { - - var senderRule []interface{} - for _, senderItem := range sender { - senderRule = append(senderRule, senderItem) - } - var recipientRule []interface{} - for _, recipientItem := range recipient { - recipientRule = append(recipientRule, recipientItem) - } - - logs, sub, err := _IUniswapV3PoolEvents.contract.WatchLogs(opts, "Swap", senderRule, recipientRule) - if err != nil { - return nil, err - } - return event.NewSubscription(func(quit <-chan struct{}) error { - defer sub.Unsubscribe() - for { - select { - case log := <-logs: - // New log arrived, parse the event and forward to the user - event := new(IUniswapV3PoolEventsSwap) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Swap", log); err != nil { - return err - } - event.Raw = log - - select { - case sink <- event: - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - case err := <-sub.Err(): - return err - case <-quit: - return nil - } - } - }), nil -} - -// ParseSwap is a log parse operation binding the contract event 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67. -// -// Solidity: event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick) -func (_IUniswapV3PoolEvents *IUniswapV3PoolEventsFilterer) ParseSwap(log types.Log) (*IUniswapV3PoolEventsSwap, error) { - event := new(IUniswapV3PoolEventsSwap) - if err := _IUniswapV3PoolEvents.contract.UnpackLog(event, "Swap", log); err != nil { - return nil, err - } - event.Raw = log - return event, nil -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolimmutables.sol/iuniswapv3poolimmutables.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolimmutables.sol/iuniswapv3poolimmutables.go deleted file mode 100644 index 9126c9dbe..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolimmutables.sol/iuniswapv3poolimmutables.go +++ /dev/null @@ -1,367 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3poolimmutables - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3PoolImmutablesMetaData contains all meta data concerning the IUniswapV3PoolImmutables contract. -var IUniswapV3PoolImmutablesMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxLiquidityPerTick\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tickSpacing\",\"outputs\":[{\"internalType\":\"int24\",\"name\":\"\",\"type\":\"int24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// IUniswapV3PoolImmutablesABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3PoolImmutablesMetaData.ABI instead. -var IUniswapV3PoolImmutablesABI = IUniswapV3PoolImmutablesMetaData.ABI - -// IUniswapV3PoolImmutables is an auto generated Go binding around an Ethereum contract. -type IUniswapV3PoolImmutables struct { - IUniswapV3PoolImmutablesCaller // Read-only binding to the contract - IUniswapV3PoolImmutablesTransactor // Write-only binding to the contract - IUniswapV3PoolImmutablesFilterer // Log filterer for contract events -} - -// IUniswapV3PoolImmutablesCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3PoolImmutablesCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolImmutablesTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3PoolImmutablesTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolImmutablesFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3PoolImmutablesFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolImmutablesSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3PoolImmutablesSession struct { - Contract *IUniswapV3PoolImmutables // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolImmutablesCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3PoolImmutablesCallerSession struct { - Contract *IUniswapV3PoolImmutablesCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3PoolImmutablesTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3PoolImmutablesTransactorSession struct { - Contract *IUniswapV3PoolImmutablesTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolImmutablesRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3PoolImmutablesRaw struct { - Contract *IUniswapV3PoolImmutables // Generic contract binding to access the raw methods on -} - -// IUniswapV3PoolImmutablesCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3PoolImmutablesCallerRaw struct { - Contract *IUniswapV3PoolImmutablesCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3PoolImmutablesTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3PoolImmutablesTransactorRaw struct { - Contract *IUniswapV3PoolImmutablesTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3PoolImmutables creates a new instance of IUniswapV3PoolImmutables, bound to a specific deployed contract. -func NewIUniswapV3PoolImmutables(address common.Address, backend bind.ContractBackend) (*IUniswapV3PoolImmutables, error) { - contract, err := bindIUniswapV3PoolImmutables(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3PoolImmutables{IUniswapV3PoolImmutablesCaller: IUniswapV3PoolImmutablesCaller{contract: contract}, IUniswapV3PoolImmutablesTransactor: IUniswapV3PoolImmutablesTransactor{contract: contract}, IUniswapV3PoolImmutablesFilterer: IUniswapV3PoolImmutablesFilterer{contract: contract}}, nil -} - -// NewIUniswapV3PoolImmutablesCaller creates a new read-only instance of IUniswapV3PoolImmutables, bound to a specific deployed contract. -func NewIUniswapV3PoolImmutablesCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3PoolImmutablesCaller, error) { - contract, err := bindIUniswapV3PoolImmutables(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolImmutablesCaller{contract: contract}, nil -} - -// NewIUniswapV3PoolImmutablesTransactor creates a new write-only instance of IUniswapV3PoolImmutables, bound to a specific deployed contract. -func NewIUniswapV3PoolImmutablesTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3PoolImmutablesTransactor, error) { - contract, err := bindIUniswapV3PoolImmutables(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolImmutablesTransactor{contract: contract}, nil -} - -// NewIUniswapV3PoolImmutablesFilterer creates a new log filterer instance of IUniswapV3PoolImmutables, bound to a specific deployed contract. -func NewIUniswapV3PoolImmutablesFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3PoolImmutablesFilterer, error) { - contract, err := bindIUniswapV3PoolImmutables(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3PoolImmutablesFilterer{contract: contract}, nil -} - -// bindIUniswapV3PoolImmutables binds a generic wrapper to an already deployed contract. -func bindIUniswapV3PoolImmutables(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3PoolImmutablesMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolImmutables.Contract.IUniswapV3PoolImmutablesCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolImmutables.Contract.IUniswapV3PoolImmutablesTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolImmutables.Contract.IUniswapV3PoolImmutablesTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolImmutables.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolImmutables.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolImmutables.Contract.contract.Transact(opts, method, params...) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCaller) Factory(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV3PoolImmutables.contract.Call(opts, &out, "factory") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesSession) Factory() (common.Address, error) { - return _IUniswapV3PoolImmutables.Contract.Factory(&_IUniswapV3PoolImmutables.CallOpts) -} - -// Factory is a free data retrieval call binding the contract method 0xc45a0155. -// -// Solidity: function factory() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCallerSession) Factory() (common.Address, error) { - return _IUniswapV3PoolImmutables.Contract.Factory(&_IUniswapV3PoolImmutables.CallOpts) -} - -// Fee is a free data retrieval call binding the contract method 0xddca3f43. -// -// Solidity: function fee() view returns(uint24) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCaller) Fee(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3PoolImmutables.contract.Call(opts, &out, "fee") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Fee is a free data retrieval call binding the contract method 0xddca3f43. -// -// Solidity: function fee() view returns(uint24) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesSession) Fee() (*big.Int, error) { - return _IUniswapV3PoolImmutables.Contract.Fee(&_IUniswapV3PoolImmutables.CallOpts) -} - -// Fee is a free data retrieval call binding the contract method 0xddca3f43. -// -// Solidity: function fee() view returns(uint24) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCallerSession) Fee() (*big.Int, error) { - return _IUniswapV3PoolImmutables.Contract.Fee(&_IUniswapV3PoolImmutables.CallOpts) -} - -// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. -// -// Solidity: function maxLiquidityPerTick() view returns(uint128) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCaller) MaxLiquidityPerTick(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3PoolImmutables.contract.Call(opts, &out, "maxLiquidityPerTick") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. -// -// Solidity: function maxLiquidityPerTick() view returns(uint128) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesSession) MaxLiquidityPerTick() (*big.Int, error) { - return _IUniswapV3PoolImmutables.Contract.MaxLiquidityPerTick(&_IUniswapV3PoolImmutables.CallOpts) -} - -// MaxLiquidityPerTick is a free data retrieval call binding the contract method 0x70cf754a. -// -// Solidity: function maxLiquidityPerTick() view returns(uint128) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCallerSession) MaxLiquidityPerTick() (*big.Int, error) { - return _IUniswapV3PoolImmutables.Contract.MaxLiquidityPerTick(&_IUniswapV3PoolImmutables.CallOpts) -} - -// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. -// -// Solidity: function tickSpacing() view returns(int24) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCaller) TickSpacing(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3PoolImmutables.contract.Call(opts, &out, "tickSpacing") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. -// -// Solidity: function tickSpacing() view returns(int24) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesSession) TickSpacing() (*big.Int, error) { - return _IUniswapV3PoolImmutables.Contract.TickSpacing(&_IUniswapV3PoolImmutables.CallOpts) -} - -// TickSpacing is a free data retrieval call binding the contract method 0xd0c93a7c. -// -// Solidity: function tickSpacing() view returns(int24) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCallerSession) TickSpacing() (*big.Int, error) { - return _IUniswapV3PoolImmutables.Contract.TickSpacing(&_IUniswapV3PoolImmutables.CallOpts) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCaller) Token0(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV3PoolImmutables.contract.Call(opts, &out, "token0") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesSession) Token0() (common.Address, error) { - return _IUniswapV3PoolImmutables.Contract.Token0(&_IUniswapV3PoolImmutables.CallOpts) -} - -// Token0 is a free data retrieval call binding the contract method 0x0dfe1681. -// -// Solidity: function token0() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCallerSession) Token0() (common.Address, error) { - return _IUniswapV3PoolImmutables.Contract.Token0(&_IUniswapV3PoolImmutables.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCaller) Token1(opts *bind.CallOpts) (common.Address, error) { - var out []interface{} - err := _IUniswapV3PoolImmutables.contract.Call(opts, &out, "token1") - - if err != nil { - return *new(common.Address), err - } - - out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) - - return out0, err - -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesSession) Token1() (common.Address, error) { - return _IUniswapV3PoolImmutables.Contract.Token1(&_IUniswapV3PoolImmutables.CallOpts) -} - -// Token1 is a free data retrieval call binding the contract method 0xd21220a7. -// -// Solidity: function token1() view returns(address) -func (_IUniswapV3PoolImmutables *IUniswapV3PoolImmutablesCallerSession) Token1() (common.Address, error) { - return _IUniswapV3PoolImmutables.Contract.Token1(&_IUniswapV3PoolImmutables.CallOpts) -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolowneractions.sol/iuniswapv3poolowneractions.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolowneractions.sol/iuniswapv3poolowneractions.go deleted file mode 100644 index a5bd7aeb3..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolowneractions.sol/iuniswapv3poolowneractions.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3poolowneractions - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3PoolOwnerActionsMetaData contains all meta data concerning the IUniswapV3PoolOwnerActions contract. -var IUniswapV3PoolOwnerActionsMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collectProtocol\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"feeProtocol0\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol1\",\"type\":\"uint8\"}],\"name\":\"setFeeProtocol\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IUniswapV3PoolOwnerActionsABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3PoolOwnerActionsMetaData.ABI instead. -var IUniswapV3PoolOwnerActionsABI = IUniswapV3PoolOwnerActionsMetaData.ABI - -// IUniswapV3PoolOwnerActions is an auto generated Go binding around an Ethereum contract. -type IUniswapV3PoolOwnerActions struct { - IUniswapV3PoolOwnerActionsCaller // Read-only binding to the contract - IUniswapV3PoolOwnerActionsTransactor // Write-only binding to the contract - IUniswapV3PoolOwnerActionsFilterer // Log filterer for contract events -} - -// IUniswapV3PoolOwnerActionsCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3PoolOwnerActionsCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolOwnerActionsTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3PoolOwnerActionsTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolOwnerActionsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3PoolOwnerActionsFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolOwnerActionsSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3PoolOwnerActionsSession struct { - Contract *IUniswapV3PoolOwnerActions // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolOwnerActionsCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3PoolOwnerActionsCallerSession struct { - Contract *IUniswapV3PoolOwnerActionsCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3PoolOwnerActionsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3PoolOwnerActionsTransactorSession struct { - Contract *IUniswapV3PoolOwnerActionsTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolOwnerActionsRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3PoolOwnerActionsRaw struct { - Contract *IUniswapV3PoolOwnerActions // Generic contract binding to access the raw methods on -} - -// IUniswapV3PoolOwnerActionsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3PoolOwnerActionsCallerRaw struct { - Contract *IUniswapV3PoolOwnerActionsCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3PoolOwnerActionsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3PoolOwnerActionsTransactorRaw struct { - Contract *IUniswapV3PoolOwnerActionsTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3PoolOwnerActions creates a new instance of IUniswapV3PoolOwnerActions, bound to a specific deployed contract. -func NewIUniswapV3PoolOwnerActions(address common.Address, backend bind.ContractBackend) (*IUniswapV3PoolOwnerActions, error) { - contract, err := bindIUniswapV3PoolOwnerActions(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3PoolOwnerActions{IUniswapV3PoolOwnerActionsCaller: IUniswapV3PoolOwnerActionsCaller{contract: contract}, IUniswapV3PoolOwnerActionsTransactor: IUniswapV3PoolOwnerActionsTransactor{contract: contract}, IUniswapV3PoolOwnerActionsFilterer: IUniswapV3PoolOwnerActionsFilterer{contract: contract}}, nil -} - -// NewIUniswapV3PoolOwnerActionsCaller creates a new read-only instance of IUniswapV3PoolOwnerActions, bound to a specific deployed contract. -func NewIUniswapV3PoolOwnerActionsCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3PoolOwnerActionsCaller, error) { - contract, err := bindIUniswapV3PoolOwnerActions(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolOwnerActionsCaller{contract: contract}, nil -} - -// NewIUniswapV3PoolOwnerActionsTransactor creates a new write-only instance of IUniswapV3PoolOwnerActions, bound to a specific deployed contract. -func NewIUniswapV3PoolOwnerActionsTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3PoolOwnerActionsTransactor, error) { - contract, err := bindIUniswapV3PoolOwnerActions(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolOwnerActionsTransactor{contract: contract}, nil -} - -// NewIUniswapV3PoolOwnerActionsFilterer creates a new log filterer instance of IUniswapV3PoolOwnerActions, bound to a specific deployed contract. -func NewIUniswapV3PoolOwnerActionsFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3PoolOwnerActionsFilterer, error) { - contract, err := bindIUniswapV3PoolOwnerActions(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3PoolOwnerActionsFilterer{contract: contract}, nil -} - -// bindIUniswapV3PoolOwnerActions binds a generic wrapper to an already deployed contract. -func bindIUniswapV3PoolOwnerActions(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3PoolOwnerActionsMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolOwnerActions.Contract.IUniswapV3PoolOwnerActionsCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.IUniswapV3PoolOwnerActionsTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.IUniswapV3PoolOwnerActionsTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolOwnerActions.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.contract.Transact(opts, method, params...) -} - -// CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729. -// -// Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsTransactor) CollectProtocol(opts *bind.TransactOpts, recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.contract.Transact(opts, "collectProtocol", recipient, amount0Requested, amount1Requested) -} - -// CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729. -// -// Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsSession) CollectProtocol(recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.CollectProtocol(&_IUniswapV3PoolOwnerActions.TransactOpts, recipient, amount0Requested, amount1Requested) -} - -// CollectProtocol is a paid mutator transaction binding the contract method 0x85b66729. -// -// Solidity: function collectProtocol(address recipient, uint128 amount0Requested, uint128 amount1Requested) returns(uint128 amount0, uint128 amount1) -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsTransactorSession) CollectProtocol(recipient common.Address, amount0Requested *big.Int, amount1Requested *big.Int) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.CollectProtocol(&_IUniswapV3PoolOwnerActions.TransactOpts, recipient, amount0Requested, amount1Requested) -} - -// SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1. -// -// Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns() -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsTransactor) SetFeeProtocol(opts *bind.TransactOpts, feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.contract.Transact(opts, "setFeeProtocol", feeProtocol0, feeProtocol1) -} - -// SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1. -// -// Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns() -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsSession) SetFeeProtocol(feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.SetFeeProtocol(&_IUniswapV3PoolOwnerActions.TransactOpts, feeProtocol0, feeProtocol1) -} - -// SetFeeProtocol is a paid mutator transaction binding the contract method 0x8206a4d1. -// -// Solidity: function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) returns() -func (_IUniswapV3PoolOwnerActions *IUniswapV3PoolOwnerActionsTransactorSession) SetFeeProtocol(feeProtocol0 uint8, feeProtocol1 uint8) (*types.Transaction, error) { - return _IUniswapV3PoolOwnerActions.Contract.SetFeeProtocol(&_IUniswapV3PoolOwnerActions.TransactOpts, feeProtocol0, feeProtocol1) -} diff --git a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolstate.sol/iuniswapv3poolstate.go b/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolstate.sol/iuniswapv3poolstate.go deleted file mode 100644 index 11fc3c9e3..000000000 --- a/v1/pkg/uniswap/v3-core/contracts/interfaces/pool/iuniswapv3poolstate.sol/iuniswapv3poolstate.go +++ /dev/null @@ -1,610 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iuniswapv3poolstate - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IUniswapV3PoolStateMetaData contains all meta data concerning the IUniswapV3PoolState contract. -var IUniswapV3PoolStateMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[],\"name\":\"feeGrowthGlobal0X128\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeGrowthGlobal1X128\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"liquidity\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"observations\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"blockTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int56\",\"name\":\"tickCumulative\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityCumulativeX128\",\"type\":\"uint160\"},{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"name\":\"positions\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"_liquidity\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside0LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthInside1LastX128\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"tokensOwed1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolFees\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"token0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"token1\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"slot0\",\"outputs\":[{\"internalType\":\"uint160\",\"name\":\"sqrtPriceX96\",\"type\":\"uint160\"},{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"},{\"internalType\":\"uint16\",\"name\":\"observationIndex\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"observationCardinality\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"observationCardinalityNext\",\"type\":\"uint16\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol\",\"type\":\"uint8\"},{\"internalType\":\"bool\",\"name\":\"unlocked\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int16\",\"name\":\"wordPosition\",\"type\":\"int16\"}],\"name\":\"tickBitmap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int24\",\"name\":\"tick\",\"type\":\"int24\"}],\"name\":\"ticks\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"liquidityGross\",\"type\":\"uint128\"},{\"internalType\":\"int128\",\"name\":\"liquidityNet\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthOutside0X128\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"feeGrowthOutside1X128\",\"type\":\"uint256\"},{\"internalType\":\"int56\",\"name\":\"tickCumulativeOutside\",\"type\":\"int56\"},{\"internalType\":\"uint160\",\"name\":\"secondsPerLiquidityOutsideX128\",\"type\":\"uint160\"},{\"internalType\":\"uint32\",\"name\":\"secondsOutside\",\"type\":\"uint32\"},{\"internalType\":\"bool\",\"name\":\"initialized\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", -} - -// IUniswapV3PoolStateABI is the input ABI used to generate the binding from. -// Deprecated: Use IUniswapV3PoolStateMetaData.ABI instead. -var IUniswapV3PoolStateABI = IUniswapV3PoolStateMetaData.ABI - -// IUniswapV3PoolState is an auto generated Go binding around an Ethereum contract. -type IUniswapV3PoolState struct { - IUniswapV3PoolStateCaller // Read-only binding to the contract - IUniswapV3PoolStateTransactor // Write-only binding to the contract - IUniswapV3PoolStateFilterer // Log filterer for contract events -} - -// IUniswapV3PoolStateCaller is an auto generated read-only Go binding around an Ethereum contract. -type IUniswapV3PoolStateCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolStateTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IUniswapV3PoolStateTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolStateFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IUniswapV3PoolStateFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IUniswapV3PoolStateSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IUniswapV3PoolStateSession struct { - Contract *IUniswapV3PoolState // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolStateCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IUniswapV3PoolStateCallerSession struct { - Contract *IUniswapV3PoolStateCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IUniswapV3PoolStateTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IUniswapV3PoolStateTransactorSession struct { - Contract *IUniswapV3PoolStateTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IUniswapV3PoolStateRaw is an auto generated low-level Go binding around an Ethereum contract. -type IUniswapV3PoolStateRaw struct { - Contract *IUniswapV3PoolState // Generic contract binding to access the raw methods on -} - -// IUniswapV3PoolStateCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IUniswapV3PoolStateCallerRaw struct { - Contract *IUniswapV3PoolStateCaller // Generic read-only contract binding to access the raw methods on -} - -// IUniswapV3PoolStateTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IUniswapV3PoolStateTransactorRaw struct { - Contract *IUniswapV3PoolStateTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIUniswapV3PoolState creates a new instance of IUniswapV3PoolState, bound to a specific deployed contract. -func NewIUniswapV3PoolState(address common.Address, backend bind.ContractBackend) (*IUniswapV3PoolState, error) { - contract, err := bindIUniswapV3PoolState(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IUniswapV3PoolState{IUniswapV3PoolStateCaller: IUniswapV3PoolStateCaller{contract: contract}, IUniswapV3PoolStateTransactor: IUniswapV3PoolStateTransactor{contract: contract}, IUniswapV3PoolStateFilterer: IUniswapV3PoolStateFilterer{contract: contract}}, nil -} - -// NewIUniswapV3PoolStateCaller creates a new read-only instance of IUniswapV3PoolState, bound to a specific deployed contract. -func NewIUniswapV3PoolStateCaller(address common.Address, caller bind.ContractCaller) (*IUniswapV3PoolStateCaller, error) { - contract, err := bindIUniswapV3PoolState(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolStateCaller{contract: contract}, nil -} - -// NewIUniswapV3PoolStateTransactor creates a new write-only instance of IUniswapV3PoolState, bound to a specific deployed contract. -func NewIUniswapV3PoolStateTransactor(address common.Address, transactor bind.ContractTransactor) (*IUniswapV3PoolStateTransactor, error) { - contract, err := bindIUniswapV3PoolState(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IUniswapV3PoolStateTransactor{contract: contract}, nil -} - -// NewIUniswapV3PoolStateFilterer creates a new log filterer instance of IUniswapV3PoolState, bound to a specific deployed contract. -func NewIUniswapV3PoolStateFilterer(address common.Address, filterer bind.ContractFilterer) (*IUniswapV3PoolStateFilterer, error) { - contract, err := bindIUniswapV3PoolState(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IUniswapV3PoolStateFilterer{contract: contract}, nil -} - -// bindIUniswapV3PoolState binds a generic wrapper to an already deployed contract. -func bindIUniswapV3PoolState(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IUniswapV3PoolStateMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolState *IUniswapV3PoolStateRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolState.Contract.IUniswapV3PoolStateCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolState *IUniswapV3PoolStateRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolState.Contract.IUniswapV3PoolStateTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolState *IUniswapV3PoolStateRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolState.Contract.IUniswapV3PoolStateTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IUniswapV3PoolState.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IUniswapV3PoolState *IUniswapV3PoolStateTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IUniswapV3PoolState.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IUniswapV3PoolState *IUniswapV3PoolStateTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IUniswapV3PoolState.Contract.contract.Transact(opts, method, params...) -} - -// FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. -// -// Solidity: function feeGrowthGlobal0X128() view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) FeeGrowthGlobal0X128(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "feeGrowthGlobal0X128") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. -// -// Solidity: function feeGrowthGlobal0X128() view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) FeeGrowthGlobal0X128() (*big.Int, error) { - return _IUniswapV3PoolState.Contract.FeeGrowthGlobal0X128(&_IUniswapV3PoolState.CallOpts) -} - -// FeeGrowthGlobal0X128 is a free data retrieval call binding the contract method 0xf3058399. -// -// Solidity: function feeGrowthGlobal0X128() view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) FeeGrowthGlobal0X128() (*big.Int, error) { - return _IUniswapV3PoolState.Contract.FeeGrowthGlobal0X128(&_IUniswapV3PoolState.CallOpts) -} - -// FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. -// -// Solidity: function feeGrowthGlobal1X128() view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) FeeGrowthGlobal1X128(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "feeGrowthGlobal1X128") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. -// -// Solidity: function feeGrowthGlobal1X128() view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) FeeGrowthGlobal1X128() (*big.Int, error) { - return _IUniswapV3PoolState.Contract.FeeGrowthGlobal1X128(&_IUniswapV3PoolState.CallOpts) -} - -// FeeGrowthGlobal1X128 is a free data retrieval call binding the contract method 0x46141319. -// -// Solidity: function feeGrowthGlobal1X128() view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) FeeGrowthGlobal1X128() (*big.Int, error) { - return _IUniswapV3PoolState.Contract.FeeGrowthGlobal1X128(&_IUniswapV3PoolState.CallOpts) -} - -// Liquidity is a free data retrieval call binding the contract method 0x1a686502. -// -// Solidity: function liquidity() view returns(uint128) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) Liquidity(opts *bind.CallOpts) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "liquidity") - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// Liquidity is a free data retrieval call binding the contract method 0x1a686502. -// -// Solidity: function liquidity() view returns(uint128) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) Liquidity() (*big.Int, error) { - return _IUniswapV3PoolState.Contract.Liquidity(&_IUniswapV3PoolState.CallOpts) -} - -// Liquidity is a free data retrieval call binding the contract method 0x1a686502. -// -// Solidity: function liquidity() view returns(uint128) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) Liquidity() (*big.Int, error) { - return _IUniswapV3PoolState.Contract.Liquidity(&_IUniswapV3PoolState.CallOpts) -} - -// Observations is a free data retrieval call binding the contract method 0x252c09d7. -// -// Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) Observations(opts *bind.CallOpts, index *big.Int) (struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool -}, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "observations", index) - - outstruct := new(struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool - }) - if err != nil { - return *outstruct, err - } - - outstruct.BlockTimestamp = *abi.ConvertType(out[0], new(uint32)).(*uint32) - outstruct.TickCumulative = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.SecondsPerLiquidityCumulativeX128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.Initialized = *abi.ConvertType(out[3], new(bool)).(*bool) - - return *outstruct, err - -} - -// Observations is a free data retrieval call binding the contract method 0x252c09d7. -// -// Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) Observations(index *big.Int) (struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool -}, error) { - return _IUniswapV3PoolState.Contract.Observations(&_IUniswapV3PoolState.CallOpts, index) -} - -// Observations is a free data retrieval call binding the contract method 0x252c09d7. -// -// Solidity: function observations(uint256 index) view returns(uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) Observations(index *big.Int) (struct { - BlockTimestamp uint32 - TickCumulative *big.Int - SecondsPerLiquidityCumulativeX128 *big.Int - Initialized bool -}, error) { - return _IUniswapV3PoolState.Contract.Observations(&_IUniswapV3PoolState.CallOpts, index) -} - -// Positions is a free data retrieval call binding the contract method 0x514ea4bf. -// -// Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) Positions(opts *bind.CallOpts, key [32]byte) (struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "positions", key) - - outstruct := new(struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.Liquidity = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthInside0LastX128 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthInside1LastX128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.TokensOwed0 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) - outstruct.TokensOwed1 = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// Positions is a free data retrieval call binding the contract method 0x514ea4bf. -// -// Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) Positions(key [32]byte) (struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - return _IUniswapV3PoolState.Contract.Positions(&_IUniswapV3PoolState.CallOpts, key) -} - -// Positions is a free data retrieval call binding the contract method 0x514ea4bf. -// -// Solidity: function positions(bytes32 key) view returns(uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) Positions(key [32]byte) (struct { - Liquidity *big.Int - FeeGrowthInside0LastX128 *big.Int - FeeGrowthInside1LastX128 *big.Int - TokensOwed0 *big.Int - TokensOwed1 *big.Int -}, error) { - return _IUniswapV3PoolState.Contract.Positions(&_IUniswapV3PoolState.CallOpts, key) -} - -// ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b. -// -// Solidity: function protocolFees() view returns(uint128 token0, uint128 token1) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) ProtocolFees(opts *bind.CallOpts) (struct { - Token0 *big.Int - Token1 *big.Int -}, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "protocolFees") - - outstruct := new(struct { - Token0 *big.Int - Token1 *big.Int - }) - if err != nil { - return *outstruct, err - } - - outstruct.Token0 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Token1 = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - - return *outstruct, err - -} - -// ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b. -// -// Solidity: function protocolFees() view returns(uint128 token0, uint128 token1) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) ProtocolFees() (struct { - Token0 *big.Int - Token1 *big.Int -}, error) { - return _IUniswapV3PoolState.Contract.ProtocolFees(&_IUniswapV3PoolState.CallOpts) -} - -// ProtocolFees is a free data retrieval call binding the contract method 0x1ad8b03b. -// -// Solidity: function protocolFees() view returns(uint128 token0, uint128 token1) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) ProtocolFees() (struct { - Token0 *big.Int - Token1 *big.Int -}, error) { - return _IUniswapV3PoolState.Contract.ProtocolFees(&_IUniswapV3PoolState.CallOpts) -} - -// Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. -// -// Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) Slot0(opts *bind.CallOpts) (struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool -}, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "slot0") - - outstruct := new(struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool - }) - if err != nil { - return *outstruct, err - } - - outstruct.SqrtPriceX96 = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.Tick = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.ObservationIndex = *abi.ConvertType(out[2], new(uint16)).(*uint16) - outstruct.ObservationCardinality = *abi.ConvertType(out[3], new(uint16)).(*uint16) - outstruct.ObservationCardinalityNext = *abi.ConvertType(out[4], new(uint16)).(*uint16) - outstruct.FeeProtocol = *abi.ConvertType(out[5], new(uint8)).(*uint8) - outstruct.Unlocked = *abi.ConvertType(out[6], new(bool)).(*bool) - - return *outstruct, err - -} - -// Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. -// -// Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) Slot0() (struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool -}, error) { - return _IUniswapV3PoolState.Contract.Slot0(&_IUniswapV3PoolState.CallOpts) -} - -// Slot0 is a free data retrieval call binding the contract method 0x3850c7bd. -// -// Solidity: function slot0() view returns(uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) Slot0() (struct { - SqrtPriceX96 *big.Int - Tick *big.Int - ObservationIndex uint16 - ObservationCardinality uint16 - ObservationCardinalityNext uint16 - FeeProtocol uint8 - Unlocked bool -}, error) { - return _IUniswapV3PoolState.Contract.Slot0(&_IUniswapV3PoolState.CallOpts) -} - -// TickBitmap is a free data retrieval call binding the contract method 0x5339c296. -// -// Solidity: function tickBitmap(int16 wordPosition) view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) TickBitmap(opts *bind.CallOpts, wordPosition int16) (*big.Int, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "tickBitmap", wordPosition) - - if err != nil { - return *new(*big.Int), err - } - - out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - - return out0, err - -} - -// TickBitmap is a free data retrieval call binding the contract method 0x5339c296. -// -// Solidity: function tickBitmap(int16 wordPosition) view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) TickBitmap(wordPosition int16) (*big.Int, error) { - return _IUniswapV3PoolState.Contract.TickBitmap(&_IUniswapV3PoolState.CallOpts, wordPosition) -} - -// TickBitmap is a free data retrieval call binding the contract method 0x5339c296. -// -// Solidity: function tickBitmap(int16 wordPosition) view returns(uint256) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) TickBitmap(wordPosition int16) (*big.Int, error) { - return _IUniswapV3PoolState.Contract.TickBitmap(&_IUniswapV3PoolState.CallOpts, wordPosition) -} - -// Ticks is a free data retrieval call binding the contract method 0xf30dba93. -// -// Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCaller) Ticks(opts *bind.CallOpts, tick *big.Int) (struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool -}, error) { - var out []interface{} - err := _IUniswapV3PoolState.contract.Call(opts, &out, "ticks", tick) - - outstruct := new(struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool - }) - if err != nil { - return *outstruct, err - } - - outstruct.LiquidityGross = *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) - outstruct.LiquidityNet = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthOutside0X128 = *abi.ConvertType(out[2], new(*big.Int)).(**big.Int) - outstruct.FeeGrowthOutside1X128 = *abi.ConvertType(out[3], new(*big.Int)).(**big.Int) - outstruct.TickCumulativeOutside = *abi.ConvertType(out[4], new(*big.Int)).(**big.Int) - outstruct.SecondsPerLiquidityOutsideX128 = *abi.ConvertType(out[5], new(*big.Int)).(**big.Int) - outstruct.SecondsOutside = *abi.ConvertType(out[6], new(uint32)).(*uint32) - outstruct.Initialized = *abi.ConvertType(out[7], new(bool)).(*bool) - - return *outstruct, err - -} - -// Ticks is a free data retrieval call binding the contract method 0xf30dba93. -// -// Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) -func (_IUniswapV3PoolState *IUniswapV3PoolStateSession) Ticks(tick *big.Int) (struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool -}, error) { - return _IUniswapV3PoolState.Contract.Ticks(&_IUniswapV3PoolState.CallOpts, tick) -} - -// Ticks is a free data retrieval call binding the contract method 0xf30dba93. -// -// Solidity: function ticks(int24 tick) view returns(uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized) -func (_IUniswapV3PoolState *IUniswapV3PoolStateCallerSession) Ticks(tick *big.Int) (struct { - LiquidityGross *big.Int - LiquidityNet *big.Int - FeeGrowthOutside0X128 *big.Int - FeeGrowthOutside1X128 *big.Int - TickCumulativeOutside *big.Int - SecondsPerLiquidityOutsideX128 *big.Int - SecondsOutside uint32 - Initialized bool -}, error) { - return _IUniswapV3PoolState.Contract.Ticks(&_IUniswapV3PoolState.CallOpts, tick) -} diff --git a/v1/pkg/uniswap/v3-periphery/contracts/interfaces/iquoter.sol/iquoter.go b/v1/pkg/uniswap/v3-periphery/contracts/interfaces/iquoter.sol/iquoter.go deleted file mode 100644 index 1c64cfed5..000000000 --- a/v1/pkg/uniswap/v3-periphery/contracts/interfaces/iquoter.sol/iquoter.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iquoter - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// IQuoterMetaData contains all meta data concerning the IQuoter contract. -var IQuoterMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"name\":\"quoteExactInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"name\":\"quoteExactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"name\":\"quoteExactOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"name\":\"quoteExactOutputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// IQuoterABI is the input ABI used to generate the binding from. -// Deprecated: Use IQuoterMetaData.ABI instead. -var IQuoterABI = IQuoterMetaData.ABI - -// IQuoter is an auto generated Go binding around an Ethereum contract. -type IQuoter struct { - IQuoterCaller // Read-only binding to the contract - IQuoterTransactor // Write-only binding to the contract - IQuoterFilterer // Log filterer for contract events -} - -// IQuoterCaller is an auto generated read-only Go binding around an Ethereum contract. -type IQuoterCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IQuoterTransactor is an auto generated write-only Go binding around an Ethereum contract. -type IQuoterTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IQuoterFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type IQuoterFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// IQuoterSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type IQuoterSession struct { - Contract *IQuoter // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IQuoterCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type IQuoterCallerSession struct { - Contract *IQuoterCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// IQuoterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type IQuoterTransactorSession struct { - Contract *IQuoterTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// IQuoterRaw is an auto generated low-level Go binding around an Ethereum contract. -type IQuoterRaw struct { - Contract *IQuoter // Generic contract binding to access the raw methods on -} - -// IQuoterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type IQuoterCallerRaw struct { - Contract *IQuoterCaller // Generic read-only contract binding to access the raw methods on -} - -// IQuoterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type IQuoterTransactorRaw struct { - Contract *IQuoterTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewIQuoter creates a new instance of IQuoter, bound to a specific deployed contract. -func NewIQuoter(address common.Address, backend bind.ContractBackend) (*IQuoter, error) { - contract, err := bindIQuoter(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &IQuoter{IQuoterCaller: IQuoterCaller{contract: contract}, IQuoterTransactor: IQuoterTransactor{contract: contract}, IQuoterFilterer: IQuoterFilterer{contract: contract}}, nil -} - -// NewIQuoterCaller creates a new read-only instance of IQuoter, bound to a specific deployed contract. -func NewIQuoterCaller(address common.Address, caller bind.ContractCaller) (*IQuoterCaller, error) { - contract, err := bindIQuoter(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &IQuoterCaller{contract: contract}, nil -} - -// NewIQuoterTransactor creates a new write-only instance of IQuoter, bound to a specific deployed contract. -func NewIQuoterTransactor(address common.Address, transactor bind.ContractTransactor) (*IQuoterTransactor, error) { - contract, err := bindIQuoter(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &IQuoterTransactor{contract: contract}, nil -} - -// NewIQuoterFilterer creates a new log filterer instance of IQuoter, bound to a specific deployed contract. -func NewIQuoterFilterer(address common.Address, filterer bind.ContractFilterer) (*IQuoterFilterer, error) { - contract, err := bindIQuoter(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &IQuoterFilterer{contract: contract}, nil -} - -// bindIQuoter binds a generic wrapper to an already deployed contract. -func bindIQuoter(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := IQuoterMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IQuoter *IQuoterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IQuoter.Contract.IQuoterCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IQuoter *IQuoterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IQuoter.Contract.IQuoterTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IQuoter *IQuoterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IQuoter.Contract.IQuoterTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_IQuoter *IQuoterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _IQuoter.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_IQuoter *IQuoterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _IQuoter.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_IQuoter *IQuoterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _IQuoter.Contract.contract.Transact(opts, method, params...) -} - -// QuoteExactInput is a paid mutator transaction binding the contract method 0xcdca1753. -// -// Solidity: function quoteExactInput(bytes path, uint256 amountIn) returns(uint256 amountOut) -func (_IQuoter *IQuoterTransactor) QuoteExactInput(opts *bind.TransactOpts, path []byte, amountIn *big.Int) (*types.Transaction, error) { - return _IQuoter.contract.Transact(opts, "quoteExactInput", path, amountIn) -} - -// QuoteExactInput is a paid mutator transaction binding the contract method 0xcdca1753. -// -// Solidity: function quoteExactInput(bytes path, uint256 amountIn) returns(uint256 amountOut) -func (_IQuoter *IQuoterSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactInput(&_IQuoter.TransactOpts, path, amountIn) -} - -// QuoteExactInput is a paid mutator transaction binding the contract method 0xcdca1753. -// -// Solidity: function quoteExactInput(bytes path, uint256 amountIn) returns(uint256 amountOut) -func (_IQuoter *IQuoterTransactorSession) QuoteExactInput(path []byte, amountIn *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactInput(&_IQuoter.TransactOpts, path, amountIn) -} - -// QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xf7729d43. -// -// Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) returns(uint256 amountOut) -func (_IQuoter *IQuoterTransactor) QuoteExactInputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error) { - return _IQuoter.contract.Transact(opts, "quoteExactInputSingle", tokenIn, tokenOut, fee, amountIn, sqrtPriceLimitX96) -} - -// QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xf7729d43. -// -// Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) returns(uint256 amountOut) -func (_IQuoter *IQuoterSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactInputSingle(&_IQuoter.TransactOpts, tokenIn, tokenOut, fee, amountIn, sqrtPriceLimitX96) -} - -// QuoteExactInputSingle is a paid mutator transaction binding the contract method 0xf7729d43. -// -// Solidity: function quoteExactInputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountIn, uint160 sqrtPriceLimitX96) returns(uint256 amountOut) -func (_IQuoter *IQuoterTransactorSession) QuoteExactInputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountIn *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactInputSingle(&_IQuoter.TransactOpts, tokenIn, tokenOut, fee, amountIn, sqrtPriceLimitX96) -} - -// QuoteExactOutput is a paid mutator transaction binding the contract method 0x2f80bb1d. -// -// Solidity: function quoteExactOutput(bytes path, uint256 amountOut) returns(uint256 amountIn) -func (_IQuoter *IQuoterTransactor) QuoteExactOutput(opts *bind.TransactOpts, path []byte, amountOut *big.Int) (*types.Transaction, error) { - return _IQuoter.contract.Transact(opts, "quoteExactOutput", path, amountOut) -} - -// QuoteExactOutput is a paid mutator transaction binding the contract method 0x2f80bb1d. -// -// Solidity: function quoteExactOutput(bytes path, uint256 amountOut) returns(uint256 amountIn) -func (_IQuoter *IQuoterSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactOutput(&_IQuoter.TransactOpts, path, amountOut) -} - -// QuoteExactOutput is a paid mutator transaction binding the contract method 0x2f80bb1d. -// -// Solidity: function quoteExactOutput(bytes path, uint256 amountOut) returns(uint256 amountIn) -func (_IQuoter *IQuoterTransactorSession) QuoteExactOutput(path []byte, amountOut *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactOutput(&_IQuoter.TransactOpts, path, amountOut) -} - -// QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0x30d07f21. -// -// Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) returns(uint256 amountIn) -func (_IQuoter *IQuoterTransactor) QuoteExactOutputSingle(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error) { - return _IQuoter.contract.Transact(opts, "quoteExactOutputSingle", tokenIn, tokenOut, fee, amountOut, sqrtPriceLimitX96) -} - -// QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0x30d07f21. -// -// Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) returns(uint256 amountIn) -func (_IQuoter *IQuoterSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactOutputSingle(&_IQuoter.TransactOpts, tokenIn, tokenOut, fee, amountOut, sqrtPriceLimitX96) -} - -// QuoteExactOutputSingle is a paid mutator transaction binding the contract method 0x30d07f21. -// -// Solidity: function quoteExactOutputSingle(address tokenIn, address tokenOut, uint24 fee, uint256 amountOut, uint160 sqrtPriceLimitX96) returns(uint256 amountIn) -func (_IQuoter *IQuoterTransactorSession) QuoteExactOutputSingle(tokenIn common.Address, tokenOut common.Address, fee *big.Int, amountOut *big.Int, sqrtPriceLimitX96 *big.Int) (*types.Transaction, error) { - return _IQuoter.Contract.QuoteExactOutputSingle(&_IQuoter.TransactOpts, tokenIn, tokenOut, fee, amountOut, sqrtPriceLimitX96) -} diff --git a/v1/pkg/uniswap/v3-periphery/contracts/interfaces/iswaprouter.sol/iswaprouter.go b/v1/pkg/uniswap/v3-periphery/contracts/interfaces/iswaprouter.sol/iswaprouter.go deleted file mode 100644 index b50bc3558..000000000 --- a/v1/pkg/uniswap/v3-periphery/contracts/interfaces/iswaprouter.sol/iswaprouter.go +++ /dev/null @@ -1,328 +0,0 @@ -// Code generated - DO NOT EDIT. -// This file is a generated binding and any manual changes will be lost. - -package iswaprouter - -import ( - "errors" - "math/big" - "strings" - - ethereum "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/event" -) - -// Reference imports to suppress errors if they are not otherwise used. -var ( - _ = errors.New - _ = big.NewInt - _ = strings.NewReader - _ = ethereum.NotFound - _ = bind.Bind - _ = common.Big1 - _ = types.BloomLookup - _ = event.NewSubscription - _ = abi.ConvertType -) - -// ISwapRouterExactInputParams is an auto generated low-level Go binding around an user-defined struct. -type ISwapRouterExactInputParams struct { - Path []byte - Recipient common.Address - Deadline *big.Int - AmountIn *big.Int - AmountOutMinimum *big.Int -} - -// ISwapRouterExactInputSingleParams is an auto generated low-level Go binding around an user-defined struct. -type ISwapRouterExactInputSingleParams struct { - TokenIn common.Address - TokenOut common.Address - Fee *big.Int - Recipient common.Address - Deadline *big.Int - AmountIn *big.Int - AmountOutMinimum *big.Int - SqrtPriceLimitX96 *big.Int -} - -// ISwapRouterExactOutputParams is an auto generated low-level Go binding around an user-defined struct. -type ISwapRouterExactOutputParams struct { - Path []byte - Recipient common.Address - Deadline *big.Int - AmountOut *big.Int - AmountInMaximum *big.Int -} - -// ISwapRouterExactOutputSingleParams is an auto generated low-level Go binding around an user-defined struct. -type ISwapRouterExactOutputSingleParams struct { - TokenIn common.Address - TokenOut common.Address - Fee *big.Int - Recipient common.Address - Deadline *big.Int - AmountOut *big.Int - AmountInMaximum *big.Int - SqrtPriceLimitX96 *big.Int -} - -// ISwapRouterMetaData contains all meta data concerning the ISwapRouter contract. -var ISwapRouterMetaData = &bind.MetaData{ - ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"}],\"internalType\":\"structISwapRouter.ExactInputParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMinimum\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structISwapRouter.ExactInputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactInputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"path\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"}],\"internalType\":\"structISwapRouter.ExactOutputParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactOutput\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint24\",\"name\":\"fee\",\"type\":\"uint24\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMaximum\",\"type\":\"uint256\"},{\"internalType\":\"uint160\",\"name\":\"sqrtPriceLimitX96\",\"type\":\"uint160\"}],\"internalType\":\"structISwapRouter.ExactOutputSingleParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"exactOutputSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"amount0Delta\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"amount1Delta\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"uniswapV3SwapCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", -} - -// ISwapRouterABI is the input ABI used to generate the binding from. -// Deprecated: Use ISwapRouterMetaData.ABI instead. -var ISwapRouterABI = ISwapRouterMetaData.ABI - -// ISwapRouter is an auto generated Go binding around an Ethereum contract. -type ISwapRouter struct { - ISwapRouterCaller // Read-only binding to the contract - ISwapRouterTransactor // Write-only binding to the contract - ISwapRouterFilterer // Log filterer for contract events -} - -// ISwapRouterCaller is an auto generated read-only Go binding around an Ethereum contract. -type ISwapRouterCaller struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISwapRouterTransactor is an auto generated write-only Go binding around an Ethereum contract. -type ISwapRouterTransactor struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISwapRouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events. -type ISwapRouterFilterer struct { - contract *bind.BoundContract // Generic contract wrapper for the low level calls -} - -// ISwapRouterSession is an auto generated Go binding around an Ethereum contract, -// with pre-set call and transact options. -type ISwapRouterSession struct { - Contract *ISwapRouter // Generic contract binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ISwapRouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, -// with pre-set call options. -type ISwapRouterCallerSession struct { - Contract *ISwapRouterCaller // Generic contract caller binding to set the session for - CallOpts bind.CallOpts // Call options to use throughout this session -} - -// ISwapRouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, -// with pre-set transact options. -type ISwapRouterTransactorSession struct { - Contract *ISwapRouterTransactor // Generic contract transactor binding to set the session for - TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session -} - -// ISwapRouterRaw is an auto generated low-level Go binding around an Ethereum contract. -type ISwapRouterRaw struct { - Contract *ISwapRouter // Generic contract binding to access the raw methods on -} - -// ISwapRouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. -type ISwapRouterCallerRaw struct { - Contract *ISwapRouterCaller // Generic read-only contract binding to access the raw methods on -} - -// ISwapRouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. -type ISwapRouterTransactorRaw struct { - Contract *ISwapRouterTransactor // Generic write-only contract binding to access the raw methods on -} - -// NewISwapRouter creates a new instance of ISwapRouter, bound to a specific deployed contract. -func NewISwapRouter(address common.Address, backend bind.ContractBackend) (*ISwapRouter, error) { - contract, err := bindISwapRouter(address, backend, backend, backend) - if err != nil { - return nil, err - } - return &ISwapRouter{ISwapRouterCaller: ISwapRouterCaller{contract: contract}, ISwapRouterTransactor: ISwapRouterTransactor{contract: contract}, ISwapRouterFilterer: ISwapRouterFilterer{contract: contract}}, nil -} - -// NewISwapRouterCaller creates a new read-only instance of ISwapRouter, bound to a specific deployed contract. -func NewISwapRouterCaller(address common.Address, caller bind.ContractCaller) (*ISwapRouterCaller, error) { - contract, err := bindISwapRouter(address, caller, nil, nil) - if err != nil { - return nil, err - } - return &ISwapRouterCaller{contract: contract}, nil -} - -// NewISwapRouterTransactor creates a new write-only instance of ISwapRouter, bound to a specific deployed contract. -func NewISwapRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*ISwapRouterTransactor, error) { - contract, err := bindISwapRouter(address, nil, transactor, nil) - if err != nil { - return nil, err - } - return &ISwapRouterTransactor{contract: contract}, nil -} - -// NewISwapRouterFilterer creates a new log filterer instance of ISwapRouter, bound to a specific deployed contract. -func NewISwapRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*ISwapRouterFilterer, error) { - contract, err := bindISwapRouter(address, nil, nil, filterer) - if err != nil { - return nil, err - } - return &ISwapRouterFilterer{contract: contract}, nil -} - -// bindISwapRouter binds a generic wrapper to an already deployed contract. -func bindISwapRouter(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { - parsed, err := ISwapRouterMetaData.GetAbi() - if err != nil { - return nil, err - } - return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ISwapRouter *ISwapRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ISwapRouter.Contract.ISwapRouterCaller.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ISwapRouter *ISwapRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ISwapRouter.Contract.ISwapRouterTransactor.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ISwapRouter *ISwapRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ISwapRouter.Contract.ISwapRouterTransactor.contract.Transact(opts, method, params...) -} - -// Call invokes the (constant) contract method with params as input values and -// sets the output to result. The result type might be a single field for simple -// returns, a slice of interfaces for anonymous returns and a struct for named -// returns. -func (_ISwapRouter *ISwapRouterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { - return _ISwapRouter.Contract.contract.Call(opts, result, method, params...) -} - -// Transfer initiates a plain transaction to move funds to the contract, calling -// its default method if one is available. -func (_ISwapRouter *ISwapRouterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { - return _ISwapRouter.Contract.contract.Transfer(opts) -} - -// Transact invokes the (paid) contract method with params as input values. -func (_ISwapRouter *ISwapRouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { - return _ISwapRouter.Contract.contract.Transact(opts, method, params...) -} - -// ExactInput is a paid mutator transaction binding the contract method 0xc04b8d59. -// -// Solidity: function exactInput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountOut) -func (_ISwapRouter *ISwapRouterTransactor) ExactInput(opts *bind.TransactOpts, params ISwapRouterExactInputParams) (*types.Transaction, error) { - return _ISwapRouter.contract.Transact(opts, "exactInput", params) -} - -// ExactInput is a paid mutator transaction binding the contract method 0xc04b8d59. -// -// Solidity: function exactInput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountOut) -func (_ISwapRouter *ISwapRouterSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactInput(&_ISwapRouter.TransactOpts, params) -} - -// ExactInput is a paid mutator transaction binding the contract method 0xc04b8d59. -// -// Solidity: function exactInput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountOut) -func (_ISwapRouter *ISwapRouterTransactorSession) ExactInput(params ISwapRouterExactInputParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactInput(&_ISwapRouter.TransactOpts, params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0x414bf389. -// -// Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountOut) -func (_ISwapRouter *ISwapRouterTransactor) ExactInputSingle(opts *bind.TransactOpts, params ISwapRouterExactInputSingleParams) (*types.Transaction, error) { - return _ISwapRouter.contract.Transact(opts, "exactInputSingle", params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0x414bf389. -// -// Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountOut) -func (_ISwapRouter *ISwapRouterSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactInputSingle(&_ISwapRouter.TransactOpts, params) -} - -// ExactInputSingle is a paid mutator transaction binding the contract method 0x414bf389. -// -// Solidity: function exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountOut) -func (_ISwapRouter *ISwapRouterTransactorSession) ExactInputSingle(params ISwapRouterExactInputSingleParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactInputSingle(&_ISwapRouter.TransactOpts, params) -} - -// ExactOutput is a paid mutator transaction binding the contract method 0xf28c0498. -// -// Solidity: function exactOutput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountIn) -func (_ISwapRouter *ISwapRouterTransactor) ExactOutput(opts *bind.TransactOpts, params ISwapRouterExactOutputParams) (*types.Transaction, error) { - return _ISwapRouter.contract.Transact(opts, "exactOutput", params) -} - -// ExactOutput is a paid mutator transaction binding the contract method 0xf28c0498. -// -// Solidity: function exactOutput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountIn) -func (_ISwapRouter *ISwapRouterSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactOutput(&_ISwapRouter.TransactOpts, params) -} - -// ExactOutput is a paid mutator transaction binding the contract method 0xf28c0498. -// -// Solidity: function exactOutput((bytes,address,uint256,uint256,uint256) params) payable returns(uint256 amountIn) -func (_ISwapRouter *ISwapRouterTransactorSession) ExactOutput(params ISwapRouterExactOutputParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactOutput(&_ISwapRouter.TransactOpts, params) -} - -// ExactOutputSingle is a paid mutator transaction binding the contract method 0xdb3e2198. -// -// Solidity: function exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountIn) -func (_ISwapRouter *ISwapRouterTransactor) ExactOutputSingle(opts *bind.TransactOpts, params ISwapRouterExactOutputSingleParams) (*types.Transaction, error) { - return _ISwapRouter.contract.Transact(opts, "exactOutputSingle", params) -} - -// ExactOutputSingle is a paid mutator transaction binding the contract method 0xdb3e2198. -// -// Solidity: function exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountIn) -func (_ISwapRouter *ISwapRouterSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactOutputSingle(&_ISwapRouter.TransactOpts, params) -} - -// ExactOutputSingle is a paid mutator transaction binding the contract method 0xdb3e2198. -// -// Solidity: function exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160) params) payable returns(uint256 amountIn) -func (_ISwapRouter *ISwapRouterTransactorSession) ExactOutputSingle(params ISwapRouterExactOutputSingleParams) (*types.Transaction, error) { - return _ISwapRouter.Contract.ExactOutputSingle(&_ISwapRouter.TransactOpts, params) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_ISwapRouter *ISwapRouterTransactor) UniswapV3SwapCallback(opts *bind.TransactOpts, amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _ISwapRouter.contract.Transact(opts, "uniswapV3SwapCallback", amount0Delta, amount1Delta, data) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_ISwapRouter *ISwapRouterSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _ISwapRouter.Contract.UniswapV3SwapCallback(&_ISwapRouter.TransactOpts, amount0Delta, amount1Delta, data) -} - -// UniswapV3SwapCallback is a paid mutator transaction binding the contract method 0xfa461e33. -// -// Solidity: function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes data) returns() -func (_ISwapRouter *ISwapRouterTransactorSession) UniswapV3SwapCallback(amount0Delta *big.Int, amount1Delta *big.Int, data []byte) (*types.Transaction, error) { - return _ISwapRouter.Contract.UniswapV3SwapCallback(&_ISwapRouter.TransactOpts, amount0Delta, amount1Delta, data) -} diff --git a/v1/readme.md b/v1/readme.md deleted file mode 100644 index 25c421907..000000000 --- a/v1/readme.md +++ /dev/null @@ -1,123 +0,0 @@ -# ZetaChain Protocol Contracts - -This repository contains ZetaChain protocol contracts: Solidity source code, -generated Go bindings, deployed contract addresses and helper utilities. - -## Importing Protocol Contracts - -As a dApp developer, you can install the protocol contracts package into your -project: - -``` -yarn add --dev @zetachain/protocol-contracts -``` - -Getting the TSS address on BSC testnet: - -```ts -import { getAddress } from "@zetachain/protocol-contracts"; - -getAddress("tss", "zeta_testnet"); -``` - -Getting a ZRC-20 BSC USDT on ZetaChain Mainnet Beta: - -```ts -import { getAddress } from "@zetachain/protocol-contracts"; - -getAddress("zrc20", "zeta_mainnet", "USDT.BSC"); -``` - -The third argument (symbol) is only used when querying ZRC-20 addresses to -specify which token address is needed. - -To view a table of all contracts visit the [Contract -Addresses](https://www.zetachain.com/docs/reference/contracts/) page in the -docs. - -Importing -[`ZetaInterfaces`](https://www.zetachain.com/docs/developers/cross-chain-messaging/connector/) -and `ZetaInteractor` for cross-chain messaging: - -```solidity -import "@zetachain/protocol-contracts/contracts/evm/interfaces/ZetaInterfaces.sol"; -import "@zetachain/protocol-contracts/contracts/evm/tools/ZetaInteractor.sol"; -``` - -Importing [ZRC20](https://www.zetachain.com/docs/developers/tokens/zrc20/) and -the [system -contract](https://www.zetachain.com/docs/developers/omnichain/system-contract/) -for omni-chain smart contracts: - -```solidity -import "@zetachain/protocol-contracts/contracts/zevm/interfaces/IZRC20.sol"; -import "@zetachain/protocol-contracts/contracts/zevm/interfaces/zContract.sol"; -import "@zetachain/protocol-contracts/contracts/zevm/SystemContract.sol"; -``` - -## Prerequisites for Development - -Before you can contribute to this project, you must have the following -installed: - -- [Node.js](https://nodejs.org/) -- [Yarn](https://yarnpkg.com/) -- [jq](https://stedolan.github.io/jq/) -- [abigen](https://geth.ethereum.org/docs/tools/abigen) -- [forge](https://getfoundry.sh/) - -## Compiling Contracts - -To compile the contracts, run the following command: - -``` -yarn compile -``` - -This will compile the Solidity contracts and output the resulting JSON artifacts -to the `artifacts` directory. - -## Test - -To run v1 tests (hardhat): - -``` -yarn test -``` - -To run v2 tests (hardhat): -``` -yarn test:prototypes -``` - -To run v2 tests (forge): -``` -forge test -vvvv -``` - -## Generating Go Bindings and Contract Addresses - -To generate Go bindings for the Solidity contracts and fetch, run the following -command: - -``` -yarn generate -``` - -This will use `abigen` to generate Go bindings for the contracts and output the -resulting Go files to the `pkg` directory. - -## Generating Contract Docs - -To generate the docs from protocol contracts, run the following command: - -``` -yarn docs -``` - -This script uses `forge doc` to generate the docs. - -## Contributing - -If you would like to contribute to this project, please fork the repository and -submit a pull request. All contributions are welcome! diff --git a/v1/scripts/deployments/core/deploy-deterministic.ts b/v1/scripts/deployments/core/deploy-deterministic.ts deleted file mode 100644 index b22038875..000000000 --- a/v1/scripts/deployments/core/deploy-deterministic.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { network } from "hardhat"; - -import { isProtocolNetworkName } from "../../../../lib/address.tools"; -import { deterministicDeployERC20Custody } from "./deterministic-deploy-erc20-custody"; -import { deterministicDeployZetaConnector } from "./deterministic-deploy-zeta-connector"; -import { deterministicDeployZetaToken } from "./deterministic-deploy-zeta-token"; - -const networkName = network.name; - -async function main() { - if (!isProtocolNetworkName(networkName)) throw new Error("Invalid network name"); - - await deterministicDeployZetaToken(); - await deterministicDeployZetaConnector(); - await deterministicDeployERC20Custody(); -} - -main() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/deployments/core/deploy-erc20-custody.ts b/v1/scripts/deployments/core/deploy-erc20-custody.ts deleted file mode 100644 index da0df5fd7..000000000 --- a/v1/scripts/deployments/core/deploy-erc20-custody.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Contract } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { ERC20_CUSTODY_ZETA_FEE, ERC20_CUSTODY_ZETA_MAX_FEE } from "../../../lib/contracts.constants"; -import { deployERC20Custody as deployERC20CustodyHelper } from "../../../lib/contracts.helpers"; - -export async function deployERC20Custody(zetaTokenAddress: string) { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - const accounts = await ethers.getSigners(); - const [signer] = accounts; - const initialBalance = await signer.getBalance(); - - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - - const zetaFee = ERC20_CUSTODY_ZETA_FEE; - const zetaMaxFee = ERC20_CUSTODY_ZETA_MAX_FEE; - - let contract: Contract; - console.log(`Deploying ERC20Custody to ${network.name}`); - - const constructorArgs = [tssAddress, tssUpdaterAddress, zetaFee.toString(), zetaMaxFee.toString(), zetaTokenAddress]; - contract = await deployERC20CustodyHelper({ - args: constructorArgs, - }); - - const finalBalance = await signer.getBalance(); - console.log("Deployed ERC20Custody. Address:", contract.address); - console.log("Constructor Args", constructorArgs); - console.log("ETH spent:", initialBalance.sub(finalBalance).toString()); - - return contract.address; -} diff --git a/v1/scripts/deployments/core/deploy-immutable-create2-factory.ts b/v1/scripts/deployments/core/deploy-immutable-create2-factory.ts deleted file mode 100644 index 6d3babf64..000000000 --- a/v1/scripts/deployments/core/deploy-immutable-create2-factory.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { network } from "hardhat"; -import { isProtocolNetworkName } from "lib"; - -import { deployImmutableCreate2Factory as deploy } from "../../../lib/contracts.helpers"; - -export async function deployImmutableCreate2Factory() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - console.log(`Deploying ImmutableCreate2Factory to ${network.name}`); - - const contract = await deploy(); - - console.log("Deployed ImmutableCreate2Factory. Address:", contract.address); -} - -if (!process.env.EXECUTE_PROGRAMMATICALLY) { - deployImmutableCreate2Factory() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); -} diff --git a/v1/scripts/deployments/core/deploy-zeta-connector.ts b/v1/scripts/deployments/core/deploy-zeta-connector.ts deleted file mode 100644 index dd3555a5a..000000000 --- a/v1/scripts/deployments/core/deploy-zeta-connector.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Contract } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { deployZetaConnectorEth, deployZetaConnectorNonEth, isEthNetworkName } from "../../../lib/contracts.helpers"; - -export async function deployZetaConnector(zetaTokenAddress: string) { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - const accounts = await ethers.getSigners(); - const [signer] = accounts; - const initialBalance = await signer.getBalance(); - - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - - const constructorArgs = [zetaTokenAddress, tssAddress, tssUpdaterAddress, tssUpdaterAddress]; - let contract: Contract; - console.log(`Deploying ZetaConnector to ${network.name}`); - - if (isEthNetworkName(network.name)) { - contract = await deployZetaConnectorEth({ - args: constructorArgs, - }); - } else { - contract = await deployZetaConnectorNonEth({ - args: constructorArgs, - }); - } - - const finalBalance = await signer.getBalance(); - console.log("Deployed ZetaConnector. Address:", contract.address); - console.log("Constructor Args", constructorArgs); - console.log("ETH spent:", initialBalance.sub(finalBalance).toString()); - return contract.address; -} diff --git a/v1/scripts/deployments/core/deploy-zeta-token.ts b/v1/scripts/deployments/core/deploy-zeta-token.ts deleted file mode 100644 index b5aee77b5..000000000 --- a/v1/scripts/deployments/core/deploy-zeta-token.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { Contract } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { ZETA_INITIAL_SUPPLY } from "../../../lib/contracts.constants"; -import { deployZetaEth, deployZetaNonEth, isEthNetworkName } from "../../../lib/contracts.helpers"; - -export async function deployZetaToken() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - const initialBalance = await signer.getBalance(); - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - - let contract: Contract; - let constructorArgs: any; - console.log(`Deploying ZetaToken to ${network.name}`); - - if (isEthNetworkName(network.name)) { - constructorArgs = [DEPLOYER_ADDRESS, ZETA_INITIAL_SUPPLY]; - contract = await deployZetaEth({ - args: constructorArgs, - }); - } else { - constructorArgs = [tssAddress, tssUpdaterAddress]; - contract = await deployZetaNonEth({ - args: constructorArgs, - }); - } - - const finalBalance = await signer.getBalance(); - console.log("Deployed ZetaToken. Address:", contract.address); - console.log("Constructor Args", constructorArgs); - console.log("ETH spent:", initialBalance.sub(finalBalance).toString()); - return contract.address; -} diff --git a/v1/scripts/deployments/core/deploy.ts b/v1/scripts/deployments/core/deploy.ts deleted file mode 100644 index 4d0736f01..000000000 --- a/v1/scripts/deployments/core/deploy.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { network } from "hardhat"; - -import { isProtocolNetworkName } from "../../../lib/address.tools"; -import { deployERC20Custody } from "./deploy-erc20-custody"; -import { deployZetaConnector } from "./deploy-zeta-connector"; -import { deployZetaToken } from "./deploy-zeta-token"; - -const networkName = network.name; - -async function main() { - if (!isProtocolNetworkName(networkName)) throw new Error("Invalid network name"); - - const zetaTokenAddress = await deployZetaToken(); - await deployZetaConnector(zetaTokenAddress); - await deployERC20Custody(zetaTokenAddress); -} - -main() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/deployments/core/deterministic-deploy-erc20-custody.ts b/v1/scripts/deployments/core/deterministic-deploy-erc20-custody.ts deleted file mode 100644 index c95d82a7f..000000000 --- a/v1/scripts/deployments/core/deterministic-deploy-erc20-custody.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { BigNumber } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { ERC20_CUSTODY_ZETA_FEE, ERC20_CUSTODY_ZETA_MAX_FEE, getSaltNumber } from "../../../../lib/contracts.constants"; -import { - deployContractToAddress, - saltToHex, -} from "../../../../lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers"; -import { ERC20Custody__factory } from "../../../typechain-types"; - -export const deterministicDeployERC20Custody = async () => { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - const initialBalance = await signer.getBalance(); - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - const immutableCreate2FactoryAddress = getAddress("immutableCreate2Factory", network.name); - - const saltNumber = getSaltNumber("zetaERC20Custody", network.name); - const saltStr = BigNumber.from(saltNumber).toHexString(); - - const zetaFee = ERC20_CUSTODY_ZETA_FEE; - const zetaMaxFee = ERC20_CUSTODY_ZETA_MAX_FEE; - - const salthex = saltToHex(saltStr, DEPLOYER_ADDRESS); - console.log("SaltHex:", salthex); - - const constructorTypes = ["address", "address", "uint256", "uint256", "address"]; - const constructorArgs = [tssAddress, tssUpdaterAddress, zetaFee.toString(), zetaMaxFee.toString(), zetaTokenAddress]; - const contractBytecode = ERC20Custody__factory.bytecode; - - const { address } = await deployContractToAddress({ - constructorArgs, - constructorTypes, - contractBytecode, - factoryAddress: immutableCreate2FactoryAddress, - salt: salthex, - signer, - }); - - const finalBalance = await signer.getBalance(); - console.log("Deployed ERC20 Custody. Address:", address); - console.log("Constructor Args", constructorArgs); - console.log("ETH spent:", initialBalance.sub(finalBalance).toString()); - - return address; -}; - -if (!process.env.EXECUTE_PROGRAMMATICALLY) { - deterministicDeployERC20Custody() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); -} diff --git a/v1/scripts/deployments/core/deterministic-deploy-zeta-connector.ts b/v1/scripts/deployments/core/deterministic-deploy-zeta-connector.ts deleted file mode 100644 index be4403ac7..000000000 --- a/v1/scripts/deployments/core/deterministic-deploy-zeta-connector.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { BigNumber } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { getSaltNumber } from "../../../../lib/contracts.constants"; -import { isEthNetworkName } from "../../../../lib/contracts.helpers"; -import { - deployContractToAddress, - saltToHex, -} from "../../../../lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers"; -import { ZetaConnectorEth__factory, ZetaConnectorNonEth__factory } from "../../../typechain-types"; - -export const deterministicDeployZetaConnector = async () => { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - const initialBalance = await signer.getBalance(); - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - const immutableCreate2FactoryAddress = getAddress("immutableCreate2Factory", network.name); - - const saltNumber = getSaltNumber("zetaConnector", network.name); - const saltStr = BigNumber.from(saltNumber).toHexString(); - - const salthex = saltToHex(saltStr, DEPLOYER_ADDRESS); - const constructorTypes = ["address", "address", "address", "address"]; - const constructorArgs = [zetaTokenAddress, tssAddress, tssUpdaterAddress, tssUpdaterAddress]; - - let contractBytecode; - if (isEthNetworkName(network.name)) { - contractBytecode = ZetaConnectorEth__factory.bytecode; - } else { - contractBytecode = ZetaConnectorNonEth__factory.bytecode; - } - - const { address } = await deployContractToAddress({ - constructorArgs, - constructorTypes, - contractBytecode, - factoryAddress: immutableCreate2FactoryAddress, - salt: salthex, - signer, - }); - - const finalBalance = await signer.getBalance(); - console.log("Deployed ZetaConnector. Address:", address); - console.log("Constructor Args", constructorArgs); - console.log("ETH spent:", initialBalance.sub(finalBalance).toString()); - - return address; -}; - -if (!process.env.EXECUTE_PROGRAMMATICALLY) { - deterministicDeployZetaConnector() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); -} diff --git a/v1/scripts/deployments/core/deterministic-deploy-zeta-token.ts b/v1/scripts/deployments/core/deterministic-deploy-zeta-token.ts deleted file mode 100644 index 167f0f5cb..000000000 --- a/v1/scripts/deployments/core/deterministic-deploy-zeta-token.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { BigNumber } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { getSaltNumber, ZETA_INITIAL_SUPPLY } from "../../../../lib/contracts.constants"; -import { isEthNetworkName } from "../../../../lib/contracts.helpers"; -import { - deployContractToAddress, - saltToHex, -} from "../../../../lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers"; -import { ZetaEth__factory, ZetaNonEth__factory } from "../../../typechain-types"; - -export const deterministicDeployZetaToken = async () => { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - const initialBalance = await signer.getBalance(); - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - const immutableCreate2FactoryAddress = getAddress("immutableCreate2Factory", network.name); - - const saltNumber = getSaltNumber("zetaToken", network.name); - const saltStr = BigNumber.from(saltNumber).toHexString(); - - const salthex = saltToHex(saltStr, DEPLOYER_ADDRESS); - console.log("SaltHex:", salthex); - - let constructorTypes; - let constructorArgs; - let contractBytecode; - - if (isEthNetworkName(network.name)) { - constructorTypes = ["address", "uint256"]; - constructorArgs = [DEPLOYER_ADDRESS, ZETA_INITIAL_SUPPLY.toString()]; - contractBytecode = ZetaEth__factory.bytecode; - } else { - constructorTypes = ["address", "address"]; - constructorArgs = [tssAddress, tssUpdaterAddress]; - contractBytecode = ZetaNonEth__factory.bytecode; - } - - const { address } = await deployContractToAddress({ - constructorArgs, - constructorTypes, - contractBytecode, - factoryAddress: immutableCreate2FactoryAddress, - salt: salthex, - signer, - }); - - const finalBalance = await signer.getBalance(); - console.log("Deployed zetaToken. Address:", address); - console.log("Constructor Args", constructorArgs); - console.log("ETH spent:", initialBalance.sub(finalBalance).toString()); - - return address; -}; - -if (!process.env.EXECUTE_PROGRAMMATICALLY) { - deterministicDeployZetaToken() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); -} diff --git a/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-pancakev3.ts b/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-pancakev3.ts deleted file mode 100644 index 608f36e75..000000000 --- a/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-pancakev3.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { ethers, network } from "hardhat"; - -import { getAddress, getNonZetaAddress, isProtocolNetworkName } from "../../../lib"; -import { ZetaTokenConsumerPancakeV3__factory } from "../../../typechain-types"; - -export async function deterministicDeployZetaConsumer() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - const accounts = await ethers.getSigners(); - const [signer] = accounts; - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const uniswapV3Router = getNonZetaAddress("uniswapV3Router", network.name); - const uniswapV3Factory = getNonZetaAddress("uniswapV3Factory", network.name); - const WETH9Address = getNonZetaAddress("weth9", network.name); - - const zetaPoolFee = 500; - const tokenPoolFee = 3000; - - console.log([zetaTokenAddress, uniswapV3Router, uniswapV3Factory, WETH9Address, zetaPoolFee, tokenPoolFee]); - - const Factory = new ZetaTokenConsumerPancakeV3__factory(signer); - const contract = await Factory.deploy( - zetaTokenAddress, - uniswapV3Router, - uniswapV3Factory, - WETH9Address, - zetaPoolFee, - tokenPoolFee - ); - await contract.deployed(); - const address = contract.address; - - console.log("Deployed ZetaConsumer. Address:", address); -} - -if (!process.env.EXECUTE_PROGRAMMATICALLY) { - deterministicDeployZetaConsumer() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); -} diff --git a/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v2.ts b/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v2.ts deleted file mode 100644 index d10989a34..000000000 --- a/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v2.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { BigNumber } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, getNonZetaAddress, isProtocolNetworkName } from "lib"; - -import { ZETA_CONSUMER_SALT_NUMBER } from "../../../lib/contracts.constants"; -import { - deployContractToAddress, - saltToHex, -} from "../../../lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers"; -import { ZetaTokenConsumerUniV2__factory } from "../../../typechain-types"; - -export async function deterministicDeployZetaConsumer() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const immutableCreate2FactoryAddress = getAddress("immutableCreate2Factory", network.name); - - const uniswapV2Router02 = getNonZetaAddress("uniswapV2Router02", network.name); - - const saltNumber = ZETA_CONSUMER_SALT_NUMBER; - const saltStr = BigNumber.from(saltNumber).toHexString(); - - const salthex = saltToHex(saltStr, DEPLOYER_ADDRESS); - const constructorTypes = ["address", "address"]; - const constructorArgs = [zetaTokenAddress, uniswapV2Router02]; - - const contractBytecode = ZetaTokenConsumerUniV2__factory.bytecode; - - const { address } = await deployContractToAddress({ - constructorArgs, - constructorTypes, - contractBytecode, - factoryAddress: immutableCreate2FactoryAddress, - salt: salthex, - signer, - }); - - console.log("Deployed ZetaConsumer. Address:", address); -} - -if (!process.env.EXECUTE_PROGRAMMATICALLY) { - deterministicDeployZetaConsumer() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); -} diff --git a/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v3.ts b/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v3.ts deleted file mode 100644 index 9e5601521..000000000 --- a/v1/scripts/deployments/tools/deterministic-deploy-zeta-consumer-v3.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { ethers, network } from "hardhat"; -import { getAddress, getNonZetaAddress, isProtocolNetworkName } from "lib"; - -import { ZetaTokenConsumerUniV3__factory } from "../../../typechain-types"; - -export async function deterministicDeployZetaConsumer() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - const accounts = await ethers.getSigners(); - const [signer] = accounts; - - const zetaTokenAddress = getAddress("zetaToken", network.name); - - const uniswapV3Router = getNonZetaAddress("uniswapV3Router", network.name); - const uniswapV3Factory = getNonZetaAddress("uniswapV3Factory", network.name); - const WETH9Address = getNonZetaAddress("weth9", network.name); - - const zetaPoolFee = 500; - const tokenPoolFee = 3000; - - console.log([zetaTokenAddress, uniswapV3Router, uniswapV3Factory, WETH9Address, zetaPoolFee, tokenPoolFee]); - - const Factory = new ZetaTokenConsumerUniV3__factory(signer); - const contract = await Factory.deploy( - zetaTokenAddress, - uniswapV3Router, - uniswapV3Factory, - WETH9Address, - zetaPoolFee, - tokenPoolFee - ); - await contract.deployed(); - const address = contract.address; - - console.log("Deployed ZetaConsumer. Address:", address); -} - -if (!process.env.EXECUTE_PROGRAMMATICALLY) { - deterministicDeployZetaConsumer() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); -} diff --git a/v1/scripts/deployments/tools/deterministic-get-salt-erc20-custody.ts b/v1/scripts/deployments/tools/deterministic-get-salt-erc20-custody.ts deleted file mode 100644 index 195f2a6f5..000000000 --- a/v1/scripts/deployments/tools/deterministic-get-salt-erc20-custody.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { BigNumber } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; -import { ERC20_CUSTODY_ZETA_FEE, ERC20_CUSTODY_ZETA_MAX_FEE } from "lib/contracts.constants"; - -import { calculateBestSalt } from "../../../lib/deterministic-deploy.helpers"; -import { ERC20Custody__factory } from "../../../typechain-types"; - -const MAX_ITERATIONS = BigNumber.from(1000000); - -export const deterministicDeployGetSaltERC20Custody = async () => { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - - const zetaFee = ERC20_CUSTODY_ZETA_FEE; - const zetaMaxFee = ERC20_CUSTODY_ZETA_MAX_FEE; - - const constructorTypes = ["address", "address", "uint256", "uint256", "address"]; - const constructorArgs = [tssAddress, tssUpdaterAddress, zetaFee.toString(), zetaMaxFee.toString(), zetaTokenAddress]; - const contractBytecode = ERC20Custody__factory.bytecode; - - await calculateBestSalt( - MAX_ITERATIONS, - DEPLOYER_ADDRESS, - constructorTypes, - constructorArgs, - contractBytecode, - network.name - ); -}; - -deterministicDeployGetSaltERC20Custody() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/deployments/tools/deterministic-get-salt-zeta-connector.ts b/v1/scripts/deployments/tools/deterministic-get-salt-zeta-connector.ts deleted file mode 100644 index dfbb31055..000000000 --- a/v1/scripts/deployments/tools/deterministic-get-salt-zeta-connector.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { BigNumber } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { isEthNetworkName } from "../../../lib/contracts.helpers"; -import { calculateBestSalt } from "../../../lib/deterministic-deploy.helpers"; -import { ZetaConnectorEth__factory, ZetaConnectorNonEth__factory } from "../../../typechain-types"; - -const MAX_ITERATIONS = BigNumber.from(100000); - -export async function deterministicDeployGetSaltZetaConnector() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - - // @todo: decide which address use as pauser - const constructorTypes = ["address", "address", "address", "address"]; - const constructorArgs = [zetaTokenAddress, tssAddress, tssUpdaterAddress, tssUpdaterAddress]; - - let contractBytecode; - - if (isEthNetworkName(network.name)) { - contractBytecode = ZetaConnectorEth__factory.bytecode; - } else { - contractBytecode = ZetaConnectorNonEth__factory.bytecode; - } - - await calculateBestSalt( - MAX_ITERATIONS, - DEPLOYER_ADDRESS, - constructorTypes, - constructorArgs, - contractBytecode, - network.name - ); -} - -deterministicDeployGetSaltZetaConnector() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/deployments/tools/deterministic-get-salt-zeta-token.ts b/v1/scripts/deployments/tools/deterministic-get-salt-zeta-token.ts deleted file mode 100644 index b627d2fa8..000000000 --- a/v1/scripts/deployments/tools/deterministic-get-salt-zeta-token.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { BigNumber } from "ethers"; -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { ZETA_INITIAL_SUPPLY } from "../../../lib/contracts.constants"; -import { isEthNetworkName } from "../../../lib/contracts.helpers"; -import { calculateBestSalt } from "../../../lib/deterministic-deploy.helpers"; -import { ZetaEth__factory, ZetaNonEth__factory } from "../../../typechain-types"; - -const MAX_ITERATIONS = BigNumber.from(1000000); - -export async function deterministicDeployGetSaltZetaToken() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - const [signer] = accounts; - - const DEPLOYER_ADDRESS = process.env.DEPLOYER_ADDRESS || signer.address; - - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - - let constructorTypes; - let constructorArgs; - let contractBytecode; - if (isEthNetworkName(network.name)) { - constructorTypes = ["address", "uint256"]; - constructorArgs = [DEPLOYER_ADDRESS, ZETA_INITIAL_SUPPLY.toString()]; - contractBytecode = ZetaEth__factory.bytecode; - } else { - constructorTypes = ["address", "address"]; - constructorArgs = [tssAddress, tssUpdaterAddress]; - contractBytecode = ZetaNonEth__factory.bytecode; - } - await calculateBestSalt( - MAX_ITERATIONS, - DEPLOYER_ADDRESS, - constructorTypes, - constructorArgs, - contractBytecode, - network.name - ); -} - -deterministicDeployGetSaltZetaToken() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/generate_addresses.sh b/v1/scripts/generate_addresses.sh deleted file mode 100755 index b51dc8cf7..000000000 --- a/v1/scripts/generate_addresses.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -echo "Generating protocol addresses..." - -npx hardhat addresses --network zeta_testnet > ./data/addresses.testnet.json -npx hardhat addresses --network zeta_mainnet > ./data/addresses.mainnet.json - -echo "Generating protocol addresses types..." - -npx ts-node scripts/generate_addresses_types.ts > ./lib/types.ts \ No newline at end of file diff --git a/v1/scripts/generate_addresses_types.ts b/v1/scripts/generate_addresses_types.ts deleted file mode 100644 index e15ae4d19..000000000 --- a/v1/scripts/generate_addresses_types.ts +++ /dev/null @@ -1,46 +0,0 @@ -import mainnet from "../data/addresses.mainnet.json"; -import testnet from "../data/addresses.testnet.json"; - -// Ensure that mainnet and testnet are typed as arrays -const mainnetData: any[] = mainnet as any[]; -const testnetData: any[] = testnet as any[]; - -const extractUniqueValues = (data: any[], key: string): string[] => { - const allValues = data.filter((item) => item[key] !== undefined).map((item) => item[key].toString()); - return [...new Set(allValues)]; -}; - -const generateTypesForKeys = (keys: string[]) => { - const networks = [...mainnetData, ...testnetData]; - - let typeDefs = ""; - - keys.forEach((key) => { - const uniqueValues = extractUniqueValues(networks, key); - if (uniqueValues.length > 0) { - const isNumeric = uniqueValues.every((value) => !isNaN(Number(value))); - const formattedValues = isNumeric ? uniqueValues.join(" | ") : `"${uniqueValues.join('" | "')}"`; - - typeDefs += `export type Param${toCamelCase(key, true)} = ${formattedValues};\n`; - } - }); - - console.log(typeDefs); -}; - -// Modify this function to handle underscores and capitalize each word -const toCamelCase = (string: string, capitalizeFirst: boolean = false) => { - return string - .split("_") - .map((word, index) => { - if (index === 0) { - return capitalizeFirst ? word.charAt(0).toUpperCase() + word.slice(1) : word; - } - return word.charAt(0).toUpperCase() + word.slice(1); - }) - .join(""); -}; - -const keysToGenerate = ["symbol", "chain_name", "type"]; - -generateTypesForKeys(keysToGenerate); diff --git a/v1/scripts/generate_go.sh b/v1/scripts/generate_go.sh deleted file mode 100755 index c2259b1ff..000000000 --- a/v1/scripts/generate_go.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/bash - -# Define the input and output directories -ARTIFACTS_DIR="./artifacts" -OUTPUT_DIR="./pkg" - -rm -rf $OUTPUT_DIR - -# Create the output directory if it doesn't exist -mkdir -p $OUTPUT_DIR - -# Initialize error counter -errors=0 - -# Function to process JSON files and generate Go bindings -process_file() { - local contract="$1" - local subdir="$2" - - # Check if the JSON file contains "abi" and "bytecode" properties - if ! jq 'has("abi") and has("bytecode")' "$contract" | grep -q 'true'; then - return - fi - - # Extract the contract name from the file name (without the .json extension) - contract_name=$(basename "$contract" .json) - contract_name_lowercase=$(echo "$contract_name" | tr '[:upper:]' '[:lower:]') - - # Define output subdirectory and create it if it doesn't exist - output_subdir="$OUTPUT_DIR/${subdir/@/}" - output_subdir_lowercase=$(echo "$output_subdir" | tr '[:upper:]' '[:lower:]') - mkdir -p "$output_subdir_lowercase" - - package_name=$(basename "${subdir/@/}" | cut -d'.' -f1 | tr '[:upper:]' '[:lower:]') - - # Generate the Go binding for the contract - echo "Compiling $contract_name..." - cat "$contract" | jq .abi > "$output_subdir_lowercase/$contract_name.abi" - cat "$contract" | jq .bytecode | tr -d '\"' > "$output_subdir_lowercase/$contract_name.bin" - abigen --abi "$output_subdir_lowercase/$contract_name.abi" --bin "$output_subdir_lowercase/$contract_name.bin" --pkg "$package_name" --type "$contract_name" --out "$output_subdir_lowercase/$contract_name_lowercase.go" > /dev/null 2>&1 - # Check if there were errors during the compilation - if [ $? -ne 0 ]; then - echo "Error: Failed to compile $contract_name" - errors=$((errors + 1)) - fi - - # Remove temporary .abi and .bin files - rm "$output_subdir_lowercase/$contract_name.abi" "$output_subdir_lowercase/$contract_name.bin" -} - -# Function to iterate through the artifacts directory -iterate_directory() { - local parent="$1" - local subdir="$2" - - for entry in "$parent"/*; do - if [ -d "$entry" ]; then - local new_subdir - if [ -z "$subdir" ]; then - new_subdir=$(basename "$entry") - else - new_subdir="$subdir/$(basename "$entry")" - fi - iterate_directory "$entry" "$new_subdir" - elif [ -f "$entry" ] && [ "${entry##*.}" = "json" ]; then - process_file "$entry" "$subdir" - fi - done -} - -echo -e "" - -iterate_directory "$ARTIFACTS_DIR" - -echo -e "" - -if [ $errors -eq 0 ]; then - echo "All contracts have been compiled successfully." -else - echo "There were $errors error(s) during the compilation process." -fi - -echo -e "" \ No newline at end of file diff --git a/v1/scripts/tools/bytecode-checker/bytecode.constants.ts b/v1/scripts/tools/bytecode-checker/bytecode.constants.ts deleted file mode 100644 index 0c6ed398b..000000000 --- a/v1/scripts/tools/bytecode-checker/bytecode.constants.ts +++ /dev/null @@ -1,18 +0,0 @@ -export const ETHERSCAN_API_ENDPOINT = "https://api.etherscan.io"; -export const BSC_ETHERSCAN_API_ENDPOINT = "https://api.bscscan.com"; -export const ZETA_NODE_ENDPOINT = "http://100.71.167.102:8545"; - -export const etherscanApiKey = process.env.ETHERSCAN_API_KEY; -export const bscEtherscanApiKey = process.env.BSCSCAN_API_KEY; - -export const ethConnectorAddress = "0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a"; -export const ethERC20CustodyAddress = "0x000001b91C19A31809e769110d35FAd2C15BCeA7"; -export const ethTokenAddress = "0xf091867EC603A6628eD83D274E835539D82e9cc8"; - -export const bscConnectorAddress = "0x000063A6e758D9e2f438d430108377564cf4077D"; -export const bscERC20CustodyAddress = "0x0000006Abbf11Ed0FabFD247f1F4d76A383cC395"; -export const bscTokenAddress = "0x0000028a2eB8346cd5c0267856aB7594B7a55308"; - -export const BTC_BTC = "0x13A0c5930C028511Dc02665E7285134B6d11A5f4"; -export const BNB_BSC = "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb"; -export const ETH_ETH = "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891"; diff --git a/v1/scripts/tools/bytecode-checker/bytecode.helpers.ts b/v1/scripts/tools/bytecode-checker/bytecode.helpers.ts deleted file mode 100644 index 481b94afa..000000000 --- a/v1/scripts/tools/bytecode-checker/bytecode.helpers.ts +++ /dev/null @@ -1,94 +0,0 @@ -const fetch = require("node-fetch"); -const fs = require("fs"); -const path = require("path"); -const { ethers } = require("ethers"); -import { BigNumber } from "ethers"; - -import { - BSC_ETHERSCAN_API_ENDPOINT, - bscEtherscanApiKey, - ETHERSCAN_API_ENDPOINT, - etherscanApiKey, - ZETA_NODE_ENDPOINT, -} from "./bytecode.constants"; - -export const encodeNumber = (weiValue: BigNumber) => { - return ethers.utils.hexZeroPad(weiValue.toHexString(), 32).replace("0x", ""); -}; - -export const encodeAddress = (address: string) => { - return ethers.utils.hexZeroPad(address, 32).replace("0x", ""); -}; - -export const compareBytecode = (bytecodeA: string, bytecodeB: string) => { - if (bytecodeA === bytecodeB) { - console.log("Bytecode matches!"); - } else { - console.error("Bytecode doesn't match!"); - } -}; - -export const getEtherscanBytecode = async (network: "bsc" | "eth", contractAddress: string) => { - const endpoint = network === "bsc" ? BSC_ETHERSCAN_API_ENDPOINT : ETHERSCAN_API_ENDPOINT; - const apiKey = network === "bsc" ? bscEtherscanApiKey : etherscanApiKey; - const etherscanApiUrl = `${endpoint}/api?module=proxy&action=eth_getCode&address=${contractAddress}&apikey=${apiKey}`; - - try { - const response = await fetch(etherscanApiUrl); - const data = await response.json(); - const bytecode = data.result; - return bytecode; - } catch (error) { - console.error("Error fetching bytecode:", error); - } -}; - -// @dev: helper to find differences between two bytecodes when there's a mismatch -export const findDiff = (codeA: string, codeB: string) => { - console.log("Lengths:", codeA.length, codeB.length); - for (let i = 0; i < codeA.length; i++) { - if (codeA[i] !== codeB[i]) { - console.log(i, codeA.substring(i - 20, i + 40), codeB.substring(i - 20, i + 40)); - } - } -}; - -export const getZetaNodeBytecode = async (contractAddress: string) => { - try { - const provider = new ethers.providers.JsonRpcProvider(ZETA_NODE_ENDPOINT); - const bytecode = await provider.getCode(contractAddress); - return bytecode; - } catch (error) { - console.error("Error fetching bytecode:", error); - console.error("Please make sure you are connected to tailscale."); - } -}; - -export const removeImmutableAddress = (bytecode: string, pattern: string) => { - const replacement = encodeAddress(ethers.constants.AddressZero); - const regex = new RegExp(pattern, "gi"); - - bytecode = bytecode.replace(regex, replacement); - return bytecode; -}; - -export const removeImmutableNumber = (bytecode: string, pattern: string) => { - const replacement = encodeNumber(BigNumber.from("0")); - const regex = new RegExp(pattern, "gi"); - - bytecode = bytecode.replace(regex, replacement); - return bytecode; -}; - -export const getDeployedBytecode = async (contract: string, kind: "evm" | "zevm") => { - try { - const filePath = path.join(__dirname, `../../../artifacts/contracts/${kind}/${contract}.json`); - const fileContent = fs.readFileSync(filePath, "utf8"); - const jsonContent = JSON.parse(fileContent); - const deployedBytecode = jsonContent.deployedBytecode; - - return deployedBytecode; - } catch (error) { - console.error("Error reading the file or parsing JSON:", error); - } -}; diff --git a/v1/scripts/tools/bytecode-checker/bytecode.ts b/v1/scripts/tools/bytecode-checker/bytecode.ts deleted file mode 100644 index 2a667cfd9..000000000 --- a/v1/scripts/tools/bytecode-checker/bytecode.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { BigNumber } from "ethers"; -import { parseEther } from "ethers/lib/utils"; - -import { - BNB_BSC, - bscConnectorAddress, - bscERC20CustodyAddress, - bscTokenAddress, - BTC_BTC, - ETH_ETH, - ethConnectorAddress, - ethERC20CustodyAddress, - ethTokenAddress, -} from "./bytecode.constants"; -import { - compareBytecode, - encodeAddress, - encodeNumber, - getDeployedBytecode, - getEtherscanBytecode, - getZetaNodeBytecode, - removeImmutableAddress, - removeImmutableNumber, -} from "./bytecode.helpers"; - -const checkEthConnectorBytecode = async () => { - const remoteBytecode = await getEtherscanBytecode("eth", ethConnectorAddress); - const cleanRemoteBytecode = removeImmutableAddress(remoteBytecode, encodeAddress(ethTokenAddress)); - const deployedBytecode = await getDeployedBytecode("ZetaConnector.eth.sol/ZetaConnectorEth", "evm"); - compareBytecode(cleanRemoteBytecode, deployedBytecode); -}; - -const checkEthCustodyBytecode = async () => { - const remoteBytecode = await getEtherscanBytecode("eth", ethERC20CustodyAddress); - let cleanRemoteBytecode = removeImmutableAddress(remoteBytecode, encodeAddress(ethTokenAddress)); - cleanRemoteBytecode = removeImmutableNumber(cleanRemoteBytecode, encodeNumber(parseEther("1000"))); // zetaMaxFee - const deployedBytecode = await getDeployedBytecode("ERC20Custody.sol/ERC20Custody", "evm"); - compareBytecode(cleanRemoteBytecode, deployedBytecode); -}; - -const checkBscConnectorBytecode = async () => { - const remoteBytecode = await getEtherscanBytecode("bsc", bscConnectorAddress); - const cleanRemoteBytecode = removeImmutableAddress(remoteBytecode, encodeAddress(bscTokenAddress)); - const deployedBytecode = await getDeployedBytecode("ZetaConnector.non-eth.sol/ZetaConnectorNonEth", "evm"); - compareBytecode(cleanRemoteBytecode, deployedBytecode); -}; - -const checkBscCustodyBytecode = async () => { - const remoteBytecode = await getEtherscanBytecode("bsc", bscERC20CustodyAddress); - let cleanRemoteBytecode = removeImmutableAddress(remoteBytecode, encodeAddress(bscTokenAddress)); - cleanRemoteBytecode = removeImmutableNumber(cleanRemoteBytecode, encodeNumber(parseEther("1000"))); // zetaMaxFee - const deployedBytecode = await getDeployedBytecode("ERC20Custody.sol/ERC20Custody", "evm"); - compareBytecode(cleanRemoteBytecode, deployedBytecode); -}; - -const checkZRC20ETHBytecode = async () => { - const remoteBytecode = await getZetaNodeBytecode(ETH_ETH); - let cleanRemoteBytecode = removeImmutableNumber(remoteBytecode, encodeNumber(BigNumber.from("1"))); // ETH CHAIN ID - cleanRemoteBytecode = removeImmutableNumber(cleanRemoteBytecode, encodeNumber(BigNumber.from("1"))); // Gas COIN TYPE - const deployedBytecode = await getDeployedBytecode("ZRC20.sol/ZRC20", "zevm"); - compareBytecode(cleanRemoteBytecode, deployedBytecode); -}; - -const checkZRC20BTCBytecode = async () => { - const remoteBytecode = await getZetaNodeBytecode(BTC_BTC); - let cleanRemoteBytecode = removeImmutableNumber(remoteBytecode, encodeNumber(BigNumber.from("8332"))); // BTC CHAIN ID - cleanRemoteBytecode = removeImmutableNumber(cleanRemoteBytecode, encodeNumber(BigNumber.from("1"))); // Gas COIN TYPE - const deployedBytecode = await getDeployedBytecode("ZRC20.sol/ZRC20", "zevm"); - compareBytecode(cleanRemoteBytecode, deployedBytecode); -}; - -const checkZRC20BSCBytecode = async () => { - const remoteBytecode = await getZetaNodeBytecode(BNB_BSC); - let cleanRemoteBytecode = removeImmutableNumber(remoteBytecode, encodeNumber(BigNumber.from("56"))); // BSC CHAIN ID - cleanRemoteBytecode = removeImmutableNumber(cleanRemoteBytecode, encodeNumber(BigNumber.from("1"))); // Gas COIN TYPE - const deployedBytecode = await getDeployedBytecode("ZRC20.sol/ZRC20", "zevm"); - compareBytecode(cleanRemoteBytecode, deployedBytecode); -}; - -const checkBytecode = async () => { - // ETH - await checkEthConnectorBytecode(); - await checkEthCustodyBytecode(); - // BSC - await checkBscConnectorBytecode(); - await checkBscCustodyBytecode(); - // ZEVM - await checkZRC20ETHBytecode(); - await checkZRC20BTCBytecode(); - await checkZRC20BSCBytecode(); -}; - -checkBytecode() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/tools/send-tss-gas.ts b/v1/scripts/tools/send-tss-gas.ts deleted file mode 100644 index 2990e3ace..000000000 --- a/v1/scripts/tools/send-tss-gas.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { ethers, network } from "hardhat"; - -import { getAddress, isProtocolNetworkName } from "../../lib/address.tools"; - -async function sendGas() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const [signer] = await ethers.getSigners(); - - const tssAddress = getAddress("tss", network.name); - - const sendGasTx = { - from: signer.address, - to: tssAddress, - value: ethers.utils.parseEther("1.0"), - }; - await signer.sendTransaction(sendGasTx); - console.log(`Sent 1.0 Ether from ${signer.address} to TSS address (${tssAddress}).`); -} - -sendGas() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/tools/set-zeta-token-addresses.ts b/v1/scripts/tools/set-zeta-token-addresses.ts deleted file mode 100644 index ff9aea2a4..000000000 --- a/v1/scripts/tools/set-zeta-token-addresses.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { ZetaNonEth__factory as ZetaNonEthFactory } from "../../typechain-types"; - -export async function setZetaAddresses(connectorAddress: string, zetaTokenAddress: string) { - const [owner] = await ethers.getSigners(); - - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const tssAddress = getAddress("tss", network.name); - const tssUpdaterAddress = getAddress("tssUpdater", network.name); - - if (owner.address !== tssAddress && owner.address !== tssUpdaterAddress) { - console.log("Only TSS or TSS Updater can set Zeta addresses."); - console.log("Please execute this step with a valid account."); - return; - } - - const [tssSigner] = await ethers.getSigners(); - - const contract = ZetaNonEthFactory.connect(zetaTokenAddress, tssSigner); - - console.log("Updating"); - console.log("connectorAddress", connectorAddress); - console.log("zetaTokenAddress", zetaTokenAddress); - const tx = await contract.updateTssAndConnectorAddresses(tssAddress, connectorAddress); - await tx.wait(); - console.log("Updated"); -} diff --git a/v1/scripts/tools/test-zeta-send.ts b/v1/scripts/tools/test-zeta-send.ts deleted file mode 100644 index 81de7738c..000000000 --- a/v1/scripts/tools/test-zeta-send.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { networks } from "@zetachain/networks"; -import { AbiCoder } from "ethers/lib/utils"; -import { ethers, network } from "hardhat"; - -import { getAddress, isProtocolNetworkName, ZetaProtocolNetwork } from "../../lib/address.tools"; -import { ZetaConnectorEth__factory as ZetaConnectorEthFactory } from "../../typechain-types"; - -const encoder = new AbiCoder(); - -export const getChainId = (network: ZetaProtocolNetwork): number => { - //@ts-ignore - return networks[network].chain_id; -}; - -async function main() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const accounts = await ethers.getSigners(); - - const connectorAddress = getAddress("connector", network.name); - - const factory = (await ethers.getContractFactory("ZetaConnectorEth")) as ZetaConnectorEthFactory; - const contract = factory.attach(connectorAddress); - - console.log(`Sending To ${accounts[0].address}`); - await ( - await contract.send({ - destinationAddress: encoder.encode(["address"], [accounts[0].address]), - destinationChainId: getChainId("bsc_testnet"), - destinationGasLimit: 1_000_000, - message: encoder.encode(["address"], [accounts[0].address]), - zetaParams: [], - zetaValueAndGas: "10000000000000000000", - }) - ).wait(); - console.log("Sent"); -} - -main() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/tools/token-approval.ts b/v1/scripts/tools/token-approval.ts deleted file mode 100644 index 3f59df766..000000000 --- a/v1/scripts/tools/token-approval.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { getZetaFactoryEth, getZetaFactoryNonEth, isEthNetworkName } from "../../lib/contracts.helpers"; - -const approvalAmount = ethers.utils.parseEther("10000000.0"); - -export async function setTokenApproval() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const connectorAddress = getAddress("connector", network.name); - - let contract; - if (isEthNetworkName(network.name)) { - contract = await getZetaFactoryEth({ deployParams: null, existingContractAddress: zetaTokenAddress }); - } else { - contract = await getZetaFactoryNonEth({ deployParams: null, existingContractAddress: zetaTokenAddress }); - } - - let tx = await contract.approve(connectorAddress, approvalAmount); - tx.wait(); - - console.log(`Approved Connector Contract ${connectorAddress} for ${approvalAmount} `); -} - -setTokenApproval() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/tools/update-tss-address.ts b/v1/scripts/tools/update-tss-address.ts deleted file mode 100644 index 9ad030527..000000000 --- a/v1/scripts/tools/update-tss-address.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { getZetaConnectorEth, getZetaConnectorNonEth, isEthNetworkName } from "../../lib/contracts.helpers"; - -async function sendGas() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const [, tssUpdaterSigner] = await ethers.getSigners(); - - const tssAddress = getAddress("tss", network.name); - const connectorAddress = getAddress("connector", network.name); - - const newTssAddress = "0x0000000000000000000000000000000000000000"; - - if (isEthNetworkName(network.name)) { - const contract = ( - await getZetaConnectorEth({ deployParams: null, existingContractAddress: connectorAddress }) - ).connect(tssUpdaterSigner); - - await (await contract.updateTssAddress(newTssAddress)).wait(); - } else { - const contract = ( - await getZetaConnectorNonEth({ deployParams: null, existingContractAddress: connectorAddress }) - ).connect(tssUpdaterSigner); - - await (await contract.updateTssAddress(newTssAddress)).wait(); - } - - console.log(`Updated TSS address from ${tssAddress} to ${newTssAddress}.`); -} - -sendGas() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/scripts/tools/update-zeta-connector.ts b/v1/scripts/tools/update-zeta-connector.ts deleted file mode 100644 index ebe0534b4..000000000 --- a/v1/scripts/tools/update-zeta-connector.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ethers, network } from "hardhat"; -import { getAddress, isProtocolNetworkName } from "lib"; - -import { getZetaFactoryNonEth } from "../../lib/contracts.helpers"; - -async function updateZetaConnector() { - if (!isProtocolNetworkName(network.name)) { - throw new Error(`network.name: ${network.name} isn't supported.`); - } - - const [, tssUpdaterSigner] = await ethers.getSigners(); - - const zetaTokenAddress = getAddress("zetaToken", network.name); - const tssAddress = getAddress("tss", network.name); - const connectorAddress = getAddress("connector", network.name); - - const contract = ( - await getZetaFactoryNonEth({ deployParams: null, existingContractAddress: zetaTokenAddress }) - ).connect(tssUpdaterSigner); - - await (await contract.updateTssAndConnectorAddresses(tssAddress, connectorAddress)).wait(); - - console.log(`Updated TSS address to ${tssAddress}.`); - console.log(`Updated Connector address to ${connectorAddress}.`); -} - -updateZetaConnector() - .then(() => process.exit(0)) - .catch((error) => { - console.error(error); - process.exit(1); - }); diff --git a/v1/tasks/addresses.mainnet.json b/v1/tasks/addresses.mainnet.json deleted file mode 100644 index 9c74e8302..000000000 --- a/v1/tasks/addresses.mainnet.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "uniswapV2Router02" - }, - { - "address": "0xE592427A0AEce92De3Edee1F18E0157C05861564", - "category": "messaging", - "chain_id": 1, - "chain_name": "eth_mainnet", - "type": "uniswapV3Router" - } -] diff --git a/v1/tasks/addresses.testnet.json b/v1/tasks/addresses.testnet.json deleted file mode 100644 index 379ab2a9c..000000000 --- a/v1/tasks/addresses.testnet.json +++ /dev/null @@ -1,58 +0,0 @@ -[ - { - "address": "0xFB2fCE3CCca19F0f764Ed8aa26C62181E3dA04C5", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "zetaTokenConsumerUniV3" - }, - { - "address": "0x301ED39771d8f1dD0b05F8C2D4327ce9C426E783", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "zetaTokenConsumerUniV3" - }, - { - "address": "0x48C4475B7A9A6E9c384dDF3eb30c56761a2bc37e", - "category": "messaging", - "chain_id": 7001, - "chain_name": "zeta_testnet", - "type": "zetaTokenConsumerUniV3" - }, - { - "address": "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E", - "category": "messaging", - "chain_id": 11155111, - "chain_name": "sepolia_testnet", - "type": "uniswapV3Router" - }, - { - "address": "0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "uniswapV2Router02" - }, - { - "address": "0x9a489505a00cE272eAa5e07Dba6491314CaE3796", - "category": "messaging", - "chain_id": 97, - "chain_name": "bsc_testnet", - "type": "uniswapV3Router" - }, - { - "address": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur", - "category": "omnichain", - "chain_id": 18333, - "chain_name": "btc_signet", - "type": "tss" - }, - { - "address": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur", - "category": "omnichain", - "chain_id": 18334, - "chain_name": "btc_testnet4", - "type": "tss" - } -] diff --git a/v1/tasks/addresses.ts b/v1/tasks/addresses.ts deleted file mode 100644 index 3a5a7c45d..000000000 --- a/v1/tasks/addresses.ts +++ /dev/null @@ -1,365 +0,0 @@ -import uniswapV2Router from "@uniswap/v2-periphery/build/IUniswapV2Router02.json"; -import SwapRouter from "@uniswap/v3-periphery/artifacts/contracts/SwapRouter.sol/SwapRouter.json"; -import { getEndpoints } from "@zetachain/networks"; -import axios, { AxiosResponse } from "axios"; -import { ethers } from "ethers"; -import { task } from "hardhat/config"; -import { HardhatRuntimeEnvironment } from "hardhat/types"; -import { isEqual } from "lodash"; - -import { ZetaConnectorBase__factory } from "../typechain-types"; -import { ERC20Custody__factory } from "../typechain-types/factories/contracts/evm/ERC20Custody__factory"; -import { SystemContract__factory } from "../typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContract__factory"; -import zeta_mainnet_addresses from "./addresses.mainnet.json"; -import zeta_testnet_addresses from "./addresses.testnet.json"; - -declare const hre: any; - -type Network = "zeta_mainnet" | "zeta_testnet"; - -type AddressDetails = { - address: string; - category: string; - chain_id: number; - chain_name: string; - type: string; -}; - -const api = { - zeta_mainnet: { - evm: "https://zetachain-evm.blockpi.network/v1/rpc/public", - rpc: "https://zetachain.blockpi.network/lcd/v1/public", - }, - zeta_testnet: { - evm: "https://zetachain-athens-evm.blockpi.network/v1/rpc/public", - rpc: "https://zetachain-athens.blockpi.network/lcd/v1/public", - }, -}; - -const fetchChains = async (network: Network) => { - const URL = `${api[network].rpc}/zeta-chain/observer/supportedChains`; - try { - const response: AxiosResponse = await axios.get(URL); - - if (response.status === 200) { - return response.data.chains; - } else { - console.error("Error fetching chains:", response.status, response.statusText); - } - } catch (error) { - console.error("Error fetching chains:", error); - } -}; - -const fetchTssData = async (chains: any, addresses: any, network: Network) => { - const bitcoinChainID = network === "zeta_mainnet" ? "8332" : "18332"; - const URL = `${api[network].rpc}/zeta-chain/observer/get_tss_address/${bitcoinChainID}`; - try { - const tssResponse: AxiosResponse = await axios.get(URL); - - if (tssResponse.status === 200) { - chains.forEach((chain: any) => { - const { btc, eth } = tssResponse.data; - if (["zeta_testnet", "zeta_mainnet"].includes(chain.chain_name)) return; - addresses.push({ - address: ["btc_testnet", "btc_mainnet"].includes(chain.chain_name) ? btc : eth, - category: "omnichain", - chain_id: parseInt(chain.chain_id), - chain_name: chain.chain_name, - type: "tss", - }); - }); - } else { - console.error("Error fetching TSS data:", tssResponse.status, tssResponse.statusText); - } - } catch (error) { - console.error("Error fetching TSS data:", error); - } -}; - -const fetchSystemContract = async (addresses: any, network: Network) => { - const chain_id = network === "zeta_mainnet" ? 7000 : 7001; - const URL = `${api[network].rpc}/zeta-chain/fungible/system_contract`; - try { - const systemContractResponse: AxiosResponse = await axios.get(URL); - - if (systemContractResponse.status === 200) { - addresses.push({ - address: systemContractResponse.data.SystemContract.system_contract, - category: "omnichain", - chain_id, - chain_name: network, - type: "systemContract", - }); - addresses.push({ - address: systemContractResponse.data.SystemContract.connector_zevm, - category: "messaging", - chain_id, - chain_name: network, - type: "connector", - }); - } else { - console.error("Error fetching system contract:", systemContractResponse.statusText); - } - } catch (error) { - console.error("Error fetching system contract:", error); - } -}; - -const fetchForeignCoinsData = async (chains: any, addresses: any, network: Network) => { - const chain_id = network === "zeta_mainnet" ? 7000 : 7001; - const URL = `${api[network].rpc}/zeta-chain/fungible/foreign_coins`; - try { - const foreignCoinsResponse: AxiosResponse = await axios.get(URL); - if (foreignCoinsResponse.status === 200) { - foreignCoinsResponse.data.foreignCoins.forEach((token: any) => { - addresses.push({ - address: token.zrc20_contract_address, - asset: token.asset, - category: "omnichain", - chain_id, - chain_name: network, - coin_type: token.coin_type.toLowerCase(), - decimals: token.decimals, - description: token.name, - foreign_chain_id: token.foreign_chain_id, - symbol: token.symbol, - type: "zrc20", - }); - }); - } else { - console.error("Error fetching foreign coins data:", foreignCoinsResponse.status, foreignCoinsResponse.statusText); - } - } catch (error) { - console.error("Error fetching foreign coins data:", error); - } -}; - -const fetchAthensAddresses = async (addresses: any, network: Network) => { - const chain_id = network === "zeta_mainnet" ? 7000 : 7001; - const systemContract = addresses.find((a: any) => { - return a.chain_name === network && a.type === "systemContract"; - })?.address; - const provider = new ethers.providers.JsonRpcProvider(api[network].evm); - const sc = SystemContract__factory.connect(systemContract, provider); - const common = { - category: "omnichain", - chain_id, - chain_name: network, - }; - try { - addresses.push({ ...common, address: await sc.uniswapv2FactoryAddress(), type: "uniswapV2Factory" }); - addresses.push({ ...common, address: await sc.wZetaContractAddress(), type: "zetaToken" }); - addresses.push({ ...common, address: await sc.uniswapv2Router02Address(), type: "uniswapV2Router02" }); - // addresses.push({ ...common, address: await sc.zetaConnectorZEVMAddress(), type: "zetaConnectorZEVM" }); - addresses.push({ ...common, address: await sc.FUNGIBLE_MODULE_ADDRESS(), type: "fungibleModule" }); - } catch (error) { - console.error("Error fetching addresses from ZetaChain:", error); - } -}; - -const fetchChainSpecificAddresses = async (chains: any, addresses: any, network: Network) => { - await Promise.all( - chains.map(async (chain: any) => { - return axios - .get(`${api[network].rpc}/zeta-chain/observer/get_chain_params_for_chain/${chain.chain_id}`) - .then(({ data }) => { - const zetaToken = data.chain_params.zeta_token_contract_address; - if (zetaToken && zetaToken != "0x0000000000000000000000000000000000000000") { - addresses.push({ - address: zetaToken, - category: "messaging", - chain_id: parseInt(chain.chain_id), - chain_name: chain.chain_name, - type: "zetaToken", - }); - } - const connector = data.chain_params.connector_contract_address; - if (connector && connector != "0x0000000000000000000000000000000000000000") { - addresses.push({ - address: connector, - category: "messaging", - chain_id: parseInt(chain.chain_id), - chain_name: chain.chain_name, - type: "connector", - }); - } - const erc20Custody = data.chain_params.erc20_custody_contract_address; - if (erc20Custody && erc20Custody != "0x0000000000000000000000000000000000000000") { - addresses.push({ - address: data.chain_params.erc20_custody_contract_address, - category: "omnichain", - chain_id: parseInt(chain.chain_id), - chain_name: chain.chain_name, - type: "erc20Custody", - }); - } - }); - }) - ); -}; - -const fetchTSSUpdater = async (chains: any, addresses: any) => { - await Promise.all( - chains.map(async (chain: any) => { - const erc20Custody = addresses.find((a: any) => { - return a.chain_name === chain.chain_name && a.type === "erc20Custody"; - })?.address; - if (erc20Custody) { - if (["18332", "8332"].includes(chain.chain_id)) return; - const chainName = chain.chain_name === "base_sepolia" ? "base_testnet" : chain.chain_name; - const rpc = getEndpoints("evm", chainName)[0]?.url; - const provider = new ethers.providers.JsonRpcProvider(rpc); - const custody = ERC20Custody__factory.connect(erc20Custody, provider); - return custody.TSSAddressUpdater().then((address: string) => { - addresses.push({ - address, - category: "omnichain", - chain_id: parseInt(chain.chain_id), - chain_name: chain.chain_name, - type: "tssUpdater", - }); - }); - } - }) - ); -}; - -const fetchPauser = async (chains: any, addresses: any) => { - await Promise.all( - chains.map(async (chain: any) => { - const erc20Custody = addresses.find((a: any) => { - return a.chain_name === chain.chain_name && a.type === "connector"; - })?.address; - if (erc20Custody) { - if (["18332", "8332", "7001", "7000"].includes(chain.chain_id)) return; - const chainName = chain.chain_name === "base_sepolia" ? "base_testnet" : chain.chain_name; - const rpc = getEndpoints("evm", chainName)[0]?.url; - const provider = new ethers.providers.JsonRpcProvider(rpc); - const connector = ZetaConnectorBase__factory.connect(erc20Custody, provider); - return connector.pauserAddress().then((address: string) => { - addresses.push({ - address, - category: "messaging", - chain_id: parseInt(chain.chain_id), - chain_name: chain.chain_name, - type: "pauser", - }); - }); - } - }) - ); -}; - -const fetchFactoryV2 = async (addresses: any, network: Network) => { - const routers = addresses.filter((a: any) => a.type === "uniswapV2Router02"); - - for (const router of routers) { - const rpc = getEndpoints("evm", router.chain_name)[0]?.url; - const provider = new ethers.providers.JsonRpcProvider(rpc); - const routerContract = new ethers.Contract(router.address, uniswapV2Router.abi, provider); - - try { - const wethAddress = await routerContract.WETH(); - const factoryAddress = await routerContract.factory(); - - // Skip ZetaChain as we've already added ZETA token - if (router.chain_id !== 7000 && router.chain_id !== 7001) { - addresses.push({ - address: wethAddress, - category: "messaging", - chain_id: router.chain_id, - chain_name: router.chain_name, - type: "weth9", - }); - - addresses.push({ - address: factoryAddress, - category: "messaging", - chain_id: router.chain_id, - chain_name: router.chain_name, - type: "uniswapV2Factory", - }); - } - } catch (error) { - console.error(`Error fetching factory and WETH for router v2 ${router.address}:`, error); - } - } -}; - -const fetchFactoryV3 = async (addresses: any, network: Network) => { - const routers = addresses.filter((a: any) => a.type === "uniswapV3Router"); - - for (const router of routers) { - const rpc = getEndpoints("evm", router.chain_name)[0]?.url; - const provider = new ethers.providers.JsonRpcProvider(rpc); - const routerContract = new ethers.Contract(router.address, SwapRouter.abi, provider); - - try { - const wethAddress = await routerContract.WETH9(); - const factoryAddress = await routerContract.factory(); - - const wethObj = { - address: wethAddress, - category: "messaging", - chain_id: router.chain_id, - chain_name: router.chain_name, - type: "weth9", - }; - - if (!addresses.some((e: any) => isEqual(e, wethObj))) { - addresses.push(wethObj); - } - - addresses.push({ - address: factoryAddress, - category: "messaging", - chain_id: router.chain_id, - chain_name: router.chain_name, - type: "uniswapV3Factory", - }); - } catch (error) { - console.error(`Error fetching factory for router v3 ${router.address}:`, error); - } - } -}; - -const main = async (args: any, hre: HardhatRuntimeEnvironment) => { - let addresses: any = []; - - const n = hre.network.name; - if (n === "zeta_testnet") { - addresses.push(...zeta_testnet_addresses); - } else if (n === "zeta_mainnet") { - addresses.push(...zeta_mainnet_addresses); - } else { - throw new Error(`Unsupported network: ${n}. Must be 'zeta_testnet' or 'zeta_mainnet'.`); - } - - const network: Network = n; - - const chains = await fetchChains(network); - await fetchTssData(chains, addresses, network); - await fetchSystemContract(addresses, network); - await fetchForeignCoinsData(chains, addresses, network); - await fetchAthensAddresses(addresses, network); - await fetchChainSpecificAddresses(chains, addresses, network); - await fetchTSSUpdater(chains, addresses); - await fetchPauser(chains, addresses); - await fetchFactoryV2(addresses, network); - await fetchFactoryV3(addresses, network); - - addresses = addresses.sort((a: AddressDetails, b: AddressDetails) => { - if (a.chain_id !== b.chain_id) { - return a.chain_id - b.chain_id; - } else if (a.type !== b.type) { - return a.type.localeCompare(b.type); - } else { - return a.address.localeCompare(b.address); - } - }); - - console.log(JSON.stringify(addresses, null, 2)); -}; - -task("addresses", "").setAction(main); diff --git a/v1/tasks/readme.md b/v1/tasks/readme.md deleted file mode 100644 index c54425301..000000000 --- a/v1/tasks/readme.md +++ /dev/null @@ -1,2 +0,0 @@ -Addresses JSON files in this directory contain contract addresses which cannot -be fetched from the blockchain. diff --git a/v1/test/ConnectorZEVM.spec.ts b/v1/test/ConnectorZEVM.spec.ts deleted file mode 100644 index c16057167..000000000 --- a/v1/test/ConnectorZEVM.spec.ts +++ /dev/null @@ -1,295 +0,0 @@ -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { WETH9, ZetaConnectorZEVM, ZetaReceiverMock } from "@typechain-types"; -import { expect } from "chai"; -import { parseEther } from "ethers/lib/utils"; -import { ethers } from "hardhat"; - -import { FUNGIBLE_MODULE_ADDRESS } from "./test.helpers"; - -const hre = require("hardhat"); - -describe("ConnectorZEVM tests", () => { - let zetaTokenContract: WETH9; - let zetaConnectorZEVM: ZetaConnectorZEVM; - let zetaReceiverMockContract: ZetaReceiverMock; - - let owner: SignerWithAddress; - let fungibleModuleSigner: SignerWithAddress; - let addrs: SignerWithAddress[]; - let randomSigner: SignerWithAddress; - - beforeEach(async () => { - [owner, randomSigner, ...addrs] = await ethers.getSigners(); - - // Impersonate the fungible module account - await hre.network.provider.request({ - method: "hardhat_impersonateAccount", - params: [FUNGIBLE_MODULE_ADDRESS], - }); - - // Get a signer for the fungible module account - fungibleModuleSigner = await ethers.getSigner(FUNGIBLE_MODULE_ADDRESS); - hre.network.provider.send("hardhat_setBalance", [FUNGIBLE_MODULE_ADDRESS, parseEther("1000000").toHexString()]); - - const WZETAFactory = await ethers.getContractFactory("contracts/zevm/WZETA.sol:WETH9"); - zetaTokenContract = (await WZETAFactory.deploy()) as WETH9; - - const ZetaConnectorZEVMFactory = await ethers.getContractFactory("ZetaConnectorZEVM"); - zetaConnectorZEVM = (await ZetaConnectorZEVMFactory.connect(owner).deploy( - zetaTokenContract.address - )) as ZetaConnectorZEVM; - - const ZetaReceiverMockContractactory = await ethers.getContractFactory("ZetaReceiverMock"); - zetaReceiverMockContract = (await ZetaReceiverMockContractactory.connect(owner).deploy()) as ZetaReceiverMock; - }); - - describe("ZetaConnectorZEVM", () => { - it("Should revert if the zetaTxSender has no enough zeta", async () => { - await zetaTokenContract.connect(randomSigner).approve(zetaConnectorZEVM.address, 100_000); - - const tx = zetaConnectorZEVM.connect(randomSigner).send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }); - - // @dev: As we use the standard WETH contract, there's no error message for not enough balance - await expect(tx).to.be.reverted; - }); - - it("Should revert if the zetaTxSender didn't allow ZetaConnector to spend Zeta token", async () => { - await zetaTokenContract.deposit({ value: 100_000 }); - await zetaTokenContract.transfer(randomSigner.address, 100_000); - - const balance = await zetaTokenContract.balanceOf(randomSigner.address); - expect(balance.toString()).to.equal("100000"); - - const tx = zetaConnectorZEVM.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }); - - // @dev: As we use the standard WETH contract, there's no error message for not enough balance - await expect(tx).to.be.reverted; - - await zetaTokenContract.connect(randomSigner).transfer(owner.address, balance); - }); - - it("Should emit `ZetaSent` on success", async () => { - const tx = await zetaConnectorZEVM.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 0, - }); - - expect(tx) - .to.emit(zetaConnectorZEVM, "ZetaSent") - .withArgs(owner.address, owner.address, 1, randomSigner.address, 0, 2500000, "hello", "hello"); - }); - - it("Should transfer value and gas to fungible address", async () => { - const zetaValueAndGas = 1000; - await zetaTokenContract.approve(zetaConnectorZEVM.address, zetaValueAndGas); - await zetaTokenContract.deposit({ value: zetaValueAndGas }); - - const balanceBefore = await ethers.provider.getBalance(fungibleModuleSigner.address); - - await zetaConnectorZEVM.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas, - }); - - const balanceAfter = await ethers.provider.getBalance(fungibleModuleSigner.address); - expect(balanceAfter.sub(balanceBefore)).to.equal(zetaValueAndGas); - }); - - it("Should update wzeta address if is call from fungible address", async () => { - const WZETAFactory = await ethers.getContractFactory("contracts/zevm/WZETA.sol:WETH9"); - const newZetaTokenContract = (await WZETAFactory.deploy()) as WETH9; - - const tx = zetaConnectorZEVM.connect(fungibleModuleSigner).setWzetaAddress(newZetaTokenContract.address); - await expect(tx).to.emit(zetaConnectorZEVM, "SetWZETA").withArgs(newZetaTokenContract.address); - - expect(await zetaConnectorZEVM.wzeta()).to.equal(newZetaTokenContract.address); - }); - - it("Should revert if try to update wzeta address from other address", async () => { - const WZETAFactory = await ethers.getContractFactory("contracts/zevm/WZETA.sol:WETH9"); - const newZetaTokenContract = (await WZETAFactory.deploy()) as WETH9; - - const tx = zetaConnectorZEVM.setWzetaAddress(newZetaTokenContract.address); - await expect(tx).to.be.revertedWith("OnlyFungibleModule"); - }); - - it("Should transfer to the receiver address", async () => { - // read eth balance of zetaConnectorEVM - const initialZetaBalanceConnector = await ethers.provider.getBalance(zetaConnectorZEVM.address); - const initialBalanceConnector = await zetaTokenContract.balanceOf(zetaConnectorZEVM.address); - const initialBalanceReceiver = await zetaTokenContract.balanceOf(zetaReceiverMockContract.address); - expect(initialZetaBalanceConnector.toString()).to.equal("0"); - expect(initialBalanceConnector.toString()).to.equal("0"); - expect(initialBalanceReceiver.toString()).to.equal("0"); - - const tx = await zetaConnectorZEVM - .connect(fungibleModuleSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero, - { value: 1000 } - ); - - await expect(tx) - .to.emit(zetaReceiverMockContract, "MockOnZetaMessage") - .withArgs(zetaReceiverMockContract.address); - - const finalZetaBalanceConnector = await ethers.provider.getBalance(zetaConnectorZEVM.address); - const finalBalanceConnector = await zetaTokenContract.balanceOf(zetaConnectorZEVM.address); - const finalBalanceReceiver = await zetaTokenContract.balanceOf(zetaReceiverMockContract.address); - - expect(finalZetaBalanceConnector.toString()).to.equal("0"); - expect(finalBalanceConnector.toString()).to.equal("0"); - expect(finalBalanceReceiver.toString()).to.equal("1000"); - }); - - it("Should call onRevert to the original address", async () => { - // read eth balance of zetaConnectorEVM - const initialZetaBalanceConnector = await ethers.provider.getBalance(zetaConnectorZEVM.address); - const initialBalanceConnector = await zetaTokenContract.balanceOf(zetaConnectorZEVM.address); - const initialBalanceReceiver = await zetaTokenContract.balanceOf(zetaReceiverMockContract.address); - expect(initialZetaBalanceConnector.toString()).to.equal("0"); - expect(initialBalanceConnector.toString()).to.equal("0"); - expect(initialBalanceReceiver.toString()).to.equal("0"); - - const tx = await zetaConnectorZEVM - .connect(fungibleModuleSigner) - .onRevert( - zetaReceiverMockContract.address, - 1, - randomSigner.address, - 5, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero, - { value: 1000 } - ); - - await expect(tx).to.emit(zetaReceiverMockContract, "MockOnZetaRevert").withArgs(zetaReceiverMockContract.address); - - const finalZetaBalanceConnector = await ethers.provider.getBalance(zetaConnectorZEVM.address); - const finalBalanceConnector = await zetaTokenContract.balanceOf(zetaConnectorZEVM.address); - const finalBalanceReceiver = await zetaTokenContract.balanceOf(zetaReceiverMockContract.address); - - expect(finalZetaBalanceConnector.toString()).to.equal("0"); - expect(finalBalanceConnector.toString()).to.equal("0"); - expect(finalBalanceReceiver.toString()).to.equal("1000"); - }); - - it("Should accept ZETA from fungible module", async () => { - const initialZetaBalanceConnector = await ethers.provider.getBalance(zetaConnectorZEVM.address); - expect(initialZetaBalanceConnector.toString()).to.equal("0"); - - await fungibleModuleSigner.sendTransaction({ - to: zetaConnectorZEVM.address, - value: 1000, - }); - - // read eth balance of zetaConnectorEVM - const finalZetaBalanceConnector = await ethers.provider.getBalance(zetaConnectorZEVM.address); - expect(finalZetaBalanceConnector.toString()).to.equal("1000"); - }); - - it("Should reject ZETA from other address", async () => { - await fungibleModuleSigner.sendTransaction({ - to: randomSigner.address, - value: 1000, - }); - - const tx = randomSigner.sendTransaction({ - to: zetaConnectorZEVM.address, - value: 1000, - }); - - await expect(tx).to.be.revertedWith("OnlyWZETAOrFungible"); - }); - - it("Should reject if call onReceive from other than fungible module", async () => { - const tx = zetaConnectorZEVM.onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero, - { value: 1000 } - ); - - await expect(tx).to.be.revertedWith("OnlyFungibleModule"); - }); - - it("Should reject if call onRevert from other than fungible module", async () => { - const tx = zetaConnectorZEVM.onRevert( - zetaReceiverMockContract.address, - 1, - randomSigner.address, - 5, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero, - { value: 1000 } - ); - - await expect(tx).to.be.revertedWith("OnlyFungibleModule"); - }); - - it("Should revert if value is not the same as declared in onReceive args", async () => { - const tx = zetaConnectorZEVM - .connect(fungibleModuleSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero, - { value: 900 } - ); - - await expect(tx).to.be.revertedWith("WrongValue"); - }); - - it("Should revert if value is not the same as declared in onRevert args", async () => { - const tx = zetaConnectorZEVM - .connect(fungibleModuleSigner) - .onRevert( - zetaReceiverMockContract.address, - 1, - randomSigner.address, - 5, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero, - { value: 900 } - ); - - await expect(tx).to.be.revertedWith("WrongValue"); - }); - }); -}); diff --git a/v1/test/ERC20Custody.spec.ts b/v1/test/ERC20Custody.spec.ts deleted file mode 100644 index 82488a813..000000000 --- a/v1/test/ERC20Custody.spec.ts +++ /dev/null @@ -1,279 +0,0 @@ -import { MaxUint256 } from "@ethersproject/constants"; -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { AttackerContract, ERC20Custody, ERC20Mock, ZetaEth } from "@typechain-types"; -import { expect } from "chai"; -import { parseEther } from "ethers/lib/utils"; -import { ethers } from "hardhat"; - -import { deployZetaEth } from "../lib/contracts.helpers"; - -const ZETA_FEE = parseEther("0.01"); -const ZETA_MAX_FEE = parseEther("0.05"); - -describe("ERC20Custody tests", () => { - let ZRC20CustodyContract: ERC20Custody; - let zetaTokenEthContract: ZetaEth; - let randomTokenContract: ERC20Mock; - let owner: SignerWithAddress; - let tssUpdater: SignerWithAddress; - let tssSigner: SignerWithAddress; - let addrs: SignerWithAddress[]; - - beforeEach(async () => { - [owner, tssUpdater, tssSigner, ...addrs] = await ethers.getSigners(); - - zetaTokenEthContract = await deployZetaEth({ - args: [tssUpdater.address, 100_000], - }); - - await zetaTokenEthContract.connect(tssUpdater).transfer(owner.address, parseEther("1000")); - - const ERC20Factory = await ethers.getContractFactory("ERC20Mock"); - randomTokenContract = (await ERC20Factory.deploy( - "RandomToken", - "RT", - owner.address, - parseEther("1000000") - )) as ERC20Mock; - - const ERC20CustodyFactory = await ethers.getContractFactory("ERC20Custody"); - ZRC20CustodyContract = (await ERC20CustodyFactory.deploy( - tssSigner.address, - tssUpdater.address, - ZETA_FEE, - ZETA_MAX_FEE, - zetaTokenEthContract.address - )) as ERC20Custody; - }); - - describe("ERC20Custody", () => { - it("Should update the tss address", async () => { - await ZRC20CustodyContract.connect(tssUpdater).updateTSSAddress(addrs[0].address); - const tssAddress = await ZRC20CustodyContract.TSSAddress(); - expect(tssAddress).to.equal(addrs[0].address); - }); - - it("Should revert if updateTSSAddress not called by tssUpdater", async () => { - const tx = ZRC20CustodyContract.connect(owner).updateTSSAddress(addrs[0].address); - await expect(tx).to.be.revertedWith("InvalidTSSUpdater"); - }); - - it("Should update zeta fee", async () => { - await ZRC20CustodyContract.connect(tssSigner).updateZetaFee(parseEther("0.02")); - const zetaFee = await ZRC20CustodyContract.zetaFee(); - expect(zetaFee).to.equal(parseEther("0.02")); - }); - - it("Should revert if updateZetaFee not called by tssUpdater", async () => { - const tx = ZRC20CustodyContract.connect(tssUpdater).updateZetaFee(parseEther("0.02")); - await expect(tx).to.be.revertedWith("InvalidSender"); - }); - - it("Should revert if updateZetaFee is higher than max", async () => { - const tx = ZRC20CustodyContract.connect(tssSigner).updateZetaFee(parseEther("0.07")); - await expect(tx).to.be.revertedWith("ZetaMaxFeeExceeded"); - }); - - it("Should renounce tssUpdater", async () => { - await ZRC20CustodyContract.connect(tssUpdater).renounceTSSAddressUpdater(); - const tssUpdaterAddress = await ZRC20CustodyContract.TSSAddressUpdater(); - expect(tssUpdaterAddress).to.equal(tssSigner.address); - }); - - it("Should whitelist", async () => { - let isWhitelisted = await ZRC20CustodyContract.whitelisted(addrs[0].address); - expect(isWhitelisted).to.equal(false); - - await ZRC20CustodyContract.connect(tssSigner).whitelist(addrs[0].address); - isWhitelisted = await ZRC20CustodyContract.whitelisted(addrs[0].address); - expect(isWhitelisted).to.equal(true); - }); - - it("Should revert if whitelist is not called by tss", async () => { - const tx = ZRC20CustodyContract.connect(tssUpdater).whitelist(addrs[0].address); - await expect(tx).to.be.revertedWith("InvalidSender"); - }); - - it("Should unwhitelist", async () => { - let isWhitelisted = await ZRC20CustodyContract.whitelisted(addrs[0].address); - expect(isWhitelisted).to.equal(false); - - await ZRC20CustodyContract.connect(tssSigner).whitelist(addrs[0].address); - isWhitelisted = await ZRC20CustodyContract.whitelisted(addrs[0].address); - expect(isWhitelisted).to.equal(true); - - await ZRC20CustodyContract.connect(tssSigner).unwhitelist(addrs[0].address); - isWhitelisted = await ZRC20CustodyContract.whitelisted(addrs[0].address); - expect(isWhitelisted).to.equal(false); - }); - - it("Should revert if unwhitelist is not called by tss", async () => { - await ZRC20CustodyContract.connect(tssSigner).whitelist(addrs[0].address); - const tx = ZRC20CustodyContract.connect(tssUpdater).unwhitelist(addrs[0].address); - await expect(tx).to.be.revertedWith("InvalidSender"); - }); - - it("Should emit Deposit event on deposit", async () => { - await ZRC20CustodyContract.connect(tssSigner).whitelist(randomTokenContract.address); - await zetaTokenEthContract.approve(ZRC20CustodyContract.address, MaxUint256); - - const amount = parseEther("1"); - await randomTokenContract.approve(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.deposit(owner.address, randomTokenContract.address, amount, "0x00"); - await expect(tx) - .to.emit(ZRC20CustodyContract, "Deposited") - .withArgs(owner.address.toLowerCase(), randomTokenContract.address, amount, "0x00"); - }); - - it("Should emit Deposit event and do the right math if is called twice", async () => { - await ZRC20CustodyContract.connect(tssSigner).whitelist(randomTokenContract.address); - await zetaTokenEthContract.approve(ZRC20CustodyContract.address, MaxUint256); - - const amount = parseEther("1"); - await randomTokenContract.approve(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.deposit(owner.address, randomTokenContract.address, amount, "0x00"); - await expect(tx) - .to.emit(ZRC20CustodyContract, "Deposited") - .withArgs(owner.address.toLowerCase(), randomTokenContract.address, amount, "0x00"); - - const amount2 = parseEther("5"); - await randomTokenContract.approve(ZRC20CustodyContract.address, amount2); - - const tx2 = ZRC20CustodyContract.deposit(owner.address, randomTokenContract.address, amount2, "0x00"); - await expect(tx2) - .to.emit(ZRC20CustodyContract, "Deposited") - .withArgs(owner.address.toLowerCase(), randomTokenContract.address, amount2, "0x00"); - }); - - it("Should revert deposit if is paused", async () => { - await ZRC20CustodyContract.connect(tssSigner).pause(); - await ZRC20CustodyContract.connect(tssSigner).whitelist(randomTokenContract.address); - await zetaTokenEthContract.approve(ZRC20CustodyContract.address, MaxUint256); - - const amount = parseEther("1"); - await randomTokenContract.approve(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.deposit(owner.address, randomTokenContract.address, amount, "0x00"); - await expect(tx).to.be.revertedWith("IsPaused"); - }); - - it("Should revert deposit if is not whitelisted", async () => { - await zetaTokenEthContract.approve(ZRC20CustodyContract.address, MaxUint256); - - const amount = parseEther("1"); - await randomTokenContract.approve(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.deposit(owner.address, randomTokenContract.address, amount, "0x00"); - await expect(tx).to.be.revertedWith("NotWhitelisted"); - }); - - it("Should revert deposit if has no zeta to pay fee", async () => { - await ZRC20CustodyContract.connect(tssSigner).whitelist(randomTokenContract.address); - await zetaTokenEthContract.connect(addrs[0]).approve(ZRC20CustodyContract.address, MaxUint256); - - const amount = parseEther("1"); - await randomTokenContract.connect(addrs[0]).approve(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.connect(addrs[0]).deposit( - owner.address, - randomTokenContract.address, - amount, - "0x00" - ); - await expect(tx).to.be.revertedWith("ERC20: transfer amount exceeds balance"); - }); - - it("Should emit Withdrawn event", async () => { - await ZRC20CustodyContract.connect(tssSigner).whitelist(randomTokenContract.address); - - const amount = parseEther("1"); - await randomTokenContract.transfer(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.connect(tssSigner).withdraw(owner.address, randomTokenContract.address, amount); - await expect(tx) - .to.emit(ZRC20CustodyContract, "Withdrawn") - .withArgs(owner.address, randomTokenContract.address, amount); - }); - - it("Should revert if withdraw is not called by tss", async () => { - await ZRC20CustodyContract.connect(tssSigner).whitelist(randomTokenContract.address); - - const amount = parseEther("1"); - await randomTokenContract.transfer(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.withdraw(owner.address, randomTokenContract.address, amount); - await expect(tx).to.be.revertedWith("InvalidSender"); - }); - - it("Should not revert withdraw if is paused", async () => { - await ZRC20CustodyContract.connect(tssSigner).pause(); - await ZRC20CustodyContract.connect(tssSigner).whitelist(randomTokenContract.address); - - const amount = parseEther("1"); - await randomTokenContract.transfer(ZRC20CustodyContract.address, amount); - - const tx = ZRC20CustodyContract.connect(tssSigner).withdraw(owner.address, randomTokenContract.address, amount); - await expect(tx) - .to.emit(ZRC20CustodyContract, "Withdrawn") - .withArgs(owner.address, randomTokenContract.address, amount); - }); - - it("Should revert withdraw if is not whitelisted", async () => { - const amount = parseEther("1"); - const tx = ZRC20CustodyContract.connect(tssSigner).withdraw(owner.address, randomTokenContract.address, amount); - await expect(tx).to.be.revertedWith("NotWhitelisted"); - }); - - it("Should not allow reentrant calls to Deposit method", async () => { - // Deploy AttackerContract with the address of the ZRC20CustodyContract - const Attacker = await ethers.getContractFactory("AttackerContract"); - const attacker = (await Attacker.deploy( - ZRC20CustodyContract.address, - zetaTokenEthContract.address, - 1 - )) as AttackerContract; - await attacker.deployed(); - - // Whitelist token and approve as before - await ZRC20CustodyContract.connect(tssSigner).whitelist(attacker.address); - - await zetaTokenEthContract.approve(ZRC20CustodyContract.address, MaxUint256); - await zetaTokenEthContract.transfer(attacker.address, parseEther("1")); - - const amount = parseEther("1"); - - // Attempt to attack by calling the deposit method reentrantly - const attackTx = ZRC20CustodyContract.deposit(owner.address, attacker.address, amount, "0x00"); - - // The test expects the attack to fail due to the reentrancy guard - await expect(attackTx).to.be.revertedWith("ReentrancyGuard: reentrant call"); - }); - - it("Should not allow reentrant calls to Witdraw method", async () => { - // Deploy AttackerContract with the address of the ZRC20CustodyContract - const Attacker = await ethers.getContractFactory("AttackerContract"); - const attacker = (await Attacker.deploy( - ZRC20CustodyContract.address, - zetaTokenEthContract.address, - 2 - )) as AttackerContract; - await attacker.deployed(); - - // Whitelist token and approve as before - await ZRC20CustodyContract.connect(tssSigner).whitelist(attacker.address); - - await zetaTokenEthContract.approve(ZRC20CustodyContract.address, MaxUint256); - await zetaTokenEthContract.transfer(attacker.address, parseEther("1")); - - const amount = parseEther("1"); - - // Attempt to attack by calling the deposit method reentrantly - const attackTx = ZRC20CustodyContract.connect(tssSigner).withdraw(owner.address, attacker.address, amount); - - // The test expects the attack to fail due to the reentrancy guard - await expect(attackTx).to.be.revertedWith("ReentrancyGuard: reentrant call"); - }); - }); -}); diff --git a/v1/test/ImmutableCreate2Factory.spec.ts b/v1/test/ImmutableCreate2Factory.spec.ts deleted file mode 100644 index 3c713ed12..000000000 --- a/v1/test/ImmutableCreate2Factory.spec.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { - IERC20__factory, - ImmutableCreate2Factory, - ImmutableCreate2Factory__factory, - ZetaEth__factory, - ZetaInteractorMock__factory, -} from "@typechain-types"; -import chai, { expect } from "chai"; -import { parseEther } from "ethers/lib/utils"; -import { ethers } from "hardhat"; - -import { MAX_ETH_ADDRESS } from "../lib/contracts.constants"; -import { - buildBytecode, - buildCreate2Address, - deployContractToAddress, - isDeployed, - saltToHex, -} from "../lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers"; - -chai.should(); - -describe("Deterministic deployment tests", () => { - let immutableCreate2: ImmutableCreate2Factory; - - let accounts: SignerWithAddress[]; - let signer: SignerWithAddress; - - beforeEach(async () => { - accounts = await ethers.getSigners(); - [signer] = accounts; - - const immutableCreate2Factory = new ImmutableCreate2Factory__factory(signer); - immutableCreate2 = await immutableCreate2Factory.deploy(); - }); - - describe("Deploy zeta token with deterministic deployment", () => { - it("Should deploy a contract", async () => { - const salthex = saltToHex("hola", signer.address); - const constructorTypes = ["address", "uint256"]; - const constructorArgs = [signer.address, "2100000000"]; - const contractBytecode = ZetaEth__factory.bytecode; - - const bytecode = buildBytecode(constructorTypes, constructorArgs, contractBytecode); - const expectedAddress = await immutableCreate2.findCreate2Address(salthex, bytecode); - - // Deploy contract - const { address } = await deployContractToAddress({ - constructorArgs: constructorArgs, - constructorTypes: constructorTypes, - contractBytecode: ZetaEth__factory.bytecode, - factoryAddress: immutableCreate2.address, - salt: salthex, - signer: signer, - }); - - expect(address).to.be.eq(expectedAddress); - - // Query if contract deployed at address - const success = await isDeployed(address, ethers.provider); - expect(success).to.be.true; - - const token = IERC20__factory.connect(address, signer); - const totalSup = await token.totalSupply(); - expect(totalSup.toString()).to.be.eq(parseEther(constructorArgs[1])); - }); - }); - - it("Should deploy with leading zeros", async () => { - let saltStr = "0"; - - let minAddress = MAX_ETH_ADDRESS; - let minAddressSalt = ""; - for (let i = 0; i < 3000; i++) { - const salthex = saltToHex(saltStr, signer.address); - const constructorTypes = ["address", "uint256"]; - const constructorArgs = [signer.address, "2100000000"]; - const contractBytecode = ZetaEth__factory.bytecode; - - const bytecode = buildBytecode(constructorTypes, constructorArgs, contractBytecode); - const expectedAddress = buildCreate2Address(salthex, bytecode, immutableCreate2.address); - if (expectedAddress < minAddress) { - minAddress = expectedAddress; - minAddressSalt = saltStr; - } - saltStr = i.toString(); - } - - expect(minAddress.substring(0, 4)).to.be.eq("0x00"); - }); - - it("Should generate same address offchain and onchain", async () => { - let saltStr = "0"; - - const salthex = saltToHex(saltStr, signer.address); - const constructorTypes = ["address", "uint256"]; - const constructorArgs = [signer.address, "2100000000"]; - const contractBytecode = ZetaEth__factory.bytecode; - - const bytecode = buildBytecode(constructorTypes, constructorArgs, contractBytecode); - const expectedAddress = await immutableCreate2.findCreate2Address(salthex, bytecode); - const expectedAddressOffchain = buildCreate2Address(salthex, bytecode, immutableCreate2.address); - expect(expectedAddress.toLocaleLowerCase()).to.be.eq(expectedAddressOffchain); - }); - - it("Should deploy and transfer ownership to deployer", async () => { - let saltStr = "0"; - - const salthex = saltToHex(saltStr, signer.address); - const constructorTypes = ["address"]; - const constructorArgs = [signer.address]; - - const { address } = await deployContractToAddress({ - constructorArgs: constructorArgs, - constructorTypes: constructorTypes, - contractBytecode: ZetaInteractorMock__factory.bytecode, - factoryAddress: immutableCreate2.address, - salt: salthex, - signer: signer, - transferOwner: true, - }); - - const contract = ZetaInteractorMock__factory.connect(address, signer); - await contract.acceptOwnership(); - expect(await contract.owner()).to.be.eq(signer.address); - }); -}); diff --git a/v1/test/ZRC20.spec.ts b/v1/test/ZRC20.spec.ts deleted file mode 100644 index 28d443e45..000000000 --- a/v1/test/ZRC20.spec.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { AddressZero } from "@ethersproject/constants"; -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { SystemContract, ZRC20 } from "@typechain-types"; -import { expect } from "chai"; -import { parseEther } from "ethers/lib/utils"; -import { ethers } from "hardhat"; - -import { FUNGIBLE_MODULE_ADDRESS } from "./test.helpers"; -const hre = require("hardhat"); - -describe("ZRC20 tests", () => { - let ZRC20Contract: ZRC20; - let systemContract: SystemContract; - let owner, fungibleModuleSigner: SignerWithAddress; - let addrs: SignerWithAddress[]; - - beforeEach(async () => { - [owner, ...addrs] = await ethers.getSigners(); - - // Impersonate the fungible module account - await hre.network.provider.request({ - method: "hardhat_impersonateAccount", - params: [FUNGIBLE_MODULE_ADDRESS], - }); - - // Get a signer for the fungible module account - fungibleModuleSigner = await ethers.getSigner(FUNGIBLE_MODULE_ADDRESS); - hre.network.provider.send("hardhat_setBalance", [FUNGIBLE_MODULE_ADDRESS, parseEther("1000000").toHexString()]); - - const SystemContractFactory = await ethers.getContractFactory("SystemContractMock"); - systemContract = (await SystemContractFactory.deploy(AddressZero, AddressZero, AddressZero)) as SystemContract; - - const ZRC20Factory = await ethers.getContractFactory("ZRC20"); - ZRC20Contract = (await ZRC20Factory.connect(fungibleModuleSigner).deploy( - "TOKEN", - "TKN", - 18, - 1, - 1, - 0, - systemContract.address - )) as ZRC20; - }); - - describe("ZRC20Contract", () => { - it("Should return name", async () => { - const name = await ZRC20Contract.name(); - expect(name).to.equal("TOKEN"); - }); - - it("Should return symbol", async () => { - const symbol = await ZRC20Contract.symbol(); - expect(symbol).to.equal("TKN"); - }); - - it("Should return decimals", async () => { - const decimals = await ZRC20Contract.decimals(); - expect(decimals).to.equal(18); - }); - - it("Should return chainId", async () => { - const chainId = await ZRC20Contract.CHAIN_ID(); - expect(chainId).to.equal(1); - }); - - it("Should return coinType", async () => { - const coinType = await ZRC20Contract.COIN_TYPE(); - expect(coinType).to.equal(1); - }); - - it("Should return gasLimit", async () => { - const gasLimit = await ZRC20Contract.GAS_LIMIT(); - expect(gasLimit).to.equal(0); - }); - - it("Should return systemContractAddress", async () => { - const systemContractAddress = await ZRC20Contract.SYSTEM_CONTRACT_ADDRESS(); - expect(systemContractAddress).to.equal(systemContract.address); - }); - - it("Should return totalSupply", async () => { - const totalSupply = await ZRC20Contract.totalSupply(); - expect(totalSupply).to.equal(0); - }); - - it("Should return balanceOf", async () => { - const balanceOf = await ZRC20Contract.balanceOf(owner.address); - expect(balanceOf).to.equal(0); - }); - - it("Should return allowance", async () => { - const allowance = await ZRC20Contract.allowance(owner.address, owner.address); - expect(allowance).to.equal(0); - }); - - it("Should deposit if is called by fungible module", async () => { - const deposit = await ZRC20Contract.connect(fungibleModuleSigner).deposit(owner.address, parseEther("1")); - expect(deposit).to.emit(ZRC20Contract, "Deposit").withArgs(owner.address, parseEther("1")); - }); - - it("Should not deposit if is not called by fungible module", async () => { - const depositTx = ZRC20Contract.connect(addrs[0]).deposit(owner.address, parseEther("1")); - await expect(depositTx).to.be.revertedWith("InvalidSender"); - }); - - it("Should transfer", async () => { - await ZRC20Contract.connect(fungibleModuleSigner).deposit(owner.address, parseEther("1")); - const initialBalance = await ZRC20Contract.balanceOf(addrs[0].address); - - const transfer = await ZRC20Contract.connect(owner).transfer(addrs[0].address, parseEther("1")); - expect(transfer).to.emit(ZRC20Contract, "Transfer").withArgs(owner.address, addrs[0].address, parseEther("1")); - - const finalBalance = await ZRC20Contract.balanceOf(addrs[0].address); - expect(finalBalance.sub(initialBalance)).to.equal(parseEther("1")); - }); - }); -}); diff --git a/v1/test/Zeta.non-eth.spec.ts b/v1/test/Zeta.non-eth.spec.ts deleted file mode 100644 index d007a020c..000000000 --- a/v1/test/Zeta.non-eth.spec.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { ZetaConnectorNonEth, ZetaNonEth, ZetaReceiverMock } from "@typechain-types"; -import { expect } from "chai"; -import { parseEther } from "ethers/lib/utils"; -import { ethers } from "hardhat"; - -import { deployZetaConnectorNonEth, deployZetaNonEth, deployZetaReceiverMock } from "../lib/contracts.helpers"; - -describe("ZetaNonEth tests", () => { - let zetaTokenNonEthContract: ZetaNonEth; - let zetaReceiverMockContract: ZetaReceiverMock; - let zetaConnectorNonEthContract: ZetaConnectorNonEth; - let tssUpdater: SignerWithAddress; - let tssSigner: SignerWithAddress; - let randomSigner: SignerWithAddress; - let pauserSigner: SignerWithAddress; - - const tssUpdaterApproveConnectorNonEth = async () => { - await (await zetaTokenNonEthContract.approve(zetaConnectorNonEthContract.address, parseEther("100000"))).wait(); - }; - - const mint100kZetaNonEth = async (transferTo: string) => { - const zeta100k = parseEther("100000"); - - await ( - await zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive(randomSigner.address, 1, transferTo, zeta100k, [], ethers.constants.HashZero) - ).wait(); - }; - - const transfer100kZetaNonEth = async (transferTo: string) => { - await mint100kZetaNonEth(tssUpdater.address); - - await (await zetaTokenNonEthContract.connect(tssUpdater).transfer(transferTo, 100_000)).wait(); - }; - - beforeEach(async () => { - const accounts = await ethers.getSigners(); - [tssUpdater, tssSigner, randomSigner, pauserSigner] = accounts; - - zetaTokenNonEthContract = await deployZetaNonEth({ - args: [tssSigner.address, tssUpdater.address], - }); - - zetaReceiverMockContract = await deployZetaReceiverMock(); - zetaConnectorNonEthContract = await deployZetaConnectorNonEth({ - args: [zetaTokenNonEthContract.address, tssSigner.address, tssUpdater.address, pauserSigner.address], - }); - - await zetaTokenNonEthContract.updateTssAndConnectorAddresses( - tssSigner.address, - zetaConnectorNonEthContract.address - ); - - await mint100kZetaNonEth(tssUpdater.address); - }); - - describe("updateTssAndConnectorAddresses", () => { - it("Should revert if the caller is not tssAddressUpdater or TSS", async () => { - expect( - zetaTokenNonEthContract - .connect(randomSigner) - .updateTssAndConnectorAddresses(randomSigner.address, zetaConnectorNonEthContract.address) - ).to.be.revertedWith(`CallerIsNotTssOrUpdater("${randomSigner.address}")`); - }); - - it("Should change the addresses if the caller is tssAddressUpdater", async () => { - await ( - await zetaTokenNonEthContract.updateTssAndConnectorAddresses(randomSigner.address, randomSigner.address) - ).wait(); - - expect(await zetaTokenNonEthContract.tssAddress()).to.equal(randomSigner.address); - expect(await zetaTokenNonEthContract.connectorAddress()).to.equal(randomSigner.address); - }); - - it("Should change the addresses if the caller is TSS", async () => { - await ( - await zetaTokenNonEthContract - .connect(tssSigner) - .updateTssAndConnectorAddresses(randomSigner.address, randomSigner.address) - ).wait(); - - expect(await zetaTokenNonEthContract.tssAddress()).to.equal(randomSigner.address); - expect(await zetaTokenNonEthContract.connectorAddress()).to.equal(randomSigner.address); - }); - }); - - describe("renounceTssAddressUpdater", () => { - it("Should revert if the caller is not tssAddressUpdater", async () => { - expect(zetaTokenNonEthContract.connect(randomSigner).renounceTssAddressUpdater()).to.be.revertedWith( - `CallerIsNotTssUpdater("${randomSigner.address}")` - ); - }); - - it("Should change tssAddressUpdater to tssAddress if the caller is tssAddressUpdater", async () => { - await (await zetaTokenNonEthContract.renounceTssAddressUpdater()).wait(); - - expect(await zetaTokenNonEthContract.tssAddressUpdater()).to.equal(tssSigner.address); - }); - }); - - describe("mint", () => { - it("Should revert if the caller is not the Connector contract", async () => { - expect( - zetaTokenNonEthContract.connect(randomSigner).mint(tssUpdater.address, 100_000, ethers.constants.AddressZero) - ).to.be.revertedWith(`CallerIsNotConnector("${randomSigner.address}")`); - }); - - it("Should emit `Minted` on success", async () => { - const zetaMintedFilter = zetaTokenNonEthContract.filters.Minted(); - - const tx = await zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ); - const receipt = await tx.wait(); - - const events = await zetaTokenNonEthContract.queryFilter(zetaMintedFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - }); - - describe("burnFrom", () => { - it("Should revert if the caller is not the Connector contract", async () => { - expect(zetaTokenNonEthContract.connect(randomSigner).burnFrom(tssUpdater.address, 100_000)).to.be.revertedWith( - `CallerIsNotConnector("${randomSigner.address}")` - ); - }); - - it("Should emit `Burnt` on success", async () => { - await tssUpdaterApproveConnectorNonEth(); - const zetaBurntFilter = zetaTokenNonEthContract.filters.Burnt(); - - const tx = await zetaConnectorNonEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }); - const receipt = await tx.wait(); - - const events = await zetaTokenNonEthContract.queryFilter(zetaBurntFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - }); -}); diff --git a/v1/test/ZetaConnector.spec.ts b/v1/test/ZetaConnector.spec.ts deleted file mode 100644 index 380a8d67f..000000000 --- a/v1/test/ZetaConnector.spec.ts +++ /dev/null @@ -1,855 +0,0 @@ -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { - ZetaConnectorBase, - ZetaConnectorEth, - ZetaConnectorNonEth, - ZetaEth, - ZetaNonEth, - ZetaReceiverMock, -} from "@typechain-types"; -import { expect } from "chai"; -import { parseEther } from "ethers/lib/utils"; -import { ethers } from "hardhat"; - -import { - deployZetaConnectorBase, - deployZetaConnectorEth, - deployZetaConnectorNonEth, - deployZetaEth, - deployZetaNonEth, - deployZetaReceiverMock, -} from "../lib/contracts.helpers"; - -describe("ZetaConnector tests", () => { - let zetaTokenEthContract: ZetaEth; - let zetaTokenNonEthContract: ZetaNonEth; - let zetaConnectorBaseContract: ZetaConnectorBase; - let zetaConnectorEthContract: ZetaConnectorEth; - let zetaReceiverMockContract: ZetaReceiverMock; - let zetaConnectorNonEthContract: ZetaConnectorNonEth; - - let tssUpdater: SignerWithAddress; - let tssSigner: SignerWithAddress; - let randomSigner: SignerWithAddress; - let pauserSigner: SignerWithAddress; - - const tssUpdaterApproveConnectorEth = async () => { - await (await zetaTokenEthContract.approve(zetaConnectorEthContract.address, parseEther("100000"))).wait(); - }; - - const tssUpdaterApproveConnectorNonEth = async () => { - await (await zetaTokenNonEthContract.approve(zetaConnectorNonEthContract.address, parseEther("100000"))).wait(); - }; - - const transfer100kZetaEth = async (transferTo: string) => { - await (await zetaTokenEthContract.transfer(transferTo, 100_000)).wait(); - }; - - const mint100kZetaNonEth = async (transferTo: string) => { - const zeta100k = parseEther("100000"); - - await ( - await zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive(randomSigner.address, 1, transferTo, zeta100k, [], ethers.constants.HashZero) - ).wait(); - }; - - const transfer100kZetaNonEth = async (transferTo: string) => { - await mint100kZetaNonEth(tssUpdater.address); - - await (await zetaTokenNonEthContract.connect(tssUpdater).transfer(transferTo, 100_000)).wait(); - }; - - beforeEach(async () => { - const accounts = await ethers.getSigners(); - [tssUpdater, tssSigner, randomSigner, pauserSigner] = accounts; - - zetaTokenEthContract = await deployZetaEth({ - args: [tssUpdater.address, 100_000], - }); - - zetaTokenNonEthContract = await deployZetaNonEth({ - args: [tssSigner.address, tssUpdater.address], - }); - - zetaReceiverMockContract = await deployZetaReceiverMock(); - zetaConnectorBaseContract = await deployZetaConnectorBase({ - args: [zetaTokenEthContract.address, tssSigner.address, tssUpdater.address, pauserSigner.address], - }); - zetaConnectorEthContract = await deployZetaConnectorEth({ - args: [zetaTokenEthContract.address, tssSigner.address, tssUpdater.address, pauserSigner.address], - }); - zetaConnectorNonEthContract = await deployZetaConnectorNonEth({ - args: [zetaTokenNonEthContract.address, tssSigner.address, tssUpdater.address, pauserSigner.address], - }); - - await zetaTokenNonEthContract.updateTssAndConnectorAddresses( - tssSigner.address, - zetaConnectorNonEthContract.address - ); - - await mint100kZetaNonEth(tssUpdater.address); - }); - - describe("ZetaConnector.base", () => { - describe("updateTssAddress", () => { - it("Should revert if the caller is not TSS or TSS updater", async () => { - await expect(zetaConnectorBaseContract.connect(randomSigner).updateTssAddress(randomSigner.address)) - .to.revertedWith("CallerIsNotTssOrUpdater") - .withArgs(randomSigner.address); - }); - - it("Should revert if the new TSS address is invalid", async () => { - await expect( - zetaConnectorBaseContract.updateTssAddress("0x0000000000000000000000000000000000000000") - ).to.revertedWith("InvalidAddress"); - }); - - it("Should change the TSS address if called by TSS", async () => { - await (await zetaConnectorBaseContract.connect(tssSigner).updateTssAddress(randomSigner.address)).wait(); - - const address = await zetaConnectorBaseContract.tssAddress(); - - expect(address).to.equal(randomSigner.address); - }); - - it("Should change the TSS address if called by TSS updater", async () => { - await (await zetaConnectorBaseContract.updateTssAddress(randomSigner.address)).wait(); - - const address = await zetaConnectorBaseContract.tssAddress(); - - expect(address).to.equal(randomSigner.address); - }); - }); - - describe("updatePauserAddress", () => { - it("Should revert if the caller is not the Pauser", async () => { - await expect(zetaConnectorBaseContract.connect(randomSigner).updatePauserAddress(randomSigner.address)) - .to.revertedWith("CallerIsNotPauser") - .withArgs(randomSigner.address); - }); - - it("Should revert if the new Pauser address is invalid", async () => { - await expect( - zetaConnectorBaseContract - .connect(pauserSigner) - .updatePauserAddress("0x0000000000000000000000000000000000000000") - ).to.revertedWith("InvalidAddress"); - }); - - it("Should change the Pauser address if called by Pauser", async () => { - await (await zetaConnectorBaseContract.connect(pauserSigner).updatePauserAddress(randomSigner.address)).wait(); - - const address = await zetaConnectorBaseContract.pauserAddress(); - - expect(address).to.equal(randomSigner.address); - }); - - it("Should emit `PauserAddressUpdated` on success", async () => { - const pauserAddressUpdatedFilter = zetaConnectorBaseContract.filters.PauserAddressUpdated(); - - const tx = await zetaConnectorBaseContract.connect(pauserSigner).updatePauserAddress(randomSigner.address); - const receipt = await tx.wait(); - - const address = await zetaConnectorBaseContract.pauserAddress(); - - expect(address).to.equal(randomSigner.address); - - const event = await zetaConnectorBaseContract.queryFilter(pauserAddressUpdatedFilter, receipt.blockHash); - expect(event.length).to.equal(1); - }); - }); - - describe("pause, unpause", () => { - it("Should revert if not called by the Pauser", async () => { - await expect(zetaConnectorBaseContract.connect(randomSigner).pause()) - .to.revertedWith("CallerIsNotPauser") - .withArgs(randomSigner.address); - - await expect(zetaConnectorBaseContract.connect(randomSigner).unpause()) - .to.revertedWith("CallerIsNotPauser") - .withArgs(randomSigner.address); - }); - - it("Should pause if called by the Pauser", async () => { - await (await zetaConnectorBaseContract.connect(pauserSigner).pause()).wait(); - const paused1 = await zetaConnectorBaseContract.paused(); - expect(paused1).to.equal(true); - - await (await zetaConnectorBaseContract.connect(pauserSigner).unpause()).wait(); - const paused2 = await zetaConnectorBaseContract.paused(); - expect(paused2).to.equal(false); - }); - }); - }); - - describe("ZetaConnector.eth", () => { - describe("send", () => { - it("Should revert if the contract is paused", async () => { - await (await zetaConnectorEthContract.connect(pauserSigner).pause()).wait(); - const paused1 = await zetaConnectorEthContract.paused(); - expect(paused1).to.equal(true); - - await expect( - zetaConnectorEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }) - ).to.revertedWith("Pausable: paused"); - }); - - it("Should revert if the zetaTxSender has no enough zeta", async () => { - await ( - await zetaTokenEthContract.connect(randomSigner).approve(zetaConnectorEthContract.address, 100_000) - ).wait(); - - await expect( - zetaConnectorEthContract.connect(randomSigner).send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }) - ).to.revertedWith("ERC20: transfer amount exceeds balance"); - }); - - it("Should revert if the zetaTxSender didn't allow ZetaConnector to spend Zeta token", async () => { - await expect( - zetaConnectorEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }) - ).to.revertedWith("ERC20: insufficient allowance"); - }); - - it("Should transfer Zeta token from the zetaTxSender account to the Connector contract", async () => { - const initialBalanceDeployer = await zetaTokenEthContract.balanceOf(tssUpdater.address); - const initialBalanceConnector = await zetaTokenEthContract.balanceOf(zetaConnectorEthContract.address); - - expect(initialBalanceDeployer.toString()).to.equal("100000000000000000000000"); - expect(initialBalanceConnector.toString()).to.equal("0"); - - await tssUpdaterApproveConnectorEth(); - - await ( - await zetaConnectorEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }) - ).wait(); - - const finalBalanceDeployer = await zetaTokenEthContract.balanceOf(tssUpdater.address); - const finalBalanceConnector = await zetaTokenEthContract.balanceOf(zetaConnectorEthContract.address); - - expect(finalBalanceDeployer.toString()).to.equal("99999999999999999999000"); - expect(finalBalanceConnector.toString()).to.equal("1000"); - }); - - it("Should emit `ZetaSent` on success", async () => { - const zetaSentFilter = zetaConnectorEthContract.filters.ZetaSent(); - - const tx = await zetaConnectorEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 0, - }); - const receipt = await tx.wait(); - const events = await zetaConnectorEthContract.queryFilter(zetaSentFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - - it("Should emit `ZetaSent` with tx.origin as the first parameter", async () => { - const zetaSentFilter = zetaConnectorEthContract.filters.ZetaSent(); - - const tx = await zetaConnectorEthContract.connect(randomSigner).send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 0, - }); - - const receipt = await tx.wait(); - - const events = await zetaConnectorEthContract.queryFilter(zetaSentFilter, receipt.blockHash); - expect(events[0].args[0].toString()).to.equal(randomSigner.address); - }); - }); - - describe("onReceive", () => { - it("Should not revert if the contract is paused", async () => { - await (await zetaConnectorEthContract.connect(pauserSigner).pause()).wait(); - const paused1 = await zetaConnectorEthContract.paused(); - expect(paused1).to.equal(true); - - await expect( - zetaConnectorEthContract - .connect(tssSigner) - .onReceive( - tssUpdater.address, - 1, - zetaReceiverMockContract.address, - 0, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).to.be.not.reverted; - }); - - it("Should revert if not called by TSS address", async () => { - await expect( - zetaConnectorEthContract.onReceive( - tssUpdater.address, - 1, - randomSigner.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("CallerIsNotTss") - .withArgs(tssUpdater.address); - }); - - it("Should revert if Zeta transfer fails", async () => { - await expect( - zetaConnectorEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - randomSigner.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).to.revertedWith("ERC20: transfer amount exceeds balance"); - }); - - it("Should transfer to the receiver address", async () => { - await transfer100kZetaEth(zetaConnectorEthContract.address); - - const initialBalanceConnector = await zetaTokenEthContract.balanceOf(zetaConnectorEthContract.address); - const initialBalanceReceiver = await zetaTokenEthContract.balanceOf(zetaReceiverMockContract.address); - expect(initialBalanceConnector.toString()).to.equal("100000"); - expect(initialBalanceReceiver.toString()).to.equal("0"); - - await ( - await zetaConnectorEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).wait(); - - const finalBalanceConnector = await zetaTokenEthContract.balanceOf(zetaConnectorEthContract.address); - const finalBalanceReceiver = await zetaTokenEthContract.balanceOf(zetaReceiverMockContract.address); - - expect(finalBalanceConnector.toString()).to.equal("99000"); - expect(finalBalanceReceiver.toString()).to.equal("1000"); - }); - - it("Should emit `ZetaReceived` on success", async () => { - await transfer100kZetaEth(zetaConnectorEthContract.address); - - const zetaReceivedFilter = zetaConnectorEthContract.filters.ZetaReceived(); - - const tx = await zetaConnectorEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ); - const receipt = await tx.wait(); - - const events = await zetaConnectorEthContract.queryFilter(zetaReceivedFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - }); - - describe("onRevert", () => { - it("Should revert if the contract is paused", async () => { - await (await zetaConnectorEthContract.connect(pauserSigner).pause()).wait(); - const paused1 = await zetaConnectorEthContract.paused(); - expect(paused1).to.equal(true); - - await expect( - zetaConnectorEthContract.onRevert( - randomSigner.address, - 1, - randomSigner.address, - 2, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).to.revertedWith("Pausable: paused"); - }); - - it("Should revert if not called by TSS address", async () => { - await expect( - zetaConnectorEthContract.onRevert( - randomSigner.address, - 1, - tssUpdater.address, - 1, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("CallerIsNotTss") - .withArgs(tssUpdater.address); - }); - - it("Should transfer to the zetaTxSender address", async () => { - await transfer100kZetaEth(zetaConnectorEthContract.address); - - const initialBalanceConnector = await zetaTokenEthContract.balanceOf(zetaConnectorEthContract.address); - const initialBalanceZetaTxSender = await zetaTokenEthContract.balanceOf(zetaReceiverMockContract.address); - expect(initialBalanceConnector.toString()).to.equal("100000"); - expect(initialBalanceZetaTxSender.toString()).to.equal("0"); - - await ( - await zetaConnectorEthContract - .connect(tssSigner) - .onRevert( - zetaReceiverMockContract.address, - 1, - randomSigner.address, - 1, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).wait(); - - const finalBalanceConnector = await zetaTokenEthContract.balanceOf(zetaConnectorEthContract.address); - const finalBalanceZetaTxSender = await zetaTokenEthContract.balanceOf(zetaReceiverMockContract.address); - - expect(finalBalanceConnector.toString()).to.equal("99000"); - expect(finalBalanceZetaTxSender.toString()).to.equal("1000"); - }); - - it("Should emit `ZetaReverted` on success", async () => { - await transfer100kZetaEth(zetaConnectorEthContract.address); - - const zetaRevertedFilter = zetaConnectorEthContract.filters.ZetaReverted(); - - const tx = await zetaConnectorEthContract - .connect(tssSigner) - .onRevert( - zetaReceiverMockContract.address, - 1, - randomSigner.address, - 1, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ); - const receipt = await tx.wait(); - - const events = await zetaConnectorEthContract.queryFilter(zetaRevertedFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - }); - }); - - describe("ZetaConnector.non-eth", () => { - describe("send", () => { - it("Should revert if the contract is paused", async () => { - await (await zetaConnectorNonEthContract.connect(pauserSigner).pause()).wait(); - const paused1 = await zetaConnectorNonEthContract.paused(); - expect(paused1).to.equal(true); - - await expect( - zetaConnectorNonEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }) - ).to.revertedWith("Pausable: paused"); - }); - - it("Should revert if the zetaTxSender has no enough zeta", async () => { - await ( - await zetaTokenEthContract.connect(randomSigner).approve(zetaConnectorEthContract.address, 100_000) - ).wait(); - - await expect( - zetaConnectorNonEthContract.connect(randomSigner).send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }) - ).to.revertedWith("ERC20: insufficient allowance"); - }); - - it("Should revert if the zetaTxSender didn't allow ZetaConnector to spend Zeta token", async () => { - await expect( - zetaConnectorNonEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 1000, - }) - ).to.revertedWith("ERC20: insufficient allowance"); - }); - - it("Should burn Zeta token from the zetaTxSender account", async () => { - const initialBalanceDeployer = await zetaTokenNonEthContract.balanceOf(tssUpdater.address); - expect(initialBalanceDeployer.toString()).to.equal(parseEther("100000")); - - await tssUpdaterApproveConnectorNonEth(); - - await ( - await zetaConnectorNonEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: parseEther("1"), - }) - ).wait(); - - const finalBalanceDeployer = await zetaTokenNonEthContract.balanceOf(tssUpdater.address); - expect(finalBalanceDeployer.toString()).to.equal(parseEther("99999")); - }); - - it("Should emit `ZetaSent` on success", async () => { - const zetaSentFilter = zetaConnectorNonEthContract.filters.ZetaSent(); - - const tx = await zetaConnectorNonEthContract.send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 0, - }); - const receipt = await tx.wait(); - - const events = await zetaConnectorNonEthContract.queryFilter(zetaSentFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - - it("Should emit `ZetaSent` with tx.origin as the first parameter", async () => { - const zetaSentFilter = zetaConnectorNonEthContract.filters.ZetaSent(); - - const tx = await zetaConnectorNonEthContract.connect(randomSigner).send({ - destinationAddress: randomSigner.address, - destinationChainId: 1, - destinationGasLimit: 2500000, - message: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaParams: new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - zetaValueAndGas: 0, - }); - const receipt = await tx.wait(); - - const events = await zetaConnectorNonEthContract.queryFilter(zetaSentFilter, receipt.blockHash); - expect(events[0].args[0].toString()).to.equal(randomSigner.address); - }); - }); - - describe("onReceive", () => { - it("Should not revert if the contract is paused", async () => { - await (await zetaConnectorNonEthContract.connect(pauserSigner).pause()).wait(); - const paused1 = await zetaConnectorNonEthContract.paused(); - expect(paused1).to.equal(true); - - await expect( - zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - tssUpdater.address, - 1, - zetaReceiverMockContract.address, - 0, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).to.be.not.reverted; - }); - - it("Should revert if not called by TSS address", async () => { - await expect( - zetaConnectorNonEthContract.onReceive( - tssUpdater.address, - 1, - randomSigner.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("CallerIsNotTss") - .withArgs(tssUpdater.address); - }); - - it("Should revert if mint fails", async () => { - /** - * Update TSS and Connector addresses so minting fails - */ - await zetaTokenNonEthContract.updateTssAndConnectorAddresses(tssSigner.address, randomSigner.address); - - await expect( - zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("CallerIsNotConnector") - .withArgs(zetaConnectorNonEthContract.address); - }); - - it("Should mint on the receiver address", async () => { - const initialBalanceReceiver = await zetaTokenNonEthContract.balanceOf(zetaReceiverMockContract.address); - expect(initialBalanceReceiver.toString()).to.equal("0"); - - await ( - await zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).wait(); - - const finalBalanceReceiver = await zetaTokenNonEthContract.balanceOf(zetaReceiverMockContract.address); - - expect(finalBalanceReceiver.toString()).to.equal("1000"); - }); - - it("Should emit `ZetaReceived` on success", async () => { - const zetaReceivedFilter = zetaConnectorNonEthContract.filters.ZetaReceived(); - - const tx = await zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ); - const receipt = await tx.wait(); - - const events = await zetaConnectorNonEthContract.queryFilter(zetaReceivedFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - }); - - describe("onRevert", () => { - it("Should revert if the contract is paused", async () => { - await (await zetaConnectorNonEthContract.connect(pauserSigner).pause()).wait(); - const paused1 = await zetaConnectorNonEthContract.paused(); - expect(paused1).to.equal(true); - - await expect( - zetaConnectorNonEthContract.onRevert( - randomSigner.address, - 1, - randomSigner.address, - 2, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).to.revertedWith("Pausable: paused"); - }); - - it("Should revert if not called by TSS address", async () => { - await expect( - zetaConnectorNonEthContract.onRevert( - randomSigner.address, - 1, - tssUpdater.address, - 1, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("CallerIsNotTss") - .withArgs(tssUpdater.address); - }); - - it("Should mint on the zetaTxSender address", async () => { - const initialBalanceZetaTxSender = await zetaTokenNonEthContract.balanceOf(zetaReceiverMockContract.address); - expect(initialBalanceZetaTxSender.toString()).to.equal("0"); - - await ( - await zetaConnectorNonEthContract - .connect(tssSigner) - .onRevert( - zetaReceiverMockContract.address, - 1, - randomSigner.address, - 1, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).wait(); - - const finalBalanceZetaTxSender = await zetaTokenNonEthContract.balanceOf(zetaReceiverMockContract.address); - expect(finalBalanceZetaTxSender.toString()).to.equal("1000"); - }); - - it("Should emit `ZetaReverted` on success", async () => { - await transfer100kZetaNonEth(zetaConnectorNonEthContract.address); - - const zetaRevertedFilter = zetaConnectorNonEthContract.filters.ZetaReverted(); - - const tx = await zetaConnectorNonEthContract - .connect(tssSigner) - .onRevert( - zetaReceiverMockContract.address, - 1, - randomSigner.address, - 1, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ); - const receipt = await tx.wait(); - - const events = await zetaConnectorNonEthContract.queryFilter(zetaRevertedFilter, receipt.blockHash); - expect(events.length).to.equal(1); - }); - }); - - describe("MaxSupply", () => { - describe("setMaxSupply", () => { - it("Should revert if the caller is not the TSS address", async () => { - await expect(zetaConnectorNonEthContract.connect(randomSigner).setMaxSupply(0)) - .to.revertedWith("CallerIsNotTss") - .withArgs(randomSigner.address); - }); - - it("Should revert if want to mint more than MaxSupply", async () => { - await zetaConnectorNonEthContract.connect(tssSigner).setMaxSupply(999); - await expect( - zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("ExceedsMaxSupply") - .withArgs(999); - }); - }); - - describe("onReceive, onRevert (mint)", () => { - it("Should mint if total supply + supply to add < max supply", async () => { - const supplyToAdd = 1000; - const initialSupply = await zetaTokenNonEthContract.totalSupply(); - - await zetaConnectorNonEthContract.connect(tssSigner).setMaxSupply(initialSupply.add(supplyToAdd)); - - await expect( - zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - supplyToAdd, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ).to.be.not.reverted; - - const finalSupply = await zetaTokenNonEthContract.totalSupply(); - - expect(finalSupply).to.eq(initialSupply.add(supplyToAdd)); - - await expect( - zetaConnectorNonEthContract - .connect(tssSigner) - .onReceive( - randomSigner.address, - 1, - zetaReceiverMockContract.address, - 1, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("ExceedsMaxSupply") - .withArgs(initialSupply.add(supplyToAdd)); - - await expect( - zetaConnectorNonEthContract - .connect(tssSigner) - .onRevert( - randomSigner.address, - 1, - randomSigner.address, - 2, - 1000, - new ethers.utils.AbiCoder().encode(["string"], ["hello"]), - ethers.constants.HashZero - ) - ) - .to.revertedWith("ExceedsMaxSupply") - .withArgs(initialSupply.add(supplyToAdd)); - }); - }); - }); - }); -}); diff --git a/v1/test/ZetaInteractor.spec.ts b/v1/test/ZetaInteractor.spec.ts deleted file mode 100644 index 44ed50708..000000000 --- a/v1/test/ZetaInteractor.spec.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { ZetaInteractorMock } from "@typechain-types"; -import chai, { expect } from "chai"; -import { ethers } from "hardhat"; - -import { getZetaInteractorMock } from "../lib/contracts.helpers"; - -chai.should(); - -describe("ZetaInteractor tests", () => { - let zetaInteractorMock: ZetaInteractorMock; - const chainAId = 1; - const chainBId = 2; - - let accounts: SignerWithAddress[]; - let deployer: SignerWithAddress; - let crossChainContractB: SignerWithAddress; - let zetaConnector: SignerWithAddress; - - const encoder = new ethers.utils.AbiCoder(); - - beforeEach(async () => { - accounts = await ethers.getSigners(); - [deployer, crossChainContractB, zetaConnector] = accounts; - - zetaInteractorMock = await getZetaInteractorMock(zetaConnector.address); - - const encodedCrossChainAddressB = ethers.utils.solidityPack(["address"], [crossChainContractB.address]); - await (await zetaInteractorMock.setInteractorByChainId(chainBId, encodedCrossChainAddressB)).wait(); - }); - - describe("onCreate", () => { - it("Should revert if constructor param is zero address", async () => { - const Factory = await ethers.getContractFactory("ZetaInteractorMock"); - await expect(Factory.deploy(ethers.constants.AddressZero)).to.be.revertedWith("InvalidAddress"); - }); - - it("Should revert if the zetaTxSenderAddress it not in interactorsByChainId", async () => { - await expect( - zetaInteractorMock.connect(zetaConnector).onZetaMessage({ - destinationAddress: crossChainContractB.address, - message: encoder.encode(["address"], [crossChainContractB.address]), - sourceChainId: chainBId, - zetaTxSenderAddress: ethers.utils.solidityPack(["address"], [zetaInteractorMock.address]), - zetaValue: 0, - }) - ).to.be.revertedWith("InvalidZetaMessageCall"); - }); - }); - - describe("onZetaMessage", () => { - it("Should revert if the caller is not ZetaConnector", async () => { - await expect( - zetaInteractorMock.onZetaMessage({ - destinationAddress: crossChainContractB.address, - message: encoder.encode(["address"], [zetaInteractorMock.address]), - sourceChainId: chainBId, - zetaTxSenderAddress: ethers.utils.solidityPack(["address"], [zetaInteractorMock.address]), - zetaValue: 0, - }) - ) - .to.be.revertedWith("InvalidCaller") - .withArgs(deployer.address); - }); - - it("Should revert if the zetaTxSenderAddress it not in interactorsByChainId", async () => { - await expect( - zetaInteractorMock.connect(zetaConnector).onZetaMessage({ - destinationAddress: crossChainContractB.address, - message: encoder.encode(["address"], [crossChainContractB.address]), - sourceChainId: chainBId, - zetaTxSenderAddress: ethers.utils.solidityPack(["address"], [zetaInteractorMock.address]), - zetaValue: 0, - }) - ).to.be.revertedWith("InvalidZetaMessageCall"); - }); - }); - - describe("onZetaRevert", () => { - it("Should revert if the caller is not ZetaConnector", async () => { - await expect( - zetaInteractorMock.onZetaRevert({ - destinationAddress: ethers.utils.solidityPack(["address"], [crossChainContractB.address]), - destinationChainId: chainBId, - message: encoder.encode(["address"], [zetaInteractorMock.address]), - remainingZetaValue: 0, - sourceChainId: chainAId, - zetaTxSenderAddress: deployer.address, - }) - ) - .to.be.revertedWith("InvalidCaller") - .withArgs(deployer.address); - }); - }); - - describe("transferOwnership", () => { - it("Should transfer ownership", async () => { - const randomSigner = accounts[3]; - await zetaInteractorMock.transferOwnership(randomSigner.address); - await zetaInteractorMock.connect(randomSigner).acceptOwnership(); - await expect(await zetaInteractorMock.owner()).to.be.eq(randomSigner.address); - }); - - it("Should keep the ownership until accept", async () => { - const randomSigner = accounts[3]; - await zetaInteractorMock.transferOwnership(randomSigner.address); - await expect(await zetaInteractorMock.owner()).to.be.eq(deployer.address); - }); - - it("Should revert if old owner want to do some action", async () => { - const randomSigner = accounts[3]; - await zetaInteractorMock.transferOwnership(randomSigner.address); - await zetaInteractorMock.connect(randomSigner).acceptOwnership(); - await expect(zetaInteractorMock.transferOwnership(randomSigner.address)).to.be.revertedWith( - "Ownable: caller is not the owner" - ); - }); - }); -}); diff --git a/v1/test/ZetaTokenConsumer.spec.ts b/v1/test/ZetaTokenConsumer.spec.ts deleted file mode 100644 index 2b820528c..000000000 --- a/v1/test/ZetaTokenConsumer.spec.ts +++ /dev/null @@ -1,213 +0,0 @@ -import { MaxUint256 } from "@ethersproject/constants"; -import { parseEther, parseUnits } from "@ethersproject/units"; -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { - IERC20, - IERC20__factory, - UniswapV2Router02__factory, - ZetaTokenConsumer, - ZetaTokenConsumerUniV2, - ZetaTokenConsumerUniV3, -} from "@typechain-types"; -import chai, { expect } from "chai"; -import { BigNumber } from "ethers"; -import { ethers } from "hardhat"; -import { getNonZetaAddress } from "lib"; -const { reset } = require("@nomicfoundation/hardhat-network-helpers"); - -import { getTestAddress } from "../lib/address.helpers"; -import { - deployZetaNonEth, - getZetaTokenConsumerUniV2Strategy, - getZetaTokenConsumerUniV3Strategy, -} from "../lib/contracts.helpers"; -import { MAINNET_FORK_BLOCK, MAINNET_FORK_URL, parseZetaConsumerLog } from "./test.helpers"; - -chai.should(); - -describe("ZetaTokenConsumer tests", () => { - let uniswapV2RouterAddr: string; - let uniswapV3RouterAddr: string; - let USDCAddr: string; - - let zetaTokenConsumerUniV2: ZetaTokenConsumerUniV2; - let zetaTokenConsumerUniV3: ZetaTokenConsumerUniV3; - let zetaTokenNonEthAddress: string; - let zetaTokenNonEth: IERC20; - - let accounts: SignerWithAddress[]; - let tssUpdater: SignerWithAddress; - let tssSigner: SignerWithAddress; - let randomSigner: SignerWithAddress; - - const getNow = async () => { - const block = await ethers.provider.getBlock("latest"); - return block.timestamp; - }; - - const swapToken = async (signer: SignerWithAddress, tokenAddress: string, expectedAmount: BigNumber) => { - const uniswapRouter = UniswapV2Router02__factory.connect(uniswapV2RouterAddr, signer); - const WETH = await uniswapRouter.WETH(); - const path = [WETH, tokenAddress]; - const tx = await uniswapRouter - .connect(signer) - .swapETHForExactTokens(expectedAmount, path, signer.address, (await getNow()) + 360, { value: parseEther("10") }); - await tx.wait(); - }; - - beforeEach(async () => { - await reset(MAINNET_FORK_URL, MAINNET_FORK_BLOCK); - accounts = await ethers.getSigners(); - [tssUpdater, tssSigner, randomSigner] = accounts; - - zetaTokenNonEth = await deployZetaNonEth({ - args: [tssSigner.address, tssUpdater.address], - }); - - const DAI = getTestAddress("dai", "eth_mainnet"); - - USDCAddr = getTestAddress("usdc", "eth_mainnet"); - - uniswapV2RouterAddr = getNonZetaAddress("uniswapV2Router02", "eth_mainnet"); - - const UNI_FACTORY_V3 = getNonZetaAddress("uniswapV3Factory", "eth_mainnet"); - - const UNI_ROUTER_V3 = getNonZetaAddress("uniswapV3Router", "eth_mainnet"); - - const WETH9 = getNonZetaAddress("weth9", "eth_mainnet"); - - // For testing purposes we use an existing uni v3 pool - await swapToken(tssUpdater, DAI, parseEther("10000")); - await swapToken(randomSigner, DAI, parseEther("10000")); - await swapToken(randomSigner, DAI, parseEther("10000")); - await swapToken(randomSigner, DAI, parseEther("10000")); - await swapToken(randomSigner, DAI, parseEther("10000")); - - zetaTokenNonEthAddress = DAI; - zetaTokenNonEth = IERC20__factory.connect(zetaTokenNonEthAddress, tssSigner); - - zetaTokenConsumerUniV2 = await getZetaTokenConsumerUniV2Strategy({ - deployParams: [zetaTokenNonEthAddress, uniswapV2RouterAddr], - }); - - uniswapV3RouterAddr = UNI_ROUTER_V3; - zetaTokenConsumerUniV3 = await getZetaTokenConsumerUniV3Strategy({ - deployParams: [zetaTokenNonEthAddress, uniswapV3RouterAddr, UNI_FACTORY_V3, WETH9, 3000, 3000], - }); - }); - - afterEach(async () => { - await reset(); - }); - - describe("getZetaFromEth", () => { - const shouldGetZetaFromETH = async (zetaTokenConsumer: ZetaTokenConsumer) => { - const initialZetaBalance = await zetaTokenNonEth.balanceOf(randomSigner.address); - const tx = await zetaTokenConsumer.getZetaFromEth(randomSigner.address, 1, { value: parseEther("1") }); - - const result = await tx.wait(); - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "EthExchangedForZeta")).to.have.lengthOf(1); - - const finalZetaBalance = await zetaTokenNonEth.balanceOf(randomSigner.address); - expect(finalZetaBalance).to.be.gt(initialZetaBalance); - }; - - it("Should get zeta from eth using UniV2", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV2.connect(randomSigner); - await shouldGetZetaFromETH(zetaTokenConsumer); - }); - - it("Should get zeta from eth using UniV3", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV3.connect(randomSigner); - await shouldGetZetaFromETH(zetaTokenConsumer); - }); - }); - - describe("getZetaFromToken", () => { - const shouldGetZetaFromToken = async (zetaTokenConsumer: ZetaTokenConsumer) => { - const USDCContract = IERC20__factory.connect(USDCAddr, randomSigner); - await swapToken(randomSigner, USDCAddr, parseUnits("10000", 6)); - - const initialZetaBalance = await zetaTokenNonEth.balanceOf(randomSigner.address); - const tx1 = await USDCContract.approve(zetaTokenConsumer.address, MaxUint256); - await tx1.wait(); - - const tx2 = await zetaTokenConsumer.getZetaFromToken(randomSigner.address, 1, USDCAddr, parseUnits("100", 6)); - const result = await tx2.wait(); - - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "TokenExchangedForZeta")).to.have.lengthOf(1); - - const finalZetaBalance = await zetaTokenNonEth.balanceOf(randomSigner.address); - expect(finalZetaBalance).to.be.gt(initialZetaBalance); - }; - - it("Should get zeta from token using UniV2", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV2.connect(randomSigner); - await shouldGetZetaFromToken(zetaTokenConsumer); - }); - - it("Should get zeta from token using UniV3", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV3.connect(randomSigner); - await shouldGetZetaFromToken(zetaTokenConsumer); - }); - }); - - describe("getEthFromZeta", () => { - const shouldGetETHFromZeta = async (zetaTokenConsumer: ZetaTokenConsumer) => { - const initialEthBalance = await ethers.provider.getBalance(randomSigner.address); - const tx1 = await zetaTokenNonEth.connect(randomSigner).approve(zetaTokenConsumer.address, MaxUint256); - await tx1.wait(); - - const tx2 = await zetaTokenConsumer.getEthFromZeta(randomSigner.address, 1, parseUnits("5000", 18)); - const result = await tx2.wait(); - - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "ZetaExchangedForEth")).to.have.lengthOf(1); - - const finalEthBalance = await ethers.provider.getBalance(randomSigner.address); - expect(finalEthBalance).to.be.gt(initialEthBalance); - }; - - it("Should get eth from zeta using UniV2", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV2.connect(randomSigner); - await shouldGetETHFromZeta(zetaTokenConsumer); - }); - - it("Should get eth from zeta using UniV3", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV3.connect(randomSigner); - - await shouldGetETHFromZeta(zetaTokenConsumer); - }); - }); - - describe("getTokenFromZeta", () => { - const shouldGetTokenFromZeta = async (zetaTokenConsumer: ZetaTokenConsumer) => { - const USDCContract = IERC20__factory.connect(USDCAddr, randomSigner); - - const initialTokenBalance = await USDCContract.balanceOf(randomSigner.address); - const tx1 = await zetaTokenNonEth.connect(randomSigner).approve(zetaTokenConsumer.address, MaxUint256); - await tx1.wait(); - - const tx2 = await zetaTokenConsumer.getTokenFromZeta(randomSigner.address, 1, USDCAddr, parseUnits("5000", 18)); - const result = await tx2.wait(); - - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "ZetaExchangedForToken")).to.have.lengthOf(1); - - const finalTokenBalance = await USDCContract.balanceOf(randomSigner.address); - expect(finalTokenBalance).to.be.gt(initialTokenBalance); - }; - - it("Should get token from zeta using UniV2", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV2.connect(randomSigner); - await shouldGetTokenFromZeta(zetaTokenConsumer); - }); - - it("Should get token from zeta using UniV3", async () => { - const zetaTokenConsumer = zetaTokenConsumerUniV3.connect(randomSigner); - await shouldGetTokenFromZeta(zetaTokenConsumer); - }); - }); -}); diff --git a/v1/test/ZetaTokenConsumerZEVM.spec.ts b/v1/test/ZetaTokenConsumerZEVM.spec.ts deleted file mode 100644 index e5514cc7d..000000000 --- a/v1/test/ZetaTokenConsumerZEVM.spec.ts +++ /dev/null @@ -1,197 +0,0 @@ -import { MaxUint256 } from "@ethersproject/constants"; -import { parseEther, parseUnits } from "@ethersproject/units"; -import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers"; -import { - type ZetaTokenConsumerZEVM, - IERC20, - IERC20__factory, - UniswapV2Router02__factory, - ZetaTokenConsumerZEVM__factory, -} from "@typechain-types"; -import chai, { expect } from "chai"; -import { BigNumber, providers } from "ethers"; -import { ethers } from "hardhat"; -const { reset } = require("@nomicfoundation/hardhat-network-helpers"); - -import { WETH9__factory } from "../typechain-types/factories/contracts/zevm/WZETA.sol/WETH9__factory"; -import { MAINNET_FORK_BLOCK, MAINNET_FORK_URL, parseZetaConsumerLog } from "./test.helpers"; - -chai.should(); - -const USDC_ADDRESS = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"; -const WETH_ADDRESS = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"; -const UNI_V2_ROUTER_ADDRESS = "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"; - -describe("ZetaTokenConsumerZEVM tests", () => { - let zetaTokenConsumerZEVM: ZetaTokenConsumerZEVM; - let zetaToken: IERC20; - - let accounts: SignerWithAddress[]; - let deployer: SignerWithAddress; - let randomSigner: SignerWithAddress; - - const getNow = async () => { - const block = await ethers.provider.getBlock("latest"); - return block.timestamp; - }; - - const swapToken = async (signer: SignerWithAddress, tokenAddress: string, expectedAmount: BigNumber) => { - const uniswapRouter = UniswapV2Router02__factory.connect(UNI_V2_ROUTER_ADDRESS, signer); - const WETH = await uniswapRouter.WETH(); - - const path = [WETH, tokenAddress]; - const tx = await uniswapRouter - .connect(signer) - .swapETHForExactTokens(expectedAmount, path, signer.address, (await getNow()) + 360, { value: parseEther("10") }); - await tx.wait(); - }; - - beforeEach(async () => { - await reset(MAINNET_FORK_URL, MAINNET_FORK_BLOCK); - accounts = await ethers.getSigners(); - [deployer, randomSigner] = accounts; - - zetaToken = IERC20__factory.connect(WETH_ADDRESS, deployer); - - const zetaTokenConsumerZEVMFactory = new ZetaTokenConsumerZEVM__factory(deployer); - zetaTokenConsumerZEVM = await zetaTokenConsumerZEVMFactory.deploy(WETH_ADDRESS, UNI_V2_ROUTER_ADDRESS); - }); - - afterEach(async () => { - await reset(); - }); - - describe("getZetaFromEth", () => { - it("Should get zeta from eth", async () => { - const initialZetaBalance = await zetaToken.balanceOf(randomSigner.address); - const tx = await zetaTokenConsumerZEVM.getZetaFromEth(randomSigner.address, 1, { value: parseEther("1") }); - - const result = await tx.wait(); - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "EthExchangedForZeta")).to.have.lengthOf(1); - - const finalZetaBalance = await zetaToken.balanceOf(randomSigner.address); - expect(finalZetaBalance).to.be.gt(initialZetaBalance); - }); - - it("Should revert if send zeta to the contract", async () => { - const tx = randomSigner.sendTransaction({ to: zetaTokenConsumerZEVM.address, value: parseEther("1") }); - await expect(tx).to.be.revertedWith("OnlyWZETAAllowed"); - }); - - it("Should revert if hasZetaLiquidity is called", async () => { - const tx = zetaTokenConsumerZEVM.hasZetaLiquidity(); - await expect(tx).to.be.revertedWith("InvalidForZEVM"); - }); - - it("Should revert if value is zero", async () => { - const tx = zetaTokenConsumerZEVM.getZetaFromEth(randomSigner.address, 1, { value: 0 }); - await expect(tx).to.be.revertedWith("InputCantBeZero"); - }); - - it("Should revert if not enogth value", async () => { - const tx = zetaTokenConsumerZEVM.getZetaFromEth(randomSigner.address, 10, { value: 1 }); - await expect(tx).to.be.revertedWith("NotEnoughValue"); - }); - }); - - describe("getZetaFromToken", () => { - it("Should get zeta from token", async () => { - const USDCContract = IERC20__factory.connect(USDC_ADDRESS, deployer); - await swapToken(deployer, USDC_ADDRESS, parseUnits("10000", 6)); - - const initialZetaBalance = await zetaToken.balanceOf(randomSigner.address); - const tx1 = await USDCContract.approve(zetaTokenConsumerZEVM.address, MaxUint256); - await tx1.wait(); - - const tx2 = await zetaTokenConsumerZEVM.getZetaFromToken( - randomSigner.address, - 1, - USDC_ADDRESS, - parseUnits("100", 6) - ); - const result = await tx2.wait(); - - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "TokenExchangedForZeta")).to.have.lengthOf(1); - - const finalZetaBalance = await zetaToken.balanceOf(randomSigner.address); - expect(finalZetaBalance).to.be.gt(initialZetaBalance); - }); - - it("Should revert if input is zeta", async () => { - const tx1 = zetaTokenConsumerZEVM.getZetaFromToken(randomSigner.address, 1, WETH_ADDRESS, parseUnits("100", 6)); - await expect(tx1).to.be.revertedWith("InputCantBeZeta"); - }); - }); - - describe("getEthFromZeta", async () => { - it("Should get eth from zeta", async () => { - const amount = parseUnits("50", 18); - const WETH9 = WETH9__factory.connect(WETH_ADDRESS, deployer); - - const tx = await WETH9.deposit({ value: amount }); - await tx.wait(); - - const initialEthBalance = await ethers.provider.getBalance(randomSigner.address); - const tx1 = await WETH9.approve(zetaTokenConsumerZEVM.address, MaxUint256); - await tx1.wait(); - - const zetaBalance = await zetaToken.balanceOf(deployer.address); - - const tx2 = await zetaTokenConsumerZEVM.getEthFromZeta(randomSigner.address, 1, amount); - const result = await tx2.wait(); - - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "ZetaExchangedForEth")).to.have.lengthOf(1); - - const finalEthBalance = await ethers.provider.getBalance(randomSigner.address); - expect(finalEthBalance).to.be.gt(initialEthBalance); - }); - - it("Should revert if destination doesn't allow receive", async () => { - const amount = parseUnits("50", 18); - const WETH9 = WETH9__factory.connect(WETH_ADDRESS, deployer); - - const tx = await WETH9.deposit({ value: amount }); - await tx.wait(); - - const tx1 = await WETH9.approve(zetaTokenConsumerZEVM.address, MaxUint256); - await tx1.wait(); - - const tx2 = zetaTokenConsumerZEVM.getEthFromZeta(zetaTokenConsumerZEVM.address, 1, amount); - await expect(tx2).to.be.revertedWith("ErrorSendingETH"); - }); - }); - - describe("getTokenFromZeta", async () => { - it("Should get token from zeta", async () => { - const amount = parseUnits("50", 18); - - { - const WETH9 = WETH9__factory.connect(WETH_ADDRESS, deployer); - const tx = await WETH9.deposit({ value: amount }); - await tx.wait(); - } - const USDCContract = IERC20__factory.connect(USDC_ADDRESS, randomSigner); - - const initialTokenBalance = await USDCContract.balanceOf(randomSigner.address); - const tx1 = await zetaToken.approve(zetaTokenConsumerZEVM.address, MaxUint256); - await tx1.wait(); - - const tx2 = await zetaTokenConsumerZEVM.getTokenFromZeta(randomSigner.address, 1, USDC_ADDRESS, amount); - const result = await tx2.wait(); - - const eventNames = parseZetaConsumerLog(result.logs); - expect(eventNames.filter((e) => e === "ZetaExchangedForToken")).to.have.lengthOf(1); - - const finalTokenBalance = await USDCContract.balanceOf(randomSigner.address); - expect(finalTokenBalance).to.be.gt(initialTokenBalance); - }); - - it("Should revert if output is zeta", async () => { - const tx = zetaTokenConsumerZEVM.getTokenFromZeta(randomSigner.address, 1, WETH_ADDRESS, 1); - await expect(tx).to.be.revertedWith("OutputCantBeZeta"); - }); - }); -}); diff --git a/v1/test/test.helpers.ts b/v1/test/test.helpers.ts deleted file mode 100644 index 825b09f2f..000000000 --- a/v1/test/test.helpers.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { ZetaTokenConsumer__factory } from "@typechain-types"; -import { BigNumber, ContractReceipt } from "ethers"; - -export const FUNGIBLE_MODULE_ADDRESS = "0x735b14BB79463307AAcBED86DAf3322B1e6226aB"; - -export const MAINNET_FORK_URL = "https://rpc.ankr.com/eth"; -export const MAINNET_FORK_BLOCK = 14672712; - -export const parseZetaConsumerLog = (logs: ContractReceipt["logs"]) => { - const iface = ZetaTokenConsumer__factory.createInterface(); - - const eventNames = logs.map((log) => { - try { - const parsedLog = iface.parseLog(log); - - return parsedLog.name; - } catch (e) { - return "NO_ZETA_LOG"; - } - }); - - return eventNames; -}; diff --git a/v1/tsconfig.json b/v1/tsconfig.json deleted file mode 100644 index ac7c6560f..000000000 --- a/v1/tsconfig.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "declaration": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "module": "commonjs", - "moduleResolution": "node", - "noImplicitAny": true, - "outDir": "dist", - "paths": { - "@typechain-types": ["typechain-types"] - }, - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": false, - "strict": true, - "target": "es2020", - "typeRoots": ["@types", "./node_modules/@types"] - }, - "exclude": [ - "hardhat.config.ts", - "scripts", - "test", - "lib/deterministic-deploy.helpers.ts", - "lib/contracts.constants.ts", - "lib/contracts.helpers.ts", - "lib/ImmutableCreate2Factory/ImmutableCreate2Factory.helpers.ts" - ] -} diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts deleted file mode 100644 index 4ebb8a9b0..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +++ /dev/null @@ -1,188 +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 OwnableUpgradeableInterface extends utils.Interface { - functions: { - "owner()": FunctionFragment; - "renounceOwnership()": FunctionFragment; - "transferOwnership(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "owner" | "renounceOwnership" | "transferOwnership" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - - events: { - "Initialized(uint8)": EventFragment; - "OwnershipTransferred(address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment; - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; -} - -export interface InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent< - [string, string], - OwnershipTransferredEventObject ->; - -export type OwnershipTransferredEventFilter = - TypedEventFilter; - -export interface OwnableUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: OwnableUpgradeableInterface; - - 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: { - owner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "OwnershipTransferred(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - }; - - estimateGas: { - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts deleted file mode 100644 index 5b7d8440c..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { OwnableUpgradeable } from "./OwnableUpgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/index.ts deleted file mode 100644 index 5df7f183a..000000000 --- a/v1/typechain-types/@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 interfaces from "./interfaces"; -export type { interfaces }; -import type * as proxy from "./proxy"; -export type { proxy }; -import type * as security from "./security"; -export type { security }; -import type * as utils from "./utils"; -export type { utils }; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.ts deleted file mode 100644 index dea1e073a..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.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 IERC1967UpgradeableInterface 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 IERC1967Upgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC1967UpgradeableInterface; - - 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/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable.ts deleted file mode 100644 index 12802780f..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable.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 IERC1822ProxiableUpgradeableInterface 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 IERC1822ProxiableUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IERC1822ProxiableUpgradeableInterface; - - 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/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts deleted file mode 100644 index 694b98f22..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC1822ProxiableUpgradeable } from "./IERC1822ProxiableUpgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/index.ts deleted file mode 100644 index 794471a33..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/interfaces/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as draftIerc1822UpgradeableSol from "./draft-IERC1822Upgradeable.sol"; -export type { draftIerc1822UpgradeableSol }; -export type { IERC1967Upgradeable } from "./IERC1967Upgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.ts deleted file mode 100644 index 8c87141f3..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.ts +++ /dev/null @@ -1,127 +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 ERC1967UpgradeUpgradeableInterface extends utils.Interface { - functions: {}; - - events: { - "AdminChanged(address,address)": EventFragment; - "BeaconUpgraded(address)": EventFragment; - "Initialized(uint8)": EventFragment; - "Upgraded(address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Initialized"): 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 InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface UpgradedEventObject { - implementation: string; -} -export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>; - -export type UpgradedEventFilter = TypedEventFilter; - -export interface ERC1967UpgradeUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC1967UpgradeUpgradeableInterface; - - 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; - - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "Upgraded(address)"( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - Upgraded( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts deleted file mode 100644 index 3c90548ce..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ERC1967UpgradeUpgradeable } from "./ERC1967UpgradeUpgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.ts deleted file mode 100644 index b8c9d2e44..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.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 IBeaconUpgradeableInterface 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 IBeaconUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IBeaconUpgradeableInterface; - - 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/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts deleted file mode 100644 index 51fb2a5e7..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IBeaconUpgradeable } from "./IBeaconUpgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts deleted file mode 100644 index c2433d8f4..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +++ /dev/null @@ -1,9 +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 }; -import type * as utils from "./utils"; -export type { utils }; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts deleted file mode 100644 index a97ca26eb..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts deleted file mode 100644 index 352a25fa6..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +++ /dev/null @@ -1,238 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - 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 UUPSUpgradeableInterface extends utils.Interface { - functions: { - "proxiableUUID()": FunctionFragment; - "upgradeTo(address)": FunctionFragment; - "upgradeToAndCall(address,bytes)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "proxiableUUID" | "upgradeTo" | "upgradeToAndCall" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "proxiableUUID", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "upgradeTo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "upgradeToAndCall", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "proxiableUUID", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "upgradeToAndCall", - data: BytesLike - ): Result; - - events: { - "AdminChanged(address,address)": EventFragment; - "BeaconUpgraded(address)": EventFragment; - "Initialized(uint8)": EventFragment; - "Upgraded(address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Initialized"): 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 InitializedEventObject { - version: number; -} -export type InitializedEvent = TypedEvent<[number], InitializedEventObject>; - -export type InitializedEventFilter = TypedEventFilter; - -export interface UpgradedEventObject { - implementation: string; -} -export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>; - -export type UpgradedEventFilter = TypedEventFilter; - -export interface UUPSUpgradeable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: UUPSUpgradeableInterface; - - 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]>; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - proxiableUUID(overrides?: CallOverrides): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - proxiableUUID(overrides?: CallOverrides): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - 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; - - "Initialized(uint8)"(version?: null): InitializedEventFilter; - Initialized(version?: null): InitializedEventFilter; - - "Upgraded(address)"( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - Upgraded( - implementation?: PromiseOrValue | null - ): UpgradedEventFilter; - }; - - estimateGas: { - proxiableUUID(overrides?: CallOverrides): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - proxiableUUID(overrides?: CallOverrides): Promise; - - upgradeTo( - newImplementation: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - upgradeToAndCall( - newImplementation: PromiseOrValue, - data: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts deleted file mode 100644 index f23837bac..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Initializable } from "./Initializable"; -export type { UUPSUpgradeable } from "./UUPSUpgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.ts deleted file mode 100644 index f0681bd51..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/contracts-upgradeable/security/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/security/index.ts deleted file mode 100644 index ae3ca3895..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/security/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ReentrancyGuardUpgradeable } from "./ReentrancyGuardUpgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts deleted file mode 100644 index 6886700df..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts b/v1/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts deleted file mode 100644 index 749da3967..000000000 --- a/v1/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ContextUpgradeable } from "./ContextUpgradeable"; diff --git a/v1/typechain-types/@openzeppelin/contracts/access/Ownable.ts b/v1/typechain-types/@openzeppelin/contracts/access/Ownable.ts deleted file mode 100644 index aaf0fb4e5..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/access/Ownable.ts +++ /dev/null @@ -1,176 +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 OwnableInterface extends utils.Interface { - functions: { - "owner()": FunctionFragment; - "renounceOwnership()": FunctionFragment; - "transferOwnership(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "owner" | "renounceOwnership" | "transferOwnership" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - - events: { - "OwnershipTransferred(address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; -} - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent< - [string, string], - OwnershipTransferredEventObject ->; - -export type OwnershipTransferredEventFilter = - TypedEventFilter; - -export interface Ownable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: OwnableInterface; - - 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: { - owner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - owner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "OwnershipTransferred(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - }; - - estimateGas: { - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - owner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@openzeppelin/contracts/access/Ownable2Step.ts b/v1/typechain-types/@openzeppelin/contracts/access/Ownable2Step.ts deleted file mode 100644 index 8479768a6..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/access/Ownable2Step.ts +++ /dev/null @@ -1,250 +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 Ownable2StepInterface extends utils.Interface { - functions: { - "acceptOwnership()": FunctionFragment; - "owner()": FunctionFragment; - "pendingOwner()": FunctionFragment; - "renounceOwnership()": FunctionFragment; - "transferOwnership(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "acceptOwnership" - | "owner" - | "pendingOwner" - | "renounceOwnership" - | "transferOwnership" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "acceptOwnership", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "pendingOwner", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "acceptOwnership", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pendingOwner", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - - events: { - "OwnershipTransferStarted(address,address)": EventFragment; - "OwnershipTransferred(address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; -} - -export interface OwnershipTransferStartedEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferStartedEvent = TypedEvent< - [string, string], - OwnershipTransferStartedEventObject ->; - -export type OwnershipTransferStartedEventFilter = - TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent< - [string, string], - OwnershipTransferredEventObject ->; - -export type OwnershipTransferredEventFilter = - TypedEventFilter; - -export interface Ownable2Step extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: Ownable2StepInterface; - - 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: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pendingOwner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - acceptOwnership(overrides?: CallOverrides): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "OwnershipTransferStarted(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferStartedEventFilter; - OwnershipTransferStarted( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferStartedEventFilter; - - "OwnershipTransferred(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - }; - - estimateGas: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@openzeppelin/contracts/access/index.ts b/v1/typechain-types/@openzeppelin/contracts/access/index.ts deleted file mode 100644 index 79c408552..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Ownable } from "./Ownable"; -export type { Ownable2Step } from "./Ownable2Step"; diff --git a/v1/typechain-types/@openzeppelin/contracts/index.ts b/v1/typechain-types/@openzeppelin/contracts/index.ts deleted file mode 100644 index e1885aa2c..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as access from "./access"; -export type { access }; -import type * as security from "./security"; -export type { security }; -import type * as token from "./token"; -export type { token }; diff --git a/v1/typechain-types/@openzeppelin/contracts/security/Pausable.ts b/v1/typechain-types/@openzeppelin/contracts/security/Pausable.ts deleted file mode 100644 index c88cefb45..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/security/Pausable.ts +++ /dev/null @@ -1,112 +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 PausableInterface extends utils.Interface { - functions: { - "paused()": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "paused"): FunctionFragment; - - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - - events: { - "Paused(address)": EventFragment; - "Unpaused(address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; -} - -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 Pausable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: PausableInterface; - - 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: { - "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/v1/typechain-types/@openzeppelin/contracts/security/index.ts b/v1/typechain-types/@openzeppelin/contracts/security/index.ts deleted file mode 100644 index ed703c8f9..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/security/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { Pausable } from "./Pausable"; diff --git a/v1/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts deleted file mode 100644 index 682e3cfd3..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts deleted file mode 100644 index e99e80b80..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.ts deleted file mode 100644 index 20ea45f5c..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.ts +++ /dev/null @@ -1,533 +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 ERC20BurnableInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(uint256)": FunctionFragment; - "burnFrom(address,uint256)": 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" - | "burn" - | "burnFrom" - | "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: "burn", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "burnFrom", - values: [PromiseOrValue, 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: "burn", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "burnFrom", 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 ERC20Burnable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC20BurnableInterface; - - 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - 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; - - burn( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): 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; - - burn( - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: 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; - - burn( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): 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; - - burn( - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): 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/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts deleted file mode 100644 index 7a94b7242..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.ts deleted file mode 100644 index 836ee60a9..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.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 IERC20PermitInterface 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 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: { - 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/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts deleted file mode 100644 index 6673dc7da..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC20Permit } from "./IERC20Permit"; diff --git a/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts deleted file mode 100644 index 9c8ebc245..000000000 --- a/v1/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as draftIerc20PermitSol from "./draft-IERC20Permit.sol"; -export type { draftIerc20PermitSol }; -export type { ERC20Burnable } from "./ERC20Burnable"; -export type { IERC20Metadata } from "./IERC20Metadata"; diff --git a/v1/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts b/v1/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts deleted file mode 100644 index cc196974a..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/contracts/token/index.ts b/v1/typechain-types/@openzeppelin/contracts/token/index.ts deleted file mode 100644 index 5c4062a9c..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@openzeppelin/index.ts b/v1/typechain-types/@openzeppelin/index.ts deleted file mode 100644 index a11e4ca29..000000000 --- a/v1/typechain-types/@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/v1/typechain-types/@uniswap/index.ts b/v1/typechain-types/@uniswap/index.ts deleted file mode 100644 index 7a53629e2..000000000 --- a/v1/typechain-types/@uniswap/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as v2Core from "./v2-core"; -export type { v2Core }; -import type * as v2Periphery from "./v2-periphery"; -export type { v2Periphery }; -import type * as v3Core from "./v3-core"; -export type { v3Core }; -import type * as v3Periphery from "./v3-periphery"; -export type { v3Periphery }; diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2ERC20.ts b/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2ERC20.ts deleted file mode 100644 index f9a3f26fa..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2ERC20.ts +++ /dev/null @@ -1,526 +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 UniswapV2ERC20Interface extends utils.Interface { - functions: { - "DOMAIN_SEPARATOR()": FunctionFragment; - "PERMIT_TYPEHASH()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "decimals()": FunctionFragment; - "name()": FunctionFragment; - "nonces(address)": FunctionFragment; - "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DOMAIN_SEPARATOR" - | "PERMIT_TYPEHASH" - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "name" - | "nonces" - | "permit" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DOMAIN_SEPARATOR", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "PERMIT_TYPEHASH", - values?: undefined - ): string; - 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: "nonces", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "permit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): 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: "DOMAIN_SEPARATOR", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "PERMIT_TYPEHASH", - data: BytesLike - ): Result; - 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: "nonces", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "permit", 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 UniswapV2ERC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: UniswapV2ERC20Interface; - - 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]>; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise<[string]>; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - name(overrides?: CallOverrides): Promise<[string]>; - - nonces( - arg0: 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; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: 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: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Factory.ts b/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Factory.ts deleted file mode 100644 index 68d10fa58..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Factory.ts +++ /dev/null @@ -1,335 +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 UniswapV2FactoryInterface extends utils.Interface { - functions: { - "allPairs(uint256)": FunctionFragment; - "allPairsLength()": FunctionFragment; - "createPair(address,address)": FunctionFragment; - "feeTo()": FunctionFragment; - "feeToSetter()": FunctionFragment; - "getPair(address,address)": FunctionFragment; - "setFeeTo(address)": FunctionFragment; - "setFeeToSetter(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allPairs" - | "allPairsLength" - | "createPair" - | "feeTo" - | "feeToSetter" - | "getPair" - | "setFeeTo" - | "setFeeToSetter" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allPairs", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "allPairsLength", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "createPair", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "feeTo", values?: undefined): string; - encodeFunctionData( - functionFragment: "feeToSetter", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getPair", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setFeeTo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setFeeToSetter", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "allPairs", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "allPairsLength", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "createPair", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "feeTo", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "feeToSetter", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getPair", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "setFeeTo", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setFeeToSetter", - data: BytesLike - ): Result; - - events: { - "PairCreated(address,address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "PairCreated"): EventFragment; -} - -export interface PairCreatedEventObject { - token0: string; - token1: string; - pair: string; - arg3: BigNumber; -} -export type PairCreatedEvent = TypedEvent< - [string, string, string, BigNumber], - PairCreatedEventObject ->; - -export type PairCreatedEventFilter = TypedEventFilter; - -export interface UniswapV2Factory extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: UniswapV2FactoryInterface; - - 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: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - allPairsLength(overrides?: CallOverrides): Promise<[BigNumber]>; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise<[string]>; - - feeToSetter(overrides?: CallOverrides): Promise<[string]>; - - getPair( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "PairCreated(address,address,address,uint256)"( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - pair?: null, - arg3?: null - ): PairCreatedEventFilter; - PairCreated( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - pair?: null, - arg3?: null - ): PairCreatedEventFilter; - }; - - estimateGas: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - _feeTo: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Pair.ts b/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Pair.ts deleted file mode 100644 index 1f055a912..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/UniswapV2Pair.ts +++ /dev/null @@ -1,996 +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 UniswapV2PairInterface extends utils.Interface { - functions: { - "DOMAIN_SEPARATOR()": FunctionFragment; - "MINIMUM_LIQUIDITY()": FunctionFragment; - "PERMIT_TYPEHASH()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(address)": FunctionFragment; - "decimals()": FunctionFragment; - "factory()": FunctionFragment; - "getReserves()": FunctionFragment; - "initialize(address,address)": FunctionFragment; - "kLast()": FunctionFragment; - "mint(address)": FunctionFragment; - "name()": FunctionFragment; - "nonces(address)": FunctionFragment; - "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; - "price0CumulativeLast()": FunctionFragment; - "price1CumulativeLast()": FunctionFragment; - "skim(address)": FunctionFragment; - "swap(uint256,uint256,address,bytes)": FunctionFragment; - "symbol()": FunctionFragment; - "sync()": FunctionFragment; - "token0()": FunctionFragment; - "token1()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DOMAIN_SEPARATOR" - | "MINIMUM_LIQUIDITY" - | "PERMIT_TYPEHASH" - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "decimals" - | "factory" - | "getReserves" - | "initialize" - | "kLast" - | "mint" - | "name" - | "nonces" - | "permit" - | "price0CumulativeLast" - | "price1CumulativeLast" - | "skim" - | "swap" - | "symbol" - | "sync" - | "token0" - | "token1" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DOMAIN_SEPARATOR", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "MINIMUM_LIQUIDITY", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "PERMIT_TYPEHASH", - values?: undefined - ): string; - 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: "decimals", values?: undefined): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData( - functionFragment: "getReserves", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "kLast", values?: undefined): string; - encodeFunctionData( - functionFragment: "mint", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData( - functionFragment: "nonces", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "permit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "price0CumulativeLast", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "price1CumulativeLast", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "skim", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "swap", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData(functionFragment: "sync", values?: undefined): string; - encodeFunctionData(functionFragment: "token0", values?: undefined): string; - encodeFunctionData(functionFragment: "token1", 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: "DOMAIN_SEPARATOR", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "MINIMUM_LIQUIDITY", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "PERMIT_TYPEHASH", - data: BytesLike - ): Result; - 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: "decimals", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getReserves", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "kLast", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "price0CumulativeLast", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "price1CumulativeLast", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "skim", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "sync", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "token1", 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; - "Burn(address,uint256,uint256,address)": EventFragment; - "Mint(address,uint256,uint256)": EventFragment; - "Swap(address,uint256,uint256,uint256,uint256,address)": EventFragment; - "Sync(uint112,uint112)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Burn"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Mint"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Swap"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Sync"): 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 BurnEventObject { - sender: string; - amount0: BigNumber; - amount1: BigNumber; - to: string; -} -export type BurnEvent = TypedEvent< - [string, BigNumber, BigNumber, string], - BurnEventObject ->; - -export type BurnEventFilter = TypedEventFilter; - -export interface MintEventObject { - sender: string; - amount0: BigNumber; - amount1: BigNumber; -} -export type MintEvent = TypedEvent< - [string, BigNumber, BigNumber], - MintEventObject ->; - -export type MintEventFilter = TypedEventFilter; - -export interface SwapEventObject { - sender: string; - amount0In: BigNumber; - amount1In: BigNumber; - amount0Out: BigNumber; - amount1Out: BigNumber; - to: string; -} -export type SwapEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber, BigNumber, string], - SwapEventObject ->; - -export type SwapEventFilter = TypedEventFilter; - -export interface SyncEventObject { - reserve0: BigNumber; - reserve1: BigNumber; -} -export type SyncEvent = TypedEvent<[BigNumber, BigNumber], SyncEventObject>; - -export type SyncEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface UniswapV2Pair extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: UniswapV2PairInterface; - - 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]>; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise<[BigNumber]>; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise<[string]>; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getReserves( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - _reserve0: BigNumber; - _reserve1: BigNumber; - _blockTimestampLast: number; - } - >; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - nonces( - arg0: 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; - - price0CumulativeLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - price1CumulativeLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise<[string]>; - - token1(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - _reserve0: BigNumber; - _reserve1: BigNumber; - _blockTimestampLast: number; - } - >; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - _reserve0: BigNumber; - _reserve1: BigNumber; - _blockTimestampLast: number; - } - >; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim(to: PromiseOrValue, overrides?: CallOverrides): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync(overrides?: CallOverrides): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: 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; - - "Burn(address,uint256,uint256,address)"( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - to?: PromiseOrValue | null - ): BurnEventFilter; - Burn( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - to?: PromiseOrValue | null - ): BurnEventFilter; - - "Mint(address,uint256,uint256)"( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): MintEventFilter; - Mint( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): MintEventFilter; - - "Swap(address,uint256,uint256,uint256,uint256,address)"( - sender?: PromiseOrValue | null, - amount0In?: null, - amount1In?: null, - amount0Out?: null, - amount1Out?: null, - to?: PromiseOrValue | null - ): SwapEventFilter; - Swap( - sender?: PromiseOrValue | null, - amount0In?: null, - amount1In?: null, - amount0Out?: null, - amount1Out?: null, - to?: PromiseOrValue | null - ): SwapEventFilter; - - "Sync(uint112,uint112)"(reserve0?: null, reserve1?: null): SyncEventFilter; - Sync(reserve0?: null, reserve1?: null): SyncEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise; - - initialize( - _token0: PromiseOrValue, - _token1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - nonces( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - permit( - owner: PromiseOrValue, - spender: PromiseOrValue, - value: PromiseOrValue, - deadline: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - price0CumulativeLast( - overrides?: CallOverrides - ): Promise; - - price1CumulativeLast( - overrides?: CallOverrides - ): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/index.ts b/v1/typechain-types/@uniswap/v2-core/contracts/index.ts deleted file mode 100644 index 45757d7b8..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as interfaces from "./interfaces"; -export type { interfaces }; -export type { UniswapV2ERC20 } from "./UniswapV2ERC20"; -export type { UniswapV2Factory } from "./UniswapV2Factory"; -export type { UniswapV2Pair } from "./UniswapV2Pair"; diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IERC20.ts b/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IERC20.ts deleted file mode 100644 index ad04197df..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IERC20.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 IERC20Interface 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 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, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: 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, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: 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, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee.ts b/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee.ts deleted file mode 100644 index d03d3bc12..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee.ts +++ /dev/null @@ -1,126 +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 IUniswapV2CalleeInterface extends utils.Interface { - functions: { - "uniswapV2Call(address,uint256,uint256,bytes)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "uniswapV2Call"): FunctionFragment; - - encodeFunctionData( - functionFragment: "uniswapV2Call", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "uniswapV2Call", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV2Callee extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2CalleeInterface; - - 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: { - uniswapV2Call( - sender: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - uniswapV2Call( - sender: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - uniswapV2Call( - sender: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - uniswapV2Call( - sender: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - uniswapV2Call( - sender: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20.ts b/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20.ts deleted file mode 100644 index fe35a75ff..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20.ts +++ /dev/null @@ -1,526 +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 IUniswapV2ERC20Interface extends utils.Interface { - functions: { - "DOMAIN_SEPARATOR()": FunctionFragment; - "PERMIT_TYPEHASH()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "decimals()": FunctionFragment; - "name()": FunctionFragment; - "nonces(address)": FunctionFragment; - "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DOMAIN_SEPARATOR" - | "PERMIT_TYPEHASH" - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "name" - | "nonces" - | "permit" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DOMAIN_SEPARATOR", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "PERMIT_TYPEHASH", - values?: undefined - ): string; - 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: "nonces", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "permit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): 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: "DOMAIN_SEPARATOR", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "PERMIT_TYPEHASH", - data: BytesLike - ): Result; - 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: "nonces", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "permit", 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 IUniswapV2ERC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2ERC20Interface; - - 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]>; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise<[string]>; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - name(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; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(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; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(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; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: 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: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(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; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(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; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.ts b/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.ts deleted file mode 100644 index 65cf201c2..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.ts +++ /dev/null @@ -1,335 +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 IUniswapV2FactoryInterface extends utils.Interface { - functions: { - "allPairs(uint256)": FunctionFragment; - "allPairsLength()": FunctionFragment; - "createPair(address,address)": FunctionFragment; - "feeTo()": FunctionFragment; - "feeToSetter()": FunctionFragment; - "getPair(address,address)": FunctionFragment; - "setFeeTo(address)": FunctionFragment; - "setFeeToSetter(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allPairs" - | "allPairsLength" - | "createPair" - | "feeTo" - | "feeToSetter" - | "getPair" - | "setFeeTo" - | "setFeeToSetter" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "allPairs", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "allPairsLength", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "createPair", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "feeTo", values?: undefined): string; - encodeFunctionData( - functionFragment: "feeToSetter", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getPair", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setFeeTo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setFeeToSetter", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "allPairs", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "allPairsLength", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "createPair", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "feeTo", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "feeToSetter", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getPair", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "setFeeTo", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setFeeToSetter", - data: BytesLike - ): Result; - - events: { - "PairCreated(address,address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "PairCreated"): EventFragment; -} - -export interface PairCreatedEventObject { - token0: string; - token1: string; - pair: string; - arg3: BigNumber; -} -export type PairCreatedEvent = TypedEvent< - [string, string, string, BigNumber], - PairCreatedEventObject ->; - -export type PairCreatedEventFilter = TypedEventFilter; - -export interface IUniswapV2Factory extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2FactoryInterface; - - 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: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { pair: string }>; - - allPairsLength(overrides?: CallOverrides): Promise<[BigNumber]>; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise<[string]>; - - feeToSetter(overrides?: CallOverrides): Promise<[string]>; - - getPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { pair: string }>; - - setFeeTo( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeToSetter( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "PairCreated(address,address,address,uint256)"( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - pair?: null, - arg3?: null - ): PairCreatedEventFilter; - PairCreated( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - pair?: null, - arg3?: null - ): PairCreatedEventFilter; - }; - - estimateGas: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allPairs( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - allPairsLength(overrides?: CallOverrides): Promise; - - createPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeTo(overrides?: CallOverrides): Promise; - - feeToSetter(overrides?: CallOverrides): Promise; - - getPair( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setFeeTo( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeToSetter( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.ts b/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.ts deleted file mode 100644 index 32fb6a81f..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.ts +++ /dev/null @@ -1,996 +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 IUniswapV2PairInterface extends utils.Interface { - functions: { - "DOMAIN_SEPARATOR()": FunctionFragment; - "MINIMUM_LIQUIDITY()": FunctionFragment; - "PERMIT_TYPEHASH()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(address)": FunctionFragment; - "decimals()": FunctionFragment; - "factory()": FunctionFragment; - "getReserves()": FunctionFragment; - "initialize(address,address)": FunctionFragment; - "kLast()": FunctionFragment; - "mint(address)": FunctionFragment; - "name()": FunctionFragment; - "nonces(address)": FunctionFragment; - "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": FunctionFragment; - "price0CumulativeLast()": FunctionFragment; - "price1CumulativeLast()": FunctionFragment; - "skim(address)": FunctionFragment; - "swap(uint256,uint256,address,bytes)": FunctionFragment; - "symbol()": FunctionFragment; - "sync()": FunctionFragment; - "token0()": FunctionFragment; - "token1()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "DOMAIN_SEPARATOR" - | "MINIMUM_LIQUIDITY" - | "PERMIT_TYPEHASH" - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "decimals" - | "factory" - | "getReserves" - | "initialize" - | "kLast" - | "mint" - | "name" - | "nonces" - | "permit" - | "price0CumulativeLast" - | "price1CumulativeLast" - | "skim" - | "swap" - | "symbol" - | "sync" - | "token0" - | "token1" - | "totalSupply" - | "transfer" - | "transferFrom" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "DOMAIN_SEPARATOR", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "MINIMUM_LIQUIDITY", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "PERMIT_TYPEHASH", - values?: undefined - ): string; - 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: "decimals", values?: undefined): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData( - functionFragment: "getReserves", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "kLast", values?: undefined): string; - encodeFunctionData( - functionFragment: "mint", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData( - functionFragment: "nonces", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "permit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "price0CumulativeLast", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "price1CumulativeLast", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "skim", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "swap", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "symbol", values?: undefined): string; - encodeFunctionData(functionFragment: "sync", values?: undefined): string; - encodeFunctionData(functionFragment: "token0", values?: undefined): string; - encodeFunctionData(functionFragment: "token1", 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: "DOMAIN_SEPARATOR", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "MINIMUM_LIQUIDITY", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "PERMIT_TYPEHASH", - data: BytesLike - ): Result; - 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: "decimals", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getReserves", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "kLast", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "price0CumulativeLast", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "price1CumulativeLast", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "skim", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "sync", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "token1", 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; - "Burn(address,uint256,uint256,address)": EventFragment; - "Mint(address,uint256,uint256)": EventFragment; - "Swap(address,uint256,uint256,uint256,uint256,address)": EventFragment; - "Sync(uint112,uint112)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Burn"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Mint"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Swap"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Sync"): 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 BurnEventObject { - sender: string; - amount0: BigNumber; - amount1: BigNumber; - to: string; -} -export type BurnEvent = TypedEvent< - [string, BigNumber, BigNumber, string], - BurnEventObject ->; - -export type BurnEventFilter = TypedEventFilter; - -export interface MintEventObject { - sender: string; - amount0: BigNumber; - amount1: BigNumber; -} -export type MintEvent = TypedEvent< - [string, BigNumber, BigNumber], - MintEventObject ->; - -export type MintEventFilter = TypedEventFilter; - -export interface SwapEventObject { - sender: string; - amount0In: BigNumber; - amount1In: BigNumber; - amount0Out: BigNumber; - amount1Out: BigNumber; - to: string; -} -export type SwapEvent = TypedEvent< - [string, BigNumber, BigNumber, BigNumber, BigNumber, string], - SwapEventObject ->; - -export type SwapEventFilter = TypedEventFilter; - -export interface SyncEventObject { - reserve0: BigNumber; - reserve1: BigNumber; -} -export type SyncEvent = TypedEvent<[BigNumber, BigNumber], SyncEventObject>; - -export type SyncEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface IUniswapV2Pair extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2PairInterface; - - 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]>; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise<[BigNumber]>; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise<[string]>; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getReserves( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - reserve0: BigNumber; - reserve1: BigNumber; - blockTimestampLast: number; - } - >; - - initialize( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(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; - - price0CumulativeLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - price1CumulativeLast(overrides?: CallOverrides): Promise<[BigNumber]>; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise<[string]>; - - token1(overrides?: CallOverrides): Promise<[string]>; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - reserve0: BigNumber; - reserve1: BigNumber; - blockTimestampLast: number; - } - >; - - initialize( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(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; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - reserve0: BigNumber; - reserve1: BigNumber; - blockTimestampLast: number; - } - >; - - initialize( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - name(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; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim(to: PromiseOrValue, overrides?: CallOverrides): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync(overrides?: CallOverrides): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: 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; - - "Burn(address,uint256,uint256,address)"( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - to?: PromiseOrValue | null - ): BurnEventFilter; - Burn( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - to?: PromiseOrValue | null - ): BurnEventFilter; - - "Mint(address,uint256,uint256)"( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): MintEventFilter; - Mint( - sender?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): MintEventFilter; - - "Swap(address,uint256,uint256,uint256,uint256,address)"( - sender?: PromiseOrValue | null, - amount0In?: null, - amount1In?: null, - amount0Out?: null, - amount1Out?: null, - to?: PromiseOrValue | null - ): SwapEventFilter; - Swap( - sender?: PromiseOrValue | null, - amount0In?: null, - amount1In?: null, - amount0Out?: null, - amount1Out?: null, - to?: PromiseOrValue | null - ): SwapEventFilter; - - "Sync(uint112,uint112)"(reserve0?: null, reserve1?: null): SyncEventFilter; - Sync(reserve0?: null, reserve1?: null): SyncEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - }; - - estimateGas: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise; - - initialize( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(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; - - price0CumulativeLast(overrides?: CallOverrides): Promise; - - price1CumulativeLast(overrides?: CallOverrides): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise; - - MINIMUM_LIQUIDITY(overrides?: CallOverrides): Promise; - - PERMIT_TYPEHASH(overrides?: CallOverrides): Promise; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - burn( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - factory(overrides?: CallOverrides): Promise; - - getReserves(overrides?: CallOverrides): Promise; - - initialize( - arg0: PromiseOrValue, - arg1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - kLast(overrides?: CallOverrides): Promise; - - mint( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(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; - - price0CumulativeLast( - overrides?: CallOverrides - ): Promise; - - price1CumulativeLast( - overrides?: CallOverrides - ): Promise; - - skim( - to: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - amount0Out: PromiseOrValue, - amount1Out: PromiseOrValue, - to: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - symbol(overrides?: CallOverrides): Promise; - - sync( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/index.ts b/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/index.ts deleted file mode 100644 index d0e021d7a..000000000 --- a/v1/typechain-types/@uniswap/v2-core/contracts/interfaces/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC20 } from "./IERC20"; -export type { IUniswapV2Callee } from "./IUniswapV2Callee"; -export type { IUniswapV2ERC20 } from "./IUniswapV2ERC20"; -export type { IUniswapV2Factory } from "./IUniswapV2Factory"; -export type { IUniswapV2Pair } from "./IUniswapV2Pair"; diff --git a/v1/typechain-types/@uniswap/v2-core/index.ts b/v1/typechain-types/@uniswap/v2-core/index.ts deleted file mode 100644 index a11e4ca29..000000000 --- a/v1/typechain-types/@uniswap/v2-core/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/v1/typechain-types/@uniswap/v2-periphery/contracts/UniswapV2Router02.ts b/v1/typechain-types/@uniswap/v2-periphery/contracts/UniswapV2Router02.ts deleted file mode 100644 index 21dc61881..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/contracts/UniswapV2Router02.ts +++ /dev/null @@ -1,1510 +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 UniswapV2Router02Interface extends utils.Interface { - functions: { - "WETH()": FunctionFragment; - "addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "addLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "factory()": FunctionFragment; - "getAmountIn(uint256,uint256,uint256)": FunctionFragment; - "getAmountOut(uint256,uint256,uint256)": FunctionFragment; - "getAmountsIn(uint256,address[])": FunctionFragment; - "getAmountsOut(uint256,address[])": FunctionFragment; - "quote(uint256,uint256,uint256)": FunctionFragment; - "removeLiquidity(address,address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHSupportingFeeOnTransferTokens(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHWithPermit(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityWithPermit(address,address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "swapETHForExactTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH" - | "addLiquidity" - | "addLiquidityETH" - | "factory" - | "getAmountIn" - | "getAmountOut" - | "getAmountsIn" - | "getAmountsOut" - | "quote" - | "removeLiquidity" - | "removeLiquidityETH" - | "removeLiquidityETHSupportingFeeOnTransferTokens" - | "removeLiquidityETHWithPermit" - | "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens" - | "removeLiquidityWithPermit" - | "swapETHForExactTokens" - | "swapExactETHForTokens" - | "swapExactETHForTokensSupportingFeeOnTransferTokens" - | "swapExactTokensForETH" - | "swapExactTokensForETHSupportingFeeOnTransferTokens" - | "swapExactTokensForTokens" - | "swapExactTokensForTokensSupportingFeeOnTransferTokens" - | "swapTokensForExactETH" - | "swapTokensForExactTokens" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "WETH", values?: undefined): string; - encodeFunctionData( - functionFragment: "addLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "addLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData( - functionFragment: "getAmountIn", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountOut", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountsIn", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "getAmountsOut", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "quote", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapETHForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokensSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETHSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "addLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "addLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getAmountIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountOut", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsOut", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "quote", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapETHForExactTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokensSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETHSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactTokens", - data: BytesLike - ): Result; - - events: {}; -} - -export interface UniswapV2Router02 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: UniswapV2Router02Interface; - - 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: { - WETH(overrides?: CallOverrides): Promise<[string]>; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountIn: BigNumber }>; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountOut: BigNumber }>; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountB: BigNumber }>; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountA: BigNumber; - amountB: BigNumber; - liquidity: BigNumber; - } - >; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountToken: BigNumber; - amountETH: BigNumber; - liquidity: BigNumber; - } - >; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-periphery/contracts/index.ts b/v1/typechain-types/@uniswap/v2-periphery/contracts/index.ts deleted file mode 100644 index 33335590e..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/contracts/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as interfaces from "./interfaces"; -export type { interfaces }; -export type { UniswapV2Router02 } from "./UniswapV2Router02"; diff --git a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IERC20.ts b/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IERC20.ts deleted file mode 100644 index ad04197df..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IERC20.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 IERC20Interface 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 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, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: 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, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: 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, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - decimals(overrides?: CallOverrides): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.ts b/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.ts deleted file mode 100644 index 13dc023a9..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.ts +++ /dev/null @@ -1,1175 +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 IUniswapV2Router01Interface extends utils.Interface { - functions: { - "WETH()": FunctionFragment; - "addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "addLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "factory()": FunctionFragment; - "getAmountIn(uint256,uint256,uint256)": FunctionFragment; - "getAmountOut(uint256,uint256,uint256)": FunctionFragment; - "getAmountsIn(uint256,address[])": FunctionFragment; - "getAmountsOut(uint256,address[])": FunctionFragment; - "quote(uint256,uint256,uint256)": FunctionFragment; - "removeLiquidity(address,address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHWithPermit(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityWithPermit(address,address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "swapETHForExactTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH" - | "addLiquidity" - | "addLiquidityETH" - | "factory" - | "getAmountIn" - | "getAmountOut" - | "getAmountsIn" - | "getAmountsOut" - | "quote" - | "removeLiquidity" - | "removeLiquidityETH" - | "removeLiquidityETHWithPermit" - | "removeLiquidityWithPermit" - | "swapETHForExactTokens" - | "swapExactETHForTokens" - | "swapExactTokensForETH" - | "swapExactTokensForTokens" - | "swapTokensForExactETH" - | "swapTokensForExactTokens" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "WETH", values?: undefined): string; - encodeFunctionData( - functionFragment: "addLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "addLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData( - functionFragment: "getAmountIn", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountOut", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountsIn", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "getAmountsOut", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "quote", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapETHForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "addLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "addLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getAmountIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountOut", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsOut", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "quote", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapETHForExactTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactTokens", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV2Router01 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2Router01Interface; - - 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: { - WETH(overrides?: CallOverrides): Promise<[string]>; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountIn: BigNumber }>; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountOut: BigNumber }>; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountB: BigNumber }>; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountA: BigNumber; - amountB: BigNumber; - liquidity: BigNumber; - } - >; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountToken: BigNumber; - amountETH: BigNumber; - liquidity: BigNumber; - } - >; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.ts b/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.ts deleted file mode 100644 index 99e84f85d..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.ts +++ /dev/null @@ -1,1510 +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 IUniswapV2Router02Interface extends utils.Interface { - functions: { - "WETH()": FunctionFragment; - "addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "addLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "factory()": FunctionFragment; - "getAmountIn(uint256,uint256,uint256)": FunctionFragment; - "getAmountOut(uint256,uint256,uint256)": FunctionFragment; - "getAmountsIn(uint256,address[])": FunctionFragment; - "getAmountsOut(uint256,address[])": FunctionFragment; - "quote(uint256,uint256,uint256)": FunctionFragment; - "removeLiquidity(address,address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHSupportingFeeOnTransferTokens(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHWithPermit(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityWithPermit(address,address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "swapETHForExactTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH" - | "addLiquidity" - | "addLiquidityETH" - | "factory" - | "getAmountIn" - | "getAmountOut" - | "getAmountsIn" - | "getAmountsOut" - | "quote" - | "removeLiquidity" - | "removeLiquidityETH" - | "removeLiquidityETHSupportingFeeOnTransferTokens" - | "removeLiquidityETHWithPermit" - | "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens" - | "removeLiquidityWithPermit" - | "swapETHForExactTokens" - | "swapExactETHForTokens" - | "swapExactETHForTokensSupportingFeeOnTransferTokens" - | "swapExactTokensForETH" - | "swapExactTokensForETHSupportingFeeOnTransferTokens" - | "swapExactTokensForTokens" - | "swapExactTokensForTokensSupportingFeeOnTransferTokens" - | "swapTokensForExactETH" - | "swapTokensForExactTokens" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "WETH", values?: undefined): string; - encodeFunctionData( - functionFragment: "addLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "addLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData( - functionFragment: "getAmountIn", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountOut", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountsIn", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "getAmountsOut", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "quote", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapETHForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokensSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETHSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "addLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "addLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getAmountIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountOut", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsOut", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "quote", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapETHForExactTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokensSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETHSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactTokens", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV2Router02 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2Router02Interface; - - 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: { - WETH(overrides?: CallOverrides): Promise<[string]>; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountIn: BigNumber }>; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountOut: BigNumber }>; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountB: BigNumber }>; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountA: BigNumber; - amountB: BigNumber; - liquidity: BigNumber; - } - >; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountToken: BigNumber; - amountETH: BigNumber; - liquidity: BigNumber; - } - >; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IWETH.ts b/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IWETH.ts deleted file mode 100644 index 14df64117..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/IWETH.ts +++ /dev/null @@ -1,163 +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: { - "deposit()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "withdraw(uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "deposit" | "transfer" | "withdraw" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "deposit", values?: undefined): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "transfer", 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: { - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - deposit(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - arg0: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/index.ts b/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/index.ts deleted file mode 100644 index d7c00510e..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/contracts/interfaces/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IERC20 } from "./IERC20"; -export type { IUniswapV2Router01 } from "./IUniswapV2Router01"; -export type { IUniswapV2Router02 } from "./IUniswapV2Router02"; -export type { IWETH } from "./IWETH"; diff --git a/v1/typechain-types/@uniswap/v2-periphery/index.ts b/v1/typechain-types/@uniswap/v2-periphery/index.ts deleted file mode 100644 index a11e4ca29..000000000 --- a/v1/typechain-types/@uniswap/v2-periphery/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/v1/typechain-types/@uniswap/v3-core/contracts/index.ts b/v1/typechain-types/@uniswap/v3-core/contracts/index.ts deleted file mode 100644 index 92159233f..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as interfaces from "./interfaces"; -export type { interfaces }; diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.ts deleted file mode 100644 index ca8f8c17d..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.ts +++ /dev/null @@ -1,369 +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 IUniswapV3FactoryInterface extends utils.Interface { - functions: { - "createPool(address,address,uint24)": FunctionFragment; - "enableFeeAmount(uint24,int24)": FunctionFragment; - "feeAmountTickSpacing(uint24)": FunctionFragment; - "getPool(address,address,uint24)": FunctionFragment; - "owner()": FunctionFragment; - "setOwner(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "createPool" - | "enableFeeAmount" - | "feeAmountTickSpacing" - | "getPool" - | "owner" - | "setOwner" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "createPool", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "enableFeeAmount", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "feeAmountTickSpacing", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getPool", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "setOwner", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "createPool", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "enableFeeAmount", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "feeAmountTickSpacing", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "getPool", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result; - - events: { - "FeeAmountEnabled(uint24,int24)": EventFragment; - "OwnerChanged(address,address)": EventFragment; - "PoolCreated(address,address,uint24,int24,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "FeeAmountEnabled"): EventFragment; - getEvent(nameOrSignatureOrTopic: "OwnerChanged"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PoolCreated"): EventFragment; -} - -export interface FeeAmountEnabledEventObject { - fee: number; - tickSpacing: number; -} -export type FeeAmountEnabledEvent = TypedEvent< - [number, number], - FeeAmountEnabledEventObject ->; - -export type FeeAmountEnabledEventFilter = - TypedEventFilter; - -export interface OwnerChangedEventObject { - oldOwner: string; - newOwner: string; -} -export type OwnerChangedEvent = TypedEvent< - [string, string], - OwnerChangedEventObject ->; - -export type OwnerChangedEventFilter = TypedEventFilter; - -export interface PoolCreatedEventObject { - token0: string; - token1: string; - fee: number; - tickSpacing: number; - pool: string; -} -export type PoolCreatedEvent = TypedEvent< - [string, string, number, number, string], - PoolCreatedEventObject ->; - -export type PoolCreatedEventFilter = TypedEventFilter; - -export interface IUniswapV3Factory extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3FactoryInterface; - - 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: { - createPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableFeeAmount( - fee: PromiseOrValue, - tickSpacing: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeAmountTickSpacing( - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[number]>; - - getPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { pool: string }>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - createPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableFeeAmount( - fee: PromiseOrValue, - tickSpacing: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeAmountTickSpacing( - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - createPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - enableFeeAmount( - fee: PromiseOrValue, - tickSpacing: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - feeAmountTickSpacing( - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "FeeAmountEnabled(uint24,int24)"( - fee?: PromiseOrValue | null, - tickSpacing?: PromiseOrValue | null - ): FeeAmountEnabledEventFilter; - FeeAmountEnabled( - fee?: PromiseOrValue | null, - tickSpacing?: PromiseOrValue | null - ): FeeAmountEnabledEventFilter; - - "OwnerChanged(address,address)"( - oldOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnerChangedEventFilter; - OwnerChanged( - oldOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnerChangedEventFilter; - - "PoolCreated(address,address,uint24,int24,address)"( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - fee?: PromiseOrValue | null, - tickSpacing?: null, - pool?: null - ): PoolCreatedEventFilter; - PoolCreated( - token0?: PromiseOrValue | null, - token1?: PromiseOrValue | null, - fee?: PromiseOrValue | null, - tickSpacing?: null, - pool?: null - ): PoolCreatedEventFilter; - }; - - estimateGas: { - createPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableFeeAmount( - fee: PromiseOrValue, - tickSpacing: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeAmountTickSpacing( - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - createPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - enableFeeAmount( - fee: PromiseOrValue, - tickSpacing: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - feeAmountTickSpacing( - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getPool( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - fee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - setOwner( - _owner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.ts deleted file mode 100644 index c2e8107e8..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.ts +++ /dev/null @@ -1,1371 +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 IUniswapV3PoolInterface extends utils.Interface { - functions: { - "burn(int24,int24,uint128)": FunctionFragment; - "collect(address,int24,int24,uint128,uint128)": FunctionFragment; - "collectProtocol(address,uint128,uint128)": FunctionFragment; - "factory()": FunctionFragment; - "fee()": FunctionFragment; - "feeGrowthGlobal0X128()": FunctionFragment; - "feeGrowthGlobal1X128()": FunctionFragment; - "flash(address,uint256,uint256,bytes)": FunctionFragment; - "increaseObservationCardinalityNext(uint16)": FunctionFragment; - "initialize(uint160)": FunctionFragment; - "liquidity()": FunctionFragment; - "maxLiquidityPerTick()": FunctionFragment; - "mint(address,int24,int24,uint128,bytes)": FunctionFragment; - "observations(uint256)": FunctionFragment; - "observe(uint32[])": FunctionFragment; - "positions(bytes32)": FunctionFragment; - "protocolFees()": FunctionFragment; - "setFeeProtocol(uint8,uint8)": FunctionFragment; - "slot0()": FunctionFragment; - "snapshotCumulativesInside(int24,int24)": FunctionFragment; - "swap(address,bool,int256,uint160,bytes)": FunctionFragment; - "tickBitmap(int16)": FunctionFragment; - "tickSpacing()": FunctionFragment; - "ticks(int24)": FunctionFragment; - "token0()": FunctionFragment; - "token1()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "burn" - | "collect" - | "collectProtocol" - | "factory" - | "fee" - | "feeGrowthGlobal0X128" - | "feeGrowthGlobal1X128" - | "flash" - | "increaseObservationCardinalityNext" - | "initialize" - | "liquidity" - | "maxLiquidityPerTick" - | "mint" - | "observations" - | "observe" - | "positions" - | "protocolFees" - | "setFeeProtocol" - | "slot0" - | "snapshotCumulativesInside" - | "swap" - | "tickBitmap" - | "tickSpacing" - | "ticks" - | "token0" - | "token1" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "burn", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "collect", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "collectProtocol", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData(functionFragment: "fee", values?: undefined): string; - encodeFunctionData( - functionFragment: "feeGrowthGlobal0X128", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "feeGrowthGlobal1X128", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "flash", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "increaseObservationCardinalityNext", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "liquidity", values?: undefined): string; - encodeFunctionData( - functionFragment: "maxLiquidityPerTick", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "observations", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "observe", - values: [PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "positions", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "protocolFees", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "setFeeProtocol", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "slot0", values?: undefined): string; - encodeFunctionData( - functionFragment: "snapshotCumulativesInside", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "swap", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "tickBitmap", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "tickSpacing", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "ticks", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "token0", values?: undefined): string; - encodeFunctionData(functionFragment: "token1", values?: undefined): string; - - decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "collect", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "collectProtocol", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "fee", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "feeGrowthGlobal0X128", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "feeGrowthGlobal1X128", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "flash", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "increaseObservationCardinalityNext", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "liquidity", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "maxLiquidityPerTick", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "observations", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "observe", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "positions", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "protocolFees", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setFeeProtocol", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "slot0", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "snapshotCumulativesInside", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "tickBitmap", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "tickSpacing", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "ticks", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "token1", data: BytesLike): Result; - - events: { - "Burn(address,int24,int24,uint128,uint256,uint256)": EventFragment; - "Collect(address,address,int24,int24,uint128,uint128)": EventFragment; - "CollectProtocol(address,address,uint128,uint128)": EventFragment; - "Flash(address,address,uint256,uint256,uint256,uint256)": EventFragment; - "IncreaseObservationCardinalityNext(uint16,uint16)": EventFragment; - "Initialize(uint160,int24)": EventFragment; - "Mint(address,address,int24,int24,uint128,uint256,uint256)": EventFragment; - "SetFeeProtocol(uint8,uint8,uint8,uint8)": EventFragment; - "Swap(address,address,int256,int256,uint160,uint128,int24)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Burn"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Collect"): EventFragment; - getEvent(nameOrSignatureOrTopic: "CollectProtocol"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Flash"): EventFragment; - getEvent( - nameOrSignatureOrTopic: "IncreaseObservationCardinalityNext" - ): EventFragment; - getEvent(nameOrSignatureOrTopic: "Initialize"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Mint"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetFeeProtocol"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Swap"): EventFragment; -} - -export interface BurnEventObject { - owner: string; - tickLower: number; - tickUpper: number; - amount: BigNumber; - amount0: BigNumber; - amount1: BigNumber; -} -export type BurnEvent = TypedEvent< - [string, number, number, BigNumber, BigNumber, BigNumber], - BurnEventObject ->; - -export type BurnEventFilter = TypedEventFilter; - -export interface CollectEventObject { - owner: string; - recipient: string; - tickLower: number; - tickUpper: number; - amount0: BigNumber; - amount1: BigNumber; -} -export type CollectEvent = TypedEvent< - [string, string, number, number, BigNumber, BigNumber], - CollectEventObject ->; - -export type CollectEventFilter = TypedEventFilter; - -export interface CollectProtocolEventObject { - sender: string; - recipient: string; - amount0: BigNumber; - amount1: BigNumber; -} -export type CollectProtocolEvent = TypedEvent< - [string, string, BigNumber, BigNumber], - CollectProtocolEventObject ->; - -export type CollectProtocolEventFilter = TypedEventFilter; - -export interface FlashEventObject { - sender: string; - recipient: string; - amount0: BigNumber; - amount1: BigNumber; - paid0: BigNumber; - paid1: BigNumber; -} -export type FlashEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber, BigNumber], - FlashEventObject ->; - -export type FlashEventFilter = TypedEventFilter; - -export interface IncreaseObservationCardinalityNextEventObject { - observationCardinalityNextOld: number; - observationCardinalityNextNew: number; -} -export type IncreaseObservationCardinalityNextEvent = TypedEvent< - [number, number], - IncreaseObservationCardinalityNextEventObject ->; - -export type IncreaseObservationCardinalityNextEventFilter = - TypedEventFilter; - -export interface InitializeEventObject { - sqrtPriceX96: BigNumber; - tick: number; -} -export type InitializeEvent = TypedEvent< - [BigNumber, number], - InitializeEventObject ->; - -export type InitializeEventFilter = TypedEventFilter; - -export interface MintEventObject { - sender: string; - owner: string; - tickLower: number; - tickUpper: number; - amount: BigNumber; - amount0: BigNumber; - amount1: BigNumber; -} -export type MintEvent = TypedEvent< - [string, string, number, number, BigNumber, BigNumber, BigNumber], - MintEventObject ->; - -export type MintEventFilter = TypedEventFilter; - -export interface SetFeeProtocolEventObject { - feeProtocol0Old: number; - feeProtocol1Old: number; - feeProtocol0New: number; - feeProtocol1New: number; -} -export type SetFeeProtocolEvent = TypedEvent< - [number, number, number, number], - SetFeeProtocolEventObject ->; - -export type SetFeeProtocolEventFilter = TypedEventFilter; - -export interface SwapEventObject { - sender: string; - recipient: string; - amount0: BigNumber; - amount1: BigNumber; - sqrtPriceX96: BigNumber; - liquidity: BigNumber; - tick: number; -} -export type SwapEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber, BigNumber, number], - SwapEventObject ->; - -export type SwapEventFilter = TypedEventFilter; - -export interface IUniswapV3Pool extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3PoolInterface; - - 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: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise<[string]>; - - fee(overrides?: CallOverrides): Promise<[number]>; - - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise<[BigNumber]>; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise<[BigNumber]>; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - liquidity(overrides?: CallOverrides): Promise<[BigNumber]>; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise<[BigNumber]>; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, BigNumber, BigNumber, boolean] & { - blockTimestamp: number; - tickCumulative: BigNumber; - secondsPerLiquidityCumulativeX128: BigNumber; - initialized: boolean; - } - >; - - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise< - [BigNumber[], BigNumber[]] & { - tickCumulatives: BigNumber[]; - secondsPerLiquidityCumulativeX128s: BigNumber[]; - } - >; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - _liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - - protocolFees( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { token0: BigNumber; token1: BigNumber } - >; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - slot0( - overrides?: CallOverrides - ): Promise< - [BigNumber, number, number, number, number, number, boolean] & { - sqrtPriceX96: BigNumber; - tick: number; - observationIndex: number; - observationCardinality: number; - observationCardinalityNext: number; - feeProtocol: number; - unlocked: boolean; - } - >; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - tickCumulativeInside: BigNumber; - secondsPerLiquidityInsideX128: BigNumber; - secondsInside: number; - } - >; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - tickSpacing(overrides?: CallOverrides): Promise<[number]>; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - boolean - ] & { - liquidityGross: BigNumber; - liquidityNet: BigNumber; - feeGrowthOutside0X128: BigNumber; - feeGrowthOutside1X128: BigNumber; - tickCumulativeOutside: BigNumber; - secondsPerLiquidityOutsideX128: BigNumber; - secondsOutside: number; - initialized: boolean; - } - >; - - token0(overrides?: CallOverrides): Promise<[string]>; - - token1(overrides?: CallOverrides): Promise<[string]>; - }; - - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, BigNumber, BigNumber, boolean] & { - blockTimestamp: number; - tickCumulative: BigNumber; - secondsPerLiquidityCumulativeX128: BigNumber; - initialized: boolean; - } - >; - - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise< - [BigNumber[], BigNumber[]] & { - tickCumulatives: BigNumber[]; - secondsPerLiquidityCumulativeX128s: BigNumber[]; - } - >; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - _liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - - protocolFees( - overrides?: CallOverrides - ): Promise<[BigNumber, BigNumber] & { token0: BigNumber; token1: BigNumber }>; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - slot0( - overrides?: CallOverrides - ): Promise< - [BigNumber, number, number, number, number, number, boolean] & { - sqrtPriceX96: BigNumber; - tick: number; - observationIndex: number; - observationCardinality: number; - observationCardinalityNext: number; - feeProtocol: number; - unlocked: boolean; - } - >; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - tickCumulativeInside: BigNumber; - secondsPerLiquidityInsideX128: BigNumber; - secondsInside: number; - } - >; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - boolean - ] & { - liquidityGross: BigNumber; - liquidityNet: BigNumber; - feeGrowthOutside0X128: BigNumber; - feeGrowthOutside1X128: BigNumber; - tickCumulativeOutside: BigNumber; - secondsPerLiquidityOutsideX128: BigNumber; - secondsOutside: number; - initialized: boolean; - } - >; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - callStatic: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, BigNumber, BigNumber, boolean] & { - blockTimestamp: number; - tickCumulative: BigNumber; - secondsPerLiquidityCumulativeX128: BigNumber; - initialized: boolean; - } - >; - - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise< - [BigNumber[], BigNumber[]] & { - tickCumulatives: BigNumber[]; - secondsPerLiquidityCumulativeX128s: BigNumber[]; - } - >; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - _liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - - protocolFees( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { token0: BigNumber; token1: BigNumber } - >; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - slot0( - overrides?: CallOverrides - ): Promise< - [BigNumber, number, number, number, number, number, boolean] & { - sqrtPriceX96: BigNumber; - tick: number; - observationIndex: number; - observationCardinality: number; - observationCardinalityNext: number; - feeProtocol: number; - unlocked: boolean; - } - >; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - tickCumulativeInside: BigNumber; - secondsPerLiquidityInsideX128: BigNumber; - secondsInside: number; - } - >; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - boolean - ] & { - liquidityGross: BigNumber; - liquidityNet: BigNumber; - feeGrowthOutside0X128: BigNumber; - feeGrowthOutside1X128: BigNumber; - tickCumulativeOutside: BigNumber; - secondsPerLiquidityOutsideX128: BigNumber; - secondsOutside: number; - initialized: boolean; - } - >; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - }; - - filters: { - "Burn(address,int24,int24,uint128,uint256,uint256)"( - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): BurnEventFilter; - Burn( - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): BurnEventFilter; - - "Collect(address,address,int24,int24,uint128,uint128)"( - owner?: PromiseOrValue | null, - recipient?: null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectEventFilter; - Collect( - owner?: PromiseOrValue | null, - recipient?: null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectEventFilter; - - "CollectProtocol(address,address,uint128,uint128)"( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectProtocolEventFilter; - CollectProtocol( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectProtocolEventFilter; - - "Flash(address,address,uint256,uint256,uint256,uint256)"( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - paid0?: null, - paid1?: null - ): FlashEventFilter; - Flash( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - paid0?: null, - paid1?: null - ): FlashEventFilter; - - "IncreaseObservationCardinalityNext(uint16,uint16)"( - observationCardinalityNextOld?: null, - observationCardinalityNextNew?: null - ): IncreaseObservationCardinalityNextEventFilter; - IncreaseObservationCardinalityNext( - observationCardinalityNextOld?: null, - observationCardinalityNextNew?: null - ): IncreaseObservationCardinalityNextEventFilter; - - "Initialize(uint160,int24)"( - sqrtPriceX96?: null, - tick?: null - ): InitializeEventFilter; - Initialize(sqrtPriceX96?: null, tick?: null): InitializeEventFilter; - - "Mint(address,address,int24,int24,uint128,uint256,uint256)"( - sender?: null, - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): MintEventFilter; - Mint( - sender?: null, - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): MintEventFilter; - - "SetFeeProtocol(uint8,uint8,uint8,uint8)"( - feeProtocol0Old?: null, - feeProtocol1Old?: null, - feeProtocol0New?: null, - feeProtocol1New?: null - ): SetFeeProtocolEventFilter; - SetFeeProtocol( - feeProtocol0Old?: null, - feeProtocol1Old?: null, - feeProtocol0New?: null, - feeProtocol1New?: null - ): SetFeeProtocolEventFilter; - - "Swap(address,address,int256,int256,uint160,uint128,int24)"( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - sqrtPriceX96?: null, - liquidity?: null, - tick?: null - ): SwapEventFilter; - Swap( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - sqrtPriceX96?: null, - liquidity?: null, - tick?: null - ): SwapEventFilter; - }; - - estimateGas: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - protocolFees(overrides?: CallOverrides): Promise; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - slot0(overrides?: CallOverrides): Promise; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - feeGrowthGlobal0X128( - overrides?: CallOverrides - ): Promise; - - feeGrowthGlobal1X128( - overrides?: CallOverrides - ): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick( - overrides?: CallOverrides - ): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - protocolFees(overrides?: CallOverrides): Promise; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - slot0(overrides?: CallOverrides): Promise; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.ts deleted file mode 100644 index 3d98d31ac..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.ts +++ /dev/null @@ -1,122 +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 IUniswapV3SwapCallbackInterface extends utils.Interface { - functions: { - "uniswapV3SwapCallback(int256,int256,bytes)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "uniswapV3SwapCallback" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "uniswapV3SwapCallback", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "uniswapV3SwapCallback", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV3SwapCallback extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3SwapCallbackInterface; - - 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: { - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/index.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/index.ts deleted file mode 100644 index c552691c4..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/callback/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IUniswapV3SwapCallback } from "./IUniswapV3SwapCallback"; diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/index.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/index.ts deleted file mode 100644 index fc5354caa..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as callback from "./callback"; -export type { callback }; -import type * as pool from "./pool"; -export type { pool }; -export type { IUniswapV3Factory } from "./IUniswapV3Factory"; -export type { IUniswapV3Pool } from "./IUniswapV3Pool"; diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.ts deleted file mode 100644 index 766a57b85..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.ts +++ /dev/null @@ -1,421 +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 IUniswapV3PoolActionsInterface extends utils.Interface { - functions: { - "burn(int24,int24,uint128)": FunctionFragment; - "collect(address,int24,int24,uint128,uint128)": FunctionFragment; - "flash(address,uint256,uint256,bytes)": FunctionFragment; - "increaseObservationCardinalityNext(uint16)": FunctionFragment; - "initialize(uint160)": FunctionFragment; - "mint(address,int24,int24,uint128,bytes)": FunctionFragment; - "swap(address,bool,int256,uint160,bytes)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "burn" - | "collect" - | "flash" - | "increaseObservationCardinalityNext" - | "initialize" - | "mint" - | "swap" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "burn", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "collect", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "flash", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "increaseObservationCardinalityNext", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "initialize", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swap", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "collect", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "flash", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "increaseObservationCardinalityNext", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "swap", data: BytesLike): Result; - - events: {}; -} - -export interface IUniswapV3PoolActions extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3PoolActionsInterface; - - 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: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - }; - - filters: {}; - - estimateGas: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - burn( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - collect( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - flash( - recipient: PromiseOrValue, - amount0: PromiseOrValue, - amount1: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseObservationCardinalityNext( - observationCardinalityNext: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - initialize( - sqrtPriceX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - recipient: PromiseOrValue, - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - amount: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swap( - recipient: PromiseOrValue, - zeroForOne: PromiseOrValue, - amountSpecified: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.ts deleted file mode 100644 index 654cea43f..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.ts +++ /dev/null @@ -1,175 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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 IUniswapV3PoolDerivedStateInterface extends utils.Interface { - functions: { - "observe(uint32[])": FunctionFragment; - "snapshotCumulativesInside(int24,int24)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "observe" | "snapshotCumulativesInside" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "observe", - values: [PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "snapshotCumulativesInside", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "observe", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "snapshotCumulativesInside", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV3PoolDerivedState extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3PoolDerivedStateInterface; - - 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: { - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise< - [BigNumber[], BigNumber[]] & { - tickCumulatives: BigNumber[]; - secondsPerLiquidityCumulativeX128s: BigNumber[]; - } - >; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - tickCumulativeInside: BigNumber; - secondsPerLiquidityInsideX128: BigNumber; - secondsInside: number; - } - >; - }; - - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise< - [BigNumber[], BigNumber[]] & { - tickCumulatives: BigNumber[]; - secondsPerLiquidityCumulativeX128s: BigNumber[]; - } - >; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - tickCumulativeInside: BigNumber; - secondsPerLiquidityInsideX128: BigNumber; - secondsInside: number; - } - >; - - callStatic: { - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise< - [BigNumber[], BigNumber[]] & { - tickCumulatives: BigNumber[]; - secondsPerLiquidityCumulativeX128s: BigNumber[]; - } - >; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, number] & { - tickCumulativeInside: BigNumber; - secondsPerLiquidityInsideX128: BigNumber; - secondsInside: number; - } - >; - }; - - filters: {}; - - estimateGas: { - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - observe( - secondsAgos: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - snapshotCumulativesInside( - tickLower: PromiseOrValue, - tickUpper: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.ts deleted file mode 100644 index 65eff863e..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.ts +++ /dev/null @@ -1,340 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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 IUniswapV3PoolEventsInterface extends utils.Interface { - functions: {}; - - events: { - "Burn(address,int24,int24,uint128,uint256,uint256)": EventFragment; - "Collect(address,address,int24,int24,uint128,uint128)": EventFragment; - "CollectProtocol(address,address,uint128,uint128)": EventFragment; - "Flash(address,address,uint256,uint256,uint256,uint256)": EventFragment; - "IncreaseObservationCardinalityNext(uint16,uint16)": EventFragment; - "Initialize(uint160,int24)": EventFragment; - "Mint(address,address,int24,int24,uint128,uint256,uint256)": EventFragment; - "SetFeeProtocol(uint8,uint8,uint8,uint8)": EventFragment; - "Swap(address,address,int256,int256,uint160,uint128,int24)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Burn"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Collect"): EventFragment; - getEvent(nameOrSignatureOrTopic: "CollectProtocol"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Flash"): EventFragment; - getEvent( - nameOrSignatureOrTopic: "IncreaseObservationCardinalityNext" - ): EventFragment; - getEvent(nameOrSignatureOrTopic: "Initialize"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Mint"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetFeeProtocol"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Swap"): EventFragment; -} - -export interface BurnEventObject { - owner: string; - tickLower: number; - tickUpper: number; - amount: BigNumber; - amount0: BigNumber; - amount1: BigNumber; -} -export type BurnEvent = TypedEvent< - [string, number, number, BigNumber, BigNumber, BigNumber], - BurnEventObject ->; - -export type BurnEventFilter = TypedEventFilter; - -export interface CollectEventObject { - owner: string; - recipient: string; - tickLower: number; - tickUpper: number; - amount0: BigNumber; - amount1: BigNumber; -} -export type CollectEvent = TypedEvent< - [string, string, number, number, BigNumber, BigNumber], - CollectEventObject ->; - -export type CollectEventFilter = TypedEventFilter; - -export interface CollectProtocolEventObject { - sender: string; - recipient: string; - amount0: BigNumber; - amount1: BigNumber; -} -export type CollectProtocolEvent = TypedEvent< - [string, string, BigNumber, BigNumber], - CollectProtocolEventObject ->; - -export type CollectProtocolEventFilter = TypedEventFilter; - -export interface FlashEventObject { - sender: string; - recipient: string; - amount0: BigNumber; - amount1: BigNumber; - paid0: BigNumber; - paid1: BigNumber; -} -export type FlashEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber, BigNumber], - FlashEventObject ->; - -export type FlashEventFilter = TypedEventFilter; - -export interface IncreaseObservationCardinalityNextEventObject { - observationCardinalityNextOld: number; - observationCardinalityNextNew: number; -} -export type IncreaseObservationCardinalityNextEvent = TypedEvent< - [number, number], - IncreaseObservationCardinalityNextEventObject ->; - -export type IncreaseObservationCardinalityNextEventFilter = - TypedEventFilter; - -export interface InitializeEventObject { - sqrtPriceX96: BigNumber; - tick: number; -} -export type InitializeEvent = TypedEvent< - [BigNumber, number], - InitializeEventObject ->; - -export type InitializeEventFilter = TypedEventFilter; - -export interface MintEventObject { - sender: string; - owner: string; - tickLower: number; - tickUpper: number; - amount: BigNumber; - amount0: BigNumber; - amount1: BigNumber; -} -export type MintEvent = TypedEvent< - [string, string, number, number, BigNumber, BigNumber, BigNumber], - MintEventObject ->; - -export type MintEventFilter = TypedEventFilter; - -export interface SetFeeProtocolEventObject { - feeProtocol0Old: number; - feeProtocol1Old: number; - feeProtocol0New: number; - feeProtocol1New: number; -} -export type SetFeeProtocolEvent = TypedEvent< - [number, number, number, number], - SetFeeProtocolEventObject ->; - -export type SetFeeProtocolEventFilter = TypedEventFilter; - -export interface SwapEventObject { - sender: string; - recipient: string; - amount0: BigNumber; - amount1: BigNumber; - sqrtPriceX96: BigNumber; - liquidity: BigNumber; - tick: number; -} -export type SwapEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber, BigNumber, number], - SwapEventObject ->; - -export type SwapEventFilter = TypedEventFilter; - -export interface IUniswapV3PoolEvents extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3PoolEventsInterface; - - 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: { - "Burn(address,int24,int24,uint128,uint256,uint256)"( - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): BurnEventFilter; - Burn( - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): BurnEventFilter; - - "Collect(address,address,int24,int24,uint128,uint128)"( - owner?: PromiseOrValue | null, - recipient?: null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectEventFilter; - Collect( - owner?: PromiseOrValue | null, - recipient?: null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectEventFilter; - - "CollectProtocol(address,address,uint128,uint128)"( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectProtocolEventFilter; - CollectProtocol( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null - ): CollectProtocolEventFilter; - - "Flash(address,address,uint256,uint256,uint256,uint256)"( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - paid0?: null, - paid1?: null - ): FlashEventFilter; - Flash( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - paid0?: null, - paid1?: null - ): FlashEventFilter; - - "IncreaseObservationCardinalityNext(uint16,uint16)"( - observationCardinalityNextOld?: null, - observationCardinalityNextNew?: null - ): IncreaseObservationCardinalityNextEventFilter; - IncreaseObservationCardinalityNext( - observationCardinalityNextOld?: null, - observationCardinalityNextNew?: null - ): IncreaseObservationCardinalityNextEventFilter; - - "Initialize(uint160,int24)"( - sqrtPriceX96?: null, - tick?: null - ): InitializeEventFilter; - Initialize(sqrtPriceX96?: null, tick?: null): InitializeEventFilter; - - "Mint(address,address,int24,int24,uint128,uint256,uint256)"( - sender?: null, - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): MintEventFilter; - Mint( - sender?: null, - owner?: PromiseOrValue | null, - tickLower?: PromiseOrValue | null, - tickUpper?: PromiseOrValue | null, - amount?: null, - amount0?: null, - amount1?: null - ): MintEventFilter; - - "SetFeeProtocol(uint8,uint8,uint8,uint8)"( - feeProtocol0Old?: null, - feeProtocol1Old?: null, - feeProtocol0New?: null, - feeProtocol1New?: null - ): SetFeeProtocolEventFilter; - SetFeeProtocol( - feeProtocol0Old?: null, - feeProtocol1Old?: null, - feeProtocol0New?: null, - feeProtocol1New?: null - ): SetFeeProtocolEventFilter; - - "Swap(address,address,int256,int256,uint160,uint128,int24)"( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - sqrtPriceX96?: null, - liquidity?: null, - tick?: null - ): SwapEventFilter; - Swap( - sender?: PromiseOrValue | null, - recipient?: PromiseOrValue | null, - amount0?: null, - amount1?: null, - sqrtPriceX96?: null, - liquidity?: null, - tick?: null - ): SwapEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.ts deleted file mode 100644 index 828e2a514..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.ts +++ /dev/null @@ -1,169 +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 IUniswapV3PoolImmutablesInterface extends utils.Interface { - functions: { - "factory()": FunctionFragment; - "fee()": FunctionFragment; - "maxLiquidityPerTick()": FunctionFragment; - "tickSpacing()": FunctionFragment; - "token0()": FunctionFragment; - "token1()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "factory" - | "fee" - | "maxLiquidityPerTick" - | "tickSpacing" - | "token0" - | "token1" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData(functionFragment: "fee", values?: undefined): string; - encodeFunctionData( - functionFragment: "maxLiquidityPerTick", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tickSpacing", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "token0", values?: undefined): string; - encodeFunctionData(functionFragment: "token1", values?: undefined): string; - - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "fee", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "maxLiquidityPerTick", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "tickSpacing", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "token0", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "token1", data: BytesLike): Result; - - events: {}; -} - -export interface IUniswapV3PoolImmutables extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3PoolImmutablesInterface; - - 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: { - factory(overrides?: CallOverrides): Promise<[string]>; - - fee(overrides?: CallOverrides): Promise<[number]>; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise<[BigNumber]>; - - tickSpacing(overrides?: CallOverrides): Promise<[number]>; - - token0(overrides?: CallOverrides): Promise<[string]>; - - token1(overrides?: CallOverrides): Promise<[string]>; - }; - - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - - callStatic: { - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick(overrides?: CallOverrides): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - factory(overrides?: CallOverrides): Promise; - - fee(overrides?: CallOverrides): Promise; - - maxLiquidityPerTick( - overrides?: CallOverrides - ): Promise; - - tickSpacing(overrides?: CallOverrides): Promise; - - token0(overrides?: CallOverrides): Promise; - - token1(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.ts deleted file mode 100644 index 3e96185e4..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.ts +++ /dev/null @@ -1,163 +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 IUniswapV3PoolOwnerActionsInterface extends utils.Interface { - functions: { - "collectProtocol(address,uint128,uint128)": FunctionFragment; - "setFeeProtocol(uint8,uint8)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "collectProtocol" | "setFeeProtocol" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "collectProtocol", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "setFeeProtocol", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "collectProtocol", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setFeeProtocol", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV3PoolOwnerActions extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3PoolOwnerActionsInterface; - - 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: { - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - collectProtocol( - recipient: PromiseOrValue, - amount0Requested: PromiseOrValue, - amount1Requested: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setFeeProtocol( - feeProtocol0: PromiseOrValue, - feeProtocol1: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.ts deleted file mode 100644 index 9796869c9..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.ts +++ /dev/null @@ -1,446 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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 IUniswapV3PoolStateInterface extends utils.Interface { - functions: { - "feeGrowthGlobal0X128()": FunctionFragment; - "feeGrowthGlobal1X128()": FunctionFragment; - "liquidity()": FunctionFragment; - "observations(uint256)": FunctionFragment; - "positions(bytes32)": FunctionFragment; - "protocolFees()": FunctionFragment; - "slot0()": FunctionFragment; - "tickBitmap(int16)": FunctionFragment; - "ticks(int24)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "feeGrowthGlobal0X128" - | "feeGrowthGlobal1X128" - | "liquidity" - | "observations" - | "positions" - | "protocolFees" - | "slot0" - | "tickBitmap" - | "ticks" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "feeGrowthGlobal0X128", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "feeGrowthGlobal1X128", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "liquidity", values?: undefined): string; - encodeFunctionData( - functionFragment: "observations", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "positions", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "protocolFees", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "slot0", values?: undefined): string; - encodeFunctionData( - functionFragment: "tickBitmap", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "ticks", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "feeGrowthGlobal0X128", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "feeGrowthGlobal1X128", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "liquidity", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "observations", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "positions", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "protocolFees", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "slot0", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "tickBitmap", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "ticks", data: BytesLike): Result; - - events: {}; -} - -export interface IUniswapV3PoolState extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV3PoolStateInterface; - - 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: { - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise<[BigNumber]>; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise<[BigNumber]>; - - liquidity(overrides?: CallOverrides): Promise<[BigNumber]>; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, BigNumber, BigNumber, boolean] & { - blockTimestamp: number; - tickCumulative: BigNumber; - secondsPerLiquidityCumulativeX128: BigNumber; - initialized: boolean; - } - >; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - _liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - - protocolFees( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { token0: BigNumber; token1: BigNumber } - >; - - slot0( - overrides?: CallOverrides - ): Promise< - [BigNumber, number, number, number, number, number, boolean] & { - sqrtPriceX96: BigNumber; - tick: number; - observationIndex: number; - observationCardinality: number; - observationCardinalityNext: number; - feeProtocol: number; - unlocked: boolean; - } - >; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - boolean - ] & { - liquidityGross: BigNumber; - liquidityNet: BigNumber; - feeGrowthOutside0X128: BigNumber; - feeGrowthOutside1X128: BigNumber; - tickCumulativeOutside: BigNumber; - secondsPerLiquidityOutsideX128: BigNumber; - secondsOutside: number; - initialized: boolean; - } - >; - }; - - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, BigNumber, BigNumber, boolean] & { - blockTimestamp: number; - tickCumulative: BigNumber; - secondsPerLiquidityCumulativeX128: BigNumber; - initialized: boolean; - } - >; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - _liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - - protocolFees( - overrides?: CallOverrides - ): Promise<[BigNumber, BigNumber] & { token0: BigNumber; token1: BigNumber }>; - - slot0( - overrides?: CallOverrides - ): Promise< - [BigNumber, number, number, number, number, number, boolean] & { - sqrtPriceX96: BigNumber; - tick: number; - observationIndex: number; - observationCardinality: number; - observationCardinalityNext: number; - feeProtocol: number; - unlocked: boolean; - } - >; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - boolean - ] & { - liquidityGross: BigNumber; - liquidityNet: BigNumber; - feeGrowthOutside0X128: BigNumber; - feeGrowthOutside1X128: BigNumber; - tickCumulativeOutside: BigNumber; - secondsPerLiquidityOutsideX128: BigNumber; - secondsOutside: number; - initialized: boolean; - } - >; - - callStatic: { - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [number, BigNumber, BigNumber, boolean] & { - blockTimestamp: number; - tickCumulative: BigNumber; - secondsPerLiquidityCumulativeX128: BigNumber; - initialized: boolean; - } - >; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & { - _liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - - protocolFees( - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { token0: BigNumber; token1: BigNumber } - >; - - slot0( - overrides?: CallOverrides - ): Promise< - [BigNumber, number, number, number, number, number, boolean] & { - sqrtPriceX96: BigNumber; - tick: number; - observationIndex: number; - observationCardinality: number; - observationCardinalityNext: number; - feeProtocol: number; - unlocked: boolean; - } - >; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - number, - boolean - ] & { - liquidityGross: BigNumber; - liquidityNet: BigNumber; - feeGrowthOutside0X128: BigNumber; - feeGrowthOutside1X128: BigNumber; - tickCumulativeOutside: BigNumber; - secondsPerLiquidityOutsideX128: BigNumber; - secondsOutside: number; - initialized: boolean; - } - >; - }; - - filters: {}; - - estimateGas: { - feeGrowthGlobal0X128(overrides?: CallOverrides): Promise; - - feeGrowthGlobal1X128(overrides?: CallOverrides): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - protocolFees(overrides?: CallOverrides): Promise; - - slot0(overrides?: CallOverrides): Promise; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - feeGrowthGlobal0X128( - overrides?: CallOverrides - ): Promise; - - feeGrowthGlobal1X128( - overrides?: CallOverrides - ): Promise; - - liquidity(overrides?: CallOverrides): Promise; - - observations( - index: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - positions( - key: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - protocolFees(overrides?: CallOverrides): Promise; - - slot0(overrides?: CallOverrides): Promise; - - tickBitmap( - wordPosition: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - ticks( - tick: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/index.ts b/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/index.ts deleted file mode 100644 index 459d8ece6..000000000 --- a/v1/typechain-types/@uniswap/v3-core/contracts/interfaces/pool/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IUniswapV3PoolActions } from "./IUniswapV3PoolActions"; -export type { IUniswapV3PoolDerivedState } from "./IUniswapV3PoolDerivedState"; -export type { IUniswapV3PoolEvents } from "./IUniswapV3PoolEvents"; -export type { IUniswapV3PoolImmutables } from "./IUniswapV3PoolImmutables"; -export type { IUniswapV3PoolOwnerActions } from "./IUniswapV3PoolOwnerActions"; -export type { IUniswapV3PoolState } from "./IUniswapV3PoolState"; diff --git a/v1/typechain-types/@uniswap/v3-core/index.ts b/v1/typechain-types/@uniswap/v3-core/index.ts deleted file mode 100644 index a11e4ca29..000000000 --- a/v1/typechain-types/@uniswap/v3-core/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/v1/typechain-types/@uniswap/v3-periphery/contracts/index.ts b/v1/typechain-types/@uniswap/v3-periphery/contracts/index.ts deleted file mode 100644 index 92159233f..000000000 --- a/v1/typechain-types/@uniswap/v3-periphery/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as interfaces from "./interfaces"; -export type { interfaces }; diff --git a/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/IQuoter.ts b/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/IQuoter.ts deleted file mode 100644 index 2a9617b6a..000000000 --- a/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/IQuoter.ts +++ /dev/null @@ -1,276 +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 IQuoterInterface extends utils.Interface { - functions: { - "quoteExactInput(bytes,uint256)": FunctionFragment; - "quoteExactInputSingle(address,address,uint24,uint256,uint160)": FunctionFragment; - "quoteExactOutput(bytes,uint256)": FunctionFragment; - "quoteExactOutputSingle(address,address,uint24,uint256,uint160)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "quoteExactInput" - | "quoteExactInputSingle" - | "quoteExactOutput" - | "quoteExactOutputSingle" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "quoteExactInput", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "quoteExactInputSingle", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "quoteExactOutput", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "quoteExactOutputSingle", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "quoteExactInput", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "quoteExactInputSingle", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "quoteExactOutput", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "quoteExactOutputSingle", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IQuoter extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IQuoterInterface; - - 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: { - quoteExactInput( - path: PromiseOrValue, - amountIn: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactInputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountIn: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutput( - path: PromiseOrValue, - amountOut: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountOut: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - quoteExactInput( - path: PromiseOrValue, - amountIn: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactInputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountIn: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutput( - path: PromiseOrValue, - amountOut: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountOut: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - quoteExactInput( - path: PromiseOrValue, - amountIn: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - quoteExactInputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountIn: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - quoteExactOutput( - path: PromiseOrValue, - amountOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - quoteExactOutputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountOut: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - quoteExactInput( - path: PromiseOrValue, - amountIn: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactInputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountIn: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutput( - path: PromiseOrValue, - amountOut: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountOut: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - quoteExactInput( - path: PromiseOrValue, - amountIn: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactInputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountIn: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutput( - path: PromiseOrValue, - amountOut: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - quoteExactOutputSingle( - tokenIn: PromiseOrValue, - tokenOut: PromiseOrValue, - fee: PromiseOrValue, - amountOut: PromiseOrValue, - sqrtPriceLimitX96: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts b/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts deleted file mode 100644 index fc323ea62..000000000 --- a/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +++ /dev/null @@ -1,369 +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 declare namespace ISwapRouter { - export type ExactInputParamsStruct = { - path: PromiseOrValue; - recipient: PromiseOrValue; - deadline: PromiseOrValue; - amountIn: PromiseOrValue; - amountOutMinimum: PromiseOrValue; - }; - - export type ExactInputParamsStructOutput = [ - string, - string, - BigNumber, - BigNumber, - BigNumber - ] & { - path: string; - recipient: string; - deadline: BigNumber; - amountIn: BigNumber; - amountOutMinimum: BigNumber; - }; - - export type ExactInputSingleParamsStruct = { - tokenIn: PromiseOrValue; - tokenOut: PromiseOrValue; - fee: PromiseOrValue; - recipient: PromiseOrValue; - deadline: PromiseOrValue; - amountIn: PromiseOrValue; - amountOutMinimum: PromiseOrValue; - sqrtPriceLimitX96: PromiseOrValue; - }; - - export type ExactInputSingleParamsStructOutput = [ - string, - string, - number, - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber - ] & { - tokenIn: string; - tokenOut: string; - fee: number; - recipient: string; - deadline: BigNumber; - amountIn: BigNumber; - amountOutMinimum: BigNumber; - sqrtPriceLimitX96: BigNumber; - }; - - export type ExactOutputParamsStruct = { - path: PromiseOrValue; - recipient: PromiseOrValue; - deadline: PromiseOrValue; - amountOut: PromiseOrValue; - amountInMaximum: PromiseOrValue; - }; - - export type ExactOutputParamsStructOutput = [ - string, - string, - BigNumber, - BigNumber, - BigNumber - ] & { - path: string; - recipient: string; - deadline: BigNumber; - amountOut: BigNumber; - amountInMaximum: BigNumber; - }; - - export type ExactOutputSingleParamsStruct = { - tokenIn: PromiseOrValue; - tokenOut: PromiseOrValue; - fee: PromiseOrValue; - recipient: PromiseOrValue; - deadline: PromiseOrValue; - amountOut: PromiseOrValue; - amountInMaximum: PromiseOrValue; - sqrtPriceLimitX96: PromiseOrValue; - }; - - export type ExactOutputSingleParamsStructOutput = [ - string, - string, - number, - string, - BigNumber, - BigNumber, - BigNumber, - BigNumber - ] & { - tokenIn: string; - tokenOut: string; - fee: number; - recipient: string; - deadline: BigNumber; - amountOut: BigNumber; - amountInMaximum: BigNumber; - sqrtPriceLimitX96: BigNumber; - }; -} - -export interface ISwapRouterInterface extends utils.Interface { - functions: { - "exactInput((bytes,address,uint256,uint256,uint256))": FunctionFragment; - "exactInputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))": FunctionFragment; - "exactOutput((bytes,address,uint256,uint256,uint256))": FunctionFragment; - "exactOutputSingle((address,address,uint24,address,uint256,uint256,uint256,uint160))": FunctionFragment; - "uniswapV3SwapCallback(int256,int256,bytes)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "exactInput" - | "exactInputSingle" - | "exactOutput" - | "exactOutputSingle" - | "uniswapV3SwapCallback" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "exactInput", - values: [ISwapRouter.ExactInputParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "exactInputSingle", - values: [ISwapRouter.ExactInputSingleParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "exactOutput", - values: [ISwapRouter.ExactOutputParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "exactOutputSingle", - values: [ISwapRouter.ExactOutputSingleParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "uniswapV3SwapCallback", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "exactInput", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "exactInputSingle", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "exactOutput", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "exactOutputSingle", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapV3SwapCallback", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ISwapRouter extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ISwapRouterInterface; - - 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: { - exactInput( - params: ISwapRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: ISwapRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: ISwapRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - exactInput( - params: ISwapRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: ISwapRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: ISwapRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - exactInput( - params: ISwapRouter.ExactInputParamsStruct, - overrides?: CallOverrides - ): Promise; - - exactInputSingle( - params: ISwapRouter.ExactInputSingleParamsStruct, - overrides?: CallOverrides - ): Promise; - - exactOutput( - params: ISwapRouter.ExactOutputParamsStruct, - overrides?: CallOverrides - ): Promise; - - exactOutputSingle( - params: ISwapRouter.ExactOutputSingleParamsStruct, - overrides?: CallOverrides - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - exactInput( - params: ISwapRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: ISwapRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: ISwapRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - exactInput( - params: ISwapRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: ISwapRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: ISwapRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/index.ts b/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/index.ts deleted file mode 100644 index 0490b486c..000000000 --- a/v1/typechain-types/@uniswap/v3-periphery/contracts/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IQuoter } from "./IQuoter"; -export type { ISwapRouter } from "./ISwapRouter"; diff --git a/v1/typechain-types/@uniswap/v3-periphery/index.ts b/v1/typechain-types/@uniswap/v3-periphery/index.ts deleted file mode 100644 index a11e4ca29..000000000 --- a/v1/typechain-types/@uniswap/v3-periphery/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/v1/typechain-types/common.ts b/v1/typechain-types/common.ts deleted file mode 100644 index 4c90b08bb..000000000 --- a/v1/typechain-types/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/v1/typechain-types/contracts/evm/ERC20Custody.ts b/v1/typechain-types/contracts/evm/ERC20Custody.ts deleted file mode 100644 index d96160394..000000000 --- a/v1/typechain-types/contracts/evm/ERC20Custody.ts +++ /dev/null @@ -1,678 +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 ERC20CustodyInterface extends utils.Interface { - functions: { - "TSSAddress()": FunctionFragment; - "TSSAddressUpdater()": FunctionFragment; - "deposit(bytes,address,uint256,bytes)": FunctionFragment; - "pause()": FunctionFragment; - "paused()": FunctionFragment; - "renounceTSSAddressUpdater()": FunctionFragment; - "unpause()": FunctionFragment; - "unwhitelist(address)": FunctionFragment; - "updateTSSAddress(address)": FunctionFragment; - "updateZetaFee(uint256)": FunctionFragment; - "whitelist(address)": FunctionFragment; - "whitelisted(address)": FunctionFragment; - "withdraw(address,address,uint256)": FunctionFragment; - "zeta()": FunctionFragment; - "zetaFee()": FunctionFragment; - "zetaMaxFee()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "TSSAddress" - | "TSSAddressUpdater" - | "deposit" - | "pause" - | "paused" - | "renounceTSSAddressUpdater" - | "unpause" - | "unwhitelist" - | "updateTSSAddress" - | "updateZetaFee" - | "whitelist" - | "whitelisted" - | "withdraw" - | "zeta" - | "zetaFee" - | "zetaMaxFee" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "TSSAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "TSSAddressUpdater", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "deposit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceTSSAddressUpdater", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - encodeFunctionData( - functionFragment: "unwhitelist", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateTSSAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateZetaFee", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "whitelist", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "whitelisted", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "zeta", values?: undefined): string; - encodeFunctionData(functionFragment: "zetaFee", values?: undefined): string; - encodeFunctionData( - functionFragment: "zetaMaxFee", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "TSSAddress", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "TSSAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceTSSAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "unwhitelist", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateTSSAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateZetaFee", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "whitelisted", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "zeta", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "zetaFee", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "zetaMaxFee", data: BytesLike): Result; - - events: { - "Deposited(bytes,address,uint256,bytes)": EventFragment; - "Paused(address)": EventFragment; - "RenouncedTSSUpdater(address)": EventFragment; - "Unpaused(address)": EventFragment; - "Unwhitelisted(address)": EventFragment; - "UpdatedTSSAddress(address)": EventFragment; - "UpdatedZetaFee(uint256)": EventFragment; - "Whitelisted(address)": EventFragment; - "Withdrawn(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Deposited"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "RenouncedTSSUpdater"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unwhitelisted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedTSSAddress"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedZetaFee"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Whitelisted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Withdrawn"): EventFragment; -} - -export interface DepositedEventObject { - recipient: string; - asset: string; - amount: BigNumber; - message: string; -} -export type DepositedEvent = TypedEvent< - [string, string, BigNumber, string], - DepositedEventObject ->; - -export type DepositedEventFilter = TypedEventFilter; - -export interface PausedEventObject { - sender: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface RenouncedTSSUpdaterEventObject { - TSSAddressUpdater_: string; -} -export type RenouncedTSSUpdaterEvent = TypedEvent< - [string], - RenouncedTSSUpdaterEventObject ->; - -export type RenouncedTSSUpdaterEventFilter = - TypedEventFilter; - -export interface UnpausedEventObject { - sender: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface UnwhitelistedEventObject { - asset: string; -} -export type UnwhitelistedEvent = TypedEvent<[string], UnwhitelistedEventObject>; - -export type UnwhitelistedEventFilter = TypedEventFilter; - -export interface UpdatedTSSAddressEventObject { - TSSAddress_: string; -} -export type UpdatedTSSAddressEvent = TypedEvent< - [string], - UpdatedTSSAddressEventObject ->; - -export type UpdatedTSSAddressEventFilter = - TypedEventFilter; - -export interface UpdatedZetaFeeEventObject { - zetaFee_: BigNumber; -} -export type UpdatedZetaFeeEvent = TypedEvent< - [BigNumber], - UpdatedZetaFeeEventObject ->; - -export type UpdatedZetaFeeEventFilter = TypedEventFilter; - -export interface WhitelistedEventObject { - asset: string; -} -export type WhitelistedEvent = TypedEvent<[string], WhitelistedEventObject>; - -export type WhitelistedEventFilter = TypedEventFilter; - -export interface WithdrawnEventObject { - recipient: string; - asset: string; - amount: BigNumber; -} -export type WithdrawnEvent = TypedEvent< - [string, string, BigNumber], - WithdrawnEventObject ->; - -export type WithdrawnEventFilter = TypedEventFilter; - -export interface ERC20Custody extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC20CustodyInterface; - - 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: { - TSSAddress(overrides?: CallOverrides): Promise<[string]>; - - TSSAddressUpdater(overrides?: CallOverrides): Promise<[string]>; - - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - renounceTSSAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unwhitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTSSAddress( - TSSAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateZetaFee( - zetaFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelisted( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zeta(overrides?: CallOverrides): Promise<[string]>; - - zetaFee(overrides?: CallOverrides): Promise<[BigNumber]>; - - zetaMaxFee(overrides?: CallOverrides): Promise<[BigNumber]>; - }; - - TSSAddress(overrides?: CallOverrides): Promise; - - TSSAddressUpdater(overrides?: CallOverrides): Promise; - - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceTSSAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unwhitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTSSAddress( - TSSAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateZetaFee( - zetaFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelisted( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zeta(overrides?: CallOverrides): Promise; - - zetaFee(overrides?: CallOverrides): Promise; - - zetaMaxFee(overrides?: CallOverrides): Promise; - - callStatic: { - TSSAddress(overrides?: CallOverrides): Promise; - - TSSAddressUpdater(overrides?: CallOverrides): Promise; - - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pause(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceTSSAddressUpdater(overrides?: CallOverrides): Promise; - - unpause(overrides?: CallOverrides): Promise; - - unwhitelist( - asset: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateTSSAddress( - TSSAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateZetaFee( - zetaFee_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - whitelist( - asset: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - whitelisted( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - zeta(overrides?: CallOverrides): Promise; - - zetaFee(overrides?: CallOverrides): Promise; - - zetaMaxFee(overrides?: CallOverrides): Promise; - }; - - filters: { - "Deposited(bytes,address,uint256,bytes)"( - recipient?: null, - asset?: PromiseOrValue | null, - amount?: null, - message?: null - ): DepositedEventFilter; - Deposited( - recipient?: null, - asset?: PromiseOrValue | null, - amount?: null, - message?: null - ): DepositedEventFilter; - - "Paused(address)"(sender?: null): PausedEventFilter; - Paused(sender?: null): PausedEventFilter; - - "RenouncedTSSUpdater(address)"( - TSSAddressUpdater_?: null - ): RenouncedTSSUpdaterEventFilter; - RenouncedTSSUpdater( - TSSAddressUpdater_?: null - ): RenouncedTSSUpdaterEventFilter; - - "Unpaused(address)"(sender?: null): UnpausedEventFilter; - Unpaused(sender?: null): UnpausedEventFilter; - - "Unwhitelisted(address)"( - asset?: PromiseOrValue | null - ): UnwhitelistedEventFilter; - Unwhitelisted( - asset?: PromiseOrValue | null - ): UnwhitelistedEventFilter; - - "UpdatedTSSAddress(address)"( - TSSAddress_?: null - ): UpdatedTSSAddressEventFilter; - UpdatedTSSAddress(TSSAddress_?: null): UpdatedTSSAddressEventFilter; - - "UpdatedZetaFee(uint256)"(zetaFee_?: null): UpdatedZetaFeeEventFilter; - UpdatedZetaFee(zetaFee_?: null): UpdatedZetaFeeEventFilter; - - "Whitelisted(address)"( - asset?: PromiseOrValue | null - ): WhitelistedEventFilter; - Whitelisted(asset?: PromiseOrValue | null): WhitelistedEventFilter; - - "Withdrawn(address,address,uint256)"( - recipient?: PromiseOrValue | null, - asset?: PromiseOrValue | null, - amount?: null - ): WithdrawnEventFilter; - Withdrawn( - recipient?: PromiseOrValue | null, - asset?: PromiseOrValue | null, - amount?: null - ): WithdrawnEventFilter; - }; - - estimateGas: { - TSSAddress(overrides?: CallOverrides): Promise; - - TSSAddressUpdater(overrides?: CallOverrides): Promise; - - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceTSSAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unwhitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTSSAddress( - TSSAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateZetaFee( - zetaFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelisted( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zeta(overrides?: CallOverrides): Promise; - - zetaFee(overrides?: CallOverrides): Promise; - - zetaMaxFee(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - TSSAddress(overrides?: CallOverrides): Promise; - - TSSAddressUpdater(overrides?: CallOverrides): Promise; - - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - renounceTSSAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - unwhitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTSSAddress( - TSSAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateZetaFee( - zetaFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelist( - asset: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - whitelisted( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zeta(overrides?: CallOverrides): Promise; - - zetaFee(overrides?: CallOverrides): Promise; - - zetaMaxFee(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/Zeta.eth.sol/ZetaEth.ts b/v1/typechain-types/contracts/evm/Zeta.eth.sol/ZetaEth.ts deleted file mode 100644 index 42fefaaf9..000000000 --- a/v1/typechain-types/contracts/evm/Zeta.eth.sol/ZetaEth.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 ZetaEthInterface 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 ZetaEth extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaEthInterface; - - 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/v1/typechain-types/contracts/evm/Zeta.eth.sol/index.ts b/v1/typechain-types/contracts/evm/Zeta.eth.sol/index.ts deleted file mode 100644 index 1b92bdeab..000000000 --- a/v1/typechain-types/contracts/evm/Zeta.eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaEth } from "./ZetaEth"; diff --git a/v1/typechain-types/contracts/evm/Zeta.non-eth.sol/ZetaNonEth.ts b/v1/typechain-types/contracts/evm/Zeta.non-eth.sol/ZetaNonEth.ts deleted file mode 100644 index f34b1dfa1..000000000 --- a/v1/typechain-types/contracts/evm/Zeta.non-eth.sol/ZetaNonEth.ts +++ /dev/null @@ -1,817 +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 ZetaNonEthInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(uint256)": FunctionFragment; - "burnFrom(address,uint256)": FunctionFragment; - "connectorAddress()": FunctionFragment; - "decimals()": FunctionFragment; - "decreaseAllowance(address,uint256)": FunctionFragment; - "increaseAllowance(address,uint256)": FunctionFragment; - "mint(address,uint256,bytes32)": FunctionFragment; - "name()": FunctionFragment; - "renounceTssAddressUpdater()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "tssAddress()": FunctionFragment; - "tssAddressUpdater()": FunctionFragment; - "updateTssAndConnectorAddresses(address,address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "burnFrom" - | "connectorAddress" - | "decimals" - | "decreaseAllowance" - | "increaseAllowance" - | "mint" - | "name" - | "renounceTssAddressUpdater" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - | "tssAddress" - | "tssAddressUpdater" - | "updateTssAndConnectorAddresses" - ): 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: "burnFrom", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "connectorAddress", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "decimals", values?: undefined): string; - encodeFunctionData( - functionFragment: "decreaseAllowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "increaseAllowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "name", values?: undefined): string; - encodeFunctionData( - functionFragment: "renounceTssAddressUpdater", - 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: "tssAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "updateTssAndConnectorAddresses", - values: [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: "burnFrom", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "connectorAddress", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "decreaseAllowance", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "increaseAllowance", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "renounceTssAddressUpdater", - 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: "tssAddress", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "tssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateTssAndConnectorAddresses", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Burnt(address,uint256)": EventFragment; - "ConnectorAddressUpdated(address,address)": EventFragment; - "Minted(address,uint256,bytes32)": EventFragment; - "TSSAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdaterUpdated(address,address)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Burnt"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ConnectorAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Minted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdaterUpdated"): 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 BurntEventObject { - burnee: string; - amount: BigNumber; -} -export type BurntEvent = TypedEvent<[string, BigNumber], BurntEventObject>; - -export type BurntEventFilter = TypedEventFilter; - -export interface ConnectorAddressUpdatedEventObject { - callerAddress: string; - newConnectorAddress: string; -} -export type ConnectorAddressUpdatedEvent = TypedEvent< - [string, string], - ConnectorAddressUpdatedEventObject ->; - -export type ConnectorAddressUpdatedEventFilter = - TypedEventFilter; - -export interface MintedEventObject { - mintee: string; - amount: BigNumber; - internalSendHash: string; -} -export type MintedEvent = TypedEvent< - [string, BigNumber, string], - MintedEventObject ->; - -export type MintedEventFilter = TypedEventFilter; - -export interface TSSAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type TSSAddressUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdatedEventObject ->; - -export type TSSAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdaterUpdatedEventObject { - callerAddress: string; - newTssUpdaterAddress: string; -} -export type TSSAddressUpdaterUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdaterUpdatedEventObject ->; - -export type TSSAddressUpdaterUpdatedEventFilter = - TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface ZetaNonEth extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaNonEthInterface; - - 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connectorAddress(overrides?: CallOverrides): Promise<[string]>; - - 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; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - 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; - - tssAddress(overrides?: CallOverrides): Promise<[string]>; - - tssAddressUpdater(overrides?: CallOverrides): Promise<[string]>; - - updateTssAndConnectorAddresses( - tssAddress_: PromiseOrValue, - connectorAddress_: 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connectorAddress(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; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): 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; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - updateTssAndConnectorAddresses( - tssAddress_: PromiseOrValue, - connectorAddress_: 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - connectorAddress(overrides?: CallOverrides): Promise; - - decimals(overrides?: CallOverrides): Promise; - - decreaseAllowance( - spender: PromiseOrValue, - subtractedValue: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - addedValue: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - name(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater(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; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - updateTssAndConnectorAddresses( - tssAddress_: PromiseOrValue, - connectorAddress_: 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; - - "Burnt(address,uint256)"( - burnee?: PromiseOrValue | null, - amount?: null - ): BurntEventFilter; - Burnt( - burnee?: PromiseOrValue | null, - amount?: null - ): BurntEventFilter; - - "ConnectorAddressUpdated(address,address)"( - callerAddress?: null, - newConnectorAddress?: null - ): ConnectorAddressUpdatedEventFilter; - ConnectorAddressUpdated( - callerAddress?: null, - newConnectorAddress?: null - ): ConnectorAddressUpdatedEventFilter; - - "Minted(address,uint256,bytes32)"( - mintee?: PromiseOrValue | null, - amount?: null, - internalSendHash?: PromiseOrValue | null - ): MintedEventFilter; - Minted( - mintee?: PromiseOrValue | null, - amount?: null, - internalSendHash?: PromiseOrValue | null - ): MintedEventFilter; - - "TSSAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - TSSAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - - "TSSAddressUpdaterUpdated(address,address)"( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - TSSAddressUpdaterUpdated( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - - "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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connectorAddress(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; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): 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; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - updateTssAndConnectorAddresses( - tssAddress_: PromiseOrValue, - connectorAddress_: 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connectorAddress(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; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): 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; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - updateTssAndConnectorAddresses( - tssAddress_: PromiseOrValue, - connectorAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/Zeta.non-eth.sol/index.ts b/v1/typechain-types/contracts/evm/Zeta.non-eth.sol/index.ts deleted file mode 100644 index 113265dae..000000000 --- a/v1/typechain-types/contracts/evm/Zeta.non-eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaNonEth } from "./ZetaNonEth"; diff --git a/v1/typechain-types/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase.ts b/v1/typechain-types/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase.ts deleted file mode 100644 index 3057dbba8..000000000 --- a/v1/typechain-types/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase.ts +++ /dev/null @@ -1,704 +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 declare namespace ZetaInterfaces { - export type SendInputStruct = { - destinationChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationGasLimit: PromiseOrValue; - message: PromiseOrValue; - zetaValueAndGas: PromiseOrValue; - zetaParams: PromiseOrValue; - }; - - export type SendInputStructOutput = [ - BigNumber, - string, - BigNumber, - string, - BigNumber, - string - ] & { - destinationChainId: BigNumber; - destinationAddress: string; - destinationGasLimit: BigNumber; - message: string; - zetaValueAndGas: BigNumber; - zetaParams: string; - }; -} - -export interface ZetaConnectorBaseInterface extends utils.Interface { - functions: { - "onReceive(bytes,uint256,address,uint256,bytes,bytes32)": FunctionFragment; - "onRevert(address,uint256,bytes,uint256,uint256,bytes,bytes32)": FunctionFragment; - "pause()": FunctionFragment; - "paused()": FunctionFragment; - "pauserAddress()": FunctionFragment; - "renounceTssAddressUpdater()": FunctionFragment; - "send((uint256,bytes,uint256,bytes,uint256,bytes))": FunctionFragment; - "tssAddress()": FunctionFragment; - "tssAddressUpdater()": FunctionFragment; - "unpause()": FunctionFragment; - "updatePauserAddress(address)": FunctionFragment; - "updateTssAddress(address)": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "onReceive" - | "onRevert" - | "pause" - | "paused" - | "pauserAddress" - | "renounceTssAddressUpdater" - | "send" - | "tssAddress" - | "tssAddressUpdater" - | "unpause" - | "updatePauserAddress" - | "updateTssAddress" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "onReceive", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "onRevert", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "pauserAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceTssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ZetaInterfaces.SendInputStruct] - ): string; - encodeFunctionData( - functionFragment: "tssAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - encodeFunctionData( - functionFragment: "updatePauserAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateTssAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult(functionFragment: "onReceive", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "onRevert", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceTssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "tssAddress", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "tssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "updatePauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateTssAddress", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "Paused(address)": EventFragment; - "PauserAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdaterUpdated(address,address)": EventFragment; - "Unpaused(address)": EventFragment; - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)": EventFragment; - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)": EventFragment; - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PauserAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdaterUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReceived"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReverted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaSent"): EventFragment; -} - -export interface PausedEventObject { - account: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface PauserAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type PauserAddressUpdatedEvent = TypedEvent< - [string, string], - PauserAddressUpdatedEventObject ->; - -export type PauserAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type TSSAddressUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdatedEventObject ->; - -export type TSSAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdaterUpdatedEventObject { - callerAddress: string; - newTssUpdaterAddress: string; -} -export type TSSAddressUpdaterUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdaterUpdatedEventObject ->; - -export type TSSAddressUpdaterUpdatedEventFilter = - TypedEventFilter; - -export interface UnpausedEventObject { - account: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface ZetaReceivedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaReceivedEvent = TypedEvent< - [string, BigNumber, string, BigNumber, string, string], - ZetaReceivedEventObject ->; - -export type ZetaReceivedEventFilter = TypedEventFilter; - -export interface ZetaRevertedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationChainId: BigNumber; - destinationAddress: string; - remainingZetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaRevertedEvent = TypedEvent< - [string, BigNumber, BigNumber, string, BigNumber, string, string], - ZetaRevertedEventObject ->; - -export type ZetaRevertedEventFilter = TypedEventFilter; - -export interface ZetaSentEventObject { - sourceTxOriginAddress: string; - zetaTxSenderAddress: string; - destinationChainId: BigNumber; - destinationAddress: string; - zetaValueAndGas: BigNumber; - destinationGasLimit: BigNumber; - message: string; - zetaParams: string; -} -export type ZetaSentEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, string], - ZetaSentEventObject ->; - -export type ZetaSentEventFilter = TypedEventFilter; - -export interface ZetaConnectorBase extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaConnectorBaseInterface; - - 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: { - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - pauserAddress(overrides?: CallOverrides): Promise<[string]>; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise<[string]>; - - tssAddressUpdater(overrides?: CallOverrides): Promise<[string]>; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pause(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater(overrides?: CallOverrides): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: CallOverrides - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause(overrides?: CallOverrides): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "Paused(address)"(account?: null): PausedEventFilter; - Paused(account?: null): PausedEventFilter; - - "PauserAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - PauserAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - - "TSSAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - TSSAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - - "TSSAddressUpdaterUpdated(address,address)"( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - TSSAddressUpdaterUpdated( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - - "Unpaused(address)"(account?: null): UnpausedEventFilter; - Unpaused(account?: null): UnpausedEventFilter; - - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - ZetaReceived( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - ZetaReverted( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)"( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - ZetaSent( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - }; - - estimateGas: { - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/ZetaConnector.base.sol/index.ts b/v1/typechain-types/contracts/evm/ZetaConnector.base.sol/index.ts deleted file mode 100644 index c1f4cee08..000000000 --- a/v1/typechain-types/contracts/evm/ZetaConnector.base.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaConnectorBase } from "./ZetaConnectorBase"; diff --git a/v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth.ts b/v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth.ts deleted file mode 100644 index 7c9022044..000000000 --- a/v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth.ts +++ /dev/null @@ -1,724 +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 declare namespace ZetaInterfaces { - export type SendInputStruct = { - destinationChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationGasLimit: PromiseOrValue; - message: PromiseOrValue; - zetaValueAndGas: PromiseOrValue; - zetaParams: PromiseOrValue; - }; - - export type SendInputStructOutput = [ - BigNumber, - string, - BigNumber, - string, - BigNumber, - string - ] & { - destinationChainId: BigNumber; - destinationAddress: string; - destinationGasLimit: BigNumber; - message: string; - zetaValueAndGas: BigNumber; - zetaParams: string; - }; -} - -export interface ZetaConnectorEthInterface extends utils.Interface { - functions: { - "getLockedAmount()": FunctionFragment; - "onReceive(bytes,uint256,address,uint256,bytes,bytes32)": FunctionFragment; - "onRevert(address,uint256,bytes,uint256,uint256,bytes,bytes32)": FunctionFragment; - "pause()": FunctionFragment; - "paused()": FunctionFragment; - "pauserAddress()": FunctionFragment; - "renounceTssAddressUpdater()": FunctionFragment; - "send((uint256,bytes,uint256,bytes,uint256,bytes))": FunctionFragment; - "tssAddress()": FunctionFragment; - "tssAddressUpdater()": FunctionFragment; - "unpause()": FunctionFragment; - "updatePauserAddress(address)": FunctionFragment; - "updateTssAddress(address)": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "getLockedAmount" - | "onReceive" - | "onRevert" - | "pause" - | "paused" - | "pauserAddress" - | "renounceTssAddressUpdater" - | "send" - | "tssAddress" - | "tssAddressUpdater" - | "unpause" - | "updatePauserAddress" - | "updateTssAddress" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getLockedAmount", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "onReceive", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "onRevert", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "pauserAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceTssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ZetaInterfaces.SendInputStruct] - ): string; - encodeFunctionData( - functionFragment: "tssAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - encodeFunctionData( - functionFragment: "updatePauserAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateTssAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "getLockedAmount", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "onReceive", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "onRevert", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceTssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "tssAddress", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "tssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "updatePauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateTssAddress", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "Paused(address)": EventFragment; - "PauserAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdaterUpdated(address,address)": EventFragment; - "Unpaused(address)": EventFragment; - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)": EventFragment; - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)": EventFragment; - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PauserAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdaterUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReceived"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReverted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaSent"): EventFragment; -} - -export interface PausedEventObject { - account: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface PauserAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type PauserAddressUpdatedEvent = TypedEvent< - [string, string], - PauserAddressUpdatedEventObject ->; - -export type PauserAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type TSSAddressUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdatedEventObject ->; - -export type TSSAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdaterUpdatedEventObject { - callerAddress: string; - newTssUpdaterAddress: string; -} -export type TSSAddressUpdaterUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdaterUpdatedEventObject ->; - -export type TSSAddressUpdaterUpdatedEventFilter = - TypedEventFilter; - -export interface UnpausedEventObject { - account: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface ZetaReceivedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaReceivedEvent = TypedEvent< - [string, BigNumber, string, BigNumber, string, string], - ZetaReceivedEventObject ->; - -export type ZetaReceivedEventFilter = TypedEventFilter; - -export interface ZetaRevertedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationChainId: BigNumber; - destinationAddress: string; - remainingZetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaRevertedEvent = TypedEvent< - [string, BigNumber, BigNumber, string, BigNumber, string, string], - ZetaRevertedEventObject ->; - -export type ZetaRevertedEventFilter = TypedEventFilter; - -export interface ZetaSentEventObject { - sourceTxOriginAddress: string; - zetaTxSenderAddress: string; - destinationChainId: BigNumber; - destinationAddress: string; - zetaValueAndGas: BigNumber; - destinationGasLimit: BigNumber; - message: string; - zetaParams: string; -} -export type ZetaSentEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, string], - ZetaSentEventObject ->; - -export type ZetaSentEventFilter = TypedEventFilter; - -export interface ZetaConnectorEth extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaConnectorEthInterface; - - 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: { - getLockedAmount(overrides?: CallOverrides): Promise<[BigNumber]>; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - pauserAddress(overrides?: CallOverrides): Promise<[string]>; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise<[string]>; - - tssAddressUpdater(overrides?: CallOverrides): Promise<[string]>; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - getLockedAmount(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - getLockedAmount(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pause(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater(overrides?: CallOverrides): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: CallOverrides - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause(overrides?: CallOverrides): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "Paused(address)"(account?: null): PausedEventFilter; - Paused(account?: null): PausedEventFilter; - - "PauserAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - PauserAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - - "TSSAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - TSSAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - - "TSSAddressUpdaterUpdated(address,address)"( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - TSSAddressUpdaterUpdated( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - - "Unpaused(address)"(account?: null): UnpausedEventFilter; - Unpaused(account?: null): UnpausedEventFilter; - - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - ZetaReceived( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - ZetaReverted( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)"( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - ZetaSent( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - }; - - estimateGas: { - getLockedAmount(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - getLockedAmount(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/index.ts b/v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/index.ts deleted file mode 100644 index 7d49381d1..000000000 --- a/v1/typechain-types/contracts/evm/ZetaConnector.eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaConnectorEth } from "./ZetaConnectorEth"; diff --git a/v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts b/v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts deleted file mode 100644 index 199464a69..000000000 --- a/v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.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 declare namespace ZetaInterfaces { - export type SendInputStruct = { - destinationChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationGasLimit: PromiseOrValue; - message: PromiseOrValue; - zetaValueAndGas: PromiseOrValue; - zetaParams: PromiseOrValue; - }; - - export type SendInputStructOutput = [ - BigNumber, - string, - BigNumber, - string, - BigNumber, - string - ] & { - destinationChainId: BigNumber; - destinationAddress: string; - destinationGasLimit: BigNumber; - message: string; - zetaValueAndGas: BigNumber; - zetaParams: string; - }; -} - -export interface ZetaConnectorNonEthInterface extends utils.Interface { - functions: { - "getLockedAmount()": FunctionFragment; - "maxSupply()": FunctionFragment; - "onReceive(bytes,uint256,address,uint256,bytes,bytes32)": FunctionFragment; - "onRevert(address,uint256,bytes,uint256,uint256,bytes,bytes32)": FunctionFragment; - "pause()": FunctionFragment; - "paused()": FunctionFragment; - "pauserAddress()": FunctionFragment; - "renounceTssAddressUpdater()": FunctionFragment; - "send((uint256,bytes,uint256,bytes,uint256,bytes))": FunctionFragment; - "setMaxSupply(uint256)": FunctionFragment; - "tssAddress()": FunctionFragment; - "tssAddressUpdater()": FunctionFragment; - "unpause()": FunctionFragment; - "updatePauserAddress(address)": FunctionFragment; - "updateTssAddress(address)": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "getLockedAmount" - | "maxSupply" - | "onReceive" - | "onRevert" - | "pause" - | "paused" - | "pauserAddress" - | "renounceTssAddressUpdater" - | "send" - | "setMaxSupply" - | "tssAddress" - | "tssAddressUpdater" - | "unpause" - | "updatePauserAddress" - | "updateTssAddress" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getLockedAmount", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "maxSupply", values?: undefined): string; - encodeFunctionData( - functionFragment: "onReceive", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "onRevert", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "pauserAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceTssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ZetaInterfaces.SendInputStruct] - ): string; - encodeFunctionData( - functionFragment: "setMaxSupply", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "tssAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - encodeFunctionData( - functionFragment: "updatePauserAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateTssAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "getLockedAmount", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "maxSupply", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "onReceive", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "onRevert", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceTssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setMaxSupply", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "tssAddress", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "tssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "updatePauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateTssAddress", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "MaxSupplyUpdated(address,uint256)": EventFragment; - "Paused(address)": EventFragment; - "PauserAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdaterUpdated(address,address)": EventFragment; - "Unpaused(address)": EventFragment; - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)": EventFragment; - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)": EventFragment; - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "MaxSupplyUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PauserAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdaterUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReceived"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReverted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaSent"): EventFragment; -} - -export interface MaxSupplyUpdatedEventObject { - callerAddress: string; - newMaxSupply: BigNumber; -} -export type MaxSupplyUpdatedEvent = TypedEvent< - [string, BigNumber], - MaxSupplyUpdatedEventObject ->; - -export type MaxSupplyUpdatedEventFilter = - TypedEventFilter; - -export interface PausedEventObject { - account: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface PauserAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type PauserAddressUpdatedEvent = TypedEvent< - [string, string], - PauserAddressUpdatedEventObject ->; - -export type PauserAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type TSSAddressUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdatedEventObject ->; - -export type TSSAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdaterUpdatedEventObject { - callerAddress: string; - newTssUpdaterAddress: string; -} -export type TSSAddressUpdaterUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdaterUpdatedEventObject ->; - -export type TSSAddressUpdaterUpdatedEventFilter = - TypedEventFilter; - -export interface UnpausedEventObject { - account: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface ZetaReceivedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaReceivedEvent = TypedEvent< - [string, BigNumber, string, BigNumber, string, string], - ZetaReceivedEventObject ->; - -export type ZetaReceivedEventFilter = TypedEventFilter; - -export interface ZetaRevertedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationChainId: BigNumber; - destinationAddress: string; - remainingZetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaRevertedEvent = TypedEvent< - [string, BigNumber, BigNumber, string, BigNumber, string, string], - ZetaRevertedEventObject ->; - -export type ZetaRevertedEventFilter = TypedEventFilter; - -export interface ZetaSentEventObject { - sourceTxOriginAddress: string; - zetaTxSenderAddress: string; - destinationChainId: BigNumber; - destinationAddress: string; - zetaValueAndGas: BigNumber; - destinationGasLimit: BigNumber; - message: string; - zetaParams: string; -} -export type ZetaSentEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, string], - ZetaSentEventObject ->; - -export type ZetaSentEventFilter = TypedEventFilter; - -export interface ZetaConnectorNonEth extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaConnectorNonEthInterface; - - 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: { - getLockedAmount(overrides?: CallOverrides): Promise<[BigNumber]>; - - maxSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - pauserAddress(overrides?: CallOverrides): Promise<[string]>; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMaxSupply( - maxSupply_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise<[string]>; - - tssAddressUpdater(overrides?: CallOverrides): Promise<[string]>; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - getLockedAmount(overrides?: CallOverrides): Promise; - - maxSupply(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMaxSupply( - maxSupply_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - getLockedAmount(overrides?: CallOverrides): Promise; - - maxSupply(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pause(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater(overrides?: CallOverrides): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: CallOverrides - ): Promise; - - setMaxSupply( - maxSupply_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause(overrides?: CallOverrides): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "MaxSupplyUpdated(address,uint256)"( - callerAddress?: null, - newMaxSupply?: null - ): MaxSupplyUpdatedEventFilter; - MaxSupplyUpdated( - callerAddress?: null, - newMaxSupply?: null - ): MaxSupplyUpdatedEventFilter; - - "Paused(address)"(account?: null): PausedEventFilter; - Paused(account?: null): PausedEventFilter; - - "PauserAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - PauserAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - - "TSSAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - TSSAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - - "TSSAddressUpdaterUpdated(address,address)"( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - TSSAddressUpdaterUpdated( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - - "Unpaused(address)"(account?: null): UnpausedEventFilter; - Unpaused(account?: null): UnpausedEventFilter; - - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - ZetaReceived( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - ZetaReverted( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)"( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - ZetaSent( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - }; - - estimateGas: { - getLockedAmount(overrides?: CallOverrides): Promise; - - maxSupply(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMaxSupply( - maxSupply_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - getLockedAmount(overrides?: CallOverrides): Promise; - - maxSupply(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setMaxSupply( - maxSupply_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/index.ts b/v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/index.ts deleted file mode 100644 index 7932c27c2..000000000 --- a/v1/typechain-types/contracts/evm/ZetaConnector.non-eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaConnectorNonEth } from "./ZetaConnectorNonEth"; diff --git a/v1/typechain-types/contracts/evm/index.ts b/v1/typechain-types/contracts/evm/index.ts deleted file mode 100644 index 6971dd372..000000000 --- a/v1/typechain-types/contracts/evm/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as zetaEthSol from "./Zeta.eth.sol"; -export type { zetaEthSol }; -import type * as zetaNonEthSol from "./Zeta.non-eth.sol"; -export type { zetaNonEthSol }; -import type * as zetaConnectorBaseSol from "./ZetaConnector.base.sol"; -export type { zetaConnectorBaseSol }; -import type * as zetaConnectorEthSol from "./ZetaConnector.eth.sol"; -export type { zetaConnectorEthSol }; -import type * as zetaConnectorNonEthSol from "./ZetaConnector.non-eth.sol"; -export type { zetaConnectorNonEthSol }; -import type * as interfaces from "./interfaces"; -export type { interfaces }; -import type * as testing from "./testing"; -export type { testing }; -import type * as tools from "./tools"; -export type { tools }; -export type { ERC20Custody } from "./ERC20Custody"; diff --git a/v1/typechain-types/contracts/evm/interfaces/ConnectorErrors.ts b/v1/typechain-types/contracts/evm/interfaces/ConnectorErrors.ts deleted file mode 100644 index a3408fef7..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ConnectorErrors.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 ConnectorErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ConnectorErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ConnectorErrorsInterface; - - 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/v1/typechain-types/contracts/evm/interfaces/ZetaErrors.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaErrors.ts deleted file mode 100644 index ee0d1cbe0..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaErrors.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 ZetaErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaErrorsInterface; - - 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/v1/typechain-types/contracts/evm/interfaces/ZetaInteractorErrors.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaInteractorErrors.ts deleted file mode 100644 index 962017210..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaInteractorErrors.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 ZetaInteractorErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaInteractorErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaInteractorErrorsInterface; - - 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/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors.ts deleted file mode 100644 index 5103de998..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors.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 ZetaCommonErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaCommonErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaCommonErrorsInterface; - - 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/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector.ts deleted file mode 100644 index 640d85bcd..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector.ts +++ /dev/null @@ -1,130 +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 declare namespace ZetaInterfaces { - export type SendInputStruct = { - destinationChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationGasLimit: PromiseOrValue; - message: PromiseOrValue; - zetaValueAndGas: PromiseOrValue; - zetaParams: PromiseOrValue; - }; - - export type SendInputStructOutput = [ - BigNumber, - string, - BigNumber, - string, - BigNumber, - string - ] & { - destinationChainId: BigNumber; - destinationAddress: string; - destinationGasLimit: BigNumber; - message: string; - zetaValueAndGas: BigNumber; - zetaParams: string; - }; -} - -export interface ZetaConnectorInterface extends utils.Interface { - functions: { - "send((uint256,bytes,uint256,bytes,uint256,bytes))": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "send"): FunctionFragment; - - encodeFunctionData( - functionFragment: "send", - values: [ZetaInterfaces.SendInputStruct] - ): string; - - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - - events: {}; -} - -export interface ZetaConnector extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaConnectorInterface; - - 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: { - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver.ts deleted file mode 100644 index 1ba57f7ba..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver.ts +++ /dev/null @@ -1,191 +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 declare namespace ZetaInterfaces { - export type ZetaMessageStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - zetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaMessageStructOutput = [ - string, - BigNumber, - string, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - }; - - export type ZetaRevertStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationChainId: PromiseOrValue; - remainingZetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaRevertStructOutput = [ - string, - BigNumber, - string, - BigNumber, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - destinationChainId: BigNumber; - remainingZetaValue: BigNumber; - message: string; - }; -} - -export interface ZetaReceiverInterface extends utils.Interface { - functions: { - "onZetaMessage((bytes,uint256,address,uint256,bytes))": FunctionFragment; - "onZetaRevert((address,uint256,bytes,uint256,uint256,bytes))": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "onZetaMessage" | "onZetaRevert" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "onZetaMessage", - values: [ZetaInterfaces.ZetaMessageStruct] - ): string; - encodeFunctionData( - functionFragment: "onZetaRevert", - values: [ZetaInterfaces.ZetaRevertStruct] - ): string; - - decodeFunctionResult( - functionFragment: "onZetaMessage", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onZetaRevert", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ZetaReceiver extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaReceiverInterface; - - 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: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: CallOverrides - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer.ts deleted file mode 100644 index 0131c285b..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer.ts +++ /dev/null @@ -1,398 +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 ZetaTokenConsumerInterface extends utils.Interface { - functions: { - "getEthFromZeta(address,uint256,uint256)": FunctionFragment; - "getTokenFromZeta(address,uint256,address,uint256)": FunctionFragment; - "getZetaFromEth(address,uint256)": FunctionFragment; - "getZetaFromToken(address,uint256,address,uint256)": FunctionFragment; - "hasZetaLiquidity()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "getEthFromZeta" - | "getTokenFromZeta" - | "getZetaFromEth" - | "getZetaFromToken" - | "hasZetaLiquidity" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getEthFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getTokenFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromEth", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromToken", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "hasZetaLiquidity", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "getEthFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getTokenFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromEth", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromToken", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "hasZetaLiquidity", - data: BytesLike - ): Result; - - events: { - "EthExchangedForZeta(uint256,uint256)": EventFragment; - "TokenExchangedForZeta(address,uint256,uint256)": EventFragment; - "ZetaExchangedForEth(uint256,uint256)": EventFragment; - "ZetaExchangedForToken(address,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "EthExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TokenExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForEth"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForToken"): EventFragment; -} - -export interface EthExchangedForZetaEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type EthExchangedForZetaEvent = TypedEvent< - [BigNumber, BigNumber], - EthExchangedForZetaEventObject ->; - -export type EthExchangedForZetaEventFilter = - TypedEventFilter; - -export interface TokenExchangedForZetaEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type TokenExchangedForZetaEvent = TypedEvent< - [string, BigNumber, BigNumber], - TokenExchangedForZetaEventObject ->; - -export type TokenExchangedForZetaEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForEthEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForEthEvent = TypedEvent< - [BigNumber, BigNumber], - ZetaExchangedForEthEventObject ->; - -export type ZetaExchangedForEthEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForTokenEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForTokenEvent = TypedEvent< - [string, BigNumber, BigNumber], - ZetaExchangedForTokenEventObject ->; - -export type ZetaExchangedForTokenEventFilter = - TypedEventFilter; - -export interface ZetaTokenConsumer extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerInterface; - - 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: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise<[boolean]>; - }; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - callStatic: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - }; - - filters: { - "EthExchangedForZeta(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - EthExchangedForZeta( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - - "TokenExchangedForZeta(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - TokenExchangedForZeta( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - - "ZetaExchangedForEth(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - ZetaExchangedForEth( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - - "ZetaExchangedForToken(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - ZetaExchangedForToken( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - }; - - estimateGas: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts deleted file mode 100644 index a4f4c2aa9..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaCommonErrors } from "./ZetaCommonErrors"; -export type { ZetaConnector } from "./ZetaConnector"; -export type { ZetaReceiver } from "./ZetaReceiver"; -export type { ZetaTokenConsumer } from "./ZetaTokenConsumer"; diff --git a/v1/typechain-types/contracts/evm/interfaces/ZetaNonEthInterface.ts b/v1/typechain-types/contracts/evm/interfaces/ZetaNonEthInterface.ts deleted file mode 100644 index 1303847e6..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/ZetaNonEthInterface.ts +++ /dev/null @@ -1,425 +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 ZetaNonEthInterfaceInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burnFrom(address,uint256)": FunctionFragment; - "mint(address,uint256,bytes32)": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "burnFrom" - | "mint" - | "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: "burnFrom", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [ - 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: "burnFrom", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "mint", 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 ZetaNonEthInterface extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaNonEthInterfaceInterface; - - 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]>; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: 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; - - burnFrom( - account: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - mint( - mintee: PromiseOrValue, - value: PromiseOrValue, - internalSendHash: 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/v1/typechain-types/contracts/evm/interfaces/index.ts b/v1/typechain-types/contracts/evm/interfaces/index.ts deleted file mode 100644 index 22914e475..000000000 --- a/v1/typechain-types/contracts/evm/interfaces/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as zetaInterfacesSol from "./ZetaInterfaces.sol"; -export type { zetaInterfacesSol }; -export type { ConnectorErrors } from "./ConnectorErrors"; -export type { ZetaErrors } from "./ZetaErrors"; -export type { ZetaInteractorErrors } from "./ZetaInteractorErrors"; -export type { ZetaNonEthInterface } from "./ZetaNonEthInterface"; diff --git a/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/AttackerContract.ts b/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/AttackerContract.ts deleted file mode 100644 index 5e8cc96ae..000000000 --- a/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/AttackerContract.ts +++ /dev/null @@ -1,214 +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 AttackerContractInterface extends utils.Interface { - functions: { - "balanceOf(address)": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "victimContractAddress()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "balanceOf" - | "transfer" - | "transferFrom" - | "victimContractAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "balanceOf", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "victimContractAddress", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "victimContractAddress", - data: BytesLike - ): Result; - - events: {}; -} - -export interface AttackerContract extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: AttackerContractInterface; - - 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: { - balanceOf( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - victimContractAddress(overrides?: CallOverrides): Promise<[string]>; - }; - - balanceOf( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - victimContractAddress(overrides?: CallOverrides): Promise; - - callStatic: { - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - victimContractAddress(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - balanceOf( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - victimContractAddress(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - balanceOf( - account: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transfer( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - victimContractAddress( - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/Victim.ts b/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/Victim.ts deleted file mode 100644 index 57ce0ddce..000000000 --- a/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/Victim.ts +++ /dev/null @@ -1,168 +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 VictimInterface extends utils.Interface { - functions: { - "deposit(bytes,address,uint256,bytes)": FunctionFragment; - "withdraw(address,address,uint256)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "deposit" | "withdraw"): FunctionFragment; - - encodeFunctionData( - functionFragment: "deposit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - - events: {}; -} - -export interface Victim extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: VictimInterface; - - 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: { - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - deposit( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - recipient: PromiseOrValue, - asset: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/index.ts b/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/index.ts deleted file mode 100644 index 9639989c5..000000000 --- a/v1/typechain-types/contracts/evm/testing/AttackerContract.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { AttackerContract } from "./AttackerContract"; -export type { Victim } from "./Victim"; diff --git a/v1/typechain-types/contracts/evm/testing/ERC20Mock.ts b/v1/typechain-types/contracts/evm/testing/ERC20Mock.ts deleted file mode 100644 index 1a3a6ec3c..000000000 --- a/v1/typechain-types/contracts/evm/testing/ERC20Mock.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 ERC20MockInterface 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 ERC20Mock extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ERC20MockInterface; - - 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/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager.ts b/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager.ts deleted file mode 100644 index da8b3e8a4..000000000 --- a/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager.ts +++ /dev/null @@ -1,573 +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, - EventFragment, -} from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export declare namespace INonfungiblePositionManager { - export type CollectParamsStruct = { - tokenId: PromiseOrValue; - recipient: PromiseOrValue; - amount0Max: PromiseOrValue; - amount1Max: PromiseOrValue; - }; - - export type CollectParamsStructOutput = [ - BigNumber, - string, - BigNumber, - BigNumber - ] & { - tokenId: BigNumber; - recipient: string; - amount0Max: BigNumber; - amount1Max: BigNumber; - }; - - export type DecreaseLiquidityParamsStruct = { - tokenId: PromiseOrValue; - liquidity: PromiseOrValue; - amount0Min: PromiseOrValue; - amount1Min: PromiseOrValue; - deadline: PromiseOrValue; - }; - - export type DecreaseLiquidityParamsStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber - ] & { - tokenId: BigNumber; - liquidity: BigNumber; - amount0Min: BigNumber; - amount1Min: BigNumber; - deadline: BigNumber; - }; - - export type IncreaseLiquidityParamsStruct = { - tokenId: PromiseOrValue; - amount0Desired: PromiseOrValue; - amount1Desired: PromiseOrValue; - amount0Min: PromiseOrValue; - amount1Min: PromiseOrValue; - deadline: PromiseOrValue; - }; - - export type IncreaseLiquidityParamsStructOutput = [ - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber - ] & { - tokenId: BigNumber; - amount0Desired: BigNumber; - amount1Desired: BigNumber; - amount0Min: BigNumber; - amount1Min: BigNumber; - deadline: BigNumber; - }; - - export type MintParamsStruct = { - token0: PromiseOrValue; - token1: PromiseOrValue; - fee: PromiseOrValue; - tickLower: PromiseOrValue; - tickUpper: PromiseOrValue; - amount0Desired: PromiseOrValue; - amount1Desired: PromiseOrValue; - amount0Min: PromiseOrValue; - amount1Min: PromiseOrValue; - recipient: PromiseOrValue; - deadline: PromiseOrValue; - }; - - export type MintParamsStructOutput = [ - string, - string, - number, - number, - number, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - string, - BigNumber - ] & { - token0: string; - token1: string; - fee: number; - tickLower: number; - tickUpper: number; - amount0Desired: BigNumber; - amount1Desired: BigNumber; - amount0Min: BigNumber; - amount1Min: BigNumber; - recipient: string; - deadline: BigNumber; - }; -} - -export interface INonfungiblePositionManagerInterface extends utils.Interface { - functions: { - "burn(uint256)": FunctionFragment; - "collect((uint256,address,uint128,uint128))": FunctionFragment; - "decreaseLiquidity((uint256,uint128,uint256,uint256,uint256))": FunctionFragment; - "increaseLiquidity((uint256,uint256,uint256,uint256,uint256,uint256))": FunctionFragment; - "mint((address,address,uint24,int24,int24,uint256,uint256,uint256,uint256,address,uint256))": FunctionFragment; - "positions(uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "burn" - | "collect" - | "decreaseLiquidity" - | "increaseLiquidity" - | "mint" - | "positions" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "burn", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "collect", - values: [INonfungiblePositionManager.CollectParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "decreaseLiquidity", - values: [INonfungiblePositionManager.DecreaseLiquidityParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "increaseLiquidity", - values: [INonfungiblePositionManager.IncreaseLiquidityParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "mint", - values: [INonfungiblePositionManager.MintParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "positions", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "collect", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "decreaseLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "increaseLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "positions", data: BytesLike): Result; - - events: { - "Collect(uint256,address,uint256,uint256)": EventFragment; - "DecreaseLiquidity(uint256,uint128,uint256,uint256)": EventFragment; - "IncreaseLiquidity(uint256,uint128,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Collect"): EventFragment; - getEvent(nameOrSignatureOrTopic: "DecreaseLiquidity"): EventFragment; - getEvent(nameOrSignatureOrTopic: "IncreaseLiquidity"): EventFragment; -} - -export interface CollectEventObject { - tokenId: BigNumber; - recipient: string; - amount0: BigNumber; - amount1: BigNumber; -} -export type CollectEvent = TypedEvent< - [BigNumber, string, BigNumber, BigNumber], - CollectEventObject ->; - -export type CollectEventFilter = TypedEventFilter; - -export interface DecreaseLiquidityEventObject { - tokenId: BigNumber; - liquidity: BigNumber; - amount0: BigNumber; - amount1: BigNumber; -} -export type DecreaseLiquidityEvent = TypedEvent< - [BigNumber, BigNumber, BigNumber, BigNumber], - DecreaseLiquidityEventObject ->; - -export type DecreaseLiquidityEventFilter = - TypedEventFilter; - -export interface IncreaseLiquidityEventObject { - tokenId: BigNumber; - liquidity: BigNumber; - amount0: BigNumber; - amount1: BigNumber; -} -export type IncreaseLiquidityEvent = TypedEvent< - [BigNumber, BigNumber, BigNumber, BigNumber], - IncreaseLiquidityEventObject ->; - -export type IncreaseLiquidityEventFilter = - TypedEventFilter; - -export interface INonfungiblePositionManager extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: INonfungiblePositionManagerInterface; - - 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: { - burn( - tokenId: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - collect( - params: INonfungiblePositionManager.CollectParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - decreaseLiquidity( - params: INonfungiblePositionManager.DecreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - increaseLiquidity( - params: INonfungiblePositionManager.IncreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - mint( - params: INonfungiblePositionManager.MintParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - positions( - tokenId: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - string, - string, - string, - number, - number, - number, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber - ] & { - nonce: BigNumber; - operator: string; - token0: string; - token1: string; - fee: number; - tickLower: number; - tickUpper: number; - liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - }; - - burn( - tokenId: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - collect( - params: INonfungiblePositionManager.CollectParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - decreaseLiquidity( - params: INonfungiblePositionManager.DecreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - increaseLiquidity( - params: INonfungiblePositionManager.IncreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - mint( - params: INonfungiblePositionManager.MintParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - positions( - tokenId: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - string, - string, - string, - number, - number, - number, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber - ] & { - nonce: BigNumber; - operator: string; - token0: string; - token1: string; - fee: number; - tickLower: number; - tickUpper: number; - liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - - callStatic: { - burn( - tokenId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - collect( - params: INonfungiblePositionManager.CollectParamsStruct, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - decreaseLiquidity( - params: INonfungiblePositionManager.DecreaseLiquidityParamsStruct, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amount0: BigNumber; amount1: BigNumber } - >; - - increaseLiquidity( - params: INonfungiblePositionManager.IncreaseLiquidityParamsStruct, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - liquidity: BigNumber; - amount0: BigNumber; - amount1: BigNumber; - } - >; - - mint( - params: INonfungiblePositionManager.MintParamsStruct, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber, BigNumber] & { - tokenId: BigNumber; - liquidity: BigNumber; - amount0: BigNumber; - amount1: BigNumber; - } - >; - - positions( - tokenId: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [ - BigNumber, - string, - string, - string, - number, - number, - number, - BigNumber, - BigNumber, - BigNumber, - BigNumber, - BigNumber - ] & { - nonce: BigNumber; - operator: string; - token0: string; - token1: string; - fee: number; - tickLower: number; - tickUpper: number; - liquidity: BigNumber; - feeGrowthInside0LastX128: BigNumber; - feeGrowthInside1LastX128: BigNumber; - tokensOwed0: BigNumber; - tokensOwed1: BigNumber; - } - >; - }; - - filters: { - "Collect(uint256,address,uint256,uint256)"( - tokenId?: PromiseOrValue | null, - recipient?: null, - amount0?: null, - amount1?: null - ): CollectEventFilter; - Collect( - tokenId?: PromiseOrValue | null, - recipient?: null, - amount0?: null, - amount1?: null - ): CollectEventFilter; - - "DecreaseLiquidity(uint256,uint128,uint256,uint256)"( - tokenId?: PromiseOrValue | null, - liquidity?: null, - amount0?: null, - amount1?: null - ): DecreaseLiquidityEventFilter; - DecreaseLiquidity( - tokenId?: PromiseOrValue | null, - liquidity?: null, - amount0?: null, - amount1?: null - ): DecreaseLiquidityEventFilter; - - "IncreaseLiquidity(uint256,uint128,uint256,uint256)"( - tokenId?: PromiseOrValue | null, - liquidity?: null, - amount0?: null, - amount1?: null - ): IncreaseLiquidityEventFilter; - IncreaseLiquidity( - tokenId?: PromiseOrValue | null, - liquidity?: null, - amount0?: null, - amount1?: null - ): IncreaseLiquidityEventFilter; - }; - - estimateGas: { - burn( - tokenId: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - collect( - params: INonfungiblePositionManager.CollectParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - decreaseLiquidity( - params: INonfungiblePositionManager.DecreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - increaseLiquidity( - params: INonfungiblePositionManager.IncreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - mint( - params: INonfungiblePositionManager.MintParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - positions( - tokenId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - burn( - tokenId: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - collect( - params: INonfungiblePositionManager.CollectParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - decreaseLiquidity( - params: INonfungiblePositionManager.DecreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - increaseLiquidity( - params: INonfungiblePositionManager.IncreaseLiquidityParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - mint( - params: INonfungiblePositionManager.MintParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - positions( - tokenId: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer.ts b/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer.ts deleted file mode 100644 index 01334420e..000000000 --- a/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer.ts +++ /dev/null @@ -1,128 +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 IPoolInitializerInterface extends utils.Interface { - functions: { - "createAndInitializePoolIfNecessary(address,address,uint24,uint160)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "createAndInitializePoolIfNecessary" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "createAndInitializePoolIfNecessary", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "createAndInitializePoolIfNecessary", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IPoolInitializer extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IPoolInitializerInterface; - - 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: { - createAndInitializePoolIfNecessary( - token0: PromiseOrValue, - token1: PromiseOrValue, - fee: PromiseOrValue, - sqrtPriceX96: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - createAndInitializePoolIfNecessary( - token0: PromiseOrValue, - token1: PromiseOrValue, - fee: PromiseOrValue, - sqrtPriceX96: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - createAndInitializePoolIfNecessary( - token0: PromiseOrValue, - token1: PromiseOrValue, - fee: PromiseOrValue, - sqrtPriceX96: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - createAndInitializePoolIfNecessary( - token0: PromiseOrValue, - token1: PromiseOrValue, - fee: PromiseOrValue, - sqrtPriceX96: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - createAndInitializePoolIfNecessary( - token0: PromiseOrValue, - token1: PromiseOrValue, - fee: PromiseOrValue, - sqrtPriceX96: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts b/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts deleted file mode 100644 index 84f06e3a3..000000000 --- a/v1/typechain-types/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { INonfungiblePositionManager } from "./INonfungiblePositionManager"; -export type { IPoolInitializer } from "./IPoolInitializer"; diff --git a/v1/typechain-types/contracts/evm/testing/ZetaInteractorMock.ts b/v1/typechain-types/contracts/evm/testing/ZetaInteractorMock.ts deleted file mode 100644 index 85f2205be..000000000 --- a/v1/typechain-types/contracts/evm/testing/ZetaInteractorMock.ts +++ /dev/null @@ -1,459 +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 declare namespace ZetaInterfaces { - export type ZetaMessageStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - zetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaMessageStructOutput = [ - string, - BigNumber, - string, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - }; - - export type ZetaRevertStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationChainId: PromiseOrValue; - remainingZetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaRevertStructOutput = [ - string, - BigNumber, - string, - BigNumber, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - destinationChainId: BigNumber; - remainingZetaValue: BigNumber; - message: string; - }; -} - -export interface ZetaInteractorMockInterface extends utils.Interface { - functions: { - "acceptOwnership()": FunctionFragment; - "connector()": FunctionFragment; - "interactorsByChainId(uint256)": FunctionFragment; - "onZetaMessage((bytes,uint256,address,uint256,bytes))": FunctionFragment; - "onZetaRevert((address,uint256,bytes,uint256,uint256,bytes))": FunctionFragment; - "owner()": FunctionFragment; - "pendingOwner()": FunctionFragment; - "renounceOwnership()": FunctionFragment; - "setInteractorByChainId(uint256,bytes)": FunctionFragment; - "transferOwnership(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "acceptOwnership" - | "connector" - | "interactorsByChainId" - | "onZetaMessage" - | "onZetaRevert" - | "owner" - | "pendingOwner" - | "renounceOwnership" - | "setInteractorByChainId" - | "transferOwnership" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "acceptOwnership", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "connector", values?: undefined): string; - encodeFunctionData( - functionFragment: "interactorsByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "onZetaMessage", - values: [ZetaInterfaces.ZetaMessageStruct] - ): string; - encodeFunctionData( - functionFragment: "onZetaRevert", - values: [ZetaInterfaces.ZetaRevertStruct] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "pendingOwner", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "setInteractorByChainId", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "acceptOwnership", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "connector", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "interactorsByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onZetaMessage", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onZetaRevert", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pendingOwner", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setInteractorByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - - events: { - "OwnershipTransferStarted(address,address)": EventFragment; - "OwnershipTransferred(address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; -} - -export interface OwnershipTransferStartedEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferStartedEvent = TypedEvent< - [string, string], - OwnershipTransferStartedEventObject ->; - -export type OwnershipTransferStartedEventFilter = - TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent< - [string, string], - OwnershipTransferredEventObject ->; - -export type OwnershipTransferredEventFilter = - TypedEventFilter; - -export interface ZetaInteractorMock extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaInteractorMockInterface; - - 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: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise<[string]>; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pendingOwner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - acceptOwnership(overrides?: CallOverrides): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: CallOverrides - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "OwnershipTransferStarted(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferStartedEventFilter; - OwnershipTransferStarted( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferStartedEventFilter; - - "OwnershipTransferred(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - }; - - estimateGas: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/testing/ZetaReceiverMock.ts b/v1/typechain-types/contracts/evm/testing/ZetaReceiverMock.ts deleted file mode 100644 index 2c7e00235..000000000 --- a/v1/typechain-types/contracts/evm/testing/ZetaReceiverMock.ts +++ /dev/null @@ -1,233 +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 declare namespace ZetaInterfaces { - export type ZetaMessageStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - zetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaMessageStructOutput = [ - string, - BigNumber, - string, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - }; - - export type ZetaRevertStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationChainId: PromiseOrValue; - remainingZetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaRevertStructOutput = [ - string, - BigNumber, - string, - BigNumber, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - destinationChainId: BigNumber; - remainingZetaValue: BigNumber; - message: string; - }; -} - -export interface ZetaReceiverMockInterface extends utils.Interface { - functions: { - "onZetaMessage((bytes,uint256,address,uint256,bytes))": FunctionFragment; - "onZetaRevert((address,uint256,bytes,uint256,uint256,bytes))": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "onZetaMessage" | "onZetaRevert" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "onZetaMessage", - values: [ZetaInterfaces.ZetaMessageStruct] - ): string; - encodeFunctionData( - functionFragment: "onZetaRevert", - values: [ZetaInterfaces.ZetaRevertStruct] - ): string; - - decodeFunctionResult( - functionFragment: "onZetaMessage", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onZetaRevert", - data: BytesLike - ): Result; - - events: { - "MockOnZetaMessage(address)": EventFragment; - "MockOnZetaRevert(address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "MockOnZetaMessage"): EventFragment; - getEvent(nameOrSignatureOrTopic: "MockOnZetaRevert"): EventFragment; -} - -export interface MockOnZetaMessageEventObject { - destinationAddress: string; -} -export type MockOnZetaMessageEvent = TypedEvent< - [string], - MockOnZetaMessageEventObject ->; - -export type MockOnZetaMessageEventFilter = - TypedEventFilter; - -export interface MockOnZetaRevertEventObject { - zetaTxSenderAddress: string; -} -export type MockOnZetaRevertEvent = TypedEvent< - [string], - MockOnZetaRevertEventObject ->; - -export type MockOnZetaRevertEventFilter = - TypedEventFilter; - -export interface ZetaReceiverMock extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaReceiverMockInterface; - - 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: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: CallOverrides - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "MockOnZetaMessage(address)"( - destinationAddress?: null - ): MockOnZetaMessageEventFilter; - MockOnZetaMessage(destinationAddress?: null): MockOnZetaMessageEventFilter; - - "MockOnZetaRevert(address)"( - zetaTxSenderAddress?: null - ): MockOnZetaRevertEventFilter; - MockOnZetaRevert(zetaTxSenderAddress?: null): MockOnZetaRevertEventFilter; - }; - - estimateGas: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/testing/index.ts b/v1/typechain-types/contracts/evm/testing/index.ts deleted file mode 100644 index 4005de59a..000000000 --- a/v1/typechain-types/contracts/evm/testing/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as attackerContractSol from "./AttackerContract.sol"; -export type { attackerContractSol }; -import type * as testUniswapV3ContractsSol from "./TestUniswapV3Contracts.sol"; -export type { testUniswapV3ContractsSol }; -export type { ERC20Mock } from "./ERC20Mock"; -export type { ZetaInteractorMock } from "./ZetaInteractorMock"; -export type { ZetaReceiverMock } from "./ZetaReceiverMock"; diff --git a/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory.ts b/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory.ts deleted file mode 100644 index 37b0412a9..000000000 --- a/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory.ts +++ /dev/null @@ -1,268 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - 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 ImmutableCreate2FactoryInterface extends utils.Interface { - functions: { - "hasBeenDeployed(address)": FunctionFragment; - "safeCreate2AndTransfer(bytes32,bytes)": FunctionFragment; - "safeCreate2(bytes32,bytes)": FunctionFragment; - "findCreate2Address(bytes32,bytes)": FunctionFragment; - "findCreate2AddressViaHash(bytes32,bytes32)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "hasBeenDeployed" - | "safeCreate2AndTransfer" - | "safeCreate2" - | "findCreate2Address" - | "findCreate2AddressViaHash" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "hasBeenDeployed", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "safeCreate2AndTransfer", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "safeCreate2", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "findCreate2Address", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "findCreate2AddressViaHash", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "hasBeenDeployed", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "safeCreate2AndTransfer", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "safeCreate2", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "findCreate2Address", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "findCreate2AddressViaHash", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ImmutableCreate2Factory extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ImmutableCreate2FactoryInterface; - - 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: { - hasBeenDeployed( - deploymentAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[boolean]>; - - safeCreate2AndTransfer( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - safeCreate2( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - findCreate2Address( - salt: PromiseOrValue, - initCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { deploymentAddress: string }>; - - findCreate2AddressViaHash( - salt: PromiseOrValue, - initCodeHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { deploymentAddress: string }>; - }; - - hasBeenDeployed( - deploymentAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - safeCreate2AndTransfer( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - safeCreate2( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - findCreate2Address( - salt: PromiseOrValue, - initCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - findCreate2AddressViaHash( - salt: PromiseOrValue, - initCodeHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - hasBeenDeployed( - deploymentAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - safeCreate2AndTransfer( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - safeCreate2( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - findCreate2Address( - salt: PromiseOrValue, - initCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - findCreate2AddressViaHash( - salt: PromiseOrValue, - initCodeHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - hasBeenDeployed( - deploymentAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - safeCreate2AndTransfer( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - safeCreate2( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - findCreate2Address( - salt: PromiseOrValue, - initCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - findCreate2AddressViaHash( - salt: PromiseOrValue, - initCodeHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - hasBeenDeployed( - deploymentAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - safeCreate2AndTransfer( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - safeCreate2( - salt: PromiseOrValue, - initializationCode: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - findCreate2Address( - salt: PromiseOrValue, - initCode: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - findCreate2AddressViaHash( - salt: PromiseOrValue, - initCodeHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable.ts b/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable.ts deleted file mode 100644 index 7aa4ee35b..000000000 --- a/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable.ts +++ /dev/null @@ -1,105 +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 } from "@ethersproject/abi"; -import type { Listener, Provider } from "@ethersproject/providers"; -import type { - TypedEventFilter, - TypedEvent, - TypedListener, - OnEvent, - PromiseOrValue, -} from "../../../../common"; - -export interface OwnableInterface extends utils.Interface { - functions: { - "transferOwnership(address)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "transferOwnership"): FunctionFragment; - - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - - events: {}; -} - -export interface Ownable extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: OwnableInterface; - - 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: { - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - transferOwnership( - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts b/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts deleted file mode 100644 index 1af43d912..000000000 --- a/v1/typechain-types/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ImmutableCreate2Factory } from "./ImmutableCreate2Factory"; -export type { Ownable } from "./Ownable"; diff --git a/v1/typechain-types/contracts/evm/tools/ZetaInteractor.ts b/v1/typechain-types/contracts/evm/tools/ZetaInteractor.ts deleted file mode 100644 index c85455250..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaInteractor.ts +++ /dev/null @@ -1,340 +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 ZetaInteractorInterface extends utils.Interface { - functions: { - "acceptOwnership()": FunctionFragment; - "connector()": FunctionFragment; - "interactorsByChainId(uint256)": FunctionFragment; - "owner()": FunctionFragment; - "pendingOwner()": FunctionFragment; - "renounceOwnership()": FunctionFragment; - "setInteractorByChainId(uint256,bytes)": FunctionFragment; - "transferOwnership(address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "acceptOwnership" - | "connector" - | "interactorsByChainId" - | "owner" - | "pendingOwner" - | "renounceOwnership" - | "setInteractorByChainId" - | "transferOwnership" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "acceptOwnership", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "connector", values?: undefined): string; - encodeFunctionData( - functionFragment: "interactorsByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "owner", values?: undefined): string; - encodeFunctionData( - functionFragment: "pendingOwner", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceOwnership", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "setInteractorByChainId", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "transferOwnership", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "acceptOwnership", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "connector", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "interactorsByChainId", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pendingOwner", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceOwnership", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setInteractorByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "transferOwnership", - data: BytesLike - ): Result; - - events: { - "OwnershipTransferStarted(address,address)": EventFragment; - "OwnershipTransferred(address,address)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "OwnershipTransferStarted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment; -} - -export interface OwnershipTransferStartedEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferStartedEvent = TypedEvent< - [string, string], - OwnershipTransferStartedEventObject ->; - -export type OwnershipTransferStartedEventFilter = - TypedEventFilter; - -export interface OwnershipTransferredEventObject { - previousOwner: string; - newOwner: string; -} -export type OwnershipTransferredEvent = TypedEvent< - [string, string], - OwnershipTransferredEventObject ->; - -export type OwnershipTransferredEventFilter = - TypedEventFilter; - -export interface ZetaInteractor extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaInteractorInterface; - - 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: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise<[string]>; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - owner(overrides?: CallOverrides): Promise<[string]>; - - pendingOwner(overrides?: CallOverrides): Promise<[string]>; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - acceptOwnership(overrides?: CallOverrides): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership(overrides?: CallOverrides): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: { - "OwnershipTransferStarted(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferStartedEventFilter; - OwnershipTransferStarted( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferStartedEventFilter; - - "OwnershipTransferred(address,address)"( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - OwnershipTransferred( - previousOwner?: PromiseOrValue | null, - newOwner?: PromiseOrValue | null - ): OwnershipTransferredEventFilter; - }; - - estimateGas: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - acceptOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - connector(overrides?: CallOverrides): Promise; - - interactorsByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - owner(overrides?: CallOverrides): Promise; - - pendingOwner(overrides?: CallOverrides): Promise; - - renounceOwnership( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setInteractorByChainId( - destinationChainId: PromiseOrValue, - contractAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferOwnership( - newOwner: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake.ts deleted file mode 100644 index f034d1d88..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake.ts +++ /dev/null @@ -1,240 +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 declare namespace ISwapRouterPancake { - export type ExactInputParamsStruct = { - path: PromiseOrValue; - recipient: PromiseOrValue; - amountIn: PromiseOrValue; - amountOutMinimum: PromiseOrValue; - }; - - export type ExactInputParamsStructOutput = [ - string, - string, - BigNumber, - BigNumber - ] & { - path: string; - recipient: string; - amountIn: BigNumber; - amountOutMinimum: BigNumber; - }; - - export type ExactInputSingleParamsStruct = { - tokenIn: PromiseOrValue; - tokenOut: PromiseOrValue; - fee: PromiseOrValue; - recipient: PromiseOrValue; - amountIn: PromiseOrValue; - amountOutMinimum: PromiseOrValue; - sqrtPriceLimitX96: PromiseOrValue; - }; - - export type ExactInputSingleParamsStructOutput = [ - string, - string, - number, - string, - BigNumber, - BigNumber, - BigNumber - ] & { - tokenIn: string; - tokenOut: string; - fee: number; - recipient: string; - amountIn: BigNumber; - amountOutMinimum: BigNumber; - sqrtPriceLimitX96: BigNumber; - }; -} - -export interface ISwapRouterPancakeInterface extends utils.Interface { - functions: { - "exactInput((bytes,address,uint256,uint256))": FunctionFragment; - "exactInputSingle((address,address,uint24,address,uint256,uint256,uint160))": FunctionFragment; - "uniswapV3SwapCallback(int256,int256,bytes)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "exactInput" - | "exactInputSingle" - | "uniswapV3SwapCallback" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "exactInput", - values: [ISwapRouterPancake.ExactInputParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "exactInputSingle", - values: [ISwapRouterPancake.ExactInputSingleParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "uniswapV3SwapCallback", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "exactInput", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "exactInputSingle", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapV3SwapCallback", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ISwapRouterPancake extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ISwapRouterPancakeInterface; - - 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: { - exactInput( - params: ISwapRouterPancake.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouterPancake.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - exactInput( - params: ISwapRouterPancake.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouterPancake.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - exactInput( - params: ISwapRouterPancake.ExactInputParamsStruct, - overrides?: CallOverrides - ): Promise; - - exactInputSingle( - params: ISwapRouterPancake.ExactInputSingleParamsStruct, - overrides?: CallOverrides - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - exactInput( - params: ISwapRouterPancake.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouterPancake.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - exactInput( - params: ISwapRouterPancake.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: ISwapRouterPancake.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - uniswapV3SwapCallback( - amount0Delta: PromiseOrValue, - amount1Delta: PromiseOrValue, - data: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9.ts deleted file mode 100644 index a2d73dde4..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9.ts +++ /dev/null @@ -1,103 +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 WETH9Interface extends utils.Interface { - functions: { - "withdraw(uint256)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "withdraw"): FunctionFragment; - - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - - events: {}; -} - -export interface WETH9 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: WETH9Interface; - - 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( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - withdraw( - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3.ts deleted file mode 100644 index e92e28986..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3.ts +++ /dev/null @@ -1,512 +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 ZetaTokenConsumerPancakeV3Interface extends utils.Interface { - functions: { - "WETH9Address()": FunctionFragment; - "getEthFromZeta(address,uint256,uint256)": FunctionFragment; - "getTokenFromZeta(address,uint256,address,uint256)": FunctionFragment; - "getZetaFromEth(address,uint256)": FunctionFragment; - "getZetaFromToken(address,uint256,address,uint256)": FunctionFragment; - "hasZetaLiquidity()": FunctionFragment; - "pancakeV3Router()": FunctionFragment; - "tokenPoolFee()": FunctionFragment; - "uniswapV3Factory()": FunctionFragment; - "zetaPoolFee()": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH9Address" - | "getEthFromZeta" - | "getTokenFromZeta" - | "getZetaFromEth" - | "getZetaFromToken" - | "hasZetaLiquidity" - | "pancakeV3Router" - | "tokenPoolFee" - | "uniswapV3Factory" - | "zetaPoolFee" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "WETH9Address", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getEthFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getTokenFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromEth", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromToken", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "hasZetaLiquidity", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "pancakeV3Router", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tokenPoolFee", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "uniswapV3Factory", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "zetaPoolFee", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "WETH9Address", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getEthFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getTokenFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromEth", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromToken", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "hasZetaLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "pancakeV3Router", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "tokenPoolFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapV3Factory", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "zetaPoolFee", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "EthExchangedForZeta(uint256,uint256)": EventFragment; - "TokenExchangedForZeta(address,uint256,uint256)": EventFragment; - "ZetaExchangedForEth(uint256,uint256)": EventFragment; - "ZetaExchangedForToken(address,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "EthExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TokenExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForEth"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForToken"): EventFragment; -} - -export interface EthExchangedForZetaEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type EthExchangedForZetaEvent = TypedEvent< - [BigNumber, BigNumber], - EthExchangedForZetaEventObject ->; - -export type EthExchangedForZetaEventFilter = - TypedEventFilter; - -export interface TokenExchangedForZetaEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type TokenExchangedForZetaEvent = TypedEvent< - [string, BigNumber, BigNumber], - TokenExchangedForZetaEventObject ->; - -export type TokenExchangedForZetaEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForEthEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForEthEvent = TypedEvent< - [BigNumber, BigNumber], - ZetaExchangedForEthEventObject ->; - -export type ZetaExchangedForEthEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForTokenEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForTokenEvent = TypedEvent< - [string, BigNumber, BigNumber], - ZetaExchangedForTokenEventObject ->; - -export type ZetaExchangedForTokenEventFilter = - TypedEventFilter; - -export interface ZetaTokenConsumerPancakeV3 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerPancakeV3Interface; - - 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: { - WETH9Address(overrides?: CallOverrides): Promise<[string]>; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise<[boolean]>; - - pancakeV3Router(overrides?: CallOverrides): Promise<[string]>; - - tokenPoolFee(overrides?: CallOverrides): Promise<[number]>; - - uniswapV3Factory(overrides?: CallOverrides): Promise<[string]>; - - zetaPoolFee(overrides?: CallOverrides): Promise<[number]>; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - pancakeV3Router(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - pancakeV3Router(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "EthExchangedForZeta(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - EthExchangedForZeta( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - - "TokenExchangedForZeta(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - TokenExchangedForZeta( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - - "ZetaExchangedForEth(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - ZetaExchangedForEth( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - - "ZetaExchangedForToken(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - ZetaExchangedForToken( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - }; - - estimateGas: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - pancakeV3Router(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - pancakeV3Router(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors.ts deleted file mode 100644 index 0586677cc..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors.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 ZetaTokenConsumerUniV3ErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaTokenConsumerUniV3Errors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerUniV3ErrorsInterface; - - 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/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts deleted file mode 100644 index 21dcda9d9..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ISwapRouterPancake } from "./ISwapRouterPancake"; -export type { WETH9 } from "./WETH9"; -export type { ZetaTokenConsumerPancakeV3 } from "./ZetaTokenConsumerPancakeV3"; -export type { ZetaTokenConsumerUniV3Errors } from "./ZetaTokenConsumerUniV3Errors"; diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9.ts deleted file mode 100644 index 9859f722b..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9.ts +++ /dev/null @@ -1,194 +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 WETH9Interface extends utils.Interface { - functions: { - "deposit()": FunctionFragment; - "depositTo(address)": FunctionFragment; - "withdraw(uint256)": FunctionFragment; - "withdrawTo(address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "deposit" | "depositTo" | "withdraw" | "withdrawTo" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "deposit", values?: undefined): string; - encodeFunctionData( - functionFragment: "depositTo", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdrawTo", - values: [PromiseOrValue, PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "depositTo", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "withdrawTo", data: BytesLike): Result; - - events: {}; -} - -export interface WETH9 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: WETH9Interface; - - 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: { - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - depositTo( - to: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawTo( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - depositTo( - to: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawTo( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - deposit(overrides?: CallOverrides): Promise; - - depositTo( - to: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawTo( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - depositTo( - to: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawTo( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - depositTo( - to: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawTo( - to: PromiseOrValue, - value: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident.ts deleted file mode 100644 index 0f3728037..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident.ts +++ /dev/null @@ -1,452 +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 ZetaTokenConsumerTridentInterface extends utils.Interface { - functions: { - "getEthFromZeta(address,uint256,uint256)": FunctionFragment; - "getTokenFromZeta(address,uint256,address,uint256)": FunctionFragment; - "getZetaFromEth(address,uint256)": FunctionFragment; - "getZetaFromToken(address,uint256,address,uint256)": FunctionFragment; - "hasZetaLiquidity()": FunctionFragment; - "poolFactory()": FunctionFragment; - "tridentRouter()": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "getEthFromZeta" - | "getTokenFromZeta" - | "getZetaFromEth" - | "getZetaFromToken" - | "hasZetaLiquidity" - | "poolFactory" - | "tridentRouter" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getEthFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getTokenFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromEth", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromToken", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "hasZetaLiquidity", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "poolFactory", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tridentRouter", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "getEthFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getTokenFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromEth", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromToken", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "hasZetaLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "poolFactory", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "tridentRouter", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "EthExchangedForZeta(uint256,uint256)": EventFragment; - "TokenExchangedForZeta(address,uint256,uint256)": EventFragment; - "ZetaExchangedForEth(uint256,uint256)": EventFragment; - "ZetaExchangedForToken(address,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "EthExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TokenExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForEth"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForToken"): EventFragment; -} - -export interface EthExchangedForZetaEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type EthExchangedForZetaEvent = TypedEvent< - [BigNumber, BigNumber], - EthExchangedForZetaEventObject ->; - -export type EthExchangedForZetaEventFilter = - TypedEventFilter; - -export interface TokenExchangedForZetaEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type TokenExchangedForZetaEvent = TypedEvent< - [string, BigNumber, BigNumber], - TokenExchangedForZetaEventObject ->; - -export type TokenExchangedForZetaEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForEthEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForEthEvent = TypedEvent< - [BigNumber, BigNumber], - ZetaExchangedForEthEventObject ->; - -export type ZetaExchangedForEthEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForTokenEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForTokenEvent = TypedEvent< - [string, BigNumber, BigNumber], - ZetaExchangedForTokenEventObject ->; - -export type ZetaExchangedForTokenEventFilter = - TypedEventFilter; - -export interface ZetaTokenConsumerTrident extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerTridentInterface; - - 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: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise<[boolean]>; - - poolFactory(overrides?: CallOverrides): Promise<[string]>; - - tridentRouter(overrides?: CallOverrides): Promise<[string]>; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - poolFactory(overrides?: CallOverrides): Promise; - - tridentRouter(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - poolFactory(overrides?: CallOverrides): Promise; - - tridentRouter(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "EthExchangedForZeta(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - EthExchangedForZeta( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - - "TokenExchangedForZeta(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - TokenExchangedForZeta( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - - "ZetaExchangedForEth(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - ZetaExchangedForEth( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - - "ZetaExchangedForToken(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - ZetaExchangedForToken( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - }; - - estimateGas: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - poolFactory(overrides?: CallOverrides): Promise; - - tridentRouter(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - poolFactory(overrides?: CallOverrides): Promise; - - tridentRouter(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors.ts deleted file mode 100644 index 83f6b8d23..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors.ts +++ /dev/null @@ -1,57 +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 ZetaTokenConsumerTridentErrorsInterface - extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaTokenConsumerTridentErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerTridentErrorsInterface; - - 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/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts deleted file mode 100644 index 8b60d4c3c..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { WETH9 } from "./WETH9"; -export type { ZetaTokenConsumerTrident } from "./ZetaTokenConsumerTrident"; -export type { ZetaTokenConsumerTridentErrors } from "./ZetaTokenConsumerTridentErrors"; diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2.ts deleted file mode 100644 index 2b138eeea..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2.ts +++ /dev/null @@ -1,412 +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 ZetaTokenConsumerUniV2Interface extends utils.Interface { - functions: { - "getEthFromZeta(address,uint256,uint256)": FunctionFragment; - "getTokenFromZeta(address,uint256,address,uint256)": FunctionFragment; - "getZetaFromEth(address,uint256)": FunctionFragment; - "getZetaFromToken(address,uint256,address,uint256)": FunctionFragment; - "hasZetaLiquidity()": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "getEthFromZeta" - | "getTokenFromZeta" - | "getZetaFromEth" - | "getZetaFromToken" - | "hasZetaLiquidity" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "getEthFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getTokenFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromEth", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromToken", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "hasZetaLiquidity", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "getEthFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getTokenFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromEth", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromToken", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "hasZetaLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "EthExchangedForZeta(uint256,uint256)": EventFragment; - "TokenExchangedForZeta(address,uint256,uint256)": EventFragment; - "ZetaExchangedForEth(uint256,uint256)": EventFragment; - "ZetaExchangedForToken(address,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "EthExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TokenExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForEth"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForToken"): EventFragment; -} - -export interface EthExchangedForZetaEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type EthExchangedForZetaEvent = TypedEvent< - [BigNumber, BigNumber], - EthExchangedForZetaEventObject ->; - -export type EthExchangedForZetaEventFilter = - TypedEventFilter; - -export interface TokenExchangedForZetaEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type TokenExchangedForZetaEvent = TypedEvent< - [string, BigNumber, BigNumber], - TokenExchangedForZetaEventObject ->; - -export type TokenExchangedForZetaEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForEthEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForEthEvent = TypedEvent< - [BigNumber, BigNumber], - ZetaExchangedForEthEventObject ->; - -export type ZetaExchangedForEthEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForTokenEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForTokenEvent = TypedEvent< - [string, BigNumber, BigNumber], - ZetaExchangedForTokenEventObject ->; - -export type ZetaExchangedForTokenEventFilter = - TypedEventFilter; - -export interface ZetaTokenConsumerUniV2 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerUniV2Interface; - - 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: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise<[boolean]>; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "EthExchangedForZeta(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - EthExchangedForZeta( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - - "TokenExchangedForZeta(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - TokenExchangedForZeta( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - - "ZetaExchangedForEth(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - ZetaExchangedForEth( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - - "ZetaExchangedForToken(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - ZetaExchangedForToken( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - }; - - estimateGas: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors.ts deleted file mode 100644 index 2918fb138..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors.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 ZetaTokenConsumerUniV2ErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaTokenConsumerUniV2Errors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerUniV2ErrorsInterface; - - 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/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts deleted file mode 100644 index 8e2b13b04..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaTokenConsumerUniV2 } from "./ZetaTokenConsumerUniV2"; -export type { ZetaTokenConsumerUniV2Errors } from "./ZetaTokenConsumerUniV2Errors"; diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9.ts deleted file mode 100644 index a2d73dde4..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9.ts +++ /dev/null @@ -1,103 +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 WETH9Interface extends utils.Interface { - functions: { - "withdraw(uint256)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "withdraw"): FunctionFragment; - - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - - events: {}; -} - -export interface WETH9 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: WETH9Interface; - - 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( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - withdraw( - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3.ts deleted file mode 100644 index c9c149206..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3.ts +++ /dev/null @@ -1,512 +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 ZetaTokenConsumerUniV3Interface extends utils.Interface { - functions: { - "WETH9Address()": FunctionFragment; - "getEthFromZeta(address,uint256,uint256)": FunctionFragment; - "getTokenFromZeta(address,uint256,address,uint256)": FunctionFragment; - "getZetaFromEth(address,uint256)": FunctionFragment; - "getZetaFromToken(address,uint256,address,uint256)": FunctionFragment; - "hasZetaLiquidity()": FunctionFragment; - "tokenPoolFee()": FunctionFragment; - "uniswapV3Factory()": FunctionFragment; - "uniswapV3Router()": FunctionFragment; - "zetaPoolFee()": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH9Address" - | "getEthFromZeta" - | "getTokenFromZeta" - | "getZetaFromEth" - | "getZetaFromToken" - | "hasZetaLiquidity" - | "tokenPoolFee" - | "uniswapV3Factory" - | "uniswapV3Router" - | "zetaPoolFee" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "WETH9Address", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getEthFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getTokenFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromEth", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromToken", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "hasZetaLiquidity", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tokenPoolFee", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "uniswapV3Factory", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "uniswapV3Router", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "zetaPoolFee", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "WETH9Address", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getEthFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getTokenFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromEth", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromToken", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "hasZetaLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "tokenPoolFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapV3Factory", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapV3Router", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "zetaPoolFee", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "EthExchangedForZeta(uint256,uint256)": EventFragment; - "TokenExchangedForZeta(address,uint256,uint256)": EventFragment; - "ZetaExchangedForEth(uint256,uint256)": EventFragment; - "ZetaExchangedForToken(address,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "EthExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TokenExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForEth"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForToken"): EventFragment; -} - -export interface EthExchangedForZetaEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type EthExchangedForZetaEvent = TypedEvent< - [BigNumber, BigNumber], - EthExchangedForZetaEventObject ->; - -export type EthExchangedForZetaEventFilter = - TypedEventFilter; - -export interface TokenExchangedForZetaEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type TokenExchangedForZetaEvent = TypedEvent< - [string, BigNumber, BigNumber], - TokenExchangedForZetaEventObject ->; - -export type TokenExchangedForZetaEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForEthEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForEthEvent = TypedEvent< - [BigNumber, BigNumber], - ZetaExchangedForEthEventObject ->; - -export type ZetaExchangedForEthEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForTokenEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForTokenEvent = TypedEvent< - [string, BigNumber, BigNumber], - ZetaExchangedForTokenEventObject ->; - -export type ZetaExchangedForTokenEventFilter = - TypedEventFilter; - -export interface ZetaTokenConsumerUniV3 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerUniV3Interface; - - 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: { - WETH9Address(overrides?: CallOverrides): Promise<[string]>; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise<[boolean]>; - - tokenPoolFee(overrides?: CallOverrides): Promise<[number]>; - - uniswapV3Factory(overrides?: CallOverrides): Promise<[string]>; - - uniswapV3Router(overrides?: CallOverrides): Promise<[string]>; - - zetaPoolFee(overrides?: CallOverrides): Promise<[number]>; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - uniswapV3Router(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - uniswapV3Router(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "EthExchangedForZeta(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - EthExchangedForZeta( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - - "TokenExchangedForZeta(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - TokenExchangedForZeta( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - - "ZetaExchangedForEth(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - ZetaExchangedForEth( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - - "ZetaExchangedForToken(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - ZetaExchangedForToken( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - }; - - estimateGas: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - uniswapV3Router(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - tokenPoolFee(overrides?: CallOverrides): Promise; - - uniswapV3Factory(overrides?: CallOverrides): Promise; - - uniswapV3Router(overrides?: CallOverrides): Promise; - - zetaPoolFee(overrides?: CallOverrides): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors.ts deleted file mode 100644 index 0586677cc..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors.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 ZetaTokenConsumerUniV3ErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaTokenConsumerUniV3Errors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerUniV3ErrorsInterface; - - 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/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts deleted file mode 100644 index bf980c427..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { WETH9 } from "./WETH9"; -export type { ZetaTokenConsumerUniV3 } from "./ZetaTokenConsumerUniV3"; -export type { ZetaTokenConsumerUniV3Errors } from "./ZetaTokenConsumerUniV3Errors"; diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM.ts deleted file mode 100644 index b73495e9c..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM.ts +++ /dev/null @@ -1,418 +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 ZetaTokenConsumerZEVMInterface extends utils.Interface { - functions: { - "WETH9Address()": FunctionFragment; - "getEthFromZeta(address,uint256,uint256)": FunctionFragment; - "getTokenFromZeta(address,uint256,address,uint256)": FunctionFragment; - "getZetaFromEth(address,uint256)": FunctionFragment; - "getZetaFromToken(address,uint256,address,uint256)": FunctionFragment; - "hasZetaLiquidity()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH9Address" - | "getEthFromZeta" - | "getTokenFromZeta" - | "getZetaFromEth" - | "getZetaFromToken" - | "hasZetaLiquidity" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "WETH9Address", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "getEthFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getTokenFromZeta", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromEth", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "getZetaFromToken", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "hasZetaLiquidity", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "WETH9Address", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getEthFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getTokenFromZeta", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromEth", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getZetaFromToken", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "hasZetaLiquidity", - data: BytesLike - ): Result; - - events: { - "EthExchangedForZeta(uint256,uint256)": EventFragment; - "TokenExchangedForZeta(address,uint256,uint256)": EventFragment; - "ZetaExchangedForEth(uint256,uint256)": EventFragment; - "ZetaExchangedForToken(address,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "EthExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TokenExchangedForZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForEth"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaExchangedForToken"): EventFragment; -} - -export interface EthExchangedForZetaEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type EthExchangedForZetaEvent = TypedEvent< - [BigNumber, BigNumber], - EthExchangedForZetaEventObject ->; - -export type EthExchangedForZetaEventFilter = - TypedEventFilter; - -export interface TokenExchangedForZetaEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type TokenExchangedForZetaEvent = TypedEvent< - [string, BigNumber, BigNumber], - TokenExchangedForZetaEventObject ->; - -export type TokenExchangedForZetaEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForEthEventObject { - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForEthEvent = TypedEvent< - [BigNumber, BigNumber], - ZetaExchangedForEthEventObject ->; - -export type ZetaExchangedForEthEventFilter = - TypedEventFilter; - -export interface ZetaExchangedForTokenEventObject { - token: string; - amountIn: BigNumber; - amountOut: BigNumber; -} -export type ZetaExchangedForTokenEvent = TypedEvent< - [string, BigNumber, BigNumber], - ZetaExchangedForTokenEventObject ->; - -export type ZetaExchangedForTokenEventFilter = - TypedEventFilter; - -export interface ZetaTokenConsumerZEVM extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerZEVMInterface; - - 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: { - WETH9Address(overrides?: CallOverrides): Promise<[string]>; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise<[boolean]>; - }; - - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - - callStatic: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - }; - - filters: { - "EthExchangedForZeta(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - EthExchangedForZeta( - amountIn?: null, - amountOut?: null - ): EthExchangedForZetaEventFilter; - - "TokenExchangedForZeta(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - TokenExchangedForZeta( - token?: null, - amountIn?: null, - amountOut?: null - ): TokenExchangedForZetaEventFilter; - - "ZetaExchangedForEth(uint256,uint256)"( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - ZetaExchangedForEth( - amountIn?: null, - amountOut?: null - ): ZetaExchangedForEthEventFilter; - - "ZetaExchangedForToken(address,uint256,uint256)"( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - ZetaExchangedForToken( - token?: null, - amountIn?: null, - amountOut?: null - ): ZetaExchangedForTokenEventFilter; - }; - - estimateGas: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - WETH9Address(overrides?: CallOverrides): Promise; - - getEthFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getTokenFromZeta( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - outputToken: PromiseOrValue, - zetaTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromEth( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - getZetaFromToken( - destinationAddress: PromiseOrValue, - minAmountOut: PromiseOrValue, - inputToken: PromiseOrValue, - inputTokenAmount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - hasZetaLiquidity(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors.ts deleted file mode 100644 index 8270526f5..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors.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 ZetaTokenConsumerZEVMErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZetaTokenConsumerZEVMErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaTokenConsumerZEVMErrorsInterface; - - 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/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts b/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts deleted file mode 100644 index 689c8b791..000000000 --- a/v1/typechain-types/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaTokenConsumerZEVM } from "./ZetaTokenConsumerZEVM"; -export type { ZetaTokenConsumerZEVMErrors } from "./ZetaTokenConsumerZEVMErrors"; diff --git a/v1/typechain-types/contracts/evm/tools/index.ts b/v1/typechain-types/contracts/evm/tools/index.ts deleted file mode 100644 index d83e83b9e..000000000 --- a/v1/typechain-types/contracts/evm/tools/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as immutableCreate2FactorySol from "./ImmutableCreate2Factory.sol"; -export type { immutableCreate2FactorySol }; -import type * as zetaTokenConsumerPancakeV3StrategySol from "./ZetaTokenConsumerPancakeV3.strategy.sol"; -export type { zetaTokenConsumerPancakeV3StrategySol }; -import type * as zetaTokenConsumerTridentStrategySol from "./ZetaTokenConsumerTrident.strategy.sol"; -export type { zetaTokenConsumerTridentStrategySol }; -import type * as zetaTokenConsumerUniV2StrategySol from "./ZetaTokenConsumerUniV2.strategy.sol"; -export type { zetaTokenConsumerUniV2StrategySol }; -import type * as zetaTokenConsumerUniV3StrategySol from "./ZetaTokenConsumerUniV3.strategy.sol"; -export type { zetaTokenConsumerUniV3StrategySol }; -import type * as zetaTokenConsumerZevmStrategySol from "./ZetaTokenConsumerZEVM.strategy.sol"; -export type { zetaTokenConsumerZevmStrategySol }; -import type * as interfaces from "./interfaces"; -export type { interfaces }; -export type { ZetaInteractor } from "./ZetaInteractor"; diff --git a/v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory.ts b/v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory.ts deleted file mode 100644 index 412ed6441..000000000 --- a/v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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 ConcentratedLiquidityPoolFactoryInterface - extends utils.Interface { - functions: { - "getPools(address,address,uint256,uint256)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "getPools"): FunctionFragment; - - encodeFunctionData( - functionFragment: "getPools", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "getPools", data: BytesLike): Result; - - events: {}; -} - -export interface ConcentratedLiquidityPoolFactory extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ConcentratedLiquidityPoolFactoryInterface; - - 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: { - getPools( - token0: PromiseOrValue, - token1: PromiseOrValue, - startIndex: PromiseOrValue, - count: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string[]] & { pairPools: string[] }>; - }; - - getPools( - token0: PromiseOrValue, - token1: PromiseOrValue, - startIndex: PromiseOrValue, - count: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - callStatic: { - getPools( - token0: PromiseOrValue, - token1: PromiseOrValue, - startIndex: PromiseOrValue, - count: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - getPools( - token0: PromiseOrValue, - token1: PromiseOrValue, - startIndex: PromiseOrValue, - count: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - populateTransaction: { - getPools( - token0: PromiseOrValue, - token1: PromiseOrValue, - startIndex: PromiseOrValue, - count: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts b/v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts deleted file mode 100644 index fda1a5828..000000000 --- a/v1/typechain-types/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ConcentratedLiquidityPoolFactory } from "./ConcentratedLiquidityPoolFactory"; diff --git a/v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter.ts b/v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter.ts deleted file mode 100644 index f98576570..000000000 --- a/v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter.ts +++ /dev/null @@ -1,359 +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 declare namespace IPoolRouter { - export type ExactInputParamsStruct = { - tokenIn: PromiseOrValue; - amountIn: PromiseOrValue; - amountOutMinimum: PromiseOrValue; - path: PromiseOrValue[]; - to: PromiseOrValue; - unwrap: PromiseOrValue; - }; - - export type ExactInputParamsStructOutput = [ - string, - BigNumber, - BigNumber, - string[], - string, - boolean - ] & { - tokenIn: string; - amountIn: BigNumber; - amountOutMinimum: BigNumber; - path: string[]; - to: string; - unwrap: boolean; - }; - - export type ExactInputSingleParamsStruct = { - tokenIn: PromiseOrValue; - amountIn: PromiseOrValue; - amountOutMinimum: PromiseOrValue; - pool: PromiseOrValue; - to: PromiseOrValue; - unwrap: PromiseOrValue; - }; - - export type ExactInputSingleParamsStructOutput = [ - string, - BigNumber, - BigNumber, - string, - string, - boolean - ] & { - tokenIn: string; - amountIn: BigNumber; - amountOutMinimum: BigNumber; - pool: string; - to: string; - unwrap: boolean; - }; - - export type ExactOutputParamsStruct = { - tokenIn: PromiseOrValue; - amountOut: PromiseOrValue; - amountInMaximum: PromiseOrValue; - path: PromiseOrValue[]; - to: PromiseOrValue; - unwrap: PromiseOrValue; - }; - - export type ExactOutputParamsStructOutput = [ - string, - BigNumber, - BigNumber, - string[], - string, - boolean - ] & { - tokenIn: string; - amountOut: BigNumber; - amountInMaximum: BigNumber; - path: string[]; - to: string; - unwrap: boolean; - }; - - export type ExactOutputSingleParamsStruct = { - tokenIn: PromiseOrValue; - amountOut: PromiseOrValue; - amountInMaximum: PromiseOrValue; - pool: PromiseOrValue; - to: PromiseOrValue; - unwrap: PromiseOrValue; - }; - - export type ExactOutputSingleParamsStructOutput = [ - string, - BigNumber, - BigNumber, - string, - string, - boolean - ] & { - tokenIn: string; - amountOut: BigNumber; - amountInMaximum: BigNumber; - pool: string; - to: string; - unwrap: boolean; - }; -} - -export interface IPoolRouterInterface extends utils.Interface { - functions: { - "exactInput((address,uint256,uint256,address[],address,bool))": FunctionFragment; - "exactInputSingle((address,uint256,uint256,address,address,bool))": FunctionFragment; - "exactOutput((address,uint256,uint256,address[],address,bool))": FunctionFragment; - "exactOutputSingle((address,uint256,uint256,address,address,bool))": FunctionFragment; - "sweep(address,uint256,address)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "exactInput" - | "exactInputSingle" - | "exactOutput" - | "exactOutputSingle" - | "sweep" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "exactInput", - values: [IPoolRouter.ExactInputParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "exactInputSingle", - values: [IPoolRouter.ExactInputSingleParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "exactOutput", - values: [IPoolRouter.ExactOutputParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "exactOutputSingle", - values: [IPoolRouter.ExactOutputSingleParamsStruct] - ): string; - encodeFunctionData( - functionFragment: "sweep", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "exactInput", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "exactInputSingle", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "exactOutput", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "exactOutputSingle", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "sweep", data: BytesLike): Result; - - events: {}; -} - -export interface IPoolRouter extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IPoolRouterInterface; - - 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: { - exactInput( - params: IPoolRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: IPoolRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: IPoolRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: IPoolRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - sweep( - token: PromiseOrValue, - amount: PromiseOrValue, - recipient: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - exactInput( - params: IPoolRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: IPoolRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: IPoolRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: IPoolRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - sweep( - token: PromiseOrValue, - amount: PromiseOrValue, - recipient: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - exactInput( - params: IPoolRouter.ExactInputParamsStruct, - overrides?: CallOverrides - ): Promise; - - exactInputSingle( - params: IPoolRouter.ExactInputSingleParamsStruct, - overrides?: CallOverrides - ): Promise; - - exactOutput( - params: IPoolRouter.ExactOutputParamsStruct, - overrides?: CallOverrides - ): Promise; - - exactOutputSingle( - params: IPoolRouter.ExactOutputSingleParamsStruct, - overrides?: CallOverrides - ): Promise; - - sweep( - token: PromiseOrValue, - amount: PromiseOrValue, - recipient: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - exactInput( - params: IPoolRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: IPoolRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: IPoolRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: IPoolRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - sweep( - token: PromiseOrValue, - amount: PromiseOrValue, - recipient: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - exactInput( - params: IPoolRouter.ExactInputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactInputSingle( - params: IPoolRouter.ExactInputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutput( - params: IPoolRouter.ExactOutputParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - exactOutputSingle( - params: IPoolRouter.ExactOutputSingleParamsStruct, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - sweep( - token: PromiseOrValue, - amount: PromiseOrValue, - recipient: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts b/v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts deleted file mode 100644 index e5d212a64..000000000 --- a/v1/typechain-types/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IPoolRouter } from "./IPoolRouter"; diff --git a/v1/typechain-types/contracts/evm/tools/interfaces/index.ts b/v1/typechain-types/contracts/evm/tools/interfaces/index.ts deleted file mode 100644 index c5c047040..000000000 --- a/v1/typechain-types/contracts/evm/tools/interfaces/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as tridentConcentratedLiquidityPoolFactorySol from "./TridentConcentratedLiquidityPoolFactory.sol"; -export type { tridentConcentratedLiquidityPoolFactorySol }; -import type * as tridentIPoolRouterSol from "./TridentIPoolRouter.sol"; -export type { tridentIPoolRouterSol }; diff --git a/v1/typechain-types/contracts/index.ts b/v1/typechain-types/contracts/index.ts deleted file mode 100644 index 9efb820bc..000000000 --- a/v1/typechain-types/contracts/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as evm from "./evm"; -export type { evm }; -import type * as zevm from "./zevm"; -export type { zevm }; diff --git a/v1/typechain-types/contracts/zevm/Interfaces.sol/ISystem.ts b/v1/typechain-types/contracts/zevm/Interfaces.sol/ISystem.ts deleted file mode 100644 index 00b55b298..000000000 --- a/v1/typechain-types/contracts/zevm/Interfaces.sol/ISystem.ts +++ /dev/null @@ -1,243 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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 ISystemInterface extends utils.Interface { - functions: { - "FUNGIBLE_MODULE_ADDRESS()": FunctionFragment; - "gasCoinZRC20ByChainId(uint256)": FunctionFragment; - "gasPriceByChainId(uint256)": FunctionFragment; - "gasZetaPoolByChainId(uint256)": FunctionFragment; - "uniswapv2FactoryAddress()": FunctionFragment; - "wZetaContractAddress()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "FUNGIBLE_MODULE_ADDRESS" - | "gasCoinZRC20ByChainId" - | "gasPriceByChainId" - | "gasZetaPoolByChainId" - | "uniswapv2FactoryAddress" - | "wZetaContractAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "gasCoinZRC20ByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasPriceByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasZetaPoolByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "uniswapv2FactoryAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "wZetaContractAddress", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasCoinZRC20ByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasPriceByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasZetaPoolByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2FactoryAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "wZetaContractAddress", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ISystem extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ISystemInterface; - - 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: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise<[string]>; - - wZetaContractAddress(overrides?: CallOverrides): Promise<[string]>; - }; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - - callStatic: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - FUNGIBLE_MODULE_ADDRESS( - overrides?: CallOverrides - ): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress( - overrides?: CallOverrides - ): Promise; - - wZetaContractAddress( - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20.ts b/v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20.ts deleted file mode 100644 index 75f9c9e5b..000000000 --- a/v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20.ts +++ /dev/null @@ -1,547 +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 IZRC20Interface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "deposit(address,uint256)": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(bytes,uint256)": FunctionFragment; - "withdrawGasFee()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "deposit" - | "totalSupply" - | "transfer" - | "transferFrom" - | "withdraw" - | "withdrawGasFee" - ): 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: [PromiseOrValue, PromiseOrValue] - ): 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, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdrawGasFee", - values?: undefined - ): 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; - decodeFunctionResult( - functionFragment: "withdrawGasFee", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Deposit(bytes,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - "UpdatedGasLimit(uint256)": EventFragment; - "UpdatedProtocolFlatFee(uint256)": EventFragment; - "UpdatedSystemContract(address)": EventFragment; - "Withdrawal(address,bytes,uint256,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedGasLimit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedProtocolFlatFee"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedSystemContract"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface DepositEventObject { - from: string; - to: string; - value: BigNumber; -} -export type DepositEvent = TypedEvent< - [string, string, BigNumber], - DepositEventObject ->; - -export type DepositEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface UpdatedGasLimitEventObject { - gasLimit: BigNumber; -} -export type UpdatedGasLimitEvent = TypedEvent< - [BigNumber], - UpdatedGasLimitEventObject ->; - -export type UpdatedGasLimitEventFilter = TypedEventFilter; - -export interface UpdatedProtocolFlatFeeEventObject { - protocolFlatFee: BigNumber; -} -export type UpdatedProtocolFlatFeeEvent = TypedEvent< - [BigNumber], - UpdatedProtocolFlatFeeEventObject ->; - -export type UpdatedProtocolFlatFeeEventFilter = - TypedEventFilter; - -export interface UpdatedSystemContractEventObject { - systemContract: string; -} -export type UpdatedSystemContractEvent = TypedEvent< - [string], - UpdatedSystemContractEventObject ->; - -export type UpdatedSystemContractEventFilter = - TypedEventFilter; - -export interface WithdrawalEventObject { - from: string; - to: string; - value: BigNumber; - gasfee: BigNumber; - protocolFlatFee: BigNumber; -} -export type WithdrawalEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber], - WithdrawalEventObject ->; - -export type WithdrawalEventFilter = TypedEventFilter; - -export interface IZRC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IZRC20Interface; - - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - - callStatic: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - account: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Deposit(bytes,address,uint256)"( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - Deposit( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - - "UpdatedGasLimit(uint256)"(gasLimit?: null): UpdatedGasLimitEventFilter; - UpdatedGasLimit(gasLimit?: null): UpdatedGasLimitEventFilter; - - "UpdatedProtocolFlatFee(uint256)"( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - UpdatedProtocolFlatFee( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - - "UpdatedSystemContract(address)"( - systemContract?: null - ): UpdatedSystemContractEventFilter; - UpdatedSystemContract( - systemContract?: null - ): UpdatedSystemContractEventFilter; - - "Withdrawal(address,bytes,uint256,uint256,uint256)"( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasfee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - Withdrawal( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasfee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - }; - - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20Metadata.ts b/v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20Metadata.ts deleted file mode 100644 index e5d692939..000000000 --- a/v1/typechain-types/contracts/zevm/Interfaces.sol/IZRC20Metadata.ts +++ /dev/null @@ -1,589 +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 IZRC20MetadataInterface extends utils.Interface { - functions: { - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "decimals()": FunctionFragment; - "deposit(address,uint256)": FunctionFragment; - "name()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(bytes,uint256)": FunctionFragment; - "withdrawGasFee()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "allowance" - | "approve" - | "balanceOf" - | "decimals" - | "deposit" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - | "withdraw" - | "withdrawGasFee" - ): 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: [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; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdrawGasFee", - values?: undefined - ): 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; - decodeFunctionResult( - functionFragment: "withdrawGasFee", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Deposit(bytes,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - "UpdatedGasLimit(uint256)": EventFragment; - "UpdatedProtocolFlatFee(uint256)": EventFragment; - "UpdatedSystemContract(address)": EventFragment; - "Withdrawal(address,bytes,uint256,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedGasLimit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedProtocolFlatFee"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedSystemContract"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface DepositEventObject { - from: string; - to: string; - value: BigNumber; -} -export type DepositEvent = TypedEvent< - [string, string, BigNumber], - DepositEventObject ->; - -export type DepositEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface UpdatedGasLimitEventObject { - gasLimit: BigNumber; -} -export type UpdatedGasLimitEvent = TypedEvent< - [BigNumber], - UpdatedGasLimitEventObject ->; - -export type UpdatedGasLimitEventFilter = TypedEventFilter; - -export interface UpdatedProtocolFlatFeeEventObject { - protocolFlatFee: BigNumber; -} -export type UpdatedProtocolFlatFeeEvent = TypedEvent< - [BigNumber], - UpdatedProtocolFlatFeeEventObject ->; - -export type UpdatedProtocolFlatFeeEventFilter = - TypedEventFilter; - -export interface UpdatedSystemContractEventObject { - systemContract: string; -} -export type UpdatedSystemContractEvent = TypedEvent< - [string], - UpdatedSystemContractEventObject ->; - -export type UpdatedSystemContractEventFilter = - TypedEventFilter; - -export interface WithdrawalEventObject { - from: string; - to: string; - value: BigNumber; - gasfee: BigNumber; - protocolFlatFee: BigNumber; -} -export type WithdrawalEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber], - WithdrawalEventObject ->; - -export type WithdrawalEventFilter = TypedEventFilter; - -export interface IZRC20Metadata extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IZRC20MetadataInterface; - - 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]>; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - - 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Deposit(bytes,address,uint256)"( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - Deposit( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - - "UpdatedGasLimit(uint256)"(gasLimit?: null): UpdatedGasLimitEventFilter; - UpdatedGasLimit(gasLimit?: null): UpdatedGasLimitEventFilter; - - "UpdatedProtocolFlatFee(uint256)"( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - UpdatedProtocolFlatFee( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - - "UpdatedSystemContract(address)"( - systemContract?: null - ): UpdatedSystemContractEventFilter; - UpdatedSystemContract( - systemContract?: null - ): UpdatedSystemContractEventFilter; - - "Withdrawal(address,bytes,uint256,uint256,uint256)"( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasfee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - Withdrawal( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasfee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - }; - - 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/Interfaces.sol/index.ts b/v1/typechain-types/contracts/zevm/Interfaces.sol/index.ts deleted file mode 100644 index dcf2792a2..000000000 --- a/v1/typechain-types/contracts/zevm/Interfaces.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ISystem } from "./ISystem"; -export type { IZRC20 } from "./IZRC20"; -export type { IZRC20Metadata } from "./IZRC20Metadata"; diff --git a/v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContract.ts b/v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContract.ts deleted file mode 100644 index fdba48292..000000000 --- a/v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContract.ts +++ /dev/null @@ -1,706 +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 type ZContextStruct = { - origin: PromiseOrValue; - sender: PromiseOrValue; - chainID: PromiseOrValue; -}; - -export type ZContextStructOutput = [string, string, BigNumber] & { - origin: string; - sender: string; - chainID: BigNumber; -}; - -export interface SystemContractInterface extends utils.Interface { - functions: { - "FUNGIBLE_MODULE_ADDRESS()": FunctionFragment; - "depositAndCall((bytes,address,uint256),address,uint256,address,bytes)": FunctionFragment; - "gasCoinZRC20ByChainId(uint256)": FunctionFragment; - "gasPriceByChainId(uint256)": FunctionFragment; - "gasZetaPoolByChainId(uint256)": FunctionFragment; - "setConnectorZEVMAddress(address)": FunctionFragment; - "setGasCoinZRC20(uint256,address)": FunctionFragment; - "setGasPrice(uint256,uint256)": FunctionFragment; - "setGasZetaPool(uint256,address)": FunctionFragment; - "setWZETAContractAddress(address)": FunctionFragment; - "uniswapv2FactoryAddress()": FunctionFragment; - "uniswapv2PairFor(address,address,address)": FunctionFragment; - "uniswapv2Router02Address()": FunctionFragment; - "wZetaContractAddress()": FunctionFragment; - "zetaConnectorZEVMAddress()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "FUNGIBLE_MODULE_ADDRESS" - | "depositAndCall" - | "gasCoinZRC20ByChainId" - | "gasPriceByChainId" - | "gasZetaPoolByChainId" - | "setConnectorZEVMAddress" - | "setGasCoinZRC20" - | "setGasPrice" - | "setGasZetaPool" - | "setWZETAContractAddress" - | "uniswapv2FactoryAddress" - | "uniswapv2PairFor" - | "uniswapv2Router02Address" - | "wZetaContractAddress" - | "zetaConnectorZEVMAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "depositAndCall", - values: [ - ZContextStruct, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "gasCoinZRC20ByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasPriceByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasZetaPoolByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setConnectorZEVMAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setGasCoinZRC20", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setGasPrice", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setGasZetaPool", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setWZETAContractAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "uniswapv2FactoryAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "uniswapv2PairFor", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "uniswapv2Router02Address", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "wZetaContractAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "zetaConnectorZEVMAddress", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "depositAndCall", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasCoinZRC20ByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasPriceByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasZetaPoolByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setConnectorZEVMAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setGasCoinZRC20", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setGasPrice", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setGasZetaPool", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setWZETAContractAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2FactoryAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2PairFor", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2Router02Address", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "wZetaContractAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "zetaConnectorZEVMAddress", - data: BytesLike - ): Result; - - events: { - "SetConnectorZEVM(address)": EventFragment; - "SetGasCoin(uint256,address)": EventFragment; - "SetGasPrice(uint256,uint256)": EventFragment; - "SetGasZetaPool(uint256,address)": EventFragment; - "SetWZeta(address)": EventFragment; - "SystemContractDeployed()": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "SetConnectorZEVM"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetGasCoin"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetGasPrice"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetGasZetaPool"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetWZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SystemContractDeployed"): EventFragment; -} - -export interface SetConnectorZEVMEventObject { - arg0: string; -} -export type SetConnectorZEVMEvent = TypedEvent< - [string], - SetConnectorZEVMEventObject ->; - -export type SetConnectorZEVMEventFilter = - TypedEventFilter; - -export interface SetGasCoinEventObject { - arg0: BigNumber; - arg1: string; -} -export type SetGasCoinEvent = TypedEvent< - [BigNumber, string], - SetGasCoinEventObject ->; - -export type SetGasCoinEventFilter = TypedEventFilter; - -export interface SetGasPriceEventObject { - arg0: BigNumber; - arg1: BigNumber; -} -export type SetGasPriceEvent = TypedEvent< - [BigNumber, BigNumber], - SetGasPriceEventObject ->; - -export type SetGasPriceEventFilter = TypedEventFilter; - -export interface SetGasZetaPoolEventObject { - arg0: BigNumber; - arg1: string; -} -export type SetGasZetaPoolEvent = TypedEvent< - [BigNumber, string], - SetGasZetaPoolEventObject ->; - -export type SetGasZetaPoolEventFilter = TypedEventFilter; - -export interface SetWZetaEventObject { - arg0: string; -} -export type SetWZetaEvent = TypedEvent<[string], SetWZetaEventObject>; - -export type SetWZetaEventFilter = TypedEventFilter; - -export interface SystemContractDeployedEventObject {} -export type SystemContractDeployedEvent = TypedEvent< - [], - SystemContractDeployedEventObject ->; - -export type SystemContractDeployedEventFilter = - TypedEventFilter; - -export interface SystemContract extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: SystemContractInterface; - - 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: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - depositAndCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - target: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - setConnectorZEVMAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasZetaPool( - chainID: PromiseOrValue, - erc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise<[string]>; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { pair: string }>; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise<[string]>; - - wZetaContractAddress(overrides?: CallOverrides): Promise<[string]>; - - zetaConnectorZEVMAddress(overrides?: CallOverrides): Promise<[string]>; - }; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - depositAndCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - target: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setConnectorZEVMAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasZetaPool( - chainID: PromiseOrValue, - erc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - - zetaConnectorZEVMAddress(overrides?: CallOverrides): Promise; - - callStatic: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - depositAndCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - target: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setConnectorZEVMAddress( - addr: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setGasZetaPool( - chainID: PromiseOrValue, - erc20: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - - zetaConnectorZEVMAddress(overrides?: CallOverrides): Promise; - }; - - filters: { - "SetConnectorZEVM(address)"(arg0?: null): SetConnectorZEVMEventFilter; - SetConnectorZEVM(arg0?: null): SetConnectorZEVMEventFilter; - - "SetGasCoin(uint256,address)"( - arg0?: null, - arg1?: null - ): SetGasCoinEventFilter; - SetGasCoin(arg0?: null, arg1?: null): SetGasCoinEventFilter; - - "SetGasPrice(uint256,uint256)"( - arg0?: null, - arg1?: null - ): SetGasPriceEventFilter; - SetGasPrice(arg0?: null, arg1?: null): SetGasPriceEventFilter; - - "SetGasZetaPool(uint256,address)"( - arg0?: null, - arg1?: null - ): SetGasZetaPoolEventFilter; - SetGasZetaPool(arg0?: null, arg1?: null): SetGasZetaPoolEventFilter; - - "SetWZeta(address)"(arg0?: null): SetWZetaEventFilter; - SetWZeta(arg0?: null): SetWZetaEventFilter; - - "SystemContractDeployed()"(): SystemContractDeployedEventFilter; - SystemContractDeployed(): SystemContractDeployedEventFilter; - }; - - estimateGas: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - depositAndCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - target: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setConnectorZEVMAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasZetaPool( - chainID: PromiseOrValue, - erc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - - zetaConnectorZEVMAddress(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - FUNGIBLE_MODULE_ADDRESS( - overrides?: CallOverrides - ): Promise; - - depositAndCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - target: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setConnectorZEVMAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasZetaPool( - chainID: PromiseOrValue, - erc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress( - overrides?: CallOverrides - ): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address( - overrides?: CallOverrides - ): Promise; - - wZetaContractAddress( - overrides?: CallOverrides - ): Promise; - - zetaConnectorZEVMAddress( - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContractErrors.ts b/v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContractErrors.ts deleted file mode 100644 index 899efe1ad..000000000 --- a/v1/typechain-types/contracts/zevm/SystemContract.sol/SystemContractErrors.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 SystemContractErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface SystemContractErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: SystemContractErrorsInterface; - - 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/v1/typechain-types/contracts/zevm/SystemContract.sol/index.ts b/v1/typechain-types/contracts/zevm/SystemContract.sol/index.ts deleted file mode 100644 index d5591cc54..000000000 --- a/v1/typechain-types/contracts/zevm/SystemContract.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { SystemContract } from "./SystemContract"; -export type { SystemContractErrors } from "./SystemContractErrors"; diff --git a/v1/typechain-types/contracts/zevm/WZETA.sol/WETH9.ts b/v1/typechain-types/contracts/zevm/WZETA.sol/WETH9.ts deleted file mode 100644 index 5bbb26eee..000000000 --- a/v1/typechain-types/contracts/zevm/WZETA.sol/WETH9.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 WETH9Interface 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 WETH9 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: WETH9Interface; - - 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/v1/typechain-types/contracts/zevm/WZETA.sol/index.ts b/v1/typechain-types/contracts/zevm/WZETA.sol/index.ts deleted file mode 100644 index 3f0312328..000000000 --- a/v1/typechain-types/contracts/zevm/WZETA.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { WETH9 } from "./WETH9"; diff --git a/v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20.ts b/v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20.ts deleted file mode 100644 index 615255e3c..000000000 --- a/v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20.ts +++ /dev/null @@ -1,832 +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 ZRC20Interface extends utils.Interface { - functions: { - "CHAIN_ID()": FunctionFragment; - "COIN_TYPE()": FunctionFragment; - "FUNGIBLE_MODULE_ADDRESS()": FunctionFragment; - "GAS_LIMIT()": FunctionFragment; - "PROTOCOL_FLAT_FEE()": FunctionFragment; - "SYSTEM_CONTRACT_ADDRESS()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(uint256)": FunctionFragment; - "decimals()": FunctionFragment; - "deposit(address,uint256)": FunctionFragment; - "name()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "updateGasLimit(uint256)": FunctionFragment; - "updateProtocolFlatFee(uint256)": FunctionFragment; - "updateSystemContractAddress(address)": FunctionFragment; - "withdraw(bytes,uint256)": FunctionFragment; - "withdrawGasFee()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "CHAIN_ID" - | "COIN_TYPE" - | "FUNGIBLE_MODULE_ADDRESS" - | "GAS_LIMIT" - | "PROTOCOL_FLAT_FEE" - | "SYSTEM_CONTRACT_ADDRESS" - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "decimals" - | "deposit" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - | "updateGasLimit" - | "updateProtocolFlatFee" - | "updateSystemContractAddress" - | "withdraw" - | "withdrawGasFee" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "CHAIN_ID", values?: undefined): string; - encodeFunctionData(functionFragment: "COIN_TYPE", values?: undefined): string; - encodeFunctionData( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "GAS_LIMIT", values?: undefined): string; - encodeFunctionData( - functionFragment: "PROTOCOL_FLAT_FEE", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "SYSTEM_CONTRACT_ADDRESS", - values?: undefined - ): string; - 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: "decimals", values?: undefined): string; - encodeFunctionData( - functionFragment: "deposit", - 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; - encodeFunctionData( - functionFragment: "updateGasLimit", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateProtocolFlatFee", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateSystemContractAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdrawGasFee", - values?: undefined - ): string; - - decodeFunctionResult(functionFragment: "CHAIN_ID", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "COIN_TYPE", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "GAS_LIMIT", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "PROTOCOL_FLAT_FEE", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "SYSTEM_CONTRACT_ADDRESS", - data: BytesLike - ): Result; - 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: "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: "updateGasLimit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateProtocolFlatFee", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateSystemContractAddress", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "withdrawGasFee", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Deposit(bytes,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - "UpdatedGasLimit(uint256)": EventFragment; - "UpdatedProtocolFlatFee(uint256)": EventFragment; - "UpdatedSystemContract(address)": EventFragment; - "Withdrawal(address,bytes,uint256,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedGasLimit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedProtocolFlatFee"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedSystemContract"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface DepositEventObject { - from: string; - to: string; - value: BigNumber; -} -export type DepositEvent = TypedEvent< - [string, string, BigNumber], - DepositEventObject ->; - -export type DepositEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface UpdatedGasLimitEventObject { - gasLimit: BigNumber; -} -export type UpdatedGasLimitEvent = TypedEvent< - [BigNumber], - UpdatedGasLimitEventObject ->; - -export type UpdatedGasLimitEventFilter = TypedEventFilter; - -export interface UpdatedProtocolFlatFeeEventObject { - protocolFlatFee: BigNumber; -} -export type UpdatedProtocolFlatFeeEvent = TypedEvent< - [BigNumber], - UpdatedProtocolFlatFeeEventObject ->; - -export type UpdatedProtocolFlatFeeEventFilter = - TypedEventFilter; - -export interface UpdatedSystemContractEventObject { - systemContract: string; -} -export type UpdatedSystemContractEvent = TypedEvent< - [string], - UpdatedSystemContractEventObject ->; - -export type UpdatedSystemContractEventFilter = - TypedEventFilter; - -export interface WithdrawalEventObject { - from: string; - to: string; - value: BigNumber; - gasFee: BigNumber; - protocolFlatFee: BigNumber; -} -export type WithdrawalEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber], - WithdrawalEventObject ->; - -export type WithdrawalEventFilter = TypedEventFilter; - -export interface ZRC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZRC20Interface; - - 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: { - CHAIN_ID(overrides?: CallOverrides): Promise<[BigNumber]>; - - COIN_TYPE(overrides?: CallOverrides): Promise<[number]>; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - GAS_LIMIT(overrides?: CallOverrides): Promise<[BigNumber]>; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise<[BigNumber]>; - - SYSTEM_CONTRACT_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - 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; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - 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; - - updateGasLimit( - gasLimit: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateProtocolFlatFee( - protocolFlatFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateSystemContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - CHAIN_ID(overrides?: CallOverrides): Promise; - - COIN_TYPE(overrides?: CallOverrides): Promise; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - GAS_LIMIT(overrides?: CallOverrides): Promise; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise; - - SYSTEM_CONTRACT_ADDRESS(overrides?: CallOverrides): 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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; - - updateGasLimit( - gasLimit: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateProtocolFlatFee( - protocolFlatFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateSystemContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - - callStatic: { - CHAIN_ID(overrides?: CallOverrides): Promise; - - COIN_TYPE(overrides?: CallOverrides): Promise; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - GAS_LIMIT(overrides?: CallOverrides): Promise; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise; - - SYSTEM_CONTRACT_ADDRESS(overrides?: CallOverrides): Promise; - - 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(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; - - updateGasLimit( - gasLimit: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateProtocolFlatFee( - protocolFlatFee: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateSystemContractAddress( - addr: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Deposit(bytes,address,uint256)"( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - Deposit( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - - "UpdatedGasLimit(uint256)"(gasLimit?: null): UpdatedGasLimitEventFilter; - UpdatedGasLimit(gasLimit?: null): UpdatedGasLimitEventFilter; - - "UpdatedProtocolFlatFee(uint256)"( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - UpdatedProtocolFlatFee( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - - "UpdatedSystemContract(address)"( - systemContract?: null - ): UpdatedSystemContractEventFilter; - UpdatedSystemContract( - systemContract?: null - ): UpdatedSystemContractEventFilter; - - "Withdrawal(address,bytes,uint256,uint256,uint256)"( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasFee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - Withdrawal( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasFee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - }; - - estimateGas: { - CHAIN_ID(overrides?: CallOverrides): Promise; - - COIN_TYPE(overrides?: CallOverrides): Promise; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - GAS_LIMIT(overrides?: CallOverrides): Promise; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise; - - SYSTEM_CONTRACT_ADDRESS(overrides?: CallOverrides): 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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; - - updateGasLimit( - gasLimit: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateProtocolFlatFee( - protocolFlatFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateSystemContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - CHAIN_ID(overrides?: CallOverrides): Promise; - - COIN_TYPE(overrides?: CallOverrides): Promise; - - FUNGIBLE_MODULE_ADDRESS( - overrides?: CallOverrides - ): Promise; - - GAS_LIMIT(overrides?: CallOverrides): Promise; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise; - - SYSTEM_CONTRACT_ADDRESS( - overrides?: CallOverrides - ): 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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; - - updateGasLimit( - gasLimit: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateProtocolFlatFee( - protocolFlatFee: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateSystemContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20Errors.ts b/v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20Errors.ts deleted file mode 100644 index fd71e53f1..000000000 --- a/v1/typechain-types/contracts/zevm/ZRC20.sol/ZRC20Errors.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 ZRC20ErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface ZRC20Errors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZRC20ErrorsInterface; - - 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/v1/typechain-types/contracts/zevm/ZRC20.sol/index.ts b/v1/typechain-types/contracts/zevm/ZRC20.sol/index.ts deleted file mode 100644 index 0a0051223..000000000 --- a/v1/typechain-types/contracts/zevm/ZRC20.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZRC20 } from "./ZRC20"; -export type { ZRC20Errors } from "./ZRC20Errors"; diff --git a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/WZETA.ts b/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/WZETA.ts deleted file mode 100644 index 0dd3f8b9f..000000000 --- a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/WZETA.ts +++ /dev/null @@ -1,153 +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 WZETAInterface extends utils.Interface { - functions: { - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "transferFrom" | "withdraw" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "transferFrom", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue] - ): string; - - decodeFunctionResult( - functionFragment: "transferFrom", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; - - events: {}; -} - -export interface WZETA extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: WZETAInterface; - - 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: { - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - 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: { - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - transferFrom( - src: PromiseOrValue, - dst: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts b/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts deleted file mode 100644 index f310b3cc5..000000000 --- a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts +++ /dev/null @@ -1,468 +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 ZetaInterfaces { - export type SendInputStruct = { - destinationChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationGasLimit: PromiseOrValue; - message: PromiseOrValue; - zetaValueAndGas: PromiseOrValue; - zetaParams: PromiseOrValue; - }; - - export type SendInputStructOutput = [ - BigNumber, - string, - BigNumber, - string, - BigNumber, - string - ] & { - destinationChainId: BigNumber; - destinationAddress: string; - destinationGasLimit: BigNumber; - message: string; - zetaValueAndGas: BigNumber; - zetaParams: string; - }; -} - -export interface ZetaConnectorZEVMInterface extends utils.Interface { - functions: { - "FUNGIBLE_MODULE_ADDRESS()": FunctionFragment; - "onReceive(bytes,uint256,address,uint256,bytes,bytes32)": FunctionFragment; - "onRevert(address,uint256,bytes,uint256,uint256,bytes,bytes32)": FunctionFragment; - "send((uint256,bytes,uint256,bytes,uint256,bytes))": FunctionFragment; - "setWzetaAddress(address)": FunctionFragment; - "wzeta()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "FUNGIBLE_MODULE_ADDRESS" - | "onReceive" - | "onRevert" - | "send" - | "setWzetaAddress" - | "wzeta" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "onReceive", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "onRevert", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ZetaInterfaces.SendInputStruct] - ): string; - encodeFunctionData( - functionFragment: "setWzetaAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "wzeta", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "onReceive", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "onRevert", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "setWzetaAddress", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "wzeta", data: BytesLike): Result; - - events: { - "SetWZETA(address)": EventFragment; - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)": EventFragment; - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)": EventFragment; - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "SetWZETA"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReceived"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReverted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaSent"): EventFragment; -} - -export interface SetWZETAEventObject { - wzeta_: string; -} -export type SetWZETAEvent = TypedEvent<[string], SetWZETAEventObject>; - -export type SetWZETAEventFilter = TypedEventFilter; - -export interface ZetaReceivedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaReceivedEvent = TypedEvent< - [string, BigNumber, string, BigNumber, string, string], - ZetaReceivedEventObject ->; - -export type ZetaReceivedEventFilter = TypedEventFilter; - -export interface ZetaRevertedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationChainId: BigNumber; - destinationAddress: string; - remainingZetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaRevertedEvent = TypedEvent< - [string, BigNumber, BigNumber, string, BigNumber, string, string], - ZetaRevertedEventObject ->; - -export type ZetaRevertedEventFilter = TypedEventFilter; - -export interface ZetaSentEventObject { - sourceTxOriginAddress: string; - zetaTxSenderAddress: string; - destinationChainId: BigNumber; - destinationAddress: string; - zetaValueAndGas: BigNumber; - destinationGasLimit: BigNumber; - message: string; - zetaParams: string; -} -export type ZetaSentEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, string], - ZetaSentEventObject ->; - -export type ZetaSentEventFilter = TypedEventFilter; - -export interface ZetaConnectorZEVM extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaConnectorZEVMInterface; - - 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: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWzetaAddress( - wzeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - wzeta(overrides?: CallOverrides): Promise<[string]>; - }; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWzetaAddress( - wzeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - wzeta(overrides?: CallOverrides): Promise; - - callStatic: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: CallOverrides - ): Promise; - - setWzetaAddress( - wzeta_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - wzeta(overrides?: CallOverrides): Promise; - }; - - filters: { - "SetWZETA(address)"(wzeta_?: null): SetWZETAEventFilter; - SetWZETA(wzeta_?: null): SetWZETAEventFilter; - - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - ZetaReceived( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - ZetaReverted( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)"( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - ZetaSent( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - }; - - estimateGas: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWzetaAddress( - wzeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - wzeta(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - FUNGIBLE_MODULE_ADDRESS( - overrides?: CallOverrides - ): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWzetaAddress( - wzeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - wzeta(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver.ts b/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver.ts deleted file mode 100644 index 65e3d5832..000000000 --- a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver.ts +++ /dev/null @@ -1,191 +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 declare namespace ZetaInterfaces { - export type ZetaMessageStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - zetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaMessageStructOutput = [ - string, - BigNumber, - string, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - }; - - export type ZetaRevertStruct = { - zetaTxSenderAddress: PromiseOrValue; - sourceChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationChainId: PromiseOrValue; - remainingZetaValue: PromiseOrValue; - message: PromiseOrValue; - }; - - export type ZetaRevertStructOutput = [ - string, - BigNumber, - string, - BigNumber, - BigNumber, - string - ] & { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - destinationChainId: BigNumber; - remainingZetaValue: BigNumber; - message: string; - }; -} - -export interface ZetaReceiverInterface extends utils.Interface { - functions: { - "onZetaMessage((bytes,uint256,address,uint256,bytes))": FunctionFragment; - "onZetaRevert((address,uint256,bytes,uint256,uint256,bytes))": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "onZetaMessage" | "onZetaRevert" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "onZetaMessage", - values: [ZetaInterfaces.ZetaMessageStruct] - ): string; - encodeFunctionData( - functionFragment: "onZetaRevert", - values: [ZetaInterfaces.ZetaRevertStruct] - ): string; - - decodeFunctionResult( - functionFragment: "onZetaMessage", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onZetaRevert", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ZetaReceiver extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaReceiverInterface; - - 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: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: CallOverrides - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - onZetaMessage( - zetaMessage: ZetaInterfaces.ZetaMessageStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onZetaRevert( - zetaRevert: ZetaInterfaces.ZetaRevertStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/index.ts b/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/index.ts deleted file mode 100644 index 0080b402a..000000000 --- a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { ZetaConnectorZEVM } from "./ZetaConnectorZEVM"; -export type { ZetaReceiver } from "./ZetaReceiver"; diff --git a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.ts b/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.ts deleted file mode 100644 index 458eba9d6..000000000 --- a/v1/typechain-types/contracts/zevm/ZetaConnectorZEVM.ts +++ /dev/null @@ -1,726 +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 declare namespace ZetaInterfaces { - export type SendInputStruct = { - destinationChainId: PromiseOrValue; - destinationAddress: PromiseOrValue; - destinationGasLimit: PromiseOrValue; - message: PromiseOrValue; - zetaValueAndGas: PromiseOrValue; - zetaParams: PromiseOrValue; - }; - - export type SendInputStructOutput = [ - BigNumber, - string, - BigNumber, - string, - BigNumber, - string - ] & { - destinationChainId: BigNumber; - destinationAddress: string; - destinationGasLimit: BigNumber; - message: string; - zetaValueAndGas: BigNumber; - zetaParams: string; - }; -} - -export interface ZetaConnectorZEVMInterface extends utils.Interface { - functions: { - "FUNGIBLE_MODULE_ADDRESS()": FunctionFragment; - "onReceive(bytes,uint256,address,uint256,bytes,bytes32)": FunctionFragment; - "onRevert(address,uint256,bytes,uint256,uint256,bytes,bytes32)": FunctionFragment; - "pause()": FunctionFragment; - "paused()": FunctionFragment; - "pauserAddress()": FunctionFragment; - "renounceTssAddressUpdater()": FunctionFragment; - "send((uint256,bytes,uint256,bytes,uint256,bytes))": FunctionFragment; - "tssAddress()": FunctionFragment; - "tssAddressUpdater()": FunctionFragment; - "unpause()": FunctionFragment; - "updatePauserAddress(address)": FunctionFragment; - "updateTssAddress(address)": FunctionFragment; - "zetaToken()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "FUNGIBLE_MODULE_ADDRESS" - | "onReceive" - | "onRevert" - | "pause" - | "paused" - | "pauserAddress" - | "renounceTssAddressUpdater" - | "send" - | "tssAddress" - | "tssAddressUpdater" - | "unpause" - | "updatePauserAddress" - | "updateTssAddress" - | "zetaToken" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "onReceive", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "onRevert", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "pause", values?: undefined): string; - encodeFunctionData(functionFragment: "paused", values?: undefined): string; - encodeFunctionData( - functionFragment: "pauserAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "renounceTssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "send", - values: [ZetaInterfaces.SendInputStruct] - ): string; - encodeFunctionData( - functionFragment: "tssAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "tssAddressUpdater", - values?: undefined - ): string; - encodeFunctionData(functionFragment: "unpause", values?: undefined): string; - encodeFunctionData( - functionFragment: "updatePauserAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "updateTssAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData(functionFragment: "zetaToken", values?: undefined): string; - - decodeFunctionResult( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "onReceive", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "onRevert", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "pauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "renounceTssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "send", data: BytesLike): Result; - decodeFunctionResult(functionFragment: "tssAddress", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "tssAddressUpdater", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "updatePauserAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "updateTssAddress", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "zetaToken", data: BytesLike): Result; - - events: { - "Paused(address)": EventFragment; - "PauserAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdated(address,address)": EventFragment; - "TSSAddressUpdaterUpdated(address,address)": EventFragment; - "Unpaused(address)": EventFragment; - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)": EventFragment; - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)": EventFragment; - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "PauserAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "TSSAddressUpdaterUpdated"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReceived"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaReverted"): EventFragment; - getEvent(nameOrSignatureOrTopic: "ZetaSent"): EventFragment; -} - -export interface PausedEventObject { - account: string; -} -export type PausedEvent = TypedEvent<[string], PausedEventObject>; - -export type PausedEventFilter = TypedEventFilter; - -export interface PauserAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type PauserAddressUpdatedEvent = TypedEvent< - [string, string], - PauserAddressUpdatedEventObject ->; - -export type PauserAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdatedEventObject { - callerAddress: string; - newTssAddress: string; -} -export type TSSAddressUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdatedEventObject ->; - -export type TSSAddressUpdatedEventFilter = - TypedEventFilter; - -export interface TSSAddressUpdaterUpdatedEventObject { - callerAddress: string; - newTssUpdaterAddress: string; -} -export type TSSAddressUpdaterUpdatedEvent = TypedEvent< - [string, string], - TSSAddressUpdaterUpdatedEventObject ->; - -export type TSSAddressUpdaterUpdatedEventFilter = - TypedEventFilter; - -export interface UnpausedEventObject { - account: string; -} -export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>; - -export type UnpausedEventFilter = TypedEventFilter; - -export interface ZetaReceivedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationAddress: string; - zetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaReceivedEvent = TypedEvent< - [string, BigNumber, string, BigNumber, string, string], - ZetaReceivedEventObject ->; - -export type ZetaReceivedEventFilter = TypedEventFilter; - -export interface ZetaRevertedEventObject { - zetaTxSenderAddress: string; - sourceChainId: BigNumber; - destinationChainId: BigNumber; - destinationAddress: string; - remainingZetaValue: BigNumber; - message: string; - internalSendHash: string; -} -export type ZetaRevertedEvent = TypedEvent< - [string, BigNumber, BigNumber, string, BigNumber, string, string], - ZetaRevertedEventObject ->; - -export type ZetaRevertedEventFilter = TypedEventFilter; - -export interface ZetaSentEventObject { - sourceTxOriginAddress: string; - zetaTxSenderAddress: string; - destinationChainId: BigNumber; - destinationAddress: string; - zetaValueAndGas: BigNumber; - destinationGasLimit: BigNumber; - message: string; - zetaParams: string; -} -export type ZetaSentEvent = TypedEvent< - [string, string, BigNumber, string, BigNumber, BigNumber, string, string], - ZetaSentEventObject ->; - -export type ZetaSentEventFilter = TypedEventFilter; - -export interface ZetaConnectorZEVM extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZetaConnectorZEVMInterface; - - 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: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise<[boolean]>; - - pauserAddress(overrides?: CallOverrides): Promise<[string]>; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise<[string]>; - - tssAddressUpdater(overrides?: CallOverrides): Promise<[string]>; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise<[string]>; - }; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - - callStatic: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - pause(overrides?: CallOverrides): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater(overrides?: CallOverrides): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: CallOverrides - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause(overrides?: CallOverrides): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - filters: { - "Paused(address)"(account?: null): PausedEventFilter; - Paused(account?: null): PausedEventFilter; - - "PauserAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - PauserAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): PauserAddressUpdatedEventFilter; - - "TSSAddressUpdated(address,address)"( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - TSSAddressUpdated( - callerAddress?: null, - newTssAddress?: null - ): TSSAddressUpdatedEventFilter; - - "TSSAddressUpdaterUpdated(address,address)"( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - TSSAddressUpdaterUpdated( - callerAddress?: null, - newTssUpdaterAddress?: null - ): TSSAddressUpdaterUpdatedEventFilter; - - "Unpaused(address)"(account?: null): UnpausedEventFilter; - Unpaused(account?: null): UnpausedEventFilter; - - "ZetaReceived(bytes,uint256,address,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - ZetaReceived( - zetaTxSenderAddress?: null, - sourceChainId?: PromiseOrValue | null, - destinationAddress?: PromiseOrValue | null, - zetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaReceivedEventFilter; - - "ZetaReverted(address,uint256,uint256,bytes,uint256,bytes,bytes32)"( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - ZetaReverted( - zetaTxSenderAddress?: null, - sourceChainId?: null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - remainingZetaValue?: null, - message?: null, - internalSendHash?: PromiseOrValue | null - ): ZetaRevertedEventFilter; - - "ZetaSent(address,address,uint256,bytes,uint256,uint256,bytes,bytes)"( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - ZetaSent( - sourceTxOriginAddress?: null, - zetaTxSenderAddress?: PromiseOrValue | null, - destinationChainId?: PromiseOrValue | null, - destinationAddress?: null, - zetaValueAndGas?: null, - destinationGasLimit?: null, - message?: null, - zetaParams?: null - ): ZetaSentEventFilter; - }; - - estimateGas: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - FUNGIBLE_MODULE_ADDRESS( - overrides?: CallOverrides - ): Promise; - - onReceive( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - zetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - zetaTxSenderAddress: PromiseOrValue, - sourceChainId: PromiseOrValue, - destinationAddress: PromiseOrValue, - destinationChainId: PromiseOrValue, - remainingZetaValue: PromiseOrValue, - message: PromiseOrValue, - internalSendHash: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - pause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - paused(overrides?: CallOverrides): Promise; - - pauserAddress(overrides?: CallOverrides): Promise; - - renounceTssAddressUpdater( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - send( - input: ZetaInterfaces.SendInputStruct, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - tssAddress(overrides?: CallOverrides): Promise; - - tssAddressUpdater(overrides?: CallOverrides): Promise; - - unpause( - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updatePauserAddress( - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - updateTssAddress( - tssAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - zetaToken(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/index.ts b/v1/typechain-types/contracts/zevm/index.ts deleted file mode 100644 index ce645d9d7..000000000 --- a/v1/typechain-types/contracts/zevm/index.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as systemContractSol from "./SystemContract.sol"; -export type { systemContractSol }; -import type * as wzetaSol from "./WZETA.sol"; -export type { wzetaSol }; -import type * as zrc20Sol from "./ZRC20.sol"; -export type { zrc20Sol }; -import type * as zetaConnectorZevmSol from "./ZetaConnectorZEVM.sol"; -export type { zetaConnectorZevmSol }; -import type * as interfaces from "./interfaces"; -export type { interfaces }; -import type * as testing from "./testing"; -export type { testing }; diff --git a/v1/typechain-types/contracts/zevm/interfaces/ISystem.ts b/v1/typechain-types/contracts/zevm/interfaces/ISystem.ts deleted file mode 100644 index 00b55b298..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/ISystem.ts +++ /dev/null @@ -1,243 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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 ISystemInterface extends utils.Interface { - functions: { - "FUNGIBLE_MODULE_ADDRESS()": FunctionFragment; - "gasCoinZRC20ByChainId(uint256)": FunctionFragment; - "gasPriceByChainId(uint256)": FunctionFragment; - "gasZetaPoolByChainId(uint256)": FunctionFragment; - "uniswapv2FactoryAddress()": FunctionFragment; - "wZetaContractAddress()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "FUNGIBLE_MODULE_ADDRESS" - | "gasCoinZRC20ByChainId" - | "gasPriceByChainId" - | "gasZetaPoolByChainId" - | "uniswapv2FactoryAddress" - | "wZetaContractAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "gasCoinZRC20ByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasPriceByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasZetaPoolByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "uniswapv2FactoryAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "wZetaContractAddress", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasCoinZRC20ByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasPriceByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasZetaPoolByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2FactoryAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "wZetaContractAddress", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ISystem extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ISystemInterface; - - 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: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise<[string]>; - - wZetaContractAddress(overrides?: CallOverrides): Promise<[string]>; - }; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - - callStatic: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - FUNGIBLE_MODULE_ADDRESS( - overrides?: CallOverrides - ): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress( - overrides?: CallOverrides - ): Promise; - - wZetaContractAddress( - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router01.ts b/v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router01.ts deleted file mode 100644 index 34dae69b0..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router01.ts +++ /dev/null @@ -1,1175 +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 IUniswapV2Router01Interface extends utils.Interface { - functions: { - "WETH()": FunctionFragment; - "addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "addLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "factory()": FunctionFragment; - "getAmountIn(uint256,uint256,uint256)": FunctionFragment; - "getAmountOut(uint256,uint256,uint256)": FunctionFragment; - "getAmountsIn(uint256,address[])": FunctionFragment; - "getAmountsOut(uint256,address[])": FunctionFragment; - "quote(uint256,uint256,uint256)": FunctionFragment; - "removeLiquidity(address,address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHWithPermit(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityWithPermit(address,address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "swapETHForExactTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH" - | "addLiquidity" - | "addLiquidityETH" - | "factory" - | "getAmountIn" - | "getAmountOut" - | "getAmountsIn" - | "getAmountsOut" - | "quote" - | "removeLiquidity" - | "removeLiquidityETH" - | "removeLiquidityETHWithPermit" - | "removeLiquidityWithPermit" - | "swapETHForExactTokens" - | "swapExactETHForTokens" - | "swapExactTokensForETH" - | "swapExactTokensForTokens" - | "swapTokensForExactETH" - | "swapTokensForExactTokens" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "WETH", values?: undefined): string; - encodeFunctionData( - functionFragment: "addLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "addLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData( - functionFragment: "getAmountIn", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountOut", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountsIn", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "getAmountsOut", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "quote", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapETHForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "addLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "addLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getAmountIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountOut", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsOut", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "quote", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapETHForExactTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactTokens", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV2Router01 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2Router01Interface; - - 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: { - WETH(overrides?: CallOverrides): Promise<[string]>; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountIn: BigNumber }>; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountOut: BigNumber }>; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountB: BigNumber }>; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountA: BigNumber; - amountB: BigNumber; - liquidity: BigNumber; - } - >; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountToken: BigNumber; - amountETH: BigNumber; - liquidity: BigNumber; - } - >; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router02.ts b/v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router02.ts deleted file mode 100644 index 57cbbd636..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IUniswapV2Router02.ts +++ /dev/null @@ -1,1510 +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 IUniswapV2Router02Interface extends utils.Interface { - functions: { - "WETH()": FunctionFragment; - "addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "addLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "factory()": FunctionFragment; - "getAmountIn(uint256,uint256,uint256)": FunctionFragment; - "getAmountOut(uint256,uint256,uint256)": FunctionFragment; - "getAmountsIn(uint256,address[])": FunctionFragment; - "getAmountsOut(uint256,address[])": FunctionFragment; - "quote(uint256,uint256,uint256)": FunctionFragment; - "removeLiquidity(address,address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETH(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHSupportingFeeOnTransferTokens(address,uint256,uint256,uint256,address,uint256)": FunctionFragment; - "removeLiquidityETHWithPermit(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "removeLiquidityWithPermit(address,address,uint256,uint256,uint256,address,uint256,bool,uint8,bytes32,bytes32)": FunctionFragment; - "swapETHForExactTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactETHForTokensSupportingFeeOnTransferTokens(uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactETH(uint256,uint256,address[],address,uint256)": FunctionFragment; - "swapTokensForExactTokens(uint256,uint256,address[],address,uint256)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "WETH" - | "addLiquidity" - | "addLiquidityETH" - | "factory" - | "getAmountIn" - | "getAmountOut" - | "getAmountsIn" - | "getAmountsOut" - | "quote" - | "removeLiquidity" - | "removeLiquidityETH" - | "removeLiquidityETHSupportingFeeOnTransferTokens" - | "removeLiquidityETHWithPermit" - | "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens" - | "removeLiquidityWithPermit" - | "swapETHForExactTokens" - | "swapExactETHForTokens" - | "swapExactETHForTokensSupportingFeeOnTransferTokens" - | "swapExactTokensForETH" - | "swapExactTokensForETHSupportingFeeOnTransferTokens" - | "swapExactTokensForTokens" - | "swapExactTokensForTokensSupportingFeeOnTransferTokens" - | "swapTokensForExactETH" - | "swapTokensForExactTokens" - ): FunctionFragment; - - encodeFunctionData(functionFragment: "WETH", values?: undefined): string; - encodeFunctionData( - functionFragment: "addLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "addLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData(functionFragment: "factory", values?: undefined): string; - encodeFunctionData( - functionFragment: "getAmountIn", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountOut", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "getAmountsIn", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "getAmountsOut", - values: [PromiseOrValue, PromiseOrValue[]] - ): string; - encodeFunctionData( - functionFragment: "quote", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidity", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "removeLiquidityWithPermit", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapETHForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactETHForTokensSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForETHSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactETH", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "swapTokensForExactTokens", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue[], - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult(functionFragment: "WETH", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "addLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "addLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "getAmountIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountOut", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsIn", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "getAmountsOut", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "quote", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "removeLiquidity", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "removeLiquidityWithPermit", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapETHForExactTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactETHForTokensSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForETHSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactETH", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "swapTokensForExactTokens", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IUniswapV2Router02 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IUniswapV2Router02Interface; - - 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: { - WETH(overrides?: CallOverrides): Promise<[string]>; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise<[string]>; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountIn: BigNumber }>; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountOut: BigNumber }>; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise<[BigNumber[]] & { amounts: BigNumber[] }>; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber] & { amountB: BigNumber }>; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountA: BigNumber; - amountB: BigNumber; - liquidity: BigNumber; - } - >; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber, BigNumber] & { - amountToken: BigNumber; - amountETH: BigNumber; - liquidity: BigNumber; - } - >; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountToken: BigNumber; amountETH: BigNumber } - >; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: CallOverrides - ): Promise< - [BigNumber, BigNumber] & { amountA: BigNumber; amountB: BigNumber } - >; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - WETH(overrides?: CallOverrides): Promise; - - addLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - amountADesired: PromiseOrValue, - amountBDesired: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - addLiquidityETH( - token: PromiseOrValue, - amountTokenDesired: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - factory(overrides?: CallOverrides): Promise; - - getAmountIn( - amountOut: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountOut( - amountIn: PromiseOrValue, - reserveIn: PromiseOrValue, - reserveOut: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - getAmountsIn( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - getAmountsOut( - amountIn: PromiseOrValue, - path: PromiseOrValue[], - overrides?: CallOverrides - ): Promise; - - quote( - amountA: PromiseOrValue, - reserveA: PromiseOrValue, - reserveB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - removeLiquidity( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETH( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermit( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( - token: PromiseOrValue, - liquidity: PromiseOrValue, - amountTokenMin: PromiseOrValue, - amountETHMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - removeLiquidityWithPermit( - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - liquidity: PromiseOrValue, - amountAMin: PromiseOrValue, - amountBMin: PromiseOrValue, - to: PromiseOrValue, - deadline: PromiseOrValue, - approveMax: PromiseOrValue, - v: PromiseOrValue, - r: PromiseOrValue, - s: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapETHForExactTokens( - amountOut: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactETHForTokensSupportingFeeOnTransferTokens( - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETH( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForETHSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapExactTokensForTokensSupportingFeeOnTransferTokens( - amountIn: PromiseOrValue, - amountOutMin: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactETH( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - swapTokensForExactTokens( - amountOut: PromiseOrValue, - amountInMax: PromiseOrValue, - path: PromiseOrValue[], - to: PromiseOrValue, - deadline: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/IWETH9.ts b/v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/IWETH9.ts deleted file mode 100644 index fadc91d25..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/IWETH9.ts +++ /dev/null @@ -1,438 +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 IWETH9Interface 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: { - "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 { - owner: string; - spender: string; - value: 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 { - from: string; - to: string; - value: 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 IWETH9 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IWETH9Interface; - - 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, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; - - transfer( - to: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - wad: 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, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - wad: 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, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit(overrides?: CallOverrides): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - wad: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdraw( - wad: 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; - - "Deposit(address,uint256)"( - dst?: PromiseOrValue | null, - wad?: null - ): DepositEventFilter; - Deposit( - dst?: PromiseOrValue | null, - wad?: null - ): DepositEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - - "Withdrawal(address,uint256)"( - src?: PromiseOrValue | null, - wad?: null - ): WithdrawalEventFilter; - Withdrawal( - src?: PromiseOrValue | null, - wad?: null - ): WithdrawalEventFilter; - }; - - estimateGas: { - allowance( - owner: PromiseOrValue, - spender: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - approve( - spender: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - wad: 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, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - balanceOf( - owner: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - overrides?: PayableOverrides & { from?: PromiseOrValue } - ): Promise; - - totalSupply(overrides?: CallOverrides): Promise; - - transfer( - to: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - transferFrom( - from: PromiseOrValue, - to: PromiseOrValue, - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdraw( - wad: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/index.ts b/v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/index.ts deleted file mode 100644 index 95069327d..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IWZETA.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IWETH9 } from "./IWETH9"; diff --git a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ISystem.ts b/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ISystem.ts deleted file mode 100644 index 82bef724e..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ISystem.ts +++ /dev/null @@ -1,243 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { - BaseContract, - BigNumber, - BigNumberish, - 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 ISystemInterface extends utils.Interface { - functions: { - "FUNGIBLE_MODULE_ADDRESS()": FunctionFragment; - "gasCoinZRC20ByChainId(uint256)": FunctionFragment; - "gasPriceByChainId(uint256)": FunctionFragment; - "gasZetaPoolByChainId(uint256)": FunctionFragment; - "uniswapv2FactoryAddress()": FunctionFragment; - "wZetaContractAddress()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "FUNGIBLE_MODULE_ADDRESS" - | "gasCoinZRC20ByChainId" - | "gasPriceByChainId" - | "gasZetaPoolByChainId" - | "uniswapv2FactoryAddress" - | "wZetaContractAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "gasCoinZRC20ByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasPriceByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasZetaPoolByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "uniswapv2FactoryAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "wZetaContractAddress", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "FUNGIBLE_MODULE_ADDRESS", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasCoinZRC20ByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasPriceByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasZetaPoolByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2FactoryAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "wZetaContractAddress", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ISystem extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ISystemInterface; - - 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: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise<[string]>; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise<[string]>; - - wZetaContractAddress(overrides?: CallOverrides): Promise<[string]>; - }; - - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - - callStatic: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - filters: {}; - - estimateGas: { - FUNGIBLE_MODULE_ADDRESS(overrides?: CallOverrides): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - FUNGIBLE_MODULE_ADDRESS( - overrides?: CallOverrides - ): Promise; - - gasCoinZRC20ByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - chainID: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress( - overrides?: CallOverrides - ): Promise; - - wZetaContractAddress( - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20.ts b/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20.ts deleted file mode 100644 index 7950ed9ea..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20.ts +++ /dev/null @@ -1,432 +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 IZRC20Interface extends utils.Interface { - functions: { - "PROTOCOL_FLAT_FEE()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(uint256)": FunctionFragment; - "deposit(address,uint256)": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(bytes,uint256)": FunctionFragment; - "withdrawGasFee()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "PROTOCOL_FLAT_FEE" - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "deposit" - | "totalSupply" - | "transfer" - | "transferFrom" - | "withdraw" - | "withdrawGasFee" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "PROTOCOL_FLAT_FEE", - values?: undefined - ): string; - 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: "deposit", - values: [PromiseOrValue, PromiseOrValue] - ): 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, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdrawGasFee", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "PROTOCOL_FLAT_FEE", - data: BytesLike - ): Result; - 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: "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; - decodeFunctionResult( - functionFragment: "withdrawGasFee", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IZRC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IZRC20Interface; - - 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: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise<[BigNumber]>; - - 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - - callStatic: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise; - - 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - filters: {}; - - estimateGas: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata.ts b/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata.ts deleted file mode 100644 index 52d988caa..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata.ts +++ /dev/null @@ -1,474 +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 IZRC20MetadataInterface extends utils.Interface { - functions: { - "PROTOCOL_FLAT_FEE()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(uint256)": FunctionFragment; - "decimals()": FunctionFragment; - "deposit(address,uint256)": FunctionFragment; - "name()": FunctionFragment; - "symbol()": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(bytes,uint256)": FunctionFragment; - "withdrawGasFee()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "PROTOCOL_FLAT_FEE" - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "decimals" - | "deposit" - | "name" - | "symbol" - | "totalSupply" - | "transfer" - | "transferFrom" - | "withdraw" - | "withdrawGasFee" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "PROTOCOL_FLAT_FEE", - values?: undefined - ): string; - 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: "decimals", values?: undefined): string; - encodeFunctionData( - functionFragment: "deposit", - 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; - encodeFunctionData( - functionFragment: "withdraw", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdrawGasFee", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "PROTOCOL_FLAT_FEE", - data: BytesLike - ): Result; - 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: "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; - decodeFunctionResult( - functionFragment: "withdrawGasFee", - data: BytesLike - ): Result; - - events: {}; -} - -export interface IZRC20Metadata extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IZRC20MetadataInterface; - - 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: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise<[BigNumber]>; - - 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; - - decimals(overrides?: CallOverrides): Promise<[number]>; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise<[string]>; - - symbol(overrides?: CallOverrides): Promise<[string]>; - - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - - callStatic: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise; - - 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - filters: {}; - - estimateGas: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - decimals(overrides?: CallOverrides): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - name(overrides?: CallOverrides): Promise; - - symbol(overrides?: CallOverrides): 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events.ts b/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events.ts deleted file mode 100644 index ad5bc65f4..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events.ts +++ /dev/null @@ -1,219 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type { BaseContract, BigNumber, 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 ZRC20EventsInterface extends utils.Interface { - functions: {}; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Deposit(bytes,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - "UpdatedGasLimit(uint256)": EventFragment; - "UpdatedProtocolFlatFee(uint256)": EventFragment; - "UpdatedSystemContract(address)": EventFragment; - "Withdrawal(address,bytes,uint256,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedGasLimit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedProtocolFlatFee"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedSystemContract"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface DepositEventObject { - from: string; - to: string; - value: BigNumber; -} -export type DepositEvent = TypedEvent< - [string, string, BigNumber], - DepositEventObject ->; - -export type DepositEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface UpdatedGasLimitEventObject { - gasLimit: BigNumber; -} -export type UpdatedGasLimitEvent = TypedEvent< - [BigNumber], - UpdatedGasLimitEventObject ->; - -export type UpdatedGasLimitEventFilter = TypedEventFilter; - -export interface UpdatedProtocolFlatFeeEventObject { - protocolFlatFee: BigNumber; -} -export type UpdatedProtocolFlatFeeEvent = TypedEvent< - [BigNumber], - UpdatedProtocolFlatFeeEventObject ->; - -export type UpdatedProtocolFlatFeeEventFilter = - TypedEventFilter; - -export interface UpdatedSystemContractEventObject { - systemContract: string; -} -export type UpdatedSystemContractEvent = TypedEvent< - [string], - UpdatedSystemContractEventObject ->; - -export type UpdatedSystemContractEventFilter = - TypedEventFilter; - -export interface WithdrawalEventObject { - from: string; - to: string; - value: BigNumber; - gasFee: BigNumber; - protocolFlatFee: BigNumber; -} -export type WithdrawalEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber], - WithdrawalEventObject ->; - -export type WithdrawalEventFilter = TypedEventFilter; - -export interface ZRC20Events extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZRC20EventsInterface; - - 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: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Deposit(bytes,address,uint256)"( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - Deposit( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - - "UpdatedGasLimit(uint256)"(gasLimit?: null): UpdatedGasLimitEventFilter; - UpdatedGasLimit(gasLimit?: null): UpdatedGasLimitEventFilter; - - "UpdatedProtocolFlatFee(uint256)"( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - UpdatedProtocolFlatFee( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - - "UpdatedSystemContract(address)"( - systemContract?: null - ): UpdatedSystemContractEventFilter; - UpdatedSystemContract( - systemContract?: null - ): UpdatedSystemContractEventFilter; - - "Withdrawal(address,bytes,uint256,uint256,uint256)"( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasFee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - Withdrawal( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasFee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - }; - - estimateGas: {}; - - populateTransaction: {}; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/index.ts b/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/index.ts deleted file mode 100644 index 603ef6e3b..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { IZRC20 } from "./IZRC20"; -export type { IZRC20Metadata } from "./IZRC20Metadata"; -export type { ZRC20Events } from "./ZRC20Events"; diff --git a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.ts b/v1/typechain-types/contracts/zevm/interfaces/IZRC20.ts deleted file mode 100644 index 6052dafa7..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/IZRC20.ts +++ /dev/null @@ -1,679 +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 IZRC20Interface extends utils.Interface { - functions: { - "PROTOCOL_FLAT_FEE()": FunctionFragment; - "allowance(address,address)": FunctionFragment; - "approve(address,uint256)": FunctionFragment; - "balanceOf(address)": FunctionFragment; - "burn(uint256)": FunctionFragment; - "decreaseAllowance(address,uint256)": FunctionFragment; - "deposit(address,uint256)": FunctionFragment; - "increaseAllowance(address,uint256)": FunctionFragment; - "totalSupply()": FunctionFragment; - "transfer(address,uint256)": FunctionFragment; - "transferFrom(address,address,uint256)": FunctionFragment; - "withdraw(bytes,uint256)": FunctionFragment; - "withdrawGasFee()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "PROTOCOL_FLAT_FEE" - | "allowance" - | "approve" - | "balanceOf" - | "burn" - | "decreaseAllowance" - | "deposit" - | "increaseAllowance" - | "totalSupply" - | "transfer" - | "transferFrom" - | "withdraw" - | "withdrawGasFee" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "PROTOCOL_FLAT_FEE", - values?: undefined - ): string; - 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: "decreaseAllowance", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "deposit", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "increaseAllowance", - values: [PromiseOrValue, PromiseOrValue] - ): 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, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "withdrawGasFee", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "PROTOCOL_FLAT_FEE", - data: BytesLike - ): Result; - 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: "decreaseAllowance", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result; - decodeFunctionResult( - functionFragment: "increaseAllowance", - 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; - decodeFunctionResult( - functionFragment: "withdrawGasFee", - data: BytesLike - ): Result; - - events: { - "Approval(address,address,uint256)": EventFragment; - "Deposit(bytes,address,uint256)": EventFragment; - "Transfer(address,address,uint256)": EventFragment; - "UpdatedGasLimit(uint256)": EventFragment; - "UpdatedProtocolFlatFee(uint256)": EventFragment; - "UpdatedSystemContract(address)": EventFragment; - "Withdrawal(address,bytes,uint256,uint256,uint256)": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Deposit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedGasLimit"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedProtocolFlatFee"): EventFragment; - getEvent(nameOrSignatureOrTopic: "UpdatedSystemContract"): EventFragment; - getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; -} - -export interface ApprovalEventObject { - owner: string; - spender: string; - value: BigNumber; -} -export type ApprovalEvent = TypedEvent< - [string, string, BigNumber], - ApprovalEventObject ->; - -export type ApprovalEventFilter = TypedEventFilter; - -export interface DepositEventObject { - from: string; - to: string; - value: BigNumber; -} -export type DepositEvent = TypedEvent< - [string, string, BigNumber], - DepositEventObject ->; - -export type DepositEventFilter = TypedEventFilter; - -export interface TransferEventObject { - from: string; - to: string; - value: BigNumber; -} -export type TransferEvent = TypedEvent< - [string, string, BigNumber], - TransferEventObject ->; - -export type TransferEventFilter = TypedEventFilter; - -export interface UpdatedGasLimitEventObject { - gasLimit: BigNumber; -} -export type UpdatedGasLimitEvent = TypedEvent< - [BigNumber], - UpdatedGasLimitEventObject ->; - -export type UpdatedGasLimitEventFilter = TypedEventFilter; - -export interface UpdatedProtocolFlatFeeEventObject { - protocolFlatFee: BigNumber; -} -export type UpdatedProtocolFlatFeeEvent = TypedEvent< - [BigNumber], - UpdatedProtocolFlatFeeEventObject ->; - -export type UpdatedProtocolFlatFeeEventFilter = - TypedEventFilter; - -export interface UpdatedSystemContractEventObject { - systemContract: string; -} -export type UpdatedSystemContractEvent = TypedEvent< - [string], - UpdatedSystemContractEventObject ->; - -export type UpdatedSystemContractEventFilter = - TypedEventFilter; - -export interface WithdrawalEventObject { - from: string; - to: string; - value: BigNumber; - gasFee: BigNumber; - protocolFlatFee: BigNumber; -} -export type WithdrawalEvent = TypedEvent< - [string, string, BigNumber, BigNumber, BigNumber], - WithdrawalEventObject ->; - -export type WithdrawalEventFilter = TypedEventFilter; - -export interface IZRC20 extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: IZRC20Interface; - - 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: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise<[BigNumber]>; - - 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; - - decreaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - decreaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - - callStatic: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): Promise; - - 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; - - decreaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise<[string, BigNumber]>; - }; - - filters: { - "Approval(address,address,uint256)"( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - Approval( - owner?: PromiseOrValue | null, - spender?: PromiseOrValue | null, - value?: null - ): ApprovalEventFilter; - - "Deposit(bytes,address,uint256)"( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - Deposit( - from?: null, - to?: PromiseOrValue | null, - value?: null - ): DepositEventFilter; - - "Transfer(address,address,uint256)"( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - Transfer( - from?: PromiseOrValue | null, - to?: PromiseOrValue | null, - value?: null - ): TransferEventFilter; - - "UpdatedGasLimit(uint256)"(gasLimit?: null): UpdatedGasLimitEventFilter; - UpdatedGasLimit(gasLimit?: null): UpdatedGasLimitEventFilter; - - "UpdatedProtocolFlatFee(uint256)"( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - UpdatedProtocolFlatFee( - protocolFlatFee?: null - ): UpdatedProtocolFlatFeeEventFilter; - - "UpdatedSystemContract(address)"( - systemContract?: null - ): UpdatedSystemContractEventFilter; - UpdatedSystemContract( - systemContract?: null - ): UpdatedSystemContractEventFilter; - - "Withdrawal(address,bytes,uint256,uint256,uint256)"( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasFee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - Withdrawal( - from?: PromiseOrValue | null, - to?: null, - value?: null, - gasFee?: null, - protocolFlatFee?: null - ): WithdrawalEventFilter; - }; - - estimateGas: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - decreaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - PROTOCOL_FLAT_FEE(overrides?: CallOverrides): 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; - - decreaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - deposit( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - increaseAllowance( - spender: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { 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( - to: PromiseOrValue, - amount: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - withdrawGasFee(overrides?: CallOverrides): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/ZContract.ts b/v1/typechain-types/contracts/zevm/interfaces/ZContract.ts deleted file mode 100644 index f0f94d60e..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/ZContract.ts +++ /dev/null @@ -1,138 +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 type ZContextStruct = { - origin: PromiseOrValue; - sender: PromiseOrValue; - chainID: PromiseOrValue; -}; - -export type ZContextStructOutput = [string, string, BigNumber] & { - origin: string; - sender: string; - chainID: BigNumber; -}; - -export interface ZContractInterface extends utils.Interface { - functions: { - "onCrossChainCall((bytes,address,uint256),address,uint256,bytes)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "onCrossChainCall"): FunctionFragment; - - encodeFunctionData( - functionFragment: "onCrossChainCall", - values: [ - ZContextStruct, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "onCrossChainCall", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ZContract extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZContractInterface; - - 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: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/index.ts b/v1/typechain-types/contracts/zevm/interfaces/index.ts deleted file mode 100644 index 9eb99f66c..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as iwzetaSol from "./IWZETA.sol"; -export type { iwzetaSol }; -import type * as izrc20Sol from "./IZRC20.sol"; -export type { izrc20Sol }; -import type * as zContractSol from "./zContract.sol"; -export type { zContractSol }; -export type { ISystem } from "./ISystem"; -export type { IUniswapV2Router01 } from "./IUniswapV2Router01"; -export type { IUniswapV2Router02 } from "./IUniswapV2Router02"; diff --git a/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/UniversalContract.ts b/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/UniversalContract.ts deleted file mode 100644 index 7155396dd..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/UniversalContract.ts +++ /dev/null @@ -1,203 +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 type ZContextStruct = { - origin: PromiseOrValue; - sender: PromiseOrValue; - chainID: PromiseOrValue; -}; - -export type ZContextStructOutput = [string, string, BigNumber] & { - origin: string; - sender: string; - chainID: BigNumber; -}; - -export type RevertContextStruct = { - origin: PromiseOrValue; - sender: PromiseOrValue; - chainID: PromiseOrValue; -}; - -export type RevertContextStructOutput = [string, string, BigNumber] & { - origin: string; - sender: string; - chainID: BigNumber; -}; - -export interface UniversalContractInterface extends utils.Interface { - functions: { - "onCrossChainCall((bytes,address,uint256),address,uint256,bytes)": FunctionFragment; - "onRevert((bytes,address,uint256),address,uint256,bytes)": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: "onCrossChainCall" | "onRevert" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "onCrossChainCall", - values: [ - ZContextStruct, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "onRevert", - values: [ - RevertContextStruct, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "onCrossChainCall", - data: BytesLike - ): Result; - decodeFunctionResult(functionFragment: "onRevert", data: BytesLike): Result; - - events: {}; -} - -export interface UniversalContract extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: UniversalContractInterface; - - 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: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - context: RevertContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - context: RevertContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onRevert( - context: RevertContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - context: RevertContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - onRevert( - context: RevertContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/ZContract.ts b/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/ZContract.ts deleted file mode 100644 index a53c501c1..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/ZContract.ts +++ /dev/null @@ -1,138 +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 type ZContextStruct = { - origin: PromiseOrValue; - sender: PromiseOrValue; - chainID: PromiseOrValue; -}; - -export type ZContextStructOutput = [string, string, BigNumber] & { - origin: string; - sender: string; - chainID: BigNumber; -}; - -export interface ZContractInterface extends utils.Interface { - functions: { - "onCrossChainCall((bytes,address,uint256),address,uint256,bytes)": FunctionFragment; - }; - - getFunction(nameOrSignatureOrTopic: "onCrossChainCall"): FunctionFragment; - - encodeFunctionData( - functionFragment: "onCrossChainCall", - values: [ - ZContextStruct, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - - decodeFunctionResult( - functionFragment: "onCrossChainCall", - data: BytesLike - ): Result; - - events: {}; -} - -export interface ZContract extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: ZContractInterface; - - 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: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - callStatic: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - }; - - filters: {}; - - estimateGas: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; - - populateTransaction: { - onCrossChainCall( - context: ZContextStruct, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/index.ts b/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/index.ts deleted file mode 100644 index bf8e5a02b..000000000 --- a/v1/typechain-types/contracts/zevm/interfaces/zContract.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { UniversalContract } from "./UniversalContract"; -export type { ZContract } from "./ZContract"; diff --git a/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors.ts b/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors.ts deleted file mode 100644 index f0d2d164a..000000000 --- a/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors.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 SystemContractErrorsInterface extends utils.Interface { - functions: {}; - - events: {}; -} - -export interface SystemContractErrors extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: SystemContractErrorsInterface; - - 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/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock.ts b/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock.ts deleted file mode 100644 index 3e74ebc74..000000000 --- a/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock.ts +++ /dev/null @@ -1,553 +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 SystemContractMockInterface extends utils.Interface { - functions: { - "gasCoinZRC20ByChainId(uint256)": FunctionFragment; - "gasPriceByChainId(uint256)": FunctionFragment; - "gasZetaPoolByChainId(uint256)": FunctionFragment; - "onCrossChainCall(address,address,uint256,bytes)": FunctionFragment; - "setGasCoinZRC20(uint256,address)": FunctionFragment; - "setGasPrice(uint256,uint256)": FunctionFragment; - "setWZETAContractAddress(address)": FunctionFragment; - "uniswapv2FactoryAddress()": FunctionFragment; - "uniswapv2PairFor(address,address,address)": FunctionFragment; - "uniswapv2Router02Address()": FunctionFragment; - "wZetaContractAddress()": FunctionFragment; - }; - - getFunction( - nameOrSignatureOrTopic: - | "gasCoinZRC20ByChainId" - | "gasPriceByChainId" - | "gasZetaPoolByChainId" - | "onCrossChainCall" - | "setGasCoinZRC20" - | "setGasPrice" - | "setWZETAContractAddress" - | "uniswapv2FactoryAddress" - | "uniswapv2PairFor" - | "uniswapv2Router02Address" - | "wZetaContractAddress" - ): FunctionFragment; - - encodeFunctionData( - functionFragment: "gasCoinZRC20ByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasPriceByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "gasZetaPoolByChainId", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "onCrossChainCall", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "setGasCoinZRC20", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setGasPrice", - values: [PromiseOrValue, PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "setWZETAContractAddress", - values: [PromiseOrValue] - ): string; - encodeFunctionData( - functionFragment: "uniswapv2FactoryAddress", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "uniswapv2PairFor", - values: [ - PromiseOrValue, - PromiseOrValue, - PromiseOrValue - ] - ): string; - encodeFunctionData( - functionFragment: "uniswapv2Router02Address", - values?: undefined - ): string; - encodeFunctionData( - functionFragment: "wZetaContractAddress", - values?: undefined - ): string; - - decodeFunctionResult( - functionFragment: "gasCoinZRC20ByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasPriceByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "gasZetaPoolByChainId", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "onCrossChainCall", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setGasCoinZRC20", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setGasPrice", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "setWZETAContractAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2FactoryAddress", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2PairFor", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "uniswapv2Router02Address", - data: BytesLike - ): Result; - decodeFunctionResult( - functionFragment: "wZetaContractAddress", - data: BytesLike - ): Result; - - events: { - "SetGasCoin(uint256,address)": EventFragment; - "SetGasPrice(uint256,uint256)": EventFragment; - "SetGasZetaPool(uint256,address)": EventFragment; - "SetWZeta(address)": EventFragment; - "SystemContractDeployed()": EventFragment; - }; - - getEvent(nameOrSignatureOrTopic: "SetGasCoin"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetGasPrice"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetGasZetaPool"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SetWZeta"): EventFragment; - getEvent(nameOrSignatureOrTopic: "SystemContractDeployed"): EventFragment; -} - -export interface SetGasCoinEventObject { - arg0: BigNumber; - arg1: string; -} -export type SetGasCoinEvent = TypedEvent< - [BigNumber, string], - SetGasCoinEventObject ->; - -export type SetGasCoinEventFilter = TypedEventFilter; - -export interface SetGasPriceEventObject { - arg0: BigNumber; - arg1: BigNumber; -} -export type SetGasPriceEvent = TypedEvent< - [BigNumber, BigNumber], - SetGasPriceEventObject ->; - -export type SetGasPriceEventFilter = TypedEventFilter; - -export interface SetGasZetaPoolEventObject { - arg0: BigNumber; - arg1: string; -} -export type SetGasZetaPoolEvent = TypedEvent< - [BigNumber, string], - SetGasZetaPoolEventObject ->; - -export type SetGasZetaPoolEventFilter = TypedEventFilter; - -export interface SetWZetaEventObject { - arg0: string; -} -export type SetWZetaEvent = TypedEvent<[string], SetWZetaEventObject>; - -export type SetWZetaEventFilter = TypedEventFilter; - -export interface SystemContractDeployedEventObject {} -export type SystemContractDeployedEvent = TypedEvent< - [], - SystemContractDeployedEventObject ->; - -export type SystemContractDeployedEventFilter = - TypedEventFilter; - -export interface SystemContractMock extends BaseContract { - connect(signerOrProvider: Signer | Provider | string): this; - attach(addressOrName: string): this; - deployed(): Promise; - - interface: SystemContractMockInterface; - - 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: { - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[BigNumber]>; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string]>; - - onCrossChainCall( - target: PromiseOrValue, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise<[string]>; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise<[string] & { pair: string }>; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise<[string]>; - - wZetaContractAddress(overrides?: CallOverrides): Promise<[string]>; - }; - - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onCrossChainCall( - target: PromiseOrValue, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - - callStatic: { - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onCrossChainCall( - target: PromiseOrValue, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - filters: { - "SetGasCoin(uint256,address)"( - arg0?: null, - arg1?: null - ): SetGasCoinEventFilter; - SetGasCoin(arg0?: null, arg1?: null): SetGasCoinEventFilter; - - "SetGasPrice(uint256,uint256)"( - arg0?: null, - arg1?: null - ): SetGasPriceEventFilter; - SetGasPrice(arg0?: null, arg1?: null): SetGasPriceEventFilter; - - "SetGasZetaPool(uint256,address)"( - arg0?: null, - arg1?: null - ): SetGasZetaPoolEventFilter; - SetGasZetaPool(arg0?: null, arg1?: null): SetGasZetaPoolEventFilter; - - "SetWZeta(address)"(arg0?: null): SetWZetaEventFilter; - SetWZeta(arg0?: null): SetWZetaEventFilter; - - "SystemContractDeployed()"(): SystemContractDeployedEventFilter; - SystemContractDeployed(): SystemContractDeployedEventFilter; - }; - - estimateGas: { - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onCrossChainCall( - target: PromiseOrValue, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress(overrides?: CallOverrides): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address(overrides?: CallOverrides): Promise; - - wZetaContractAddress(overrides?: CallOverrides): Promise; - }; - - populateTransaction: { - gasCoinZRC20ByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasPriceByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - gasZetaPoolByChainId( - arg0: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - onCrossChainCall( - target: PromiseOrValue, - zrc20: PromiseOrValue, - amount: PromiseOrValue, - message: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasCoinZRC20( - chainID: PromiseOrValue, - zrc20: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setGasPrice( - chainID: PromiseOrValue, - price: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - setWZETAContractAddress( - addr: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise; - - uniswapv2FactoryAddress( - overrides?: CallOverrides - ): Promise; - - uniswapv2PairFor( - factory: PromiseOrValue, - tokenA: PromiseOrValue, - tokenB: PromiseOrValue, - overrides?: CallOverrides - ): Promise; - - uniswapv2Router02Address( - overrides?: CallOverrides - ): Promise; - - wZetaContractAddress( - overrides?: CallOverrides - ): Promise; - }; -} diff --git a/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/index.ts b/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/index.ts deleted file mode 100644 index 122c19947..000000000 --- a/v1/typechain-types/contracts/zevm/testing/SystemContractMock.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export type { SystemContractErrors } from "./SystemContractErrors"; -export type { SystemContractMock } from "./SystemContractMock"; diff --git a/v1/typechain-types/contracts/zevm/testing/index.ts b/v1/typechain-types/contracts/zevm/testing/index.ts deleted file mode 100644 index 2da3428d7..000000000 --- a/v1/typechain-types/contracts/zevm/testing/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as systemContractMockSol from "./SystemContractMock.sol"; -export type { systemContractMockSol }; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts deleted file mode 100644 index c4c6be308..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +++ /dev/null @@ -1,91 +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 { - OwnableUpgradeable, - OwnableUpgradeableInterface, -} from "../../../../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class OwnableUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): OwnableUpgradeableInterface { - return new utils.Interface(_abi) as OwnableUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): OwnableUpgradeable { - return new Contract(address, _abi, signerOrProvider) as OwnableUpgradeable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts deleted file mode 100644 index bf4b29cc4..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { OwnableUpgradeable__factory } from "./OwnableUpgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts deleted file mode 100644 index 9d4278da1..000000000 --- a/v1/typechain-types/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 interfaces from "./interfaces"; -export * as proxy from "./proxy"; -export * as security from "./security"; -export * as utils from "./utils"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable__factory.ts deleted file mode 100644 index ed24d198d..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable__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 { - IERC1967Upgradeable, - IERC1967UpgradeableInterface, -} from "../../../../@openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable"; - -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 IERC1967Upgradeable__factory { - static readonly abi = _abi; - static createInterface(): IERC1967UpgradeableInterface { - return new utils.Interface(_abi) as IERC1967UpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC1967Upgradeable { - return new Contract(address, _abi, signerOrProvider) as IERC1967Upgradeable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable__factory.ts deleted file mode 100644 index 6ad7eecf2..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable__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 { - IERC1822ProxiableUpgradeable, - IERC1822ProxiableUpgradeableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/IERC1822ProxiableUpgradeable"; - -const _abi = [ - { - inputs: [], - name: "proxiableUUID", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IERC1822ProxiableUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): IERC1822ProxiableUpgradeableInterface { - return new utils.Interface(_abi) as IERC1822ProxiableUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IERC1822ProxiableUpgradeable { - return new Contract( - address, - _abi, - signerOrProvider - ) as IERC1822ProxiableUpgradeable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts deleted file mode 100644 index 7db58c5be..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC1822ProxiableUpgradeable__factory } from "./IERC1822ProxiableUpgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/index.ts deleted file mode 100644 index d81fc631b..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as draftIerc1822UpgradeableSol from "./draft-IERC1822Upgradeable.sol"; -export { IERC1967Upgradeable__factory } from "./IERC1967Upgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable__factory.ts deleted file mode 100644 index 5a270bdb5..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable__factory.ts +++ /dev/null @@ -1,88 +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 { - ERC1967UpgradeUpgradeable, - ERC1967UpgradeUpgradeableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable"; - -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: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "Upgraded", - type: "event", - }, -] as const; - -export class ERC1967UpgradeUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): ERC1967UpgradeUpgradeableInterface { - return new utils.Interface(_abi) as ERC1967UpgradeUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ERC1967UpgradeUpgradeable { - return new Contract( - address, - _abi, - signerOrProvider - ) as ERC1967UpgradeUpgradeable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts deleted file mode 100644 index 12fe87426..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/ERC1967/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ERC1967UpgradeUpgradeable__factory } from "./ERC1967UpgradeUpgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable__factory.ts deleted file mode 100644 index fe2170ddc..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable__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 { - IBeaconUpgradeable, - IBeaconUpgradeableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable"; - -const _abi = [ - { - inputs: [], - name: "implementation", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IBeaconUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): IBeaconUpgradeableInterface { - return new utils.Interface(_abi) as IBeaconUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IBeaconUpgradeable { - return new Contract(address, _abi, signerOrProvider) as IBeaconUpgradeable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts deleted file mode 100644 index 5b72d3183..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/beacon/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IBeaconUpgradeable__factory } from "./IBeaconUpgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts deleted file mode 100644 index 4ac4c845e..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/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 * as utils from "./utils"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts deleted file mode 100644 index 2f2252797..000000000 --- a/v1/typechain-types/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/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts deleted file mode 100644 index ba25b4810..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +++ /dev/null @@ -1,128 +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 { - UUPSUpgradeable, - UUPSUpgradeableInterface, -} from "../../../../../@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable"; - -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: false, - internalType: "uint8", - name: "version", - type: "uint8", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "Upgraded", - type: "event", - }, - { - inputs: [], - name: "proxiableUUID", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newImplementation", - type: "address", - }, - ], - name: "upgradeTo", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newImplementation", - type: "address", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "upgradeToAndCall", - outputs: [], - stateMutability: "payable", - type: "function", - }, -] as const; - -export class UUPSUpgradeable__factory { - static readonly abi = _abi; - static createInterface(): UUPSUpgradeableInterface { - return new utils.Interface(_abi) as UUPSUpgradeableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): UUPSUpgradeable { - return new Contract(address, _abi, signerOrProvider) as UUPSUpgradeable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts deleted file mode 100644 index a192d15de..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Initializable__factory } from "./Initializable__factory"; -export { UUPSUpgradeable__factory } from "./UUPSUpgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable__factory.ts deleted file mode 100644 index 5eef346f5..000000000 --- a/v1/typechain-types/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/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/security/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/security/index.ts deleted file mode 100644 index ba3999c09..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/security/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ReentrancyGuardUpgradeable__factory } from "./ReentrancyGuardUpgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts deleted file mode 100644 index 6b02b4d32..000000000 --- a/v1/typechain-types/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/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts deleted file mode 100644 index 3ff42aef5..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ContextUpgradeable__factory } from "./ContextUpgradeable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.ts deleted file mode 100644 index 773b8357a..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.ts +++ /dev/null @@ -1,117 +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 { - Ownable2Step, - Ownable2StepInterface, -} from "../../../../@openzeppelin/contracts/access/Ownable2Step"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferStarted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - inputs: [], - name: "acceptOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pendingOwner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class Ownable2Step__factory { - static readonly abi = _abi; - static createInterface(): Ownable2StepInterface { - return new utils.Interface(_abi) as Ownable2StepInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): Ownable2Step { - return new Contract(address, _abi, signerOrProvider) as Ownable2Step; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts deleted file mode 100644 index fa1471817..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/access/Ownable__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 { - Ownable, - OwnableInterface, -} from "../../../../@openzeppelin/contracts/access/Ownable"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class Ownable__factory { - static readonly abi = _abi; - static createInterface(): OwnableInterface { - return new utils.Interface(_abi) as OwnableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): Ownable { - return new Contract(address, _abi, signerOrProvider) as Ownable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/access/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts/access/index.ts deleted file mode 100644 index bd6222d95..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/access/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Ownable__factory } from "./Ownable__factory"; -export { Ownable2Step__factory } from "./Ownable2Step__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts/index.ts deleted file mode 100644 index f3879d611..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as access from "./access"; -export * as security from "./security"; -export * as token from "./token"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/security/Pausable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/security/Pausable__factory.ts deleted file mode 100644 index c9e0a3802..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/security/Pausable__factory.ts +++ /dev/null @@ -1,65 +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 { - Pausable, - PausableInterface, -} from "../../../../@openzeppelin/contracts/security/Pausable"; - -const _abi = [ - { - 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 Pausable__factory { - static readonly abi = _abi; - static createInterface(): PausableInterface { - return new utils.Interface(_abi) as PausableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): Pausable { - return new Contract(address, _abi, signerOrProvider) as Pausable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/security/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts/security/index.ts deleted file mode 100644 index 0d4ecd47b..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/security/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { Pausable__factory } from "./Pausable__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts deleted file mode 100644 index 44442faee..000000000 --- a/v1/typechain-types/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 = - "0x60806040523480156200001157600080fd5b50604051620016173803806200161783398181016040528101906200003791906200019f565b81600390805190602001906200004f92919062000071565b5080600490805190602001906200006892919062000071565b505050620003a8565b8280546200007f90620002b9565b90600052602060002090601f016020900481019282620000a35760008555620000ef565b82601f10620000be57805160ff1916838001178555620000ef565b82800160010185558215620000ef579182015b82811115620000ee578251825591602001919060010190620000d1565b5b509050620000fe919062000102565b5090565b5b808211156200011d57600081600090555060010162000103565b5090565b60006200013862000132846200024d565b62000224565b90508281526020810184848401111562000157576200015662000388565b5b6200016484828562000283565b509392505050565b600082601f83011262000184576200018362000383565b5b81516200019684826020860162000121565b91505092915050565b60008060408385031215620001b957620001b862000392565b5b600083015167ffffffffffffffff811115620001da57620001d96200038d565b5b620001e8858286016200016c565b925050602083015167ffffffffffffffff8111156200020c576200020b6200038d565b5b6200021a858286016200016c565b9150509250929050565b60006200023062000243565b90506200023e8282620002ef565b919050565b6000604051905090565b600067ffffffffffffffff8211156200026b576200026a62000354565b5b620002768262000397565b9050602081019050919050565b60005b83811015620002a357808201518184015260208101905062000286565b83811115620002b3576000848401525b50505050565b60006002820490506001821680620002d257607f821691505b60208210811415620002e957620002e862000325565b5b50919050565b620002fa8262000397565b810181811067ffffffffffffffff821117156200031c576200031b62000354565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b61125f80620003b86000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea2646970667358221220c70e1992046ff573bf7e5981f8f62872dc98f375e08ea9d8a16f2a8da731c7ec64736f6c63430008070033"; - -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/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts deleted file mode 100644 index cd7fa8f31..000000000 --- a/v1/typechain-types/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", - }, -] as const; - -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/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.ts deleted file mode 100644 index a6872b92d..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.ts +++ /dev/null @@ -1,327 +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 { - ERC20Burnable, - ERC20BurnableInterface, -} from "../../../../../../@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable"; - -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: "account", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "burnFrom", - outputs: [], - stateMutability: "nonpayable", - 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; - -export class ERC20Burnable__factory { - static readonly abi = _abi; - static createInterface(): ERC20BurnableInterface { - return new utils.Interface(_abi) as ERC20BurnableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ERC20Burnable { - return new Contract(address, _abi, signerOrProvider) as ERC20Burnable; - } -} diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts deleted file mode 100644 index 47c292bf2..000000000 --- a/v1/typechain-types/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", - }, -] as const; - -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/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.ts deleted file mode 100644 index a4471b82d..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory.ts +++ /dev/null @@ -1,101 +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 "../../../../../../../@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit"; - -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", - }, -] 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/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts deleted file mode 100644 index 5f347d4a7..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC20Permit__factory } from "./IERC20Permit__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts deleted file mode 100644 index 463124ccf..000000000 --- a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as draftIerc20PermitSol from "./draft-IERC20Permit.sol"; -export { ERC20Burnable__factory } from "./ERC20Burnable__factory"; -export { IERC20Metadata__factory } from "./IERC20Metadata__factory"; diff --git a/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts deleted file mode 100644 index 3523dc7a6..000000000 --- a/v1/typechain-types/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/v1/typechain-types/factories/@openzeppelin/contracts/token/index.ts b/v1/typechain-types/factories/@openzeppelin/contracts/token/index.ts deleted file mode 100644 index da1e061eb..000000000 --- a/v1/typechain-types/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/v1/typechain-types/factories/@openzeppelin/index.ts b/v1/typechain-types/factories/@openzeppelin/index.ts deleted file mode 100644 index 6397da096..000000000 --- a/v1/typechain-types/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/v1/typechain-types/factories/@uniswap/index.ts b/v1/typechain-types/factories/@uniswap/index.ts deleted file mode 100644 index b34b9840d..000000000 --- a/v1/typechain-types/factories/@uniswap/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as v2Core from "./v2-core"; -export * as v2Periphery from "./v2-periphery"; -export * as v3Core from "./v3-core"; -export * as v3Periphery from "./v3-periphery"; diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2ERC20__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2ERC20__factory.ts deleted file mode 100644 index 838f559a0..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2ERC20__factory.ts +++ /dev/null @@ -1,405 +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 { - UniswapV2ERC20, - UniswapV2ERC20Interface, -} from "../../../../@uniswap/v2-core/contracts/UniswapV2ERC20"; - -const _abi = [ - { - inputs: [], - payable: false, - 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", - }, - { - constant: true, - inputs: [], - name: "DOMAIN_SEPARATOR", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "PERMIT_TYPEHASH", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "nonces", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - 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: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b506040514690806052610b898239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550610a9b806100ee6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80633644e5151161008c57806395d89b411161006657806395d89b411461029f578063a9059cbb146102a7578063d505accf146102e0578063dd62ed3e14610340576100df565b80633644e5151461023157806370a08231146102395780637ecebe001461026c576100df565b806323b872dd116100bd57806323b872dd146101c857806330adf81f1461020b578063313ce56714610213576100df565b806306fdde03146100e4578063095ea7b31461016157806318160ddd146101ae575b600080fd5b6100ec61037b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61019a6004803603604081101561017757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356103b4565b604080519115158252519081900360200190f35b6101b66103cb565b60408051918252519081900360200190f35b61019a600480360360608110156101de57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356103d1565b6101b66104b0565b61021b6104d4565b6040805160ff9092168252519081900360200190f35b6101b66104d9565b6101b66004803603602081101561024f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104df565b6101b66004803603602081101561028257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104f1565b6100ec610503565b61019a600480360360408110156102bd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561053c565b61033e600480360360e08110156102f657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135610549565b005b6101b66004803603604081101561035657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610815565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b60006103c1338484610832565b5060015b92915050565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1461049b5773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610469908363ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b6104a6848484610913565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60016020526000908152604090205481565b60046020526000908152604090205481565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b60006103c1338484610913565b428410156105b857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015610719573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81161580159061079457508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b6107ff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b61080a898989610832565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b808203828111156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054610949908263ffffffff6108a116565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220939093559084168152205461098b908263ffffffff6109f416565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b808201828110156103c557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfea265627a7a72315820fbe850bc397a587736b017d75ce8021dd8dafcfd54ab43add14fd21753cc6c3564736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429"; - -type UniswapV2ERC20ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: UniswapV2ERC20ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class UniswapV2ERC20__factory extends ContractFactory { - constructor(...args: UniswapV2ERC20ConstructorParams) { - 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): UniswapV2ERC20 { - return super.attach(address) as UniswapV2ERC20; - } - override connect(signer: Signer): UniswapV2ERC20__factory { - return super.connect(signer) as UniswapV2ERC20__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): UniswapV2ERC20Interface { - return new utils.Interface(_abi) as UniswapV2ERC20Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): UniswapV2ERC20 { - return new Contract(address, _abi, signerOrProvider) as UniswapV2ERC20; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Factory__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Factory__factory.ts deleted file mode 100644 index 1b7d47cd0..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Factory__factory.ts +++ /dev/null @@ -1,259 +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 { - UniswapV2Factory, - UniswapV2FactoryInterface, -} from "../../../../@uniswap/v2-core/contracts/UniswapV2Factory"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "_feeToSetter", - type: "address", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "constructor", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "token0", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "token1", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "pair", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "PairCreated", - type: "event", - }, - { - constant: true, - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "allPairs", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "allPairsLength", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - ], - name: "createPair", - outputs: [ - { - internalType: "address", - name: "pair", - type: "address", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "feeTo", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "feeToSetter", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "getPair", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "_feeTo", - type: "address", - }, - ], - name: "setFeeTo", - outputs: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "_feeToSetter", - type: "address", - }, - ], - name: "setFeeToSetter", - outputs: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b506040516136863803806136868339818101604052602081101561003357600080fd5b5051600180546001600160a01b0319166001600160a01b03909216919091179055613623806100636000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063a2e74af61161005b578063a2e74af6146100fd578063c9c6539614610132578063e6a439051461016d578063f46901ed146101a857610088565b8063017e7e581461008d578063094b7415146100be5780631e3dd18b146100c6578063574f2ba3146100e3575b600080fd5b6100956101db565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100956101f7565b610095600480360360208110156100dc57600080fd5b5035610213565b6100eb610247565b60408051918252519081900360200190f35b6101306004803603602081101561011357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661024d565b005b6100956004803603604081101561014857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661031a565b6100956004803603604081101561018357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602001351661076d565b610130600480360360208110156101be57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166107a0565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b6003818154811061022057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60035490565b60015473ffffffffffffffffffffffffffffffffffffffff1633146102d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156103b757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056323a204944454e544943414c5f4144445245535345530000604482015290519081900360640190fd5b6000808373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16106103f45783856103f7565b84845b909250905073ffffffffffffffffffffffffffffffffffffffff821661047e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f556e697377617056323a205a45524f5f41444452455353000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff82811660009081526002602090815260408083208585168452909152902054161561051f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f556e697377617056323a20504149525f45584953545300000000000000000000604482015290519081900360640190fd5b6060604051806020016105319061086d565b6020820181038252601f19601f82011660405250905060008383604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b81526014018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f5604080517f485cc95500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152868116602483015291519297509087169163485cc9559160448082019260009290919082900301818387803b15801561065e57600080fd5b505af1158015610672573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff84811660008181526002602081815260408084208987168086529083528185208054978d167fffffffffffffffffffffffff000000000000000000000000000000000000000098891681179091559383528185208686528352818520805488168517905560038054600181018255958190527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b90950180549097168417909655925483519283529082015281517f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9929181900390910190a35050505092915050565b600260209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff16331461082657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b612d748061087b8339019056fe60806040526001600c5534801561001557600080fd5b506040514690806052612d228239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b03191633179055612c1d806101056000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a7146105da578063d505accf146105e2578063dd62ed3e14610640578063fff6cae91461067b576101b9565b8063ba9a7a5614610597578063bc25cf771461059f578063c45a0155146105d2576101b9565b80637ecebe00116100d35780637ecebe00146104d757806389afcb441461050a57806395d89b4114610556578063a9059cbb1461055e576101b9565b80636a6278421461046957806370a082311461049c5780637464fc3d146104cf576101b9565b806323b872dd116101665780633644e515116101405780633644e51514610416578063485cc9551461041e5780635909c0d5146104595780635a3d549314610461576101b9565b806323b872dd146103ad57806330adf81f146103f0578063313ce567146103f8576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610683565b005b610261610d57565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610d90565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610de5565b604080519115158252519081900360200190f35b61036a610dfc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e18565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e1e565b61039b610efd565b610400610f21565b6040805160ff9092168252519081900360200190f35b61039b610f26565b6102576004803603604081101561043457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f2c565b61039b611005565b61039b61100b565b61039b6004803603602081101561047f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611011565b61039b600480360360208110156104b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113cb565b61039b6113dd565b61039b600480360360208110156104ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113e3565b61053d6004803603602081101561052057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f5565b6040805192835260208301919091528051918290030190f35b610261611892565b61034e6004803603604081101561057457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356118cb565b61039b6118d8565b610257600480360360208110156105b557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118de565b61036a611ad4565b61036a611af0565b610257600480360360e08110156105f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611b0c565b61039b6004803603604081101561065657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611dd8565b610257611df5565b600c546001146106f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107075750600084115b61075c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612b2f6025913960400191505060405180910390fd5b600080610767610d90565b5091509150816dffffffffffffffffffffffffffff168710801561079a5750806dffffffffffffffffffffffffffff1686105b6107ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612b786021913960400191505060405180910390fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061085457508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108bf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f556e697377617056323a20494e56414c49445f544f0000000000000000000000604482015290519081900360640190fd5b8a156108d0576108d0828a8d611fdb565b89156108e1576108e1818a8c611fdb565b86156109c3578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109aa57600080fd5b505af11580156109be573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a2f57600080fd5b505afa158015610a43573d6000803e3d6000fd5b505050506040513d6020811015610a5957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b1f576000610b35565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b59576000610b6f565b89856dffffffffffffffffffffffffffff160383035b90506000821180610b805750600081115b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b546024913960400191505060405180910390fd5b6000610c09610beb84600363ffffffff6121e816565b610bfd876103e863ffffffff6121e816565b9063ffffffff61226e16565b90506000610c21610beb84600363ffffffff6121e816565b9050610c59620f4240610c4d6dffffffffffffffffffffffffffff8b8116908b1663ffffffff6121e816565b9063ffffffff6121e816565b610c69838363ffffffff6121e816565b1015610cd657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e697377617056323a204b0000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610ce4848488886122e0565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610df233848461259c565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610ee85773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610eb6908363ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610ef384848461260b565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c5460011461108457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611094610d90565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156111b157600080fd5b505afa1580156111c5573d6000803e3d6000fd5b505050506040513d60208110156111db57600080fd5b505190506000611201836dffffffffffffffffffffffffffff871663ffffffff61226e16565b90506000611225836dffffffffffffffffffffffffffff871663ffffffff61226e16565b9050600061123387876126ec565b600054909150806112705761125c6103e8610bfd611257878763ffffffff6121e816565b612878565b985061126b60006103e86128ca565b6112cd565b6112ca6dffffffffffffffffffffffffffff8916611294868463ffffffff6121e816565b8161129b57fe5b046dffffffffffffffffffffffffffff89166112bd868563ffffffff6121e816565b816112c457fe5b0461297a565b98505b60008911611326576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612bc16028913960400191505060405180910390fd5b6113308a8a6128ca565b61133c86868a8a6122e0565b811561137e5760085461137a906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c5460011461146957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611479610d90565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b1580156114fb57600080fd5b505afa15801561150f573d6000803e3d6000fd5b505050506040513d602081101561152557600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d60208110156115c357600080fd5b5051306000908152600160205260408120549192506115e288886126ec565b600054909150806115f9848763ffffffff6121e816565b8161160057fe5b049a5080611614848663ffffffff6121e816565b8161161b57fe5b04995060008b11801561162e575060008a115b611683576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612b996028913960400191505060405180910390fd5b61168d3084612992565b611698878d8d611fdb565b6116a3868d8c611fdb565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156117ab57600080fd5b505afa1580156117bf573d6000803e3d6000fd5b505050506040513d60208110156117d557600080fd5b505193506117e585858b8b6122e0565b811561182757600854611823906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b604080518c8152602081018c9052815173ffffffffffffffffffffffffffffffffffffffff8f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b6000610df233848461260b565b6103e881565b600c5460011461194f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9485169490931692611a2b9285928792611a26926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d6020811015611a1857600080fd5b50519063ffffffff61226e16565b611fdb565b600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611aca9284928792611a26926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b42841015611b7b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015611cdc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590611d5757508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611dc257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b611dcd89898961259c565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c54600114611e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611fd49273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611edd57600080fd5b505afa158015611ef1573d6000803e3d6000fd5b505050506040513d6020811015611f0757600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611f7a57600080fd5b505afa158015611f8e573d6000803e3d6000fd5b505050506040513d6020811015611fa457600080fd5b50516008546dffffffffffffffffffffffffffff808216916e0100000000000000000000000000009004166122e0565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b602083106120e157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016120a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612143576040519150601f19603f3d011682016040523d82523d6000602084013e612148565b606091505b5091509150818015612176575080511580612176575080806020019051602081101561217357600080fd5b50515b6121e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f556e697377617056323a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b60008115806122035750508082028282828161220057fe5b04145b610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061230c57506dffffffffffffffffffffffffffff8311155b61237757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f556e697377617056323a204f564552464c4f5700000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c0100000000000000000000000000000000000000000000000000000000900481168203908116158015906123c757506dffffffffffffffffffffffffffff841615155b80156123e257506dffffffffffffffffffffffffffff831615155b15612492578063ffffffff16612425856123fb86612a57565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612a7b16565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116612465846123fb87612a57565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054612641908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054612683908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561275757600080fd5b505afa15801561276b573d6000803e3d6000fd5b505050506040513d602081101561278157600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff821615801594509192509061286457801561285f5760006127d86112576dffffffffffffffffffffffffffff88811690881663ffffffff6121e816565b905060006127e583612878565b90508082111561285c576000612813612804848463ffffffff61226e16565b6000549063ffffffff6121e816565b905060006128388361282c86600563ffffffff6121e816565b9063ffffffff612abc16565b9050600081838161284557fe5b04905080156128585761285887826128ca565b5050505b50505b612870565b8015612870576000600b555b505092915050565b600060038211156128bb575080600160028204015b818110156128b5578091506002818285816128a457fe5b0401816128ad57fe5b04905061288d565b506128c5565b81156128c5575060015b919050565b6000546128dd908263ffffffff612abc16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612915908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612989578161298b565b825b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020546129c8908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612a02908263ffffffff61226e16565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612ab457fe5b049392505050565b80820182811015610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe556e697377617056323a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f4c4951554944495459556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4255524e4544556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a72315820841b93a7dff584da07aecb7efe1de139d1b94052d48051f920879ff29f44c0f264736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429a265627a7a7231582077bc274fa98d252ff2309addaae7f2e624d726c5087635460bbf380e8727721864736f6c63430005100032"; - -type UniswapV2FactoryConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: UniswapV2FactoryConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class UniswapV2Factory__factory extends ContractFactory { - constructor(...args: UniswapV2FactoryConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - _feeToSetter, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - _feeToSetter: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(_feeToSetter, overrides || {}); - } - override attach(address: string): UniswapV2Factory { - return super.attach(address) as UniswapV2Factory; - } - override connect(signer: Signer): UniswapV2Factory__factory { - return super.connect(signer) as UniswapV2Factory__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): UniswapV2FactoryInterface { - return new utils.Interface(_abi) as UniswapV2FactoryInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): UniswapV2Factory { - return new Contract(address, _abi, signerOrProvider) as UniswapV2Factory; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Pair__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Pair__factory.ts deleted file mode 100644 index b4d2baf2d..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/UniswapV2Pair__factory.ts +++ /dev/null @@ -1,774 +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 { - UniswapV2Pair, - UniswapV2PairInterface, -} from "../../../../@uniswap/v2-core/contracts/UniswapV2Pair"; - -const _abi = [ - { - inputs: [], - payable: false, - 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: "sender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "Burn", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "Mint", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0In", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1In", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0Out", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1Out", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "Swap", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint112", - name: "reserve0", - type: "uint112", - }, - { - indexed: false, - internalType: "uint112", - name: "reserve1", - type: "uint112", - }, - ], - name: "Sync", - 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", - }, - { - constant: true, - inputs: [], - name: "DOMAIN_SEPARATOR", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "MINIMUM_LIQUIDITY", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "PERMIT_TYPEHASH", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "allowance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "burn", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "getReserves", - outputs: [ - { - internalType: "uint112", - name: "_reserve0", - type: "uint112", - }, - { - internalType: "uint112", - name: "_reserve1", - type: "uint112", - }, - { - internalType: "uint32", - name: "_blockTimestampLast", - type: "uint32", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "_token0", - type: "address", - }, - { - internalType: "address", - name: "_token1", - type: "address", - }, - ], - name: "initialize", - outputs: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "kLast", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "mint", - outputs: [ - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "nonces", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - 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: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "price0CumulativeLast", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "price1CumulativeLast", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "skim", - outputs: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "uint256", - name: "amount0Out", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1Out", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "swap", - outputs: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [], - name: "sync", - outputs: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: true, - inputs: [], - name: "token0", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "token1", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, - { - constant: false, - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040526001600c5534801561001557600080fd5b506040514690806052612d228239604080519182900360520182208282018252600a8352692ab734b9bbb0b8102b1960b11b6020938401528151808301835260018152603160f81b908401528151808401919091527fbfcc8ef98ffbf7b6c3fec7bf5185b566b9863e35a9d83acd49ad6824b5969738818301527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6606082015260808101949094523060a0808601919091528151808603909101815260c09094019052825192019190912060035550600580546001600160a01b03191633179055612c1d806101056000396000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a627842116100f9578063ba9a7a5611610097578063d21220a711610071578063d21220a7146105da578063d505accf146105e2578063dd62ed3e14610640578063fff6cae91461067b576101b9565b8063ba9a7a5614610597578063bc25cf771461059f578063c45a0155146105d2576101b9565b80637ecebe00116100d35780637ecebe00146104d757806389afcb441461050a57806395d89b4114610556578063a9059cbb1461055e576101b9565b80636a6278421461046957806370a082311461049c5780637464fc3d146104cf576101b9565b806323b872dd116101665780633644e515116101405780633644e51514610416578063485cc9551461041e5780635909c0d5146104595780635a3d549314610461576101b9565b806323b872dd146103ad57806330adf81f146103f0578063313ce567146103f8576101b9565b8063095ea7b311610197578063095ea7b3146103155780630dfe16811461036257806318160ddd14610393576101b9565b8063022c0d9f146101be57806306fdde03146102595780630902f1ac146102d6575b600080fd5b610257600480360360808110156101d457600080fd5b81359160208101359173ffffffffffffffffffffffffffffffffffffffff604083013516919081019060808101606082013564010000000081111561021857600080fd5b82018360208201111561022a57600080fd5b8035906020019184600183028401116401000000008311171561024c57600080fd5b509092509050610683565b005b610261610d57565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561029b578181015183820152602001610283565b50505050905090810190601f1680156102c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102de610d90565b604080516dffffffffffffffffffffffffffff948516815292909316602083015263ffffffff168183015290519081900360600190f35b61034e6004803603604081101561032b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610de5565b604080519115158252519081900360200190f35b61036a610dfc565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61039b610e18565b60408051918252519081900360200190f35b61034e600480360360608110156103c357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610e1e565b61039b610efd565b610400610f21565b6040805160ff9092168252519081900360200190f35b61039b610f26565b6102576004803603604081101561043457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610f2c565b61039b611005565b61039b61100b565b61039b6004803603602081101561047f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611011565b61039b600480360360208110156104b257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113cb565b61039b6113dd565b61039b600480360360208110156104ed57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113e3565b61053d6004803603602081101561052057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166113f5565b6040805192835260208301919091528051918290030190f35b610261611892565b61034e6004803603604081101561057457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356118cb565b61039b6118d8565b610257600480360360208110156105b557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166118de565b61036a611ad4565b61036a611af0565b610257600480360360e08110156105f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135611b0c565b61039b6004803603604081101561065657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611dd8565b610257611df5565b600c546001146106f457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55841515806107075750600084115b61075c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180612b2f6025913960400191505060405180910390fd5b600080610767610d90565b5091509150816dffffffffffffffffffffffffffff168710801561079a5750806dffffffffffffffffffffffffffff1686105b6107ef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612b786021913960400191505060405180910390fd5b600654600754600091829173ffffffffffffffffffffffffffffffffffffffff91821691908116908916821480159061085457508073ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff1614155b6108bf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f556e697377617056323a20494e56414c49445f544f0000000000000000000000604482015290519081900360640190fd5b8a156108d0576108d0828a8d611fdb565b89156108e1576108e1818a8c611fdb565b86156109c3578873ffffffffffffffffffffffffffffffffffffffff166310d1e85c338d8d8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b1580156109aa57600080fd5b505af11580156109be573d6000803e3d6000fd5b505050505b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b158015610a2f57600080fd5b505afa158015610a43573d6000803e3d6000fd5b505050506040513d6020811015610a5957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191955073ffffffffffffffffffffffffffffffffffffffff8316916370a0823191602480820192602092909190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b5051925060009150506dffffffffffffffffffffffffffff85168a90038311610b1f576000610b35565b89856dffffffffffffffffffffffffffff160383035b9050600089856dffffffffffffffffffffffffffff16038311610b59576000610b6f565b89856dffffffffffffffffffffffffffff160383035b90506000821180610b805750600081115b610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180612b546024913960400191505060405180910390fd5b6000610c09610beb84600363ffffffff6121e816565b610bfd876103e863ffffffff6121e816565b9063ffffffff61226e16565b90506000610c21610beb84600363ffffffff6121e816565b9050610c59620f4240610c4d6dffffffffffffffffffffffffffff8b8116908b1663ffffffff6121e816565b9063ffffffff6121e816565b610c69838363ffffffff6121e816565b1015610cd657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f556e697377617056323a204b0000000000000000000000000000000000000000604482015290519081900360640190fd5b5050610ce4848488886122e0565b60408051838152602081018390528082018d9052606081018c9052905173ffffffffffffffffffffffffffffffffffffffff8b169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001600c55505050505050505050565b6040518060400160405280600a81526020017f556e69737761702056320000000000000000000000000000000000000000000081525081565b6008546dffffffffffffffffffffffffffff808216926e0100000000000000000000000000008304909116917c0100000000000000000000000000000000000000000000000000000000900463ffffffff1690565b6000610df233848461259c565b5060015b92915050565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b73ffffffffffffffffffffffffffffffffffffffff831660009081526002602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14610ee85773ffffffffffffffffffffffffffffffffffffffff84166000908152600260209081526040808320338452909152902054610eb6908363ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020555b610ef384848461260b565b5060019392505050565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b601281565b60035481565b60055473ffffffffffffffffffffffffffffffffffffffff163314610fb257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f556e697377617056323a20464f5242494444454e000000000000000000000000604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560078054929093169116179055565b60095481565b600a5481565b6000600c5460011461108457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611094610d90565b50600654604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905193955091935060009273ffffffffffffffffffffffffffffffffffffffff909116916370a08231916024808301926020929190829003018186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905192935060009273ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b1580156111b157600080fd5b505afa1580156111c5573d6000803e3d6000fd5b505050506040513d60208110156111db57600080fd5b505190506000611201836dffffffffffffffffffffffffffff871663ffffffff61226e16565b90506000611225836dffffffffffffffffffffffffffff871663ffffffff61226e16565b9050600061123387876126ec565b600054909150806112705761125c6103e8610bfd611257878763ffffffff6121e816565b612878565b985061126b60006103e86128ca565b6112cd565b6112ca6dffffffffffffffffffffffffffff8916611294868463ffffffff6121e816565b8161129b57fe5b046dffffffffffffffffffffffffffff89166112bd868563ffffffff6121e816565b816112c457fe5b0461297a565b98505b60008911611326576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612bc16028913960400191505060405180910390fd5b6113308a8a6128ca565b61133c86868a8a6122e0565b811561137e5760085461137a906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b6040805185815260208101859052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a250506001600c5550949695505050505050565b60016020526000908152604090205481565b600b5481565b60046020526000908152604090205481565b600080600c5460011461146957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c81905580611479610d90565b50600654600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905194965092945073ffffffffffffffffffffffffffffffffffffffff9182169391169160009184916370a08231916024808301926020929190829003018186803b1580156114fb57600080fd5b505afa15801561150f573d6000803e3d6000fd5b505050506040513d602081101561152557600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff8516916370a08231916024808301926020929190829003018186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d60208110156115c357600080fd5b5051306000908152600160205260408120549192506115e288886126ec565b600054909150806115f9848763ffffffff6121e816565b8161160057fe5b049a5080611614848663ffffffff6121e816565b8161161b57fe5b04995060008b11801561162e575060008a115b611683576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526028815260200180612b996028913960400191505060405180910390fd5b61168d3084612992565b611698878d8d611fdb565b6116a3868d8c611fdb565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b15801561170f57600080fd5b505afa158015611723573d6000803e3d6000fd5b505050506040513d602081101561173957600080fd5b5051604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905191965073ffffffffffffffffffffffffffffffffffffffff8816916370a0823191602480820192602092909190829003018186803b1580156117ab57600080fd5b505afa1580156117bf573d6000803e3d6000fd5b505050506040513d60208110156117d557600080fd5b505193506117e585858b8b6122e0565b811561182757600854611823906dffffffffffffffffffffffffffff808216916e01000000000000000000000000000090041663ffffffff6121e816565b600b555b604080518c8152602081018c9052815173ffffffffffffffffffffffffffffffffffffffff8f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a35050505050505050506001600c81905550915091565b6040518060400160405280600681526020017f554e492d5632000000000000000000000000000000000000000000000000000081525081565b6000610df233848461260b565b6103e881565b600c5460011461194f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654600754600854604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff9485169490931692611a2b9285928792611a26926dffffffffffffffffffffffffffff169185916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b505afa158015611a02573d6000803e3d6000fd5b505050506040513d6020811015611a1857600080fd5b50519063ffffffff61226e16565b611fdb565b600854604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611aca9284928792611a26926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169173ffffffffffffffffffffffffffffffffffffffff8616916370a0823191602480820192602092909190829003018186803b1580156119ee57600080fd5b50506001600c5550565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b42841015611b7b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f556e697377617056323a20455850495245440000000000000000000000000000604482015290519081900360640190fd5b60035473ffffffffffffffffffffffffffffffffffffffff80891660008181526004602090815260408083208054600180820190925582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98186015280840196909652958d166060860152608085018c905260a085019590955260c08085018b90528151808603909101815260e0850182528051908301207f19010000000000000000000000000000000000000000000000000000000000006101008601526101028501969096526101228085019690965280518085039096018652610142840180825286519683019690962095839052610162840180825286905260ff89166101828501526101a284018890526101c28401879052519193926101e2808201937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081019281900390910190855afa158015611cdc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590611d5757508873ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b611dc257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f556e697377617056323a20494e56414c49445f5349474e415455524500000000604482015290519081900360640190fd5b611dcd89898961259c565b505050505050505050565b600260209081526000928352604080842090915290825290205481565b600c54600114611e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e697377617056323a204c4f434b4544000000000000000000000000000000604482015290519081900360640190fd5b6000600c55600654604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611fd49273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015611edd57600080fd5b505afa158015611ef1573d6000803e3d6000fd5b505050506040513d6020811015611f0757600080fd5b5051600754604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff909216916370a0823191602480820192602092909190829003018186803b158015611f7a57600080fd5b505afa158015611f8e573d6000803e3d6000fd5b505050506040513d6020811015611fa457600080fd5b50516008546dffffffffffffffffffffffffffff808216916e0100000000000000000000000000009004166122e0565b6001600c55565b604080518082018252601981527f7472616e7366657228616464726573732c75696e743235362900000000000000602091820152815173ffffffffffffffffffffffffffffffffffffffff85811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b602083106120e157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016120a4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612143576040519150601f19603f3d011682016040523d82523d6000602084013e612148565b606091505b5091509150818015612176575080511580612176575080806020019051602081101561217357600080fd5b50515b6121e157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f556e697377617056323a205452414e534645525f4641494c4544000000000000604482015290519081900360640190fd5b5050505050565b60008115806122035750508082028282828161220057fe5b04145b610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b80820382811115610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6dffffffffffffffffffffffffffff841180159061230c57506dffffffffffffffffffffffffffff8311155b61237757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f556e697377617056323a204f564552464c4f5700000000000000000000000000604482015290519081900360640190fd5b60085463ffffffff428116917c0100000000000000000000000000000000000000000000000000000000900481168203908116158015906123c757506dffffffffffffffffffffffffffff841615155b80156123e257506dffffffffffffffffffffffffffff831615155b15612492578063ffffffff16612425856123fb86612a57565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169063ffffffff612a7b16565b600980547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff929092169290920201905563ffffffff8116612465846123fb87612a57565b600a80547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff92909216929092020190555b600880547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff888116919091177fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000008883168102919091177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c010000000000000000000000000000000000000000000000000000000063ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054612641908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff8085166000908152600160205260408082209390935590841681522054612683908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663017e7e586040518163ffffffff1660e01b815260040160206040518083038186803b15801561275757600080fd5b505afa15801561276b573d6000803e3d6000fd5b505050506040513d602081101561278157600080fd5b5051600b5473ffffffffffffffffffffffffffffffffffffffff821615801594509192509061286457801561285f5760006127d86112576dffffffffffffffffffffffffffff88811690881663ffffffff6121e816565b905060006127e583612878565b90508082111561285c576000612813612804848463ffffffff61226e16565b6000549063ffffffff6121e816565b905060006128388361282c86600563ffffffff6121e816565b9063ffffffff612abc16565b9050600081838161284557fe5b04905080156128585761285887826128ca565b5050505b50505b612870565b8015612870576000600b555b505092915050565b600060038211156128bb575080600160028204015b818110156128b5578091506002818285816128a457fe5b0401816128ad57fe5b04905061288d565b506128c5565b81156128c5575060015b919050565b6000546128dd908263ffffffff612abc16565b600090815573ffffffffffffffffffffffffffffffffffffffff8316815260016020526040902054612915908263ffffffff612abc16565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000818310612989578161298b565b825b9392505050565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600160205260409020546129c8908263ffffffff61226e16565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604081209190915554612a02908263ffffffff61226e16565b600090815560408051838152905173ffffffffffffffffffffffffffffffffffffffff8516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef919081900360200190a35050565b6dffffffffffffffffffffffffffff166e0100000000000000000000000000000290565b60006dffffffffffffffffffffffffffff82167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff841681612ab457fe5b049392505050565b80820182811015610df657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fdfe556e697377617056323a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f494e5055545f414d4f554e54556e697377617056323a20494e53554646494349454e545f4c4951554944495459556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4255524e4544556e697377617056323a20494e53554646494349454e545f4c49515549444954595f4d494e544544a265627a7a72315820841b93a7dff584da07aecb7efe1de139d1b94052d48051f920879ff29f44c0f264736f6c63430005100032454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c75696e7432353620636861696e49642c6164647265737320766572696679696e67436f6e747261637429"; - -type UniswapV2PairConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: UniswapV2PairConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class UniswapV2Pair__factory extends ContractFactory { - constructor(...args: UniswapV2PairConstructorParams) { - 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): UniswapV2Pair { - return super.attach(address) as UniswapV2Pair; - } - override connect(signer: Signer): UniswapV2Pair__factory { - return super.connect(signer) as UniswapV2Pair__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): UniswapV2PairInterface { - return new utils.Interface(_abi) as UniswapV2PairInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): UniswapV2Pair { - return new Contract(address, _abi, signerOrProvider) as UniswapV2Pair; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/index.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/index.ts deleted file mode 100644 index 9cb649b26..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as interfaces from "./interfaces"; -export { UniswapV2ERC20__factory } from "./UniswapV2ERC20__factory"; -export { UniswapV2Factory__factory } from "./UniswapV2Factory__factory"; -export { UniswapV2Pair__factory } from "./UniswapV2Pair__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IERC20__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IERC20__factory.ts deleted file mode 100644 index cf89732c9..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IERC20__factory.ts +++ /dev/null @@ -1,245 +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 "../../../../../@uniswap/v2-core/contracts/interfaces/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: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - 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: "value", - 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: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -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/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee__factory.ts deleted file mode 100644 index 7a522990d..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee__factory.ts +++ /dev/null @@ -1,54 +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 { - IUniswapV2Callee, - IUniswapV2CalleeInterface, -} from "../../../../../@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "uniswapV2Call", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2Callee__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2CalleeInterface { - return new utils.Interface(_abi) as IUniswapV2CalleeInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2Callee { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2Callee; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20__factory.ts deleted file mode 100644 index d0a8d1486..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20__factory.ts +++ /dev/null @@ -1,336 +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 { - IUniswapV2ERC20, - IUniswapV2ERC20Interface, -} from "../../../../../@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20"; - -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: [], - name: "DOMAIN_SEPARATOR", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "PERMIT_TYPEHASH", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - 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: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "pure", - 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", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "pure", - 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: "value", - 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: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2ERC20__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2ERC20Interface { - return new utils.Interface(_abi) as IUniswapV2ERC20Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2ERC20 { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2ERC20; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory__factory.ts deleted file mode 100644 index bd816e284..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory__factory.ts +++ /dev/null @@ -1,189 +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 { - IUniswapV2Factory, - IUniswapV2FactoryInterface, -} from "../../../../../@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "token0", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "token1", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "pair", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "PairCreated", - type: "event", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "allPairs", - outputs: [ - { - internalType: "address", - name: "pair", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "allPairsLength", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - ], - name: "createPair", - outputs: [ - { - internalType: "address", - name: "pair", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "feeTo", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "feeToSetter", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - ], - name: "getPair", - outputs: [ - { - internalType: "address", - name: "pair", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "setFeeTo", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "setFeeToSetter", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2Factory__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2FactoryInterface { - return new utils.Interface(_abi) as IUniswapV2FactoryInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2Factory { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2Factory; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair__factory.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair__factory.ts deleted file mode 100644 index 88bd7303b..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair__factory.ts +++ /dev/null @@ -1,677 +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 { - IUniswapV2Pair, - IUniswapV2PairInterface, -} from "../../../../../@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair"; - -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: "sender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "Burn", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "Mint", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0In", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1In", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0Out", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1Out", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "Swap", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint112", - name: "reserve0", - type: "uint112", - }, - { - indexed: false, - internalType: "uint112", - name: "reserve1", - type: "uint112", - }, - ], - name: "Sync", - 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: [], - name: "DOMAIN_SEPARATOR", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MINIMUM_LIQUIDITY", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "PERMIT_TYPEHASH", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - 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: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "burn", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "getReserves", - outputs: [ - { - internalType: "uint112", - name: "reserve0", - type: "uint112", - }, - { - internalType: "uint112", - name: "reserve1", - type: "uint112", - }, - { - internalType: "uint32", - name: "blockTimestampLast", - type: "uint32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "kLast", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "mint", - outputs: [ - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "pure", - 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", - }, - { - inputs: [], - name: "price0CumulativeLast", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "price1CumulativeLast", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "skim", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amount0Out", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1Out", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "swap", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "sync", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "token0", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "token1", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - 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: "value", - 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: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2Pair__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2PairInterface { - return new utils.Interface(_abi) as IUniswapV2PairInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2Pair { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2Pair; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/index.ts b/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/index.ts deleted file mode 100644 index 884613402..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/contracts/interfaces/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC20__factory } from "./IERC20__factory"; -export { IUniswapV2Callee__factory } from "./IUniswapV2Callee__factory"; -export { IUniswapV2ERC20__factory } from "./IUniswapV2ERC20__factory"; -export { IUniswapV2Factory__factory } from "./IUniswapV2Factory__factory"; -export { IUniswapV2Pair__factory } from "./IUniswapV2Pair__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v2-core/index.ts b/v1/typechain-types/factories/@uniswap/v2-core/index.ts deleted file mode 100644 index 6397da096..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-core/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/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/UniswapV2Router02__factory.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/UniswapV2Router02__factory.ts deleted file mode 100644 index 10d2c1819..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/UniswapV2Router02__factory.ts +++ /dev/null @@ -1,1042 +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 { - UniswapV2Router02, - UniswapV2Router02Interface, -} from "../../../../@uniswap/v2-periphery/contracts/UniswapV2Router02"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "_factory", - type: "address", - }, - { - internalType: "address", - name: "_WETH", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "WETH", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "amountADesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "amountTokenDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountIn", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountOut", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsIn", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsOut", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveB", - type: "uint256", - }, - ], - name: "quote", - outputs: [ - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETHSupportingFeeOnTransferTokens", - outputs: [ - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - outputs: [ - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapETHForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokensSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETHSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60c06040523480156200001157600080fd5b506040516200573e3803806200573e833981810160405260408110156200003757600080fd5b5080516020909101516001600160601b0319606092831b8116608052911b1660a05260805160601c60a05160601c6155b762000187600039806101ac5280610e5d5280610e985280610fd5528061129852806116f252806118d65280611e1e5280611fa252806120725280612179528061232c52806123c15280612673528061271a52806127ef52806128f452806129dc5280612a5d52806130ec5280613422528061347852806134ac528061352d528061374752806138f7528061398c5250806110c752806111c5528061136b52806113a4528061154f52806117e452806118b45280611aa1528061225f528061240052806125a95280612a9c5280612ddf5280613071528061309a52806130ca52806132a75280613456528061382d52806139cb528061444a528061448d52806147ed52806149ce5280614f49528061502a52806150aa52506155b76000f3fe60806040526004361061018f5760003560e01c80638803dbee116100d6578063c45a01551161007f578063e8e3370011610059578063e8e3370014610c71578063f305d71914610cfe578063fb3bdb4114610d51576101d5565b8063c45a015514610b25578063d06ca61f14610b3a578063ded9382a14610bf1576101d5565b8063af2979eb116100b0578063af2979eb146109c8578063b6f9de9514610a28578063baa2abde14610abb576101d5565b80638803dbee146108af578063ad5c464814610954578063ad615dec14610992576101d5565b80634a25d94a11610138578063791ac94711610112578063791ac947146107415780637ff36ab5146107e657806385f8c25914610879576101d5565b80634a25d94a146105775780635b0d59841461061c5780635c11d7951461069c576101d5565b80631f00ca74116101695780631f00ca74146103905780632195995c1461044757806338ed1739146104d2576101d5565b806302751cec146101da578063054d50d41461025357806318cbafe51461029b576101d5565b366101d5573373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146101d357fe5b005b600080fd5b3480156101e657600080fd5b5061023a600480360360c08110156101fd57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a00135610de4565b6040805192835260208301919091528051918290030190f35b34801561025f57600080fd5b506102896004803603606081101561027657600080fd5b5080359060208101359060400135610f37565b60408051918252519081900360200190f35b3480156102a757600080fd5b50610340600480360360a08110156102be57600080fd5b8135916020810135918101906060810160408201356401000000008111156102e557600080fd5b8201836020820111156102f757600080fd5b8035906020019184602083028401116401000000008311171561031957600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135610f4c565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561037c578181015183820152602001610364565b505050509050019250505060405180910390f35b34801561039c57600080fd5b50610340600480360360408110156103b357600080fd5b813591908101906040810160208201356401000000008111156103d557600080fd5b8201836020820111156103e757600080fd5b8035906020019184602083028401116401000000008311171561040957600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611364945050505050565b34801561045357600080fd5b5061023a600480360361016081101561046b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359091169060c08101359060e081013515159060ff610100820135169061012081013590610140013561139a565b3480156104de57600080fd5b50610340600480360360a08110156104f557600080fd5b81359160208101359181019060608101604082013564010000000081111561051c57600080fd5b82018360208201111561052e57600080fd5b8035906020019184602083028401116401000000008311171561055057600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356114d8565b34801561058357600080fd5b50610340600480360360a081101561059a57600080fd5b8135916020810135918101906060810160408201356401000000008111156105c157600080fd5b8201836020820111156105d357600080fd5b803590602001918460208302840111640100000000831117156105f557600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611669565b34801561062857600080fd5b50610289600480360361014081101561064057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356118ac565b3480156106a857600080fd5b506101d3600480360360a08110156106bf57600080fd5b8135916020810135918101906060810160408201356401000000008111156106e657600080fd5b8201836020820111156106f857600080fd5b8035906020019184602083028401116401000000008311171561071a57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356119fe565b34801561074d57600080fd5b506101d3600480360360a081101561076457600080fd5b81359160208101359181019060608101604082013564010000000081111561078b57600080fd5b82018360208201111561079d57600080fd5b803590602001918460208302840111640100000000831117156107bf57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135611d97565b610340600480360360808110156107fc57600080fd5b8135919081019060408101602082013564010000000081111561081e57600080fd5b82018360208201111561083057600080fd5b8035906020019184602083028401116401000000008311171561085257600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135612105565b34801561088557600080fd5b506102896004803603606081101561089c57600080fd5b5080359060208101359060400135612525565b3480156108bb57600080fd5b50610340600480360360a08110156108d257600080fd5b8135916020810135918101906060810160408201356401000000008111156108f957600080fd5b82018360208201111561090b57600080fd5b8035906020019184602083028401116401000000008311171561092d57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135612532565b34801561096057600080fd5b50610969612671565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561099e57600080fd5b50610289600480360360608110156109b557600080fd5b5080359060208101359060400135612695565b3480156109d457600080fd5b50610289600480360360c08110156109eb57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a001356126a2565b6101d360048036036080811015610a3e57600080fd5b81359190810190604081016020820135640100000000811115610a6057600080fd5b820183602082011115610a7257600080fd5b80359060200191846020830284011164010000000083111715610a9457600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff8135169060200135612882565b348015610ac757600080fd5b5061023a600480360360e0811015610ade57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359091169060c00135612d65565b348015610b3157600080fd5b5061096961306f565b348015610b4657600080fd5b5061034060048036036040811015610b5d57600080fd5b81359190810190604081016020820135640100000000811115610b7f57600080fd5b820183602082011115610b9157600080fd5b80359060200191846020830284011164010000000083111715610bb357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550613093945050505050565b348015610bfd57600080fd5b5061023a6004803603610140811015610c1557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a08101359060c081013515159060ff60e082013516906101008101359061012001356130c0565b348015610c7d57600080fd5b50610ce06004803603610100811015610c9557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060e00135613218565b60408051938452602084019290925282820152519081900360600190f35b610ce0600480360360c0811015610d1457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020810135916040820135916060810135916080820135169060a001356133a7565b61034060048036036080811015610d6757600080fd5b81359190810190604081016020820135640100000000811115610d8957600080fd5b820183602082011115610d9b57600080fd5b80359060200191846020830284011164010000000083111715610dbd57600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001356136d3565b6000808242811015610e5757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b610e86897f00000000000000000000000000000000000000000000000000000000000000008a8a8a308a612d65565b9093509150610e96898685613b22565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610f0957600080fd5b505af1158015610f1d573d6000803e3d6000fd5b50505050610f2b8583613cff565b50965096945050505050565b6000610f44848484613e3c565b949350505050565b60608142811015610fbe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001686867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810181811061102357fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110c257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b6111207f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613f6092505050565b9150868260018451038151811061113357fe5b60200260200101511015611192576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b611257868660008181106111a257fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff163361123d7f00000000000000000000000000000000000000000000000000000000000000008a8a60008181106111f157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff168b8b600181811061121b57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff166140c6565b8560008151811061124a57fe5b60200260200101516141b1565b61129682878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614381915050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836001855103815181106112e257fe5b60200260200101516040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561132057600080fd5b505af1158015611334573d6000803e3d6000fd5b50505050611359848360018551038151811061134c57fe5b6020026020010151613cff565b509695505050505050565b60606113917f00000000000000000000000000000000000000000000000000000000000000008484614608565b90505b92915050565b60008060006113ca7f00000000000000000000000000000000000000000000000000000000000000008f8f6140c6565b90506000876113d9578c6113fb565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c48101889052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b15801561149757600080fd5b505af11580156114ab573d6000803e3d6000fd5b505050506114be8f8f8f8f8f8f8f612d65565b809450819550505050509b509b9950505050505050505050565b6060814281101561154a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b6115a87f000000000000000000000000000000000000000000000000000000000000000089888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613f6092505050565b915086826001845103815181106115bb57fe5b6020026020010151101561161a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b61162a868660008181106111a257fe5b61135982878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614381915050565b606081428110156116db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001686867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810181811061174057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146117df57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b61183d7f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061460892505050565b9150868260008151811061184d57fe5b60200260200101511115611192576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154986027913960400191505060405180910390fd5b6000806118fa7f00000000000000000000000000000000000000000000000000000000000000008d7f00000000000000000000000000000000000000000000000000000000000000006140c6565b9050600086611909578b61192b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018b905260ff8916608482015260a4810188905260c48101879052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b1580156119c757600080fd5b505af11580156119db573d6000803e3d6000fd5b505050506119ed8d8d8d8d8d8d6126a2565b9d9c50505050505050505050505050565b8042811015611a6e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b611afd85856000818110611a7e57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1633611af77f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff168a8a600181811061121b57fe5b8a6141b1565b600085857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611b2d57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611bc657600080fd5b505afa158015611bda573d6000803e3d6000fd5b505050506040513d6020811015611bf057600080fd5b50516040805160208881028281018201909352888252929350611c32929091899189918291850190849080828437600092019190915250889250614796915050565b86611d368288887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611c6557fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611cfe57600080fd5b505afa158015611d12573d6000803e3d6000fd5b505050506040513d6020811015611d2857600080fd5b50519063ffffffff614b2916565b1015611d8d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b5050505050505050565b8042811015611e0757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001685857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110611e6c57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611f0b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b611f1b85856000818110611a7e57fe5b611f59858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250309250614796915050565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016916370a0823191602480820192602092909190829003018186803b158015611fe957600080fd5b505afa158015611ffd573d6000803e3d6000fd5b505050506040513d602081101561201357600080fd5b5051905086811015612070576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156120e357600080fd5b505af11580156120f7573d6000803e3d6000fd5b50505050611d8d8482613cff565b6060814281101561217757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16868660008181106121bb57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461225a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b6122b87f000000000000000000000000000000000000000000000000000000000000000034888880806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613f6092505050565b915086826001845103815181106122cb57fe5b6020026020010151101561232a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615508602b913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08360008151811061237357fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156123a657600080fd5b505af11580156123ba573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61242c7f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b8460008151811061243957fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156124aa57600080fd5b505af11580156124be573d6000803e3d6000fd5b505050506040513d60208110156124d457600080fd5b50516124dc57fe5b61251b82878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614381915050565b5095945050505050565b6000610f44848484614b9b565b606081428110156125a457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b6126027f00000000000000000000000000000000000000000000000000000000000000008988888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061460892505050565b9150868260008151811061261257fe5b6020026020010151111561161a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154986027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610f44848484614cbf565b6000814281101561271457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b612743887f00000000000000000000000000000000000000000000000000000000000000008989893089612d65565b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290519194506127ed92508a91879173ffffffffffffffffffffffffffffffffffffffff8416916370a0823191602480820192602092909190829003018186803b1580156127bc57600080fd5b505afa1580156127d0573d6000803e3d6000fd5b505050506040513d60208110156127e657600080fd5b5051613b22565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561286057600080fd5b505af1158015612874573d6000803e3d6000fd5b505050506113598483613cff565b80428110156128f257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168585600081811061293657fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146129d557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b60003490507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015612a4257600080fd5b505af1158015612a56573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb612ac87f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612b3257600080fd5b505af1158015612b46573d6000803e3d6000fd5b505050506040513d6020811015612b5c57600080fd5b5051612b6457fe5b600086867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110612b9457fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612c2d57600080fd5b505afa158015612c41573d6000803e3d6000fd5b505050506040513d6020811015612c5757600080fd5b50516040805160208981028281018201909352898252929350612c999290918a918a918291850190849080828437600092019190915250899250614796915050565b87611d368289897fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101818110612ccc57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231896040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611cfe57600080fd5b6000808242811015612dd857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b6000612e057f00000000000000000000000000000000000000000000000000000000000000008c8c6140c6565b604080517f23b872dd00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff831660248201819052604482018d9052915192935090916323b872dd916064808201926020929091908290030181600087803b158015612e8657600080fd5b505af1158015612e9a573d6000803e3d6000fd5b505050506040513d6020811015612eb057600080fd5b5050604080517f89afcb4400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015282516000938493928616926389afcb44926024808301939282900301818787803b158015612f2357600080fd5b505af1158015612f37573d6000803e3d6000fd5b505050506040513d6040811015612f4d57600080fd5b50805160209091015190925090506000612f678e8e614d9f565b5090508073ffffffffffffffffffffffffffffffffffffffff168e73ffffffffffffffffffffffffffffffffffffffff1614612fa4578183612fa7565b82825b90975095508a871015613005576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154bf6026913960400191505060405180910390fd5b8986101561305e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154256026913960400191505060405180910390fd5b505050505097509795505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606113917f00000000000000000000000000000000000000000000000000000000000000008484613f60565b60008060006131107f00000000000000000000000000000000000000000000000000000000000000008e7f00000000000000000000000000000000000000000000000000000000000000006140c6565b905060008761311f578c613141565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b604080517fd505accf00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101839052606481018c905260ff8a16608482015260a4810189905260c48101889052905191925073ffffffffffffffffffffffffffffffffffffffff84169163d505accf9160e48082019260009290919082900301818387803b1580156131dd57600080fd5b505af11580156131f1573d6000803e3d6000fd5b505050506132038e8e8e8e8e8e610de4565b909f909e509c50505050505050505050505050565b6000806000834281101561328d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b61329b8c8c8c8c8c8c614ef2565b909450925060006132cd7f00000000000000000000000000000000000000000000000000000000000000008e8e6140c6565b90506132db8d3383886141b1565b6132e78c3383876141b1565b8073ffffffffffffffffffffffffffffffffffffffff16636a627842886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561336657600080fd5b505af115801561337a573d6000803e3d6000fd5b505050506040513d602081101561339057600080fd5b5051949d939c50939a509198505050505050505050565b6000806000834281101561341c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b61344a8a7f00000000000000000000000000000000000000000000000000000000000000008b348c8c614ef2565b9094509250600061349c7f00000000000000000000000000000000000000000000000000000000000000008c7f00000000000000000000000000000000000000000000000000000000000000006140c6565b90506134aa8b3383886141b1565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561351257600080fd5b505af1158015613526573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156135d257600080fd5b505af11580156135e6573d6000803e3d6000fd5b505050506040513d60208110156135fc57600080fd5b505161360457fe5b8073ffffffffffffffffffffffffffffffffffffffff16636a627842886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561368357600080fd5b505af1158015613697573d6000803e3d6000fd5b505050506040513d60208110156136ad57600080fd5b50519250348410156136c5576136c533853403613cff565b505096509650969350505050565b6060814281101561374557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f556e69737761705632526f757465723a20455850495245440000000000000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168686600081811061378957fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461382857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f556e69737761705632526f757465723a20494e56414c49445f50415448000000604482015290519081900360640190fd5b6138867f00000000000000000000000000000000000000000000000000000000000000008888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061460892505050565b9150348260008151811061389657fe5b602002602001015111156138f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806154986027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db08360008151811061393e57fe5b60200260200101516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561397157600080fd5b505af1158015613985573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6139f77f000000000000000000000000000000000000000000000000000000000000000089896000818110611acd57fe5b84600081518110613a0457fe5b60200260200101516040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015613a7557600080fd5b505af1158015613a89573d6000803e3d6000fd5b505050506040513d6020811015613a9f57600080fd5b5051613aa757fe5b613ae682878780806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250899250614381915050565b81600081518110613af357fe5b602002602001015134111561251b5761251b3383600081518110613b1357fe5b60200260200101513403613cff565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000178152925182516000946060949389169392918291908083835b60208310613bf857805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613bbb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613c5a576040519150601f19603f3d011682016040523d82523d6000602084013e613c5f565b606091505b5091509150818015613c8d575080511580613c8d5750808060200190516020811015613c8a57600080fd5b50515b613cf857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b6040805160008082526020820190925273ffffffffffffffffffffffffffffffffffffffff84169083906040518082805190602001908083835b60208310613d7657805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613d39565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613dd8576040519150601f19603f3d011682016040523d82523d6000602084013e613ddd565b606091505b5050905080613e37576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806154e56023913960400191505060405180910390fd5b505050565b6000808411613e96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180615557602b913960400191505060405180910390fd5b600083118015613ea65750600082115b613efb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061544b6028913960400191505060405180910390fd5b6000613f0f856103e563ffffffff6151f316565b90506000613f23828563ffffffff6151f316565b90506000613f4983613f3d886103e863ffffffff6151f316565b9063ffffffff61527916565b9050808281613f5457fe5b04979650505050505050565b6060600282511015613fd357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff81118015613feb57600080fd5b50604051908082528060200260200182016040528015614015578160200160208202803683370190505b509050828160008151811061402657fe5b60200260200101818152505060005b60018351038110156140be576000806140788786858151811061405457fe5b602002602001015187866001018151811061406b57fe5b60200260200101516152eb565b9150915061409a84848151811061408b57fe5b60200260200101518383613e3c565b8484600101815181106140a957fe5b60209081029190910101525050600101614035565b509392505050565b60008060006140d58585614d9f565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501207fff0000000000000000000000000000000000000000000000000000000000000060688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017815292518251600094606094938a169392918291908083835b6020831061428f57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101614252565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146142f1576040519150601f19603f3d011682016040523d82523d6000602084013e6142f6565b606091505b5091509150818015614324575080511580614324575080806020019051602081101561432157600080fd5b50515b614379576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806155336024913960400191505060405180910390fd5b505050505050565b60005b60018351038110156146025760008084838151811061439f57fe5b60200260200101518584600101815181106143b657fe5b60200260200101519150915060006143ce8383614d9f565b50905060008785600101815181106143e257fe5b602002602001015190506000808373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161461442a5782600061442e565b6000835b91509150600060028a510388106144455788614486565b6144867f0000000000000000000000000000000000000000000000000000000000000000878c8b6002018151811061447957fe5b60200260200101516140c6565b90506144b37f000000000000000000000000000000000000000000000000000000000000000088886140c6565b73ffffffffffffffffffffffffffffffffffffffff1663022c0d9f84848460006040519080825280601f01601f1916602001820160405280156144fd576020820181803683370190505b506040518563ffffffff1660e01b8152600401808581526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614588578181015183820152602001614570565b50505050905090810190601f1680156145b55780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156145d757600080fd5b505af11580156145eb573d6000803e3d6000fd5b505060019099019850614384975050505050505050565b50505050565b606060028251101561467b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a20494e56414c49445f504154480000604482015290519081900360640190fd5b815167ffffffffffffffff8111801561469357600080fd5b506040519080825280602002602001820160405280156146bd578160200160208202803683370190505b50905082816001835103815181106146d157fe5b602090810291909101015281517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b80156140be576000806147318786600186038151811061471d57fe5b602002602001015187868151811061406b57fe5b9150915061475384848151811061474457fe5b60200260200101518383614b9b565b84600185038151811061476257fe5b602090810291909101015250507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01614701565b60005b6001835103811015613e37576000808483815181106147b457fe5b60200260200101518584600101815181106147cb57fe5b60200260200101519150915060006147e38383614d9f565b50905060006148137f000000000000000000000000000000000000000000000000000000000000000085856140c6565b90506000806000808473ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561486157600080fd5b505afa158015614875573d6000803e3d6000fd5b505050506040513d606081101561488b57600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905060008073ffffffffffffffffffffffffffffffffffffffff8a8116908916146148d55782846148d8565b83835b9150915061495d828b73ffffffffffffffffffffffffffffffffffffffff166370a082318a6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611cfe57600080fd5b955061496a868383613e3c565b9450505050506000808573ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff16146149ae578260006149b2565b6000835b91509150600060028c51038a106149c9578a6149fd565b6149fd7f0000000000000000000000000000000000000000000000000000000000000000898e8d6002018151811061447957fe5b60408051600080825260208201928390527f022c0d9f000000000000000000000000000000000000000000000000000000008352602482018781526044830187905273ffffffffffffffffffffffffffffffffffffffff8086166064850152608060848501908152845160a48601819052969750908c169563022c0d9f958a958a958a9591949193919260c486019290918190849084905b83811015614aad578181015183820152602001614a95565b50505050905090810190601f168015614ada5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b158015614afc57600080fd5b505af1158015614b10573d6000803e3d6000fd5b50506001909b019a506147999950505050505050505050565b8082038281111561139457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f64732d6d6174682d7375622d756e646572666c6f770000000000000000000000604482015290519081900360640190fd5b6000808411614bf5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c8152602001806153d4602c913960400191505060405180910390fd5b600083118015614c055750600082115b614c5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061544b6028913960400191505060405180910390fd5b6000614c7e6103e8614c72868863ffffffff6151f316565b9063ffffffff6151f316565b90506000614c986103e5614c72868963ffffffff614b2916565b9050614cb56001828481614ca857fe5b049063ffffffff61527916565b9695505050505050565b6000808411614d19576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806154736025913960400191505060405180910390fd5b600083118015614d295750600082115b614d7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061544b6028913960400191505060405180910390fd5b82614d8f858463ffffffff6151f316565b81614d9657fe5b04949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415614e27576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806154006025913960400191505060405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610614e61578284614e64565b83835b909250905073ffffffffffffffffffffffffffffffffffffffff8216614eeb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b604080517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff888116600483015287811660248301529151600092839283927f00000000000000000000000000000000000000000000000000000000000000009092169163e6a4390591604480820192602092909190829003018186803b158015614f9257600080fd5b505afa158015614fa6573d6000803e3d6000fd5b505050506040513d6020811015614fbc57600080fd5b505173ffffffffffffffffffffffffffffffffffffffff1614156150a257604080517fc9c6539600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a81166004830152898116602483015291517f00000000000000000000000000000000000000000000000000000000000000009092169163c9c65396916044808201926020929091908290030181600087803b15801561507557600080fd5b505af1158015615089573d6000803e3d6000fd5b505050506040513d602081101561509f57600080fd5b50505b6000806150d07f00000000000000000000000000000000000000000000000000000000000000008b8b6152eb565b915091508160001480156150e2575080155b156150f2578793508692506151e6565b60006150ff898484614cbf565b905087811161516c5785811015615161576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154256026913960400191505060405180910390fd5b8894509250826151e4565b6000615179898486614cbf565b90508981111561518557fe5b878110156151de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154bf6026913960400191505060405180910390fd5b94508793505b505b5050965096945050505050565b600081158061520e5750508082028282828161520b57fe5b04145b61139457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6d756c2d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b8082018281101561139457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f64732d6d6174682d6164642d6f766572666c6f77000000000000000000000000604482015290519081900360640190fd5b60008060006152fa8585614d9f565b50905060008061530b8888886140c6565b73ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561535057600080fd5b505afa158015615364573d6000803e3d6000fd5b505050506040513d606081101561537a57600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905073ffffffffffffffffffffffffffffffffffffffff878116908416146153c15780826153c4565b81815b9099909850965050505050505056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4f55545055545f414d4f554e54556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553556e69737761705632526f757465723a20494e53554646494349454e545f425f414d4f554e54556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e54556e69737761705632526f757465723a204558434553534956455f494e5055545f414d4f554e54556e69737761705632526f757465723a20494e53554646494349454e545f415f414d4f554e545472616e7366657248656c7065723a204554485f5452414e534645525f4641494c4544556e69737761705632526f757465723a20494e53554646494349454e545f4f55545055545f414d4f554e545472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a2646970667358221220d767e6d3ae379997e75048713bb6ac2dcd987d96aa9e28fe4d4f219ea31a4f8864736f6c63430006060033"; - -type UniswapV2Router02ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: UniswapV2Router02ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class UniswapV2Router02__factory extends ContractFactory { - constructor(...args: UniswapV2Router02ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - _factory: PromiseOrValue, - _WETH: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - _factory, - _WETH, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - _factory: PromiseOrValue, - _WETH: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(_factory, _WETH, overrides || {}); - } - override attach(address: string): UniswapV2Router02 { - return super.attach(address) as UniswapV2Router02; - } - override connect(signer: Signer): UniswapV2Router02__factory { - return super.connect(signer) as UniswapV2Router02__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): UniswapV2Router02Interface { - return new utils.Interface(_abi) as UniswapV2Router02Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): UniswapV2Router02 { - return new Contract(address, _abi, signerOrProvider) as UniswapV2Router02; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/index.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/index.ts deleted file mode 100644 index 1e34f5fdd..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/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 { UniswapV2Router02__factory } from "./UniswapV2Router02__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IERC20__factory.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IERC20__factory.ts deleted file mode 100644 index 12bd2f35b..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IERC20__factory.ts +++ /dev/null @@ -1,245 +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 "../../../../../@uniswap/v2-periphery/contracts/interfaces/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: "value", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - 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: "value", - 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: "value", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -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/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01__factory.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01__factory.ts deleted file mode 100644 index 5f185b90d..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01__factory.ts +++ /dev/null @@ -1,775 +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 { - IUniswapV2Router01, - IUniswapV2Router01Interface, -} from "../../../../../@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01"; - -const _abi = [ - { - inputs: [], - name: "WETH", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "amountADesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "amountTokenDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountIn", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountOut", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsIn", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsOut", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveB", - type: "uint256", - }, - ], - name: "quote", - outputs: [ - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapETHForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2Router01__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2Router01Interface { - return new utils.Interface(_abi) as IUniswapV2Router01Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2Router01 { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2Router01; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02__factory.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02__factory.ts deleted file mode 100644 index d7114c704..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02__factory.ts +++ /dev/null @@ -1,977 +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 { - IUniswapV2Router02, - IUniswapV2Router02Interface, -} from "../../../../../@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02"; - -const _abi = [ - { - inputs: [], - name: "WETH", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "amountADesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "amountTokenDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountIn", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountOut", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsIn", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsOut", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveB", - type: "uint256", - }, - ], - name: "quote", - outputs: [ - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETHSupportingFeeOnTransferTokens", - outputs: [ - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - outputs: [ - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapETHForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokensSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETHSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2Router02__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2Router02Interface { - return new utils.Interface(_abi) as IUniswapV2Router02Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2Router02 { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2Router02; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IWETH__factory.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IWETH__factory.ts deleted file mode 100644 index a5a76ae17..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/IWETH__factory.ts +++ /dev/null @@ -1,67 +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 "../../../../../@uniswap/v2-periphery/contracts/interfaces/IWETH"; - -const _abi = [ - { - inputs: [], - name: "deposit", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - 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/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/index.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/index.ts deleted file mode 100644 index f8c8fbd35..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/contracts/interfaces/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IERC20__factory } from "./IERC20__factory"; -export { IUniswapV2Router01__factory } from "./IUniswapV2Router01__factory"; -export { IUniswapV2Router02__factory } from "./IUniswapV2Router02__factory"; -export { IWETH__factory } from "./IWETH__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v2-periphery/index.ts b/v1/typechain-types/factories/@uniswap/v2-periphery/index.ts deleted file mode 100644 index 6397da096..000000000 --- a/v1/typechain-types/factories/@uniswap/v2-periphery/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/v1/typechain-types/factories/@uniswap/v3-core/contracts/index.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/index.ts deleted file mode 100644 index 1d3444d5b..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as interfaces from "./interfaces"; diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory__factory.ts deleted file mode 100644 index 149e034bc..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory__factory.ts +++ /dev/null @@ -1,222 +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 { - IUniswapV3Factory, - IUniswapV3FactoryInterface, -} from "../../../../../@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - indexed: true, - internalType: "int24", - name: "tickSpacing", - type: "int24", - }, - ], - name: "FeeAmountEnabled", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "oldOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnerChanged", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "token0", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "token1", - type: "address", - }, - { - indexed: true, - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - indexed: false, - internalType: "int24", - name: "tickSpacing", - type: "int24", - }, - { - indexed: false, - internalType: "address", - name: "pool", - type: "address", - }, - ], - name: "PoolCreated", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - ], - name: "createPool", - outputs: [ - { - internalType: "address", - name: "pool", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "int24", - name: "tickSpacing", - type: "int24", - }, - ], - name: "enableFeeAmount", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - ], - name: "feeAmountTickSpacing", - outputs: [ - { - internalType: "int24", - name: "", - type: "int24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - ], - name: "getPool", - outputs: [ - { - internalType: "address", - name: "pool", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_owner", - type: "address", - }, - ], - name: "setOwner", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV3Factory__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3FactoryInterface { - return new utils.Interface(_abi) as IUniswapV3FactoryInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3Factory { - return new Contract(address, _abi, signerOrProvider) as IUniswapV3Factory; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool__factory.ts deleted file mode 100644 index 71683bb27..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool__factory.ts +++ /dev/null @@ -1,1007 +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 { - IUniswapV3Pool, - IUniswapV3PoolInterface, -} from "../../../../../@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - indexed: true, - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - indexed: false, - internalType: "uint128", - name: "amount", - type: "uint128", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "Burn", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: true, - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - indexed: true, - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - indexed: false, - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - indexed: false, - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - name: "Collect", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: false, - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - indexed: false, - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - name: "CollectProtocol", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "paid0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "paid1", - type: "uint256", - }, - ], - name: "Flash", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "observationCardinalityNextOld", - type: "uint16", - }, - { - indexed: false, - internalType: "uint16", - name: "observationCardinalityNextNew", - type: "uint16", - }, - ], - name: "IncreaseObservationCardinalityNext", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - { - indexed: false, - internalType: "int24", - name: "tick", - type: "int24", - }, - ], - name: "Initialize", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - indexed: true, - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - indexed: false, - internalType: "uint128", - name: "amount", - type: "uint128", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "Mint", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "feeProtocol0Old", - type: "uint8", - }, - { - indexed: false, - internalType: "uint8", - name: "feeProtocol1Old", - type: "uint8", - }, - { - indexed: false, - internalType: "uint8", - name: "feeProtocol0New", - type: "uint8", - }, - { - indexed: false, - internalType: "uint8", - name: "feeProtocol1New", - type: "uint8", - }, - ], - name: "SetFeeProtocol", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: false, - internalType: "int256", - name: "amount0", - type: "int256", - }, - { - indexed: false, - internalType: "int256", - name: "amount1", - type: "int256", - }, - { - indexed: false, - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - { - indexed: false, - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - indexed: false, - internalType: "int24", - name: "tick", - type: "int24", - }, - ], - name: "Swap", - type: "event", - }, - { - inputs: [ - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint128", - name: "amount", - type: "uint128", - }, - ], - name: "burn", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint128", - name: "amount0Requested", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1Requested", - type: "uint128", - }, - ], - name: "collect", - outputs: [ - { - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint128", - name: "amount0Requested", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1Requested", - type: "uint128", - }, - ], - name: "collectProtocol", - outputs: [ - { - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "fee", - outputs: [ - { - internalType: "uint24", - name: "", - type: "uint24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "feeGrowthGlobal0X128", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "feeGrowthGlobal1X128", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "flash", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "observationCardinalityNext", - type: "uint16", - }, - ], - name: "increaseObservationCardinalityNext", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - ], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "liquidity", - outputs: [ - { - internalType: "uint128", - name: "", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "maxLiquidityPerTick", - outputs: [ - { - internalType: "uint128", - name: "", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint128", - name: "amount", - type: "uint128", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "mint", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "index", - type: "uint256", - }, - ], - name: "observations", - outputs: [ - { - internalType: "uint32", - name: "blockTimestamp", - type: "uint32", - }, - { - internalType: "int56", - name: "tickCumulative", - type: "int56", - }, - { - internalType: "uint160", - name: "secondsPerLiquidityCumulativeX128", - type: "uint160", - }, - { - internalType: "bool", - name: "initialized", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint32[]", - name: "secondsAgos", - type: "uint32[]", - }, - ], - name: "observe", - outputs: [ - { - internalType: "int56[]", - name: "tickCumulatives", - type: "int56[]", - }, - { - internalType: "uint160[]", - name: "secondsPerLiquidityCumulativeX128s", - type: "uint160[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "key", - type: "bytes32", - }, - ], - name: "positions", - outputs: [ - { - internalType: "uint128", - name: "_liquidity", - type: "uint128", - }, - { - internalType: "uint256", - name: "feeGrowthInside0LastX128", - type: "uint256", - }, - { - internalType: "uint256", - name: "feeGrowthInside1LastX128", - type: "uint256", - }, - { - internalType: "uint128", - name: "tokensOwed0", - type: "uint128", - }, - { - internalType: "uint128", - name: "tokensOwed1", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "protocolFees", - outputs: [ - { - internalType: "uint128", - name: "token0", - type: "uint128", - }, - { - internalType: "uint128", - name: "token1", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "feeProtocol0", - type: "uint8", - }, - { - internalType: "uint8", - name: "feeProtocol1", - type: "uint8", - }, - ], - name: "setFeeProtocol", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "slot0", - outputs: [ - { - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - { - internalType: "int24", - name: "tick", - type: "int24", - }, - { - internalType: "uint16", - name: "observationIndex", - type: "uint16", - }, - { - internalType: "uint16", - name: "observationCardinality", - type: "uint16", - }, - { - internalType: "uint16", - name: "observationCardinalityNext", - type: "uint16", - }, - { - internalType: "uint8", - name: "feeProtocol", - type: "uint8", - }, - { - internalType: "bool", - name: "unlocked", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - ], - name: "snapshotCumulativesInside", - outputs: [ - { - internalType: "int56", - name: "tickCumulativeInside", - type: "int56", - }, - { - internalType: "uint160", - name: "secondsPerLiquidityInsideX128", - type: "uint160", - }, - { - internalType: "uint32", - name: "secondsInside", - type: "uint32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "bool", - name: "zeroForOne", - type: "bool", - }, - { - internalType: "int256", - name: "amountSpecified", - type: "int256", - }, - { - internalType: "uint160", - name: "sqrtPriceLimitX96", - type: "uint160", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "swap", - outputs: [ - { - internalType: "int256", - name: "amount0", - type: "int256", - }, - { - internalType: "int256", - name: "amount1", - type: "int256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "int16", - name: "wordPosition", - type: "int16", - }, - ], - name: "tickBitmap", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tickSpacing", - outputs: [ - { - internalType: "int24", - name: "", - type: "int24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "int24", - name: "tick", - type: "int24", - }, - ], - name: "ticks", - outputs: [ - { - internalType: "uint128", - name: "liquidityGross", - type: "uint128", - }, - { - internalType: "int128", - name: "liquidityNet", - type: "int128", - }, - { - internalType: "uint256", - name: "feeGrowthOutside0X128", - type: "uint256", - }, - { - internalType: "uint256", - name: "feeGrowthOutside1X128", - type: "uint256", - }, - { - internalType: "int56", - name: "tickCumulativeOutside", - type: "int56", - }, - { - internalType: "uint160", - name: "secondsPerLiquidityOutsideX128", - type: "uint160", - }, - { - internalType: "uint32", - name: "secondsOutside", - type: "uint32", - }, - { - internalType: "bool", - name: "initialized", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "token0", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "token1", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IUniswapV3Pool__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3PoolInterface { - return new utils.Interface(_abi) as IUniswapV3PoolInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3Pool { - return new Contract(address, _abi, signerOrProvider) as IUniswapV3Pool; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts deleted file mode 100644 index a9788811d..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory.ts +++ /dev/null @@ -1,53 +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 { - IUniswapV3SwapCallback, - IUniswapV3SwapCallbackInterface, -} from "../../../../../../@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback"; - -const _abi = [ - { - inputs: [ - { - internalType: "int256", - name: "amount0Delta", - type: "int256", - }, - { - internalType: "int256", - name: "amount1Delta", - type: "int256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "uniswapV3SwapCallback", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV3SwapCallback__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3SwapCallbackInterface { - return new utils.Interface(_abi) as IUniswapV3SwapCallbackInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3SwapCallback { - return new Contract( - address, - _abi, - signerOrProvider - ) as IUniswapV3SwapCallback; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts deleted file mode 100644 index 0c401bd07..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/callback/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IUniswapV3SwapCallback__factory } from "./IUniswapV3SwapCallback__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts deleted file mode 100644 index a1bdba4c7..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as callback from "./callback"; -export * as pool from "./pool"; -export { IUniswapV3Factory__factory } from "./IUniswapV3Factory__factory"; -export { IUniswapV3Pool__factory } from "./IUniswapV3Pool__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions__factory.ts deleted file mode 100644 index 678e131fc..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions__factory.ts +++ /dev/null @@ -1,250 +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 { - IUniswapV3PoolActions, - IUniswapV3PoolActionsInterface, -} from "../../../../../../@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions"; - -const _abi = [ - { - inputs: [ - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint128", - name: "amount", - type: "uint128", - }, - ], - name: "burn", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint128", - name: "amount0Requested", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1Requested", - type: "uint128", - }, - ], - name: "collect", - outputs: [ - { - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "flash", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint16", - name: "observationCardinalityNext", - type: "uint16", - }, - ], - name: "increaseObservationCardinalityNext", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - ], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint128", - name: "amount", - type: "uint128", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "mint", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "bool", - name: "zeroForOne", - type: "bool", - }, - { - internalType: "int256", - name: "amountSpecified", - type: "int256", - }, - { - internalType: "uint160", - name: "sqrtPriceLimitX96", - type: "uint160", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "swap", - outputs: [ - { - internalType: "int256", - name: "amount0", - type: "int256", - }, - { - internalType: "int256", - name: "amount1", - type: "int256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV3PoolActions__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3PoolActionsInterface { - return new utils.Interface(_abi) as IUniswapV3PoolActionsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3PoolActions { - return new Contract( - address, - _abi, - signerOrProvider - ) as IUniswapV3PoolActions; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState__factory.ts deleted file mode 100644 index 5676cd323..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState__factory.ts +++ /dev/null @@ -1,88 +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 { - IUniswapV3PoolDerivedState, - IUniswapV3PoolDerivedStateInterface, -} from "../../../../../../@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState"; - -const _abi = [ - { - inputs: [ - { - internalType: "uint32[]", - name: "secondsAgos", - type: "uint32[]", - }, - ], - name: "observe", - outputs: [ - { - internalType: "int56[]", - name: "tickCumulatives", - type: "int56[]", - }, - { - internalType: "uint160[]", - name: "secondsPerLiquidityCumulativeX128s", - type: "uint160[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - ], - name: "snapshotCumulativesInside", - outputs: [ - { - internalType: "int56", - name: "tickCumulativeInside", - type: "int56", - }, - { - internalType: "uint160", - name: "secondsPerLiquidityInsideX128", - type: "uint160", - }, - { - internalType: "uint32", - name: "secondsInside", - type: "uint32", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IUniswapV3PoolDerivedState__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3PoolDerivedStateInterface { - return new utils.Interface(_abi) as IUniswapV3PoolDerivedStateInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3PoolDerivedState { - return new Contract( - address, - _abi, - signerOrProvider - ) as IUniswapV3PoolDerivedState; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents__factory.ts deleted file mode 100644 index 47438de57..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents__factory.ts +++ /dev/null @@ -1,357 +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 { - IUniswapV3PoolEvents, - IUniswapV3PoolEventsInterface, -} from "../../../../../../@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - indexed: true, - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - indexed: false, - internalType: "uint128", - name: "amount", - type: "uint128", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "Burn", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: true, - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - indexed: true, - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - indexed: false, - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - indexed: false, - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - name: "Collect", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: false, - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - indexed: false, - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - name: "CollectProtocol", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "paid0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "paid1", - type: "uint256", - }, - ], - name: "Flash", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint16", - name: "observationCardinalityNextOld", - type: "uint16", - }, - { - indexed: false, - internalType: "uint16", - name: "observationCardinalityNextNew", - type: "uint16", - }, - ], - name: "IncreaseObservationCardinalityNext", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - { - indexed: false, - internalType: "int24", - name: "tick", - type: "int24", - }, - ], - name: "Initialize", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - indexed: true, - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - indexed: false, - internalType: "uint128", - name: "amount", - type: "uint128", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "Mint", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint8", - name: "feeProtocol0Old", - type: "uint8", - }, - { - indexed: false, - internalType: "uint8", - name: "feeProtocol1Old", - type: "uint8", - }, - { - indexed: false, - internalType: "uint8", - name: "feeProtocol0New", - type: "uint8", - }, - { - indexed: false, - internalType: "uint8", - name: "feeProtocol1New", - type: "uint8", - }, - ], - name: "SetFeeProtocol", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "sender", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: false, - internalType: "int256", - name: "amount0", - type: "int256", - }, - { - indexed: false, - internalType: "int256", - name: "amount1", - type: "int256", - }, - { - indexed: false, - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - { - indexed: false, - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - indexed: false, - internalType: "int24", - name: "tick", - type: "int24", - }, - ], - name: "Swap", - type: "event", - }, -] as const; - -export class IUniswapV3PoolEvents__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3PoolEventsInterface { - return new utils.Interface(_abi) as IUniswapV3PoolEventsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3PoolEvents { - return new Contract( - address, - _abi, - signerOrProvider - ) as IUniswapV3PoolEvents; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables__factory.ts deleted file mode 100644 index aa6025977..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables__factory.ts +++ /dev/null @@ -1,108 +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 { - IUniswapV3PoolImmutables, - IUniswapV3PoolImmutablesInterface, -} from "../../../../../../@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables"; - -const _abi = [ - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "fee", - outputs: [ - { - internalType: "uint24", - name: "", - type: "uint24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "maxLiquidityPerTick", - outputs: [ - { - internalType: "uint128", - name: "", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tickSpacing", - outputs: [ - { - internalType: "int24", - name: "", - type: "int24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "token0", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "token1", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IUniswapV3PoolImmutables__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3PoolImmutablesInterface { - return new utils.Interface(_abi) as IUniswapV3PoolImmutablesInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3PoolImmutables { - return new Contract( - address, - _abi, - signerOrProvider - ) as IUniswapV3PoolImmutables; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions__factory.ts deleted file mode 100644 index 3da8923aa..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions__factory.ts +++ /dev/null @@ -1,82 +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 { - IUniswapV3PoolOwnerActions, - IUniswapV3PoolOwnerActionsInterface, -} from "../../../../../../@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint128", - name: "amount0Requested", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1Requested", - type: "uint128", - }, - ], - name: "collectProtocol", - outputs: [ - { - internalType: "uint128", - name: "amount0", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1", - type: "uint128", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint8", - name: "feeProtocol0", - type: "uint8", - }, - { - internalType: "uint8", - name: "feeProtocol1", - type: "uint8", - }, - ], - name: "setFeeProtocol", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV3PoolOwnerActions__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3PoolOwnerActionsInterface { - return new utils.Interface(_abi) as IUniswapV3PoolOwnerActionsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3PoolOwnerActions { - return new Contract( - address, - _abi, - signerOrProvider - ) as IUniswapV3PoolOwnerActions; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState__factory.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState__factory.ts deleted file mode 100644 index 8d4cc25ff..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState__factory.ts +++ /dev/null @@ -1,272 +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 { - IUniswapV3PoolState, - IUniswapV3PoolStateInterface, -} from "../../../../../../@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState"; - -const _abi = [ - { - inputs: [], - name: "feeGrowthGlobal0X128", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "feeGrowthGlobal1X128", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "liquidity", - outputs: [ - { - internalType: "uint128", - name: "", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "index", - type: "uint256", - }, - ], - name: "observations", - outputs: [ - { - internalType: "uint32", - name: "blockTimestamp", - type: "uint32", - }, - { - internalType: "int56", - name: "tickCumulative", - type: "int56", - }, - { - internalType: "uint160", - name: "secondsPerLiquidityCumulativeX128", - type: "uint160", - }, - { - internalType: "bool", - name: "initialized", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "key", - type: "bytes32", - }, - ], - name: "positions", - outputs: [ - { - internalType: "uint128", - name: "_liquidity", - type: "uint128", - }, - { - internalType: "uint256", - name: "feeGrowthInside0LastX128", - type: "uint256", - }, - { - internalType: "uint256", - name: "feeGrowthInside1LastX128", - type: "uint256", - }, - { - internalType: "uint128", - name: "tokensOwed0", - type: "uint128", - }, - { - internalType: "uint128", - name: "tokensOwed1", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "protocolFees", - outputs: [ - { - internalType: "uint128", - name: "token0", - type: "uint128", - }, - { - internalType: "uint128", - name: "token1", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "slot0", - outputs: [ - { - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - { - internalType: "int24", - name: "tick", - type: "int24", - }, - { - internalType: "uint16", - name: "observationIndex", - type: "uint16", - }, - { - internalType: "uint16", - name: "observationCardinality", - type: "uint16", - }, - { - internalType: "uint16", - name: "observationCardinalityNext", - type: "uint16", - }, - { - internalType: "uint8", - name: "feeProtocol", - type: "uint8", - }, - { - internalType: "bool", - name: "unlocked", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "int16", - name: "wordPosition", - type: "int16", - }, - ], - name: "tickBitmap", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "int24", - name: "tick", - type: "int24", - }, - ], - name: "ticks", - outputs: [ - { - internalType: "uint128", - name: "liquidityGross", - type: "uint128", - }, - { - internalType: "int128", - name: "liquidityNet", - type: "int128", - }, - { - internalType: "uint256", - name: "feeGrowthOutside0X128", - type: "uint256", - }, - { - internalType: "uint256", - name: "feeGrowthOutside1X128", - type: "uint256", - }, - { - internalType: "int56", - name: "tickCumulativeOutside", - type: "int56", - }, - { - internalType: "uint160", - name: "secondsPerLiquidityOutsideX128", - type: "uint160", - }, - { - internalType: "uint32", - name: "secondsOutside", - type: "uint32", - }, - { - internalType: "bool", - name: "initialized", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IUniswapV3PoolState__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV3PoolStateInterface { - return new utils.Interface(_abi) as IUniswapV3PoolStateInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV3PoolState { - return new Contract(address, _abi, signerOrProvider) as IUniswapV3PoolState; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/index.ts b/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/index.ts deleted file mode 100644 index eaf518742..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/contracts/interfaces/pool/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IUniswapV3PoolActions__factory } from "./IUniswapV3PoolActions__factory"; -export { IUniswapV3PoolDerivedState__factory } from "./IUniswapV3PoolDerivedState__factory"; -export { IUniswapV3PoolEvents__factory } from "./IUniswapV3PoolEvents__factory"; -export { IUniswapV3PoolImmutables__factory } from "./IUniswapV3PoolImmutables__factory"; -export { IUniswapV3PoolOwnerActions__factory } from "./IUniswapV3PoolOwnerActions__factory"; -export { IUniswapV3PoolState__factory } from "./IUniswapV3PoolState__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v3-core/index.ts b/v1/typechain-types/factories/@uniswap/v3-core/index.ts deleted file mode 100644 index 6397da096..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-core/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/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts b/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts deleted file mode 100644 index 1d3444d5b..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as interfaces from "./interfaces"; diff --git a/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/IQuoter__factory.ts b/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/IQuoter__factory.ts deleted file mode 100644 index 8423278f1..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/IQuoter__factory.ts +++ /dev/null @@ -1,152 +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 { - IQuoter, - IQuoterInterface, -} from "../../../../../@uniswap/v3-periphery/contracts/interfaces/IQuoter"; - -const _abi = [ - { - inputs: [ - { - internalType: "bytes", - name: "path", - type: "bytes", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - name: "quoteExactInput", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "address", - name: "tokenOut", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint160", - name: "sqrtPriceLimitX96", - type: "uint160", - }, - ], - name: "quoteExactInputSingle", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "path", - type: "bytes", - }, - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "quoteExactOutput", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "address", - name: "tokenOut", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint160", - name: "sqrtPriceLimitX96", - type: "uint160", - }, - ], - name: "quoteExactOutputSingle", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IQuoter__factory { - static readonly abi = _abi; - static createInterface(): IQuoterInterface { - return new utils.Interface(_abi) as IQuoterInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IQuoter { - return new Contract(address, _abi, signerOrProvider) as IQuoter; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts b/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts deleted file mode 100644 index 42ae604b0..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +++ /dev/null @@ -1,263 +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 { - ISwapRouter, - ISwapRouterInterface, -} from "../../../../../@uniswap/v3-periphery/contracts/interfaces/ISwapRouter"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "path", - type: "bytes", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMinimum", - type: "uint256", - }, - ], - internalType: "struct ISwapRouter.ExactInputParams", - name: "params", - type: "tuple", - }, - ], - name: "exactInput", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "address", - name: "tokenOut", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMinimum", - type: "uint256", - }, - { - internalType: "uint160", - name: "sqrtPriceLimitX96", - type: "uint160", - }, - ], - internalType: "struct ISwapRouter.ExactInputSingleParams", - name: "params", - type: "tuple", - }, - ], - name: "exactInputSingle", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "path", - type: "bytes", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMaximum", - type: "uint256", - }, - ], - internalType: "struct ISwapRouter.ExactOutputParams", - name: "params", - type: "tuple", - }, - ], - name: "exactOutput", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "address", - name: "tokenOut", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMaximum", - type: "uint256", - }, - { - internalType: "uint160", - name: "sqrtPriceLimitX96", - type: "uint160", - }, - ], - internalType: "struct ISwapRouter.ExactOutputSingleParams", - name: "params", - type: "tuple", - }, - ], - name: "exactOutputSingle", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "int256", - name: "amount0Delta", - type: "int256", - }, - { - internalType: "int256", - name: "amount1Delta", - type: "int256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "uniswapV3SwapCallback", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ISwapRouter__factory { - static readonly abi = _abi; - static createInterface(): ISwapRouterInterface { - return new utils.Interface(_abi) as ISwapRouterInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ISwapRouter { - return new Contract(address, _abi, signerOrProvider) as ISwapRouter; - } -} diff --git a/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts b/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts deleted file mode 100644 index 0ab8d07a2..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IQuoter__factory } from "./IQuoter__factory"; -export { ISwapRouter__factory } from "./ISwapRouter__factory"; diff --git a/v1/typechain-types/factories/@uniswap/v3-periphery/index.ts b/v1/typechain-types/factories/@uniswap/v3-periphery/index.ts deleted file mode 100644 index 6397da096..000000000 --- a/v1/typechain-types/factories/@uniswap/v3-periphery/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/v1/typechain-types/factories/contracts/evm/ERC20Custody__factory.ts b/v1/typechain-types/factories/contracts/evm/ERC20Custody__factory.ts deleted file mode 100644 index d8c2695cb..000000000 --- a/v1/typechain-types/factories/contracts/evm/ERC20Custody__factory.ts +++ /dev/null @@ -1,533 +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 { - ERC20Custody, - ERC20CustodyInterface, -} from "../../../contracts/evm/ERC20Custody"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "TSSAddress_", - type: "address", - }, - { - internalType: "address", - name: "TSSAddressUpdater_", - type: "address", - }, - { - internalType: "uint256", - name: "zetaFee_", - type: "uint256", - }, - { - internalType: "uint256", - name: "zetaMaxFee_", - type: "uint256", - }, - { - internalType: "contract IERC20", - name: "zeta_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "InvalidSender", - type: "error", - }, - { - inputs: [], - name: "InvalidTSSUpdater", - type: "error", - }, - { - inputs: [], - name: "IsPaused", - type: "error", - }, - { - inputs: [], - name: "NotPaused", - type: "error", - }, - { - inputs: [], - name: "NotWhitelisted", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, - { - inputs: [], - name: "ZeroFee", - type: "error", - }, - { - inputs: [], - name: "ZetaMaxFeeExceeded", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "recipient", - type: "bytes", - }, - { - indexed: true, - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "Deposited", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "TSSAddressUpdater_", - type: "address", - }, - ], - name: "RenouncedTSSUpdater", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sender", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - ], - name: "Unwhitelisted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "TSSAddress_", - type: "address", - }, - ], - name: "UpdatedTSSAddress", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "zetaFee_", - type: "uint256", - }, - ], - name: "UpdatedZetaFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - ], - name: "Whitelisted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: true, - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "Withdrawn", - type: "event", - }, - { - inputs: [], - name: "TSSAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "TSSAddressUpdater", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "recipient", - type: "bytes", - }, - { - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "deposit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceTSSAddressUpdater", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - ], - name: "unwhitelist", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "TSSAddress_", - type: "address", - }, - ], - name: "updateTSSAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "zetaFee_", - type: "uint256", - }, - ], - name: "updateZetaFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - ], - name: "whitelist", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IERC20", - name: "", - type: "address", - }, - ], - name: "whitelisted", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "contract IERC20", - name: "asset", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "zeta", - outputs: [ - { - internalType: "contract IERC20", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaMaxFee", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60c06040523480156200001157600080fd5b50604051620021a0380380620021a0833981810160405281019062000037919062000156565b6001600081905550846001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826003819055508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508160808181525050505050505062000283565b600081519050620001228162000235565b92915050565b60008151905062000139816200024f565b92915050565b600081519050620001508162000269565b92915050565b600080600080600060a0868803121562000175576200017462000230565b5b6000620001858882890162000111565b9550506020620001988882890162000111565b9450506040620001ab888289016200013f565b9350506060620001be888289016200013f565b9250506080620001d18882890162000128565b9150509295509295909350565b6000620001eb8262000206565b9050919050565b6000620001ff82620001de565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b6200024081620001de565b81146200024c57600080fd5b50565b6200025a81620001f2565b81146200026657600080fd5b50565b620002748162000226565b81146200028057600080fd5b50565b60805160a05160601c611edf620002c160003960008181610dca01528181610e31015261102d01526000818161042d0152610c310152611edf6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80639b19251a11610097578063e5408cfa11610066578063e5408cfa1461024d578063e609055e1461026b578063e8f9cb3a14610287578063ed11692b146102a557610100565b80639b19251a146101c9578063d936547e146101e5578063d9caed1214610215578063de2f6c5e1461023157610100565b80637bdaded3116100d35780637bdaded3146101695780638456cb5914610187578063950837aa146101915780639a590427146101ad57610100565b80633f4ba83a1461010557806353ee30a31461010f57806354b61e811461012d5780635c975abb1461014b575b600080fd5b61010d6102af565b005b6101176103ce565b6040516101249190611a04565b60405180910390f35b6101356103f2565b6040516101429190611a04565b60405180910390f35b610153610418565b6040516101609190611a7f565b60405180910390f35b61017161042b565b60405161017e9190611ba0565b60405180910390f35b61018f61044f565b005b6101ab60048036038101906101a691906116b3565b6105f5565b005b6101c760048036038101906101c29190611807565b61075c565b005b6101e360048036038101906101de9190611807565b61087f565b005b6101ff60048036038101906101fa9190611807565b6109a2565b60405161020c9190611a7f565b60405180910390f35b61022f600480360381019061022a91906116e0565b6109c2565b005b61024b60048036038101906102469190611834565b610b6f565b005b610255610cca565b6040516102629190611ba0565b60405180910390f35b61028560048036038101906102809190611760565b610cd0565b005b61028f61102b565b60405161029c9190611ae3565b60405180910390f35b6102ad61104f565b005b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610334576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff1661037a576040517f6cd6020100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600160006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa336040516103c49190611a04565b60405180910390a1565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104d4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900460ff161561051b576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156105a2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018060006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336040516105eb9190611a04565b60405180910390a1565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461067b576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106e2576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fcd2958db8285a532edf298cbe1aa28ea3fb5ec82461253f9a8c1477924e29947816040516107519190611a04565b60405180910390a150565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107e1576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167f51085ddf9ebdded84b76e829eb58c4078e4b5bdf97d9a94723f336039da4679160405160405180910390a250565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610904576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff167faab7954e9d246b167ef88aeddad35209ca2489d95a8aeb59e288d9b19fae5a5460405160405180910390a250565b60046020528060005260406000206000915054906101000a900460ff1681565b6109ca6111f6565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a4f576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610ad2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610afd83828473ffffffffffffffffffffffffffffffffffffffff166112469092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb83604051610b5a9190611ba0565b60405180910390a3610b6a6112cc565b505050565b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bf4576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000811415610c2f576040517faf13986d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115610c89576040517fc1be451300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806003819055507f6d2d8e313fbaf76898bb9fa55e4b52525e49c7d7182d0874f97bd9076e81d52381604051610cbf9190611ba0565b60405180910390a150565b60035481565b610cd86111f6565b600160009054906101000a900460ff1615610d1f576040517f1309a56300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610da2576040517f584a793800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060035414158015610e025750600073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1614155b15610e7757610e763360018054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b5b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eb29190611a04565b60206040518083038186803b158015610eca57600080fd5b505afa158015610ede573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f029190611861565b9050610f313330868873ffffffffffffffffffffffffffffffffffffffff166112d6909392919063ffffffff16565b8473ffffffffffffffffffffffffffffffffffffffff167f1dafa057cc5c3bccb5ad974129a2bccd3c74002d9dfd7062404ba9523b18d6ae8888848973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fa59190611a04565b60206040518083038186803b158015610fbd57600080fd5b505afa158015610fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff59190611861565b610fff9190611bfe565b8787604051611012959493929190611a9a565b60405180910390a2506110236112cc565b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110d5576040517e611fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660018054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561115c576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f39ac266bfc011581be62c138d96e4e8782812013bb66fffb4cd207f4bfee3777336040516111ec9190611a04565b60405180910390a1565b6002600054141561123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123390611b80565b60405180910390fd5b6002600081905550565b6112c78363a9059cbb60e01b8484604051602401611265929190611a56565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b505050565b6001600081905550565b611359846323b872dd60e01b8585856040516024016112f793929190611a1f565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061135f565b50505050565b60006113c1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166114269092919063ffffffff16565b905060008151111561142157808060200190518101906113e19190611733565b611420576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141790611b60565b60405180910390fd5b5b505050565b6060611435848460008561143e565b90509392505050565b606082471015611483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147a90611b20565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516114ac91906119ed565b60006040518083038185875af1925050503d80600081146114e9576040519150601f19603f3d011682016040523d82523d6000602084013e6114ee565b606091505b50915091506114ff8783838761150b565b92505050949350505050565b6060831561156e576000835114156115665761152685611581565b611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c90611b40565b60405180910390fd5b5b829050611579565b61157883836115a4565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156115b75781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb9190611afe565b60405180910390fd5b60008135905061160381611e4d565b92915050565b60008151905061161881611e64565b92915050565b60008083601f84011261163457611633611d38565b5b8235905067ffffffffffffffff81111561165157611650611d33565b5b60208301915083600182028301111561166d5761166c611d3d565b5b9250929050565b60008135905061168381611e7b565b92915050565b60008135905061169881611e92565b92915050565b6000815190506116ad81611e92565b92915050565b6000602082840312156116c9576116c8611d47565b5b60006116d7848285016115f4565b91505092915050565b6000806000606084860312156116f9576116f8611d47565b5b6000611707868287016115f4565b935050602061171886828701611674565b925050604061172986828701611689565b9150509250925092565b60006020828403121561174957611748611d47565b5b600061175784828501611609565b91505092915050565b6000806000806000806080878903121561177d5761177c611d47565b5b600087013567ffffffffffffffff81111561179b5761179a611d42565b5b6117a789828a0161161e565b965096505060206117ba89828a01611674565b94505060406117cb89828a01611689565b935050606087013567ffffffffffffffff8111156117ec576117eb611d42565b5b6117f889828a0161161e565b92509250509295509295509295565b60006020828403121561181d5761181c611d47565b5b600061182b84828501611674565b91505092915050565b60006020828403121561184a57611849611d47565b5b600061185884828501611689565b91505092915050565b60006020828403121561187757611876611d47565b5b60006118858482850161169e565b91505092915050565b61189781611c32565b82525050565b6118a681611c44565b82525050565b60006118b88385611bd1565b93506118c5838584611cc2565b6118ce83611d4c565b840190509392505050565b60006118e482611bbb565b6118ee8185611be2565b93506118fe818560208601611cd1565b80840191505092915050565b61191381611c8c565b82525050565b600061192482611bc6565b61192e8185611bed565b935061193e818560208601611cd1565b61194781611d4c565b840191505092915050565b600061195f602683611bed565b915061196a82611d5d565b604082019050919050565b6000611982601d83611bed565b915061198d82611dac565b602082019050919050565b60006119a5602a83611bed565b91506119b082611dd5565b604082019050919050565b60006119c8601f83611bed565b91506119d382611e24565b602082019050919050565b6119e781611c82565b82525050565b60006119f982846118d9565b915081905092915050565b6000602082019050611a19600083018461188e565b92915050565b6000606082019050611a34600083018661188e565b611a41602083018561188e565b611a4e60408301846119de565b949350505050565b6000604082019050611a6b600083018561188e565b611a7860208301846119de565b9392505050565b6000602082019050611a94600083018461189d565b92915050565b60006060820190508181036000830152611ab58187896118ac565b9050611ac460208301866119de565b8181036040830152611ad78184866118ac565b90509695505050505050565b6000602082019050611af8600083018461190a565b92915050565b60006020820190508181036000830152611b188184611919565b905092915050565b60006020820190508181036000830152611b3981611952565b9050919050565b60006020820190508181036000830152611b5981611975565b9050919050565b60006020820190508181036000830152611b7981611998565b9050919050565b60006020820190508181036000830152611b99816119bb565b9050919050565b6000602082019050611bb560008301846119de565b92915050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611c0982611c82565b9150611c1483611c82565b925082821015611c2757611c26611d04565b5b828203905092915050565b6000611c3d82611c62565b9050919050565b60008115159050919050565b6000611c5b82611c32565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611c9782611c9e565b9050919050565b6000611ca982611cb0565b9050919050565b6000611cbb82611c62565b9050919050565b82818337600083830152505050565b60005b83811015611cef578082015181840152602081019050611cd4565b83811115611cfe576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b611e5681611c32565b8114611e6157600080fd5b50565b611e6d81611c44565b8114611e7857600080fd5b50565b611e8481611c50565b8114611e8f57600080fd5b50565b611e9b81611c82565b8114611ea657600080fd5b5056fea26469706673582212205768544075d85a56b1d380f8fcc0c8829b8a656c656277c25c81c31608d9e4ef64736f6c63430008070033"; - -type ERC20CustodyConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ERC20CustodyConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ERC20Custody__factory extends ContractFactory { - constructor(...args: ERC20CustodyConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - TSSAddress_: PromiseOrValue, - TSSAddressUpdater_: PromiseOrValue, - zetaFee_: PromiseOrValue, - zetaMaxFee_: PromiseOrValue, - zeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - TSSAddress_, - TSSAddressUpdater_, - zetaFee_, - zetaMaxFee_, - zeta_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - TSSAddress_: PromiseOrValue, - TSSAddressUpdater_: PromiseOrValue, - zetaFee_: PromiseOrValue, - zetaMaxFee_: PromiseOrValue, - zeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - TSSAddress_, - TSSAddressUpdater_, - zetaFee_, - zetaMaxFee_, - zeta_, - overrides || {} - ); - } - override attach(address: string): ERC20Custody { - return super.attach(address) as ERC20Custody; - } - override connect(signer: Signer): ERC20Custody__factory { - return super.connect(signer) as ERC20Custody__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ERC20CustodyInterface { - return new utils.Interface(_abi) as ERC20CustodyInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ERC20Custody { - return new Contract(address, _abi, signerOrProvider) as ERC20Custody; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/ZetaEth__factory.ts b/v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/ZetaEth__factory.ts deleted file mode 100644 index e07213a0f..000000000 --- a/v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/ZetaEth__factory.ts +++ /dev/null @@ -1,364 +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 { - ZetaEth, - ZetaEthInterface, -} from "../../../../contracts/evm/Zeta.eth.sol/ZetaEth"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "creator", - type: "address", - }, - { - internalType: "uint256", - name: "initialSupply", - type: "uint256", - }, - ], - 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 = - "0x60806040523480156200001157600080fd5b5060405162001a5238038062001a5283398181016040528101906200003791906200037d565b6040518060400160405280600481526020017f5a657461000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f5a455441000000000000000000000000000000000000000000000000000000008152508160039080519060200190620000bb9291906200029f565b508060049080519060200190620000d49291906200029f565b5050506200011682620000ec6200011e60201b60201c565b60ff16600a620000fd919062000504565b836200010a919062000641565b6200012760201b60201c565b5050620007e3565b60006012905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200019a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200019190620003fc565b60405180910390fd5b620001ae600083836200029560201b60201c565b8060026000828254620001c291906200044c565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200027591906200041e565b60405180910390a362000291600083836200029a60201b60201c565b5050565b505050565b505050565b828054620002ad90620006e0565b90600052602060002090601f016020900481019282620002d157600085556200031d565b82601f10620002ec57805160ff19168380011785556200031d565b828001600101855582156200031d579182015b828111156200031c578251825591602001919060010190620002ff565b5b5090506200032c919062000330565b5090565b5b808211156200034b57600081600090555060010162000331565b5090565b6000815190506200036081620007af565b92915050565b6000815190506200037781620007c9565b92915050565b6000806040838503121562000397576200039662000774565b5b6000620003a7858286016200034f565b9250506020620003ba8582860162000366565b9150509250929050565b6000620003d3601f836200043b565b9150620003e08262000786565b602082019050919050565b620003f681620006d6565b82525050565b600060208201905081810360008301526200041781620003c4565b9050919050565b6000602082019050620004356000830184620003eb565b92915050565b600082825260208201905092915050565b60006200045982620006d6565b91506200046683620006d6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200049e576200049d62000716565b5b828201905092915050565b6000808291508390505b6001851115620004fb57808604811115620004d357620004d262000716565b5b6001851615620004e35780820291505b8081029050620004f38562000779565b9450620004b3565b94509492505050565b60006200051182620006d6565b91506200051e83620006d6565b92506200054d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000555565b905092915050565b6000826200056757600190506200063a565b816200057757600090506200063a565b81600181146200059057600281146200059b57620005d1565b60019150506200063a565b60ff841115620005b057620005af62000716565b5b8360020a915084821115620005ca57620005c962000716565b5b506200063a565b5060208310610133831016604e8410600b84101617156200060b5782820a90508381111562000605576200060462000716565b5b6200063a565b6200061a8484846001620004a9565b9250905081840481111562000634576200063362000716565b5b81810290505b9392505050565b60006200064e82620006d6565b91506200065b83620006d6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000697576200069662000716565b5b828202905092915050565b6000620006af82620006b6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620006f957607f821691505b6020821081141562000710576200070f62000745565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b60008160011c9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620007ba81620006a2565b8114620007c657600080fd5b50565b620007d481620006d6565b8114620007e057600080fd5b50565b61125f80620007f36000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea2646970667358221220e33277034a5236435f4dc6a93d4c4dc71fb8a6be9f4a752ea3f374446caf920b64736f6c63430008070033"; - -type ZetaEthConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaEthConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaEth__factory extends ContractFactory { - constructor(...args: ZetaEthConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - creator: PromiseOrValue, - initialSupply: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - creator, - initialSupply, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - creator: PromiseOrValue, - initialSupply: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(creator, initialSupply, overrides || {}); - } - override attach(address: string): ZetaEth { - return super.attach(address) as ZetaEth; - } - override connect(signer: Signer): ZetaEth__factory { - return super.connect(signer) as ZetaEth__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaEthInterface { - return new utils.Interface(_abi) as ZetaEthInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaEth { - return new Contract(address, _abi, signerOrProvider) as ZetaEth; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/index.ts b/v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/index.ts deleted file mode 100644 index b13342231..000000000 --- a/v1/typechain-types/factories/contracts/evm/Zeta.eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaEth__factory } from "./ZetaEth__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/ZetaNonEth__factory.ts b/v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/ZetaNonEth__factory.ts deleted file mode 100644 index 1733f96c8..000000000 --- a/v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/ZetaNonEth__factory.ts +++ /dev/null @@ -1,634 +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 { - ZetaNonEth, - ZetaNonEthInterface, -} from "../../../../contracts/evm/Zeta.non-eth.sol/ZetaNonEth"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - { - internalType: "address", - name: "tssAddressUpdater_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotConnector", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTss", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssOrUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssUpdater", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ZetaTransferError", - type: "error", - }, - { - 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: "burnee", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "Burnt", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newConnectorAddress", - type: "address", - }, - ], - name: "ConnectorAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "mintee", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "Minted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "TSSAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssUpdaterAddress", - type: "address", - }, - ], - name: "TSSAddressUpdaterUpdated", - 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: "account", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "burnFrom", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "connectorAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - 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: [ - { - internalType: "address", - name: "mintee", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "mint", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceTssAddressUpdater", - outputs: [], - stateMutability: "nonpayable", - 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", - }, - { - inputs: [], - name: "tssAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tssAddressUpdater", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - { - internalType: "address", - name: "connectorAddress_", - type: "address", - }, - ], - name: "updateTssAndConnectorAddresses", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b5060405162002423380380620024238339818101604052810190620000379190620002c8565b6040518060400160405280600481526020017f5a657461000000000000000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f5a455441000000000000000000000000000000000000000000000000000000008152508160039080519060200190620000bb92919062000201565b508060049080519060200190620000d492919062000201565b505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806200013f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000177576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620003c7565b8280546200020f9062000343565b90600052602060002090601f0160209004810192826200023357600085556200027f565b82601f106200024e57805160ff19168380011785556200027f565b828001600101855582156200027f579182015b828111156200027e57825182559160200191906001019062000261565b5b5090506200028e919062000292565b5090565b5b80821115620002ad57600081600090555060010162000293565b5090565b600081519050620002c281620003ad565b92915050565b60008060408385031215620002e257620002e1620003a8565b5b6000620002f285828601620002b1565b92505060206200030585828601620002b1565b9150509250929050565b60006200031c8262000323565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200035c57607f821691505b6020821081141562000373576200037262000379565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b620003b8816200030f565b8114620003c457600080fd5b50565b61204c80620003d76000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806342966c68116100ad57806395d89b411161007157806395d89b41146102f6578063a457c2d714610314578063a9059cbb14610344578063bff9662a14610374578063dd62ed3e1461039257610121565b806342966c68146102665780635b1125911461028257806370a08231146102a0578063779e3b63146102d057806379cc6790146102da57610121565b80631e458bee116100f45780631e458bee146101ae57806323b872dd146101ca578063313ce567146101fa578063328a01d014610218578063395093511461023657610121565b806306fdde0314610126578063095ea7b31461014457806315d57fd41461017457806318160ddd14610190575b600080fd5b61012e6103c2565b60405161013b91906119c5565b60405180910390f35b61015e600480360381019061015991906116d3565b610454565b60405161016b91906119aa565b60405180910390f35b61018e60048036038101906101899190611640565b610477565b005b6101986106fb565b6040516101a59190611b27565b60405180910390f35b6101c860048036038101906101c39190611713565b610705565b005b6101e460048036038101906101df9190611680565b6107f5565b6040516101f191906119aa565b60405180910390f35b610202610824565b60405161020f9190611b42565b60405180910390f35b61022061082d565b60405161022d9190611966565b60405180910390f35b610250600480360381019061024b91906116d3565b610853565b60405161025d91906119aa565b60405180910390f35b610280600480360381019061027b9190611766565b61088a565b005b61028a61089e565b6040516102979190611966565b60405180910390f35b6102ba60048036038101906102b59190611613565b6108c4565b6040516102c79190611b27565b60405180910390f35b6102d861090c565b005b6102f460048036038101906102ef91906116d3565b610ae7565b005b6102fe610bd5565b60405161030b91906119c5565b60405180910390f35b61032e600480360381019061032991906116d3565b610c67565b60405161033b91906119aa565b60405180910390f35b61035e600480360381019061035991906116d3565b610cde565b60405161036b91906119aa565b60405180910390f35b61037c610d01565b6040516103899190611966565b60405180910390f35b6103ac60048036038101906103a79190611640565b610d27565b6040516103b99190611b27565b60405180910390f35b6060600380546103d190611c61565b80601f01602080910402602001604051908101604052809291908181526020018280546103fd90611c61565b801561044a5780601f1061041f5761010080835404028352916020019161044a565b820191906000526020600020905b81548152906001019060200180831161042d57829003601f168201915b5050505050905090565b60008061045f610dae565b905061046c818585610db6565b600191505092915050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156105235750600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561056557336040517fcdfcef9700000000000000000000000000000000000000000000000000000000815260040161055c9190611966565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806105cc5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15610603576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff33836040516106b6929190611981565b60405180910390a17f1b9352454524a57a51f24f67dc66d898f616922cd1f7a12d73570ece12b1975c33826040516106ef929190611981565b60405180910390a15050565b6000600254905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461079757336040517f3fe32fba00000000000000000000000000000000000000000000000000000000815260040161078e9190611966565b60405180910390fd5b6107a18383610f81565b808373ffffffffffffffffffffffffffffffffffffffff167fc263b302aec62d29105026245f19e16f8e0137066ccd4a8bd941f716bd4096bb846040516107e89190611b27565b60405180910390a3505050565b600080610800610dae565b905061080d8582856110d8565b610818858585611164565b60019150509392505050565b60006012905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008061085e610dae565b905061087f8185856108708589610d27565b61087a9190611b79565b610db6565b600191505092915050565b61089b610895610dae565b826113dc565b50565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461099e57336040517fe700765e0000000000000000000000000000000000000000000000000000000081526004016109959190611966565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610a27576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610add929190611981565b60405180910390a1565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b7957336040517f3fe32fba000000000000000000000000000000000000000000000000000000008152600401610b709190611966565b60405180910390fd5b610b8382826115aa565b8173ffffffffffffffffffffffffffffffffffffffff167f919f7e2092ffcc9d09f599be18d8152860b0c054df788a33bc549cdd9d0f15b182604051610bc99190611b27565b60405180910390a25050565b606060048054610be490611c61565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1090611c61565b8015610c5d5780601f10610c3257610100808354040283529160200191610c5d565b820191906000526020600020905b815481529060010190602001808311610c4057829003601f168201915b5050505050905090565b600080610c72610dae565b90506000610c808286610d27565b905083811015610cc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbc90611ae7565b60405180910390fd5b610cd28286868403610db6565b60019250505092915050565b600080610ce9610dae565b9050610cf6818585611164565b600191505092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1d90611ac7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8d90611a27565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610f749190611b27565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe890611b07565b60405180910390fd5b610ffd600083836115ca565b806002600082825461100f9190611b79565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516110c09190611b27565b60405180910390a36110d4600083836115cf565b5050565b60006110e48484610d27565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461115e5781811015611150576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114790611a47565b60405180910390fd5b61115d8484848403610db6565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cb90611aa7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123b906119e7565b60405180910390fd5b61124f8383836115ca565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156112d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cc90611a67565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113c39190611b27565b60405180910390a36113d68484846115cf565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561144c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144390611a87565b60405180910390fd5b611458826000836115ca565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156114de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d590611a07565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600260008282540392505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115919190611b27565b60405180910390a36115a5836000846115cf565b505050565b6115bc826115b6610dae565b836110d8565b6115c682826113dc565b5050565b505050565b505050565b6000813590506115e381611fd1565b92915050565b6000813590506115f881611fe8565b92915050565b60008135905061160d81611fff565b92915050565b60006020828403121561162957611628611cf1565b5b6000611637848285016115d4565b91505092915050565b6000806040838503121561165757611656611cf1565b5b6000611665858286016115d4565b9250506020611676858286016115d4565b9150509250929050565b60008060006060848603121561169957611698611cf1565b5b60006116a7868287016115d4565b93505060206116b8868287016115d4565b92505060406116c9868287016115fe565b9150509250925092565b600080604083850312156116ea576116e9611cf1565b5b60006116f8858286016115d4565b9250506020611709858286016115fe565b9150509250929050565b60008060006060848603121561172c5761172b611cf1565b5b600061173a868287016115d4565b935050602061174b868287016115fe565b925050604061175c868287016115e9565b9150509250925092565b60006020828403121561177c5761177b611cf1565b5b600061178a848285016115fe565b91505092915050565b61179c81611bcf565b82525050565b6117ab81611be1565b82525050565b60006117bc82611b5d565b6117c68185611b68565b93506117d6818560208601611c2e565b6117df81611cf6565b840191505092915050565b60006117f7602383611b68565b915061180282611d07565b604082019050919050565b600061181a602283611b68565b915061182582611d56565b604082019050919050565b600061183d602283611b68565b915061184882611da5565b604082019050919050565b6000611860601d83611b68565b915061186b82611df4565b602082019050919050565b6000611883602683611b68565b915061188e82611e1d565b604082019050919050565b60006118a6602183611b68565b91506118b182611e6c565b604082019050919050565b60006118c9602583611b68565b91506118d482611ebb565b604082019050919050565b60006118ec602483611b68565b91506118f782611f0a565b604082019050919050565b600061190f602583611b68565b915061191a82611f59565b604082019050919050565b6000611932601f83611b68565b915061193d82611fa8565b602082019050919050565b61195181611c17565b82525050565b61196081611c21565b82525050565b600060208201905061197b6000830184611793565b92915050565b60006040820190506119966000830185611793565b6119a36020830184611793565b9392505050565b60006020820190506119bf60008301846117a2565b92915050565b600060208201905081810360008301526119df81846117b1565b905092915050565b60006020820190508181036000830152611a00816117ea565b9050919050565b60006020820190508181036000830152611a208161180d565b9050919050565b60006020820190508181036000830152611a4081611830565b9050919050565b60006020820190508181036000830152611a6081611853565b9050919050565b60006020820190508181036000830152611a8081611876565b9050919050565b60006020820190508181036000830152611aa081611899565b9050919050565b60006020820190508181036000830152611ac0816118bc565b9050919050565b60006020820190508181036000830152611ae0816118df565b9050919050565b60006020820190508181036000830152611b0081611902565b9050919050565b60006020820190508181036000830152611b2081611925565b9050919050565b6000602082019050611b3c6000830184611948565b92915050565b6000602082019050611b576000830184611957565b92915050565b600081519050919050565b600082825260208201905092915050565b6000611b8482611c17565b9150611b8f83611c17565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611bc457611bc3611c93565b5b828201905092915050565b6000611bda82611bf7565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611c4c578082015181840152602081019050611c31565b83811115611c5b576000848401525b50505050565b60006002820490506001821680611c7957607f821691505b60208210811415611c8d57611c8c611cc2565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008201527f6365000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b611fda81611bcf565b8114611fe557600080fd5b50565b611ff181611bed565b8114611ffc57600080fd5b50565b61200881611c17565b811461201357600080fd5b5056fea26469706673582212206bc837ff0828037cc8d7dacf17706538b4deb5a80c03f8e056ef18bae1a6288064736f6c63430008070033"; - -type ZetaNonEthConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaNonEthConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaNonEth__factory extends ContractFactory { - constructor(...args: ZetaNonEthConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - tssAddress_, - tssAddressUpdater_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - tssAddress_, - tssAddressUpdater_, - overrides || {} - ); - } - override attach(address: string): ZetaNonEth { - return super.attach(address) as ZetaNonEth; - } - override connect(signer: Signer): ZetaNonEth__factory { - return super.connect(signer) as ZetaNonEth__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaNonEthInterface { - return new utils.Interface(_abi) as ZetaNonEthInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaNonEth { - return new Contract(address, _abi, signerOrProvider) as ZetaNonEth; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/index.ts b/v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/index.ts deleted file mode 100644 index 3f68b234f..000000000 --- a/v1/typechain-types/factories/contracts/evm/Zeta.non-eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaNonEth__factory } from "./ZetaNonEth__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts b/v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts deleted file mode 100644 index 0c1e19abf..000000000 --- a/v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts +++ /dev/null @@ -1,642 +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 { - ZetaConnectorBase, - ZetaConnectorBaseInterface, -} from "../../../../contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaToken_", - type: "address", - }, - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - { - internalType: "address", - name: "tssAddressUpdater_", - type: "address", - }, - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotPauser", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTss", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssOrUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "maxSupply", - type: "uint256", - }, - ], - name: "ExceedsMaxSupply", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ZetaTransferError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "PauserAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "TSSAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssUpdaterAddress", - type: "address", - }, - ], - name: "TSSAddressUpdaterUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReceived", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReverted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sourceTxOriginAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: false, - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - name: "ZetaSent", - type: "event", - }, - { - inputs: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onReceive", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pauserAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceTssAddressUpdater", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.SendInput", - name: "input", - type: "tuple", - }, - ], - name: "send", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "tssAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tssAddressUpdater", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - name: "updatePauserAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - ], - name: "updateTssAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60a06040523480156200001157600080fd5b506040516200131e3803806200131e83398181016040528101906200003791906200027c565b60008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000b95750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000f15750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80620001295750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000161576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505062000341565b600081519050620002768162000327565b92915050565b6000806000806080858703121562000299576200029862000322565b5b6000620002a98782880162000265565b9450506020620002bc8782880162000265565b9350506040620002cf8782880162000265565b9250506060620002e28782880162000265565b91505092959194509250565b6000620002fb8262000302565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200033281620002ee565b81146200033e57600080fd5b50565b60805160601c610fbe6200036060003960006102160152610fbe6000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80636128480f1161008c5780639122c344116100665780639122c344146101a2578063942a5e16146101be578063ec026901146101da578063f7fb869b146101f6576100cf565b80636128480f14610172578063779e3b631461018e5780638456cb5914610198576100cf565b806321e093b1146100d457806329dd214d146100f2578063328a01d01461010e5780633f4ba83a1461012c5780635b112591146101365780635c975abb14610154575b600080fd5b6100dc610214565b6040516100e99190610dd1565b60405180910390f35b61010c60048036038101906101079190610c55565b610238565b005b610116610242565b6040516101239190610dd1565b60405180910390f35b610134610268565b005b61013e610304565b60405161014b9190610dd1565b60405180910390f35b61015c61032a565b6040516101699190610e15565b60405180910390f35b61018c60048036038101906101879190610b46565b610340565b005b6101966104b6565b005b6101a0610691565b005b6101bc60048036038101906101b79190610b46565b61072d565b005b6101d860048036038101906101d39190610b73565b6108ff565b005b6101f460048036038101906101ef9190610d24565b61090a565b005b6101fe61090d565b60405161020b9190610dd1565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b5050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102fa57336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016102f19190610dd1565b60405180910390fd5b610302610933565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103d257336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016103c99190610dd1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610439576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d039733826040516104ab929190610dec565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461054857336040517fe700765e00000000000000000000000000000000000000000000000000000000815260040161053f9190610dd1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156105d1576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610687929190610dec565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461072357336040517f4677a0d300000000000000000000000000000000000000000000000000000000815260040161071a9190610dd1565b60405180910390fd5b61072b610995565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156107d95750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561081b57336040517fcdfcef970000000000000000000000000000000000000000000000000000000081526004016108129190610dd1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610882576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff33826040516108f4929190610dec565b60405180910390a150565b505050505050505050565b50565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61093b6109f7565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61097e610a40565b60405161098b9190610dd1565b60405180910390a1565b61099d610a48565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109e0610a40565b6040516109ed9190610dd1565b60405180910390a1565b6109ff61032a565b610a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3590610e30565b60405180910390fd5b565b600033905090565b610a5061032a565b15610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8790610e50565b60405180910390fd5b565b600081359050610aa181610f43565b92915050565b600081359050610ab681610f5a565b92915050565b60008083601f840112610ad257610ad1610ed8565b5b8235905067ffffffffffffffff811115610aef57610aee610ed3565b5b602083019150836001820283011115610b0b57610b0a610ee2565b5b9250929050565b600060c08284031215610b2857610b27610edd565b5b81905092915050565b600081359050610b4081610f71565b92915050565b600060208284031215610b5c57610b5b610eec565b5b6000610b6a84828501610a92565b91505092915050565b600080600080600080600080600060e08a8c031215610b9557610b94610eec565b5b6000610ba38c828d01610a92565b9950506020610bb48c828d01610b31565b98505060408a013567ffffffffffffffff811115610bd557610bd4610ee7565b5b610be18c828d01610abc565b97509750506060610bf48c828d01610b31565b9550506080610c058c828d01610b31565b94505060a08a013567ffffffffffffffff811115610c2657610c25610ee7565b5b610c328c828d01610abc565b935093505060c0610c458c828d01610aa7565b9150509295985092959850929598565b60008060008060008060008060c0898b031215610c7557610c74610eec565b5b600089013567ffffffffffffffff811115610c9357610c92610ee7565b5b610c9f8b828c01610abc565b98509850506020610cb28b828c01610b31565b9650506040610cc38b828c01610a92565b9550506060610cd48b828c01610b31565b945050608089013567ffffffffffffffff811115610cf557610cf4610ee7565b5b610d018b828c01610abc565b935093505060a0610d148b828c01610aa7565b9150509295985092959890939650565b600060208284031215610d3a57610d39610eec565b5b600082013567ffffffffffffffff811115610d5857610d57610ee7565b5b610d6484828501610b12565b91505092915050565b610d7681610e81565b82525050565b610d8581610e93565b82525050565b6000610d98601483610e70565b9150610da382610ef1565b602082019050919050565b6000610dbb601083610e70565b9150610dc682610f1a565b602082019050919050565b6000602082019050610de66000830184610d6d565b92915050565b6000604082019050610e016000830185610d6d565b610e0e6020830184610d6d565b9392505050565b6000602082019050610e2a6000830184610d7c565b92915050565b60006020820190508181036000830152610e4981610d8b565b9050919050565b60006020820190508181036000830152610e6981610dae565b9050919050565b600082825260208201905092915050565b6000610e8c82610ea9565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b610f4c81610e81565b8114610f5757600080fd5b50565b610f6381610e9f565b8114610f6e57600080fd5b50565b610f7a81610ec9565b8114610f8557600080fd5b5056fea2646970667358221220581b268b8dbd8d9f5c8f5e7e4d7ee7235e116fc6882d1ce0eb037e226f63b48064736f6c63430008070033"; - -type ZetaConnectorBaseConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaConnectorBaseConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaConnectorBase__factory extends ContractFactory { - constructor(...args: ZetaConnectorBaseConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaToken_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaToken_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaToken_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaToken_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ); - } - override attach(address: string): ZetaConnectorBase { - return super.attach(address) as ZetaConnectorBase; - } - override connect(signer: Signer): ZetaConnectorBase__factory { - return super.connect(signer) as ZetaConnectorBase__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaConnectorBaseInterface { - return new utils.Interface(_abi) as ZetaConnectorBaseInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaConnectorBase { - return new Contract(address, _abi, signerOrProvider) as ZetaConnectorBase; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/index.ts b/v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/index.ts deleted file mode 100644 index 8144ec28d..000000000 --- a/v1/typechain-types/factories/contracts/evm/ZetaConnector.base.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaConnectorBase__factory } from "./ZetaConnectorBase__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts b/v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts deleted file mode 100644 index e22924210..000000000 --- a/v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts +++ /dev/null @@ -1,655 +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 { - ZetaConnectorEth, - ZetaConnectorEthInterface, -} from "../../../../contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaToken_", - type: "address", - }, - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - { - internalType: "address", - name: "tssAddressUpdater_", - type: "address", - }, - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotPauser", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTss", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssOrUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "maxSupply", - type: "uint256", - }, - ], - name: "ExceedsMaxSupply", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ZetaTransferError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "PauserAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "TSSAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssUpdaterAddress", - type: "address", - }, - ], - name: "TSSAddressUpdaterUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReceived", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReverted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sourceTxOriginAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: false, - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - name: "ZetaSent", - type: "event", - }, - { - inputs: [], - name: "getLockedAmount", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onReceive", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pauserAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceTssAddressUpdater", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.SendInput", - name: "input", - type: "tuple", - }, - ], - name: "send", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "tssAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tssAddressUpdater", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - name: "updatePauserAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - ], - name: "updateTssAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60a06040523480156200001157600080fd5b50604051620020e6380380620020e6833981810160405281019062000037919062000284565b8383838360008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000bd5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000f55750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806200012d5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000165576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505062000349565b6000815190506200027e816200032f565b92915050565b60008060008060808587031215620002a157620002a06200032a565b5b6000620002b1878288016200026d565b9450506020620002c4878288016200026d565b9350506040620002d7878288016200026d565b9250506060620002ea878288016200026d565b91505092959194509250565b600062000303826200030a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200033a81620002f6565b81146200034657600080fd5b50565b60805160601c611d62620003846000396000818161024f01528181610275015281816103b701528181610d9501526110180152611d626000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80636128480f1161008c5780639122c344116100665780639122c344146101db578063942a5e16146101f7578063ec02690114610213578063f7fb869b1461022f576100ea565b80636128480f146101ab578063779e3b63146101c75780638456cb59146101d1576100ea565b8063328a01d0116100c8578063328a01d0146101475780633f4ba83a146101655780635b1125911461016f5780635c975abb1461018d576100ea565b806321e093b1146100ef578063252bc8861461010d57806329dd214d1461012b575b600080fd5b6100f761024d565b6040516101049190611883565b60405180910390f35b610115610271565b6040516101229190611af0565b60405180910390f35b6101456004803603810190610140919061153a565b610321565b005b61014f61063a565b60405161015c9190611883565b60405180910390f35b61016d610660565b005b6101776106fc565b6040516101849190611883565b60405180910390f35b610195610722565b6040516101a29190611a08565b60405180910390f35b6101c560048036038101906101c091906113fe565b610738565b005b6101cf6108ae565b005b6101d9610a89565b005b6101f560048036038101906101f091906113fe565b610b25565b005b610211600480360381019061020c919061142b565b610cf7565b005b61022d60048036038101906102289190611609565b61100c565b005b61023761119b565b6040516102449190611883565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102cc9190611883565b60206040518083038186803b1580156102e457600080fd5b505afa1580156102f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031c9190611652565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103b357336040517fff70ace20000000000000000000000000000000000000000000000000000000081526004016103aa9190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87876040518363ffffffff1660e01b815260040161041092919061197a565b602060405180830381600087803b15801561042a57600080fd5b505af115801561043e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610462919061150d565b90508061049b576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008484905011156105d7578573ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018a81526020018973ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016105a49190611aac565b600060405180830381600087803b1580156105be57600080fd5b505af11580156105d2573d6000803e3d6000fd5b505050505b818673ffffffffffffffffffffffffffffffffffffffff16887ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988c8c8a8a8a604051610627959493929190611a23565b60405180910390a4505050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106f257336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016106e99190611883565b60405180910390fd5b6106fa6111c1565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107ca57336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016107c19190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610831576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d039733826040516108a392919061189e565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461094057336040517fe700765e0000000000000000000000000000000000000000000000000000000081526004016109379190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156109c9576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610a7f92919061189e565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b1b57336040517f4677a0d3000000000000000000000000000000000000000000000000000000008152600401610b129190611883565b60405180910390fd5b610b23611223565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610bd15750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610c1357336040517fcdfcef97000000000000000000000000000000000000000000000000000000008152600401610c0a9190611883565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c7a576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff3382604051610cec92919061189e565b60405180910390a150565b610cff611285565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610d9157336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610d889190611883565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8b876040518363ffffffff1660e01b8152600401610dee92919061197a565b602060405180830381600087803b158015610e0857600080fd5b505af1158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e40919061150d565b905080610e79576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000848490501115610fbb578973ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808d73ffffffffffffffffffffffffffffffffffffffff1681526020018c81526020018b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200189815260200188815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b8152600401610f889190611ace565b600060405180830381600087803b158015610fa257600080fd5b505af1158015610fb6573d6000803e3d6000fd5b505050505b81867f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888c8c8c8c8b8b8b604051610ff897969594939291906119a3565b60405180910390a350505050505050505050565b611014611285565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd333085608001356040518463ffffffff1660e01b8152600401611077939291906118c7565b602060405180830381600087803b15801561109157600080fd5b505af11580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c9919061150d565b905080611102576040517f20878f6200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4328580602001906111509190611b0b565b8760800135886040013589806060019061116a9190611b0b565b8b8060a0019061117a9190611b0b565b60405161118f999897969594939291906118fe565b60405180910390a35050565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6111c96112cf565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61120c611318565b6040516112199190611883565b60405180910390a1565b61122b611285565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861126e611318565b60405161127b9190611883565b60405180910390a1565b61128d610722565b156112cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c490611a8c565b60405180910390fd5b565b6112d7610722565b611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d90611a6c565b60405180910390fd5b565b600033905090565b60008135905061132f81611cd0565b92915050565b60008151905061134481611ce7565b92915050565b60008135905061135981611cfe565b92915050565b60008083601f84011261137557611374611c45565b5b8235905067ffffffffffffffff81111561139257611391611c40565b5b6020830191508360018202830111156113ae576113ad611c59565b5b9250929050565b600060c082840312156113cb576113ca611c4f565b5b81905092915050565b6000813590506113e381611d15565b92915050565b6000815190506113f881611d15565b92915050565b60006020828403121561141457611413611c68565b5b600061142284828501611320565b91505092915050565b600080600080600080600080600060e08a8c03121561144d5761144c611c68565b5b600061145b8c828d01611320565b995050602061146c8c828d016113d4565b98505060408a013567ffffffffffffffff81111561148d5761148c611c63565b5b6114998c828d0161135f565b975097505060606114ac8c828d016113d4565b95505060806114bd8c828d016113d4565b94505060a08a013567ffffffffffffffff8111156114de576114dd611c63565b5b6114ea8c828d0161135f565b935093505060c06114fd8c828d0161134a565b9150509295985092959850929598565b60006020828403121561152357611522611c68565b5b600061153184828501611335565b91505092915050565b60008060008060008060008060c0898b03121561155a57611559611c68565b5b600089013567ffffffffffffffff81111561157857611577611c63565b5b6115848b828c0161135f565b985098505060206115978b828c016113d4565b96505060406115a88b828c01611320565b95505060606115b98b828c016113d4565b945050608089013567ffffffffffffffff8111156115da576115d9611c63565b5b6115e68b828c0161135f565b935093505060a06115f98b828c0161134a565b9150509295985092959890939650565b60006020828403121561161f5761161e611c68565b5b600082013567ffffffffffffffff81111561163d5761163c611c63565b5b611649848285016113b5565b91505092915050565b60006020828403121561166857611667611c68565b5b6000611676848285016113e9565b91505092915050565b61168881611bac565b82525050565b61169781611bac565b82525050565b6116a681611bbe565b82525050565b60006116b88385611b8a565b93506116c5838584611bfe565b6116ce83611c6d565b840190509392505050565b60006116e482611b6e565b6116ee8185611b79565b93506116fe818560208601611c0d565b61170781611c6d565b840191505092915050565b600061171f601483611b9b565b915061172a82611c7e565b602082019050919050565b6000611742601083611b9b565b915061174d82611ca7565b602082019050919050565b600060a083016000830151848203600086015261177582826116d9565b915050602083015161178a6020860182611865565b50604083015161179d604086018261167f565b5060608301516117b06060860182611865565b50608083015184820360808601526117c882826116d9565b9150508091505092915050565b600060c0830160008301516117ed600086018261167f565b5060208301516118006020860182611865565b506040830151848203604086015261181882826116d9565b915050606083015161182d6060860182611865565b5060808301516118406080860182611865565b5060a083015184820360a086015261185882826116d9565b9150508091505092915050565b61186e81611bf4565b82525050565b61187d81611bf4565b82525050565b6000602082019050611898600083018461168e565b92915050565b60006040820190506118b3600083018561168e565b6118c0602083018461168e565b9392505050565b60006060820190506118dc600083018661168e565b6118e9602083018561168e565b6118f66040830184611874565b949350505050565b600060c082019050611913600083018c61168e565b8181036020830152611926818a8c6116ac565b90506119356040830189611874565b6119426060830188611874565b81810360808301526119558186886116ac565b905081810360a083015261196a8184866116ac565b90509a9950505050505050505050565b600060408201905061198f600083018561168e565b61199c6020830184611874565b9392505050565b600060a0820190506119b8600083018a61168e565b6119c56020830189611874565b81810360408301526119d88187896116ac565b90506119e76060830186611874565b81810360808301526119fa8184866116ac565b905098975050505050505050565b6000602082019050611a1d600083018461169d565b92915050565b60006060820190508181036000830152611a3e8187896116ac565b9050611a4d6020830186611874565b8181036040830152611a608184866116ac565b90509695505050505050565b60006020820190508181036000830152611a8581611712565b9050919050565b60006020820190508181036000830152611aa581611735565b9050919050565b60006020820190508181036000830152611ac68184611758565b905092915050565b60006020820190508181036000830152611ae881846117d5565b905092915050565b6000602082019050611b056000830184611874565b92915050565b60008083356001602003843603038112611b2857611b27611c54565b5b80840192508235915067ffffffffffffffff821115611b4a57611b49611c4a565b5b602083019250600182023603831315611b6657611b65611c5e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611bb782611bd4565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611c2b578082015181840152602081019050611c10565b83811115611c3a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b611cd981611bac565b8114611ce457600080fd5b50565b611cf081611bbe565b8114611cfb57600080fd5b50565b611d0781611bca565b8114611d1257600080fd5b50565b611d1e81611bf4565b8114611d2957600080fd5b5056fea2646970667358221220aea116262018bae5c67a2e8d7df041d67768b80865d96b72392c003b54c708f264736f6c63430008070033"; - -type ZetaConnectorEthConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaConnectorEthConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaConnectorEth__factory extends ContractFactory { - constructor(...args: ZetaConnectorEthConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaToken_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaToken_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaToken_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaToken_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ); - } - override attach(address: string): ZetaConnectorEth { - return super.attach(address) as ZetaConnectorEth; - } - override connect(signer: Signer): ZetaConnectorEth__factory { - return super.connect(signer) as ZetaConnectorEth__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaConnectorEthInterface { - return new utils.Interface(_abi) as ZetaConnectorEthInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaConnectorEth { - return new Contract(address, _abi, signerOrProvider) as ZetaConnectorEth; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/index.ts b/v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/index.ts deleted file mode 100644 index 324f47bd0..000000000 --- a/v1/typechain-types/factories/contracts/evm/ZetaConnector.eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaConnectorEth__factory } from "./ZetaConnectorEth__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts b/v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts deleted file mode 100644 index 1f1bee87f..000000000 --- a/v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts +++ /dev/null @@ -1,700 +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 { - ZetaConnectorNonEth, - ZetaConnectorNonEthInterface, -} from "../../../../contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaTokenAddress_", - type: "address", - }, - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - { - internalType: "address", - name: "tssAddressUpdater_", - type: "address", - }, - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotPauser", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTss", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssOrUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "maxSupply", - type: "uint256", - }, - ], - name: "ExceedsMaxSupply", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ZetaTransferError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "newMaxSupply", - type: "uint256", - }, - ], - name: "MaxSupplyUpdated", - 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: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "PauserAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "TSSAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssUpdaterAddress", - type: "address", - }, - ], - name: "TSSAddressUpdaterUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReceived", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReverted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sourceTxOriginAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: false, - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - name: "ZetaSent", - type: "event", - }, - { - inputs: [], - name: "getLockedAmount", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "maxSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onReceive", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pauserAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceTssAddressUpdater", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.SendInput", - name: "input", - type: "tuple", - }, - ], - name: "send", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "maxSupply_", - type: "uint256", - }, - ], - name: "setMaxSupply", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "tssAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tssAddressUpdater", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - name: "updatePauserAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - ], - name: "updateTssAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60a06040527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6003553480156200003557600080fd5b506040516200237b3803806200237b83398181016040528101906200005b9190620002a8565b8383838360008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000e15750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620001195750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80620001515750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000189576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050506200036d565b600081519050620002a28162000353565b92915050565b60008060008060808587031215620002c557620002c46200034e565b5b6000620002d58782880162000291565b9450506020620002e88782880162000291565b9350506040620002fb8782880162000291565b92505060606200030e8782880162000291565b91505092959194509250565b600062000327826200032e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200035e816200031a565b81146200036a57600080fd5b50565b60805160601c611fc5620003b66000396000818161029f015281816102c501528181610408015281816104f601528181610f5201528181611040015261126f0152611fc56000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80636f8b44b011610097578063942a5e1611610066578063942a5e1614610229578063d5abeb0114610245578063ec02690114610263578063f7fb869b1461027f57610100565b80636f8b44b0146101dd578063779e3b63146101f95780638456cb59146102035780639122c3441461020d57610100565b80633f4ba83a116100d35780633f4ba83a1461017b5780635b112591146101855780635c975abb146101a35780636128480f146101c157610100565b806321e093b114610105578063252bc8861461012357806329dd214d14610141578063328a01d01461015d575b600080fd5b61010d61029d565b60405161011a9190611a78565b60405180910390f35b61012b6102c1565b6040516101389190611ce5565b60405180910390f35b61015b600480360381019061015691906116f3565b610371565b005b610165610721565b6040516101729190611a78565b60405180910390f35b610183610747565b005b61018d6107e3565b60405161019a9190611a78565b60405180910390f35b6101ab610809565b6040516101b89190611bfd565b60405180910390f35b6101db60048036038101906101d691906115e4565b61081f565b005b6101f760048036038101906101f2919061180b565b610995565b005b610201610a6a565b005b61020b610c45565b005b610227600480360381019061022291906115e4565b610ce1565b005b610243600480360381019061023e9190611611565b610eb3565b005b61024d61125f565b60405161025a9190611ce5565b60405180910390f35b61027d600480360381019061027891906117c2565b611265565b005b610287611396565b6040516102949190611a78565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161031c9190611a78565b60206040518083038186803b15801561033457600080fd5b505afa158015610348573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036c9190611838565b905090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461040357336040517fff70ace20000000000000000000000000000000000000000000000000000000081526004016103fa9190611a78565b60405180910390fd5b6003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046c57600080fd5b505afa158015610480573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a49190611838565b856104af9190611da1565b11156104f4576003546040517f3d3dbc830000000000000000000000000000000000000000000000000000000081526004016104eb9190611ce5565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e458bee8686846040518463ffffffff1660e01b815260040161055193929190611b61565b600060405180830381600087803b15801561056b57600080fd5b505af115801561057f573d6000803e3d6000fd5b5050505060008383905011156106bf578473ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018981526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b815260040161068c9190611ca1565b600060405180830381600087803b1580156106a657600080fd5b505af11580156106ba573d6000803e3d6000fd5b505050505b808573ffffffffffffffffffffffffffffffffffffffff16877ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988b8b89898960405161070f959493929190611c18565b60405180910390a45050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d957336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016107d09190611a78565b60405180910390fd5b6107e16113bc565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108b157336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016108a89190611a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610918576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d0397338260405161098a929190611a93565b60405180910390a150565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2757336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610a1e9190611a78565b60405180910390fd5b806003819055507f26843c619c87f9021bcc4ec5143177198076d9da3c13ce1bb2e941644c69d42e3382604051610a5f929190611b38565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610afc57336040517fe700765e000000000000000000000000000000000000000000000000000000008152600401610af39190611a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610b85576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610c3b929190611a93565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610cd757336040517f4677a0d3000000000000000000000000000000000000000000000000000000008152600401610cce9190611a78565b60405180910390fd5b610cdf61141e565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610d8d5750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610dcf57336040517fcdfcef97000000000000000000000000000000000000000000000000000000008152600401610dc69190611a78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e36576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff3382604051610ea8929190611a93565b60405180910390a150565b610ebb611480565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f4d57336040517fff70ace2000000000000000000000000000000000000000000000000000000008152600401610f449190611a78565b60405180910390fd5b6003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fb657600080fd5b505afa158015610fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fee9190611838565b85610ff99190611da1565b111561103e576003546040517f3d3dbc830000000000000000000000000000000000000000000000000000000081526004016110359190611ce5565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e458bee8a86846040518463ffffffff1660e01b815260040161109b93929190611b61565b600060405180830381600087803b1580156110b557600080fd5b505af11580156110c9573d6000803e3d6000fd5b50505050600083839050111561120f578873ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b81526020018a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200188815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016111dc9190611cc3565b600060405180830381600087803b1580156111f657600080fd5b505af115801561120a573d6000803e3d6000fd5b505050505b80857f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888b8b8b8b8a8a8a60405161124c9796959493929190611b98565b60405180910390a3505050505050505050565b60035481565b61126d611480565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166379cc67903383608001356040518363ffffffff1660e01b81526004016112cc929190611b38565b600060405180830381600087803b1580156112e657600080fd5b505af11580156112fa573d6000803e3d6000fd5b5050505080600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e43284806020019061134c9190611d00565b866080013587604001358880606001906113669190611d00565b8a8060a001906113769190611d00565b60405161138b99989796959493929190611abc565b60405180910390a350565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6113c46114ca565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611407611513565b6040516114149190611a78565b60405180910390a1565b611426611480565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611469611513565b6040516114769190611a78565b60405180910390a1565b611488610809565b156114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf90611c81565b60405180910390fd5b565b6114d2610809565b611511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150890611c61565b60405180910390fd5b565b600033905090565b60008135905061152a81611f4a565b92915050565b60008135905061153f81611f61565b92915050565b60008083601f84011261155b5761155a611ebf565b5b8235905067ffffffffffffffff81111561157857611577611eba565b5b60208301915083600182028301111561159457611593611ed3565b5b9250929050565b600060c082840312156115b1576115b0611ec9565b5b81905092915050565b6000813590506115c981611f78565b92915050565b6000815190506115de81611f78565b92915050565b6000602082840312156115fa576115f9611ee2565b5b60006116088482850161151b565b91505092915050565b600080600080600080600080600060e08a8c03121561163357611632611ee2565b5b60006116418c828d0161151b565b99505060206116528c828d016115ba565b98505060408a013567ffffffffffffffff81111561167357611672611edd565b5b61167f8c828d01611545565b975097505060606116928c828d016115ba565b95505060806116a38c828d016115ba565b94505060a08a013567ffffffffffffffff8111156116c4576116c3611edd565b5b6116d08c828d01611545565b935093505060c06116e38c828d01611530565b9150509295985092959850929598565b60008060008060008060008060c0898b03121561171357611712611ee2565b5b600089013567ffffffffffffffff81111561173157611730611edd565b5b61173d8b828c01611545565b985098505060206117508b828c016115ba565b96505060406117618b828c0161151b565b95505060606117728b828c016115ba565b945050608089013567ffffffffffffffff81111561179357611792611edd565b5b61179f8b828c01611545565b935093505060a06117b28b828c01611530565b9150509295985092959890939650565b6000602082840312156117d8576117d7611ee2565b5b600082013567ffffffffffffffff8111156117f6576117f5611edd565b5b6118028482850161159b565b91505092915050565b60006020828403121561182157611820611ee2565b5b600061182f848285016115ba565b91505092915050565b60006020828403121561184e5761184d611ee2565b5b600061185c848285016115cf565b91505092915050565b61186e81611df7565b82525050565b61187d81611df7565b82525050565b61188c81611e09565b82525050565b61189b81611e15565b82525050565b60006118ad8385611d7f565b93506118ba838584611e49565b6118c383611ee7565b840190509392505050565b60006118d982611d63565b6118e38185611d6e565b93506118f3818560208601611e58565b6118fc81611ee7565b840191505092915050565b6000611914601483611d90565b915061191f82611ef8565b602082019050919050565b6000611937601083611d90565b915061194282611f21565b602082019050919050565b600060a083016000830151848203600086015261196a82826118ce565b915050602083015161197f6020860182611a5a565b5060408301516119926040860182611865565b5060608301516119a56060860182611a5a565b50608083015184820360808601526119bd82826118ce565b9150508091505092915050565b600060c0830160008301516119e26000860182611865565b5060208301516119f56020860182611a5a565b5060408301518482036040860152611a0d82826118ce565b9150506060830151611a226060860182611a5a565b506080830151611a356080860182611a5a565b5060a083015184820360a0860152611a4d82826118ce565b9150508091505092915050565b611a6381611e3f565b82525050565b611a7281611e3f565b82525050565b6000602082019050611a8d6000830184611874565b92915050565b6000604082019050611aa86000830185611874565b611ab56020830184611874565b9392505050565b600060c082019050611ad1600083018c611874565b8181036020830152611ae4818a8c6118a1565b9050611af36040830189611a69565b611b006060830188611a69565b8181036080830152611b138186886118a1565b905081810360a0830152611b288184866118a1565b90509a9950505050505050505050565b6000604082019050611b4d6000830185611874565b611b5a6020830184611a69565b9392505050565b6000606082019050611b766000830186611874565b611b836020830185611a69565b611b906040830184611892565b949350505050565b600060a082019050611bad600083018a611874565b611bba6020830189611a69565b8181036040830152611bcd8187896118a1565b9050611bdc6060830186611a69565b8181036080830152611bef8184866118a1565b905098975050505050505050565b6000602082019050611c126000830184611883565b92915050565b60006060820190508181036000830152611c338187896118a1565b9050611c426020830186611a69565b8181036040830152611c558184866118a1565b90509695505050505050565b60006020820190508181036000830152611c7a81611907565b9050919050565b60006020820190508181036000830152611c9a8161192a565b9050919050565b60006020820190508181036000830152611cbb818461194d565b905092915050565b60006020820190508181036000830152611cdd81846119ca565b905092915050565b6000602082019050611cfa6000830184611a69565b92915050565b60008083356001602003843603038112611d1d57611d1c611ece565b5b80840192508235915067ffffffffffffffff821115611d3f57611d3e611ec4565b5b602083019250600182023603831315611d5b57611d5a611ed8565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611dac82611e3f565b9150611db783611e3f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611dec57611deb611e8b565b5b828201905092915050565b6000611e0282611e1f565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611e76578082015181840152602081019050611e5b565b83811115611e85576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b611f5381611df7565b8114611f5e57600080fd5b50565b611f6a81611e15565b8114611f7557600080fd5b50565b611f8181611e3f565b8114611f8c57600080fd5b5056fea2646970667358221220c031f80b5c9d397027c78f70c718cbb340af3281424b52faca5743d7e7b4560464736f6c63430008070033"; - -type ZetaConnectorNonEthConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaConnectorNonEthConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaConnectorNonEth__factory extends ContractFactory { - constructor(...args: ZetaConnectorNonEthConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaTokenAddress_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaTokenAddress_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaTokenAddress_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaTokenAddress_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ); - } - override attach(address: string): ZetaConnectorNonEth { - return super.attach(address) as ZetaConnectorNonEth; - } - override connect(signer: Signer): ZetaConnectorNonEth__factory { - return super.connect(signer) as ZetaConnectorNonEth__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaConnectorNonEthInterface { - return new utils.Interface(_abi) as ZetaConnectorNonEthInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaConnectorNonEth { - return new Contract(address, _abi, signerOrProvider) as ZetaConnectorNonEth; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/index.ts b/v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/index.ts deleted file mode 100644 index ab63c271c..000000000 --- a/v1/typechain-types/factories/contracts/evm/ZetaConnector.non-eth.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaConnectorNonEth__factory } from "./ZetaConnectorNonEth__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/index.ts b/v1/typechain-types/factories/contracts/evm/index.ts deleted file mode 100644 index 9d9c9d5ed..000000000 --- a/v1/typechain-types/factories/contracts/evm/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as zetaEthSol from "./Zeta.eth.sol"; -export * as zetaNonEthSol from "./Zeta.non-eth.sol"; -export * as zetaConnectorBaseSol from "./ZetaConnector.base.sol"; -export * as zetaConnectorEthSol from "./ZetaConnector.eth.sol"; -export * as zetaConnectorNonEthSol from "./ZetaConnector.non-eth.sol"; -export * as interfaces from "./interfaces"; -export * as testing from "./testing"; -export * as tools from "./tools"; -export { ERC20Custody__factory } from "./ERC20Custody__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ConnectorErrors__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ConnectorErrors__factory.ts deleted file mode 100644 index 7ce9219d0..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ConnectorErrors__factory.ts +++ /dev/null @@ -1,86 +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 { - ConnectorErrors, - ConnectorErrorsInterface, -} from "../../../../contracts/evm/interfaces/ConnectorErrors"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotPauser", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTss", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssOrUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "maxSupply", - type: "uint256", - }, - ], - name: "ExceedsMaxSupply", - type: "error", - }, - { - inputs: [], - name: "ZetaTransferError", - type: "error", - }, -] as const; - -export class ConnectorErrors__factory { - static readonly abi = _abi; - static createInterface(): ConnectorErrorsInterface { - return new utils.Interface(_abi) as ConnectorErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ConnectorErrors { - return new Contract(address, _abi, signerOrProvider) as ConnectorErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaErrors__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaErrors__factory.ts deleted file mode 100644 index 4b62b61d6..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaErrors__factory.ts +++ /dev/null @@ -1,80 +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 { - ZetaErrors, - ZetaErrorsInterface, -} from "../../../../contracts/evm/interfaces/ZetaErrors"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotConnector", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTss", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssOrUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssUpdater", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ZetaTransferError", - type: "error", - }, -] as const; - -export class ZetaErrors__factory { - static readonly abi = _abi; - static createInterface(): ZetaErrorsInterface { - return new utils.Interface(_abi) as ZetaErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaErrors { - return new Contract(address, _abi, signerOrProvider) as ZetaErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInteractorErrors__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInteractorErrors__factory.ts deleted file mode 100644 index 545e87af5..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInteractorErrors__factory.ts +++ /dev/null @@ -1,56 +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 { - ZetaInteractorErrors, - ZetaInteractorErrorsInterface, -} from "../../../../contracts/evm/interfaces/ZetaInteractorErrors"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "InvalidCaller", - type: "error", - }, - { - inputs: [], - name: "InvalidDestinationChainId", - type: "error", - }, - { - inputs: [], - name: "InvalidZetaMessageCall", - type: "error", - }, - { - inputs: [], - name: "InvalidZetaRevertCall", - type: "error", - }, -] as const; - -export class ZetaInteractorErrors__factory { - static readonly abi = _abi; - static createInterface(): ZetaInteractorErrorsInterface { - return new utils.Interface(_abi) as ZetaInteractorErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaInteractorErrors { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaInteractorErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts deleted file mode 100644 index 13d734763..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors__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 { - ZetaCommonErrors, - ZetaCommonErrorsInterface, -} from "../../../../../contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors"; - -const _abi = [ - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, -] as const; - -export class ZetaCommonErrors__factory { - static readonly abi = _abi; - static createInterface(): ZetaCommonErrorsInterface { - return new utils.Interface(_abi) as ZetaCommonErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaCommonErrors { - return new Contract(address, _abi, signerOrProvider) as ZetaCommonErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector__factory.ts deleted file mode 100644 index 96384e23c..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector__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 { - ZetaConnector, - ZetaConnectorInterface, -} from "../../../../../contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.SendInput", - name: "input", - type: "tuple", - }, - ], - name: "send", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ZetaConnector__factory { - static readonly abi = _abi; - static createInterface(): ZetaConnectorInterface { - return new utils.Interface(_abi) as ZetaConnectorInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaConnector { - return new Contract(address, _abi, signerOrProvider) as ZetaConnector; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver__factory.ts deleted file mode 100644 index 21e4ddae9..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver__factory.ts +++ /dev/null @@ -1,111 +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 { - ZetaReceiver, - ZetaReceiverInterface, -} from "../../../../../contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaMessage", - name: "zetaMessage", - type: "tuple", - }, - ], - name: "onZetaMessage", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaRevert", - name: "zetaRevert", - type: "tuple", - }, - ], - name: "onZetaRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ZetaReceiver__factory { - static readonly abi = _abi; - static createInterface(): ZetaReceiverInterface { - return new utils.Interface(_abi) as ZetaReceiverInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaReceiver { - return new Contract(address, _abi, signerOrProvider) as ZetaReceiver; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts deleted file mode 100644 index a097ead56..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer__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 { - ZetaTokenConsumer, - ZetaTokenConsumerInterface, -} from "../../../../../contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "EthExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "TokenExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForEth", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForToken", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getEthFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "outputToken", - type: "address", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getTokenFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - ], - name: "getZetaFromEth", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "inputToken", - type: "address", - }, - { - internalType: "uint256", - name: "inputTokenAmount", - type: "uint256", - }, - ], - name: "getZetaFromToken", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "hasZetaLiquidity", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class ZetaTokenConsumer__factory { - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumer { - return new Contract(address, _abi, signerOrProvider) as ZetaTokenConsumer; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts deleted file mode 100644 index 7dd583792..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaInterfaces.sol/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaCommonErrors__factory } from "./ZetaCommonErrors__factory"; -export { ZetaConnector__factory } from "./ZetaConnector__factory"; -export { ZetaReceiver__factory } from "./ZetaReceiver__factory"; -export { ZetaTokenConsumer__factory } from "./ZetaTokenConsumer__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaNonEthInterface__factory.ts b/v1/typechain-types/factories/contracts/evm/interfaces/ZetaNonEthInterface__factory.ts deleted file mode 100644 index 46bb2b213..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/ZetaNonEthInterface__factory.ts +++ /dev/null @@ -1,250 +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 { - ZetaNonEthInterface, - ZetaNonEthInterfaceInterface, -} from "../../../../contracts/evm/interfaces/ZetaNonEthInterface"; - -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: "address", - name: "account", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "burnFrom", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "mintee", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "mint", - 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 ZetaNonEthInterface__factory { - static readonly abi = _abi; - static createInterface(): ZetaNonEthInterfaceInterface { - return new utils.Interface(_abi) as ZetaNonEthInterfaceInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaNonEthInterface { - return new Contract(address, _abi, signerOrProvider) as ZetaNonEthInterface; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/interfaces/index.ts b/v1/typechain-types/factories/contracts/evm/interfaces/index.ts deleted file mode 100644 index 4ca02cf7e..000000000 --- a/v1/typechain-types/factories/contracts/evm/interfaces/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as zetaInterfacesSol from "./ZetaInterfaces.sol"; -export { ConnectorErrors__factory } from "./ConnectorErrors__factory"; -export { ZetaErrors__factory } from "./ZetaErrors__factory"; -export { ZetaInteractorErrors__factory } from "./ZetaInteractorErrors__factory"; -export { ZetaNonEthInterface__factory } from "./ZetaNonEthInterface__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/AttackerContract__factory.ts b/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/AttackerContract__factory.ts deleted file mode 100644 index ac4ab4061..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/AttackerContract__factory.ts +++ /dev/null @@ -1,196 +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 { - AttackerContract, - AttackerContractInterface, -} from "../../../../../contracts/evm/testing/AttackerContract.sol/AttackerContract"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "victimContractAddress_", - type: "address", - }, - { - internalType: "address", - name: "wzeta", - type: "address", - }, - { - internalType: "uint256", - name: "victimMethod", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "balanceOf", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - 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", - }, - { - inputs: [], - name: "victimContractAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50604051620009ae380380620009ae8339818101604052810190620000379190620001a0565b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1663095ea7b360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401620000f492919062000250565b602060405180830381600087803b1580156200010f57600080fd5b505af115801562000124573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200014a9190620001fc565b50806001819055505050506200031a565b6000815190506200016c81620002cc565b92915050565b6000815190506200018381620002e6565b92915050565b6000815190506200019a8162000300565b92915050565b600080600060608486031215620001bc57620001bb620002c7565b5b6000620001cc868287016200015b565b9350506020620001df868287016200015b565b9250506040620001f28682870162000189565b9150509250925092565b600060208284031215620002155762000214620002c7565b5b6000620002258482850162000172565b91505092915050565b62000239816200027d565b82525050565b6200024a81620002bd565b82525050565b60006040820190506200026760008301856200022e565b6200027660208301846200023f565b9392505050565b60006200028a826200029d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b620002d7816200027d565b8114620002e357600080fd5b50565b620002f18162000291565b8114620002fd57600080fd5b50565b6200030b81620002bd565b81146200031757600080fd5b50565b610684806200032a6000396000f3fe6080604052600436106100435760003560e01c806323b872dd1461004f57806370a082311461008c57806389bc0bb7146100c9578063a9059cbb146100f45761004a565b3661004a57005b600080fd5b34801561005b57600080fd5b506100766004803603810190610071919061034c565b610131565b60405161008391906104b3565b60405180910390f35b34801561009857600080fd5b506100b360048036038101906100ae919061031f565b610146565b6040516100c0919061051d565b60405180910390f35b3480156100d557600080fd5b506100de610159565b6040516100eb9190610461565b60405180910390f35b34801561010057600080fd5b5061011b6004803603810190610116919061039f565b61017d565b60405161012891906104b3565b60405180910390f35b600061013b610191565b600190509392505050565b6000610150610191565b60009050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610187610191565b6001905092915050565b6001805414156101a8576101a36101bf565b6101bd565b600260015414156101bc576101bb61024f565b5b5b565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e609055e3060006040518363ffffffff1660e01b815260040161021b9291906104ce565b600060405180830381600087803b15801561023557600080fd5b505af1158015610249573d6000803e3d6000fd5b50505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d9caed1273f39fd6e51aad88f6f4ce6ab8827279cfffb922663060006040518463ffffffff1660e01b81526004016102c19392919061047c565b600060405180830381600087803b1580156102db57600080fd5b505af11580156102ef573d6000803e3d6000fd5b50505050565b60008135905061030481610620565b92915050565b60008135905061031981610637565b92915050565b600060208284031215610335576103346105a3565b5b6000610343848285016102f5565b91505092915050565b600080600060608486031215610365576103646105a3565b5b6000610373868287016102f5565b9350506020610384868287016102f5565b92505060406103958682870161030a565b9150509250925092565b600080604083850312156103b6576103b56105a3565b5b60006103c4858286016102f5565b92505060206103d58582860161030a565b9150509250929050565b6103e881610549565b82525050565b6103f78161055b565b82525050565b61040681610591565b82525050565b6000610419600483610538565b9150610424826105a8565b602082019050919050565b600061043c602a83610538565b9150610447826105d1565b604082019050919050565b61045b81610587565b82525050565b600060208201905061047660008301846103df565b92915050565b600060608201905061049160008301866103df565b61049e60208301856103df565b6104ab60408301846103fd565b949350505050565b60006020820190506104c860008301846103ee565b92915050565b600060808201905081810360008301526104e78161042f565b90506104f660208301856103df565b61050360408301846103fd565b81810360608301526105148161040c565b90509392505050565b60006020820190506105326000830184610452565b92915050565b600082825260208201905092915050565b600061055482610567565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061059c82610587565b9050919050565b600080fd5b7f3078303000000000000000000000000000000000000000000000000000000000600082015250565b7f307866333946643665353161616438384636463463653661423838323732373960008201527f6366664662393232363600000000000000000000000000000000000000000000602082015250565b61062981610549565b811461063457600080fd5b50565b61064081610587565b811461064b57600080fd5b5056fea264697066735822122075954d652b0eb8d814b91524c47a04c537d638cec0eda3ca0e4ee67767e1a37064736f6c63430008070033"; - -type AttackerContractConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: AttackerContractConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class AttackerContract__factory extends ContractFactory { - constructor(...args: AttackerContractConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - victimContractAddress_: PromiseOrValue, - wzeta: PromiseOrValue, - victimMethod: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - victimContractAddress_, - wzeta, - victimMethod, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - victimContractAddress_: PromiseOrValue, - wzeta: PromiseOrValue, - victimMethod: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - victimContractAddress_, - wzeta, - victimMethod, - overrides || {} - ); - } - override attach(address: string): AttackerContract { - return super.attach(address) as AttackerContract; - } - override connect(signer: Signer): AttackerContract__factory { - return super.connect(signer) as AttackerContract__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): AttackerContractInterface { - return new utils.Interface(_abi) as AttackerContractInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): AttackerContract { - return new Contract(address, _abi, signerOrProvider) as AttackerContract; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/Victim__factory.ts b/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/Victim__factory.ts deleted file mode 100644 index f5c1ecf7c..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/Victim__factory.ts +++ /dev/null @@ -1,74 +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 { - Victim, - VictimInterface, -} from "../../../../../contracts/evm/testing/AttackerContract.sol/Victim"; - -const _abi = [ - { - inputs: [ - { - internalType: "bytes", - name: "recipient", - type: "bytes", - }, - { - internalType: "address", - name: "asset", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "deposit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "address", - name: "asset", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class Victim__factory { - static readonly abi = _abi; - static createInterface(): VictimInterface { - return new utils.Interface(_abi) as VictimInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): Victim { - return new Contract(address, _abi, signerOrProvider) as Victim; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/index.ts b/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/index.ts deleted file mode 100644 index 61a3ee2a0..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/AttackerContract.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { AttackerContract__factory } from "./AttackerContract__factory"; -export { Victim__factory } from "./Victim__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/testing/ERC20Mock__factory.ts b/v1/typechain-types/factories/contracts/evm/testing/ERC20Mock__factory.ts deleted file mode 100644 index 342357d05..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/ERC20Mock__factory.ts +++ /dev/null @@ -1,386 +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 { - ERC20Mock, - ERC20MockInterface, -} from "../../../../contracts/evm/testing/ERC20Mock"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "name", - type: "string", - }, - { - internalType: "string", - name: "symbol", - type: "string", - }, - { - internalType: "address", - name: "creator", - type: "address", - }, - { - internalType: "uint256", - name: "initialSupply", - type: "uint256", - }, - ], - 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 = - "0x60806040523480156200001157600080fd5b5060405162001beb38038062001beb833981810160405281019062000037919062000393565b838381600390805190602001906200005192919062000237565b5080600490805190602001906200006a92919062000237565b505050620000ac8262000082620000b660201b60201c565b60ff16600a620000939190620005e2565b83620000a091906200071f565b620000bf60201b60201c565b505050506200097c565b60006012905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000129906200047b565b60405180910390fd5b62000146600083836200022d60201b60201c565b80600260008282546200015a91906200052a565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200020d91906200049d565b60405180910390a362000229600083836200023260201b60201c565b5050565b505050565b505050565b8280546200024590620007f4565b90600052602060002090601f016020900481019282620002695760008555620002b5565b82601f106200028457805160ff1916838001178555620002b5565b82800160010185558215620002b5579182015b82811115620002b457825182559160200191906001019062000297565b5b509050620002c49190620002c8565b5090565b5b80821115620002e3576000816000905550600101620002c9565b5090565b6000620002fe620002f884620004e3565b620004ba565b9050828152602081018484840111156200031d576200031c620008f2565b5b6200032a848285620007be565b509392505050565b600081519050620003438162000948565b92915050565b600082601f830112620003615762000360620008ed565b5b815162000373848260208601620002e7565b91505092915050565b6000815190506200038d8162000962565b92915050565b60008060008060808587031215620003b057620003af620008fc565b5b600085015167ffffffffffffffff811115620003d157620003d0620008f7565b5b620003df8782880162000349565b945050602085015167ffffffffffffffff811115620004035762000402620008f7565b5b620004118782880162000349565b9350506040620004248782880162000332565b925050606062000437878288016200037c565b91505092959194509250565b600062000452601f8362000519565b91506200045f826200091f565b602082019050919050565b6200047581620007b4565b82525050565b60006020820190508181036000830152620004968162000443565b9050919050565b6000602082019050620004b460008301846200046a565b92915050565b6000620004c6620004d9565b9050620004d482826200082a565b919050565b6000604051905090565b600067ffffffffffffffff821115620005015762000500620008be565b5b6200050c8262000901565b9050602081019050919050565b600082825260208201905092915050565b60006200053782620007b4565b91506200054483620007b4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200057c576200057b62000860565b5b828201905092915050565b6000808291508390505b6001851115620005d957808604811115620005b157620005b062000860565b5b6001851615620005c15780820291505b8081029050620005d18562000912565b945062000591565b94509492505050565b6000620005ef82620007b4565b9150620005fc83620007b4565b92506200062b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462000633565b905092915050565b60008262000645576001905062000718565b8162000655576000905062000718565b81600181146200066e57600281146200067957620006af565b600191505062000718565b60ff8411156200068e576200068d62000860565b5b8360020a915084821115620006a857620006a762000860565b5b5062000718565b5060208310610133831016604e8410600b8410161715620006e95782820a905083811115620006e357620006e262000860565b5b62000718565b620006f8848484600162000587565b9250905081840481111562000712576200071162000860565b5b81810290505b9392505050565b60006200072c82620007b4565b91506200073983620007b4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000775576200077462000860565b5b828202905092915050565b60006200078d8262000794565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015620007de578082015181840152602081019050620007c1565b83811115620007ee576000848401525b50505050565b600060028204905060018216806200080d57607f821691505b602082108114156200082457620008236200088f565b5b50919050565b620008358262000901565b810181811067ffffffffffffffff82111715620008575762000856620008be565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b620009538162000780565b81146200095f57600080fd5b50565b6200096d81620007b4565b81146200097957600080fd5b50565b61125f806200098c6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461016857806370a082311461019857806395d89b41146101c8578063a457c2d7146101e6578063a9059cbb14610216578063dd62ed3e14610246576100a9565b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100fc57806323b872dd1461011a578063313ce5671461014a575b600080fd5b6100b6610276565b6040516100c39190610d20565b60405180910390f35b6100e660048036038101906100e19190610b6a565b610308565b6040516100f39190610d05565b60405180910390f35b61010461032b565b6040516101119190610e22565b60405180910390f35b610134600480360381019061012f9190610b17565b610335565b6040516101419190610d05565b60405180910390f35b610152610364565b60405161015f9190610e3d565b60405180910390f35b610182600480360381019061017d9190610b6a565b61036d565b60405161018f9190610d05565b60405180910390f35b6101b260048036038101906101ad9190610aaa565b6103a4565b6040516101bf9190610e22565b60405180910390f35b6101d06103ec565b6040516101dd9190610d20565b60405180910390f35b61020060048036038101906101fb9190610b6a565b61047e565b60405161020d9190610d05565b60405180910390f35b610230600480360381019061022b9190610b6a565b6104f5565b60405161023d9190610d05565b60405180910390f35b610260600480360381019061025b9190610ad7565b610518565b60405161026d9190610e22565b60405180910390f35b60606003805461028590610f52565b80601f01602080910402602001604051908101604052809291908181526020018280546102b190610f52565b80156102fe5780601f106102d3576101008083540402835291602001916102fe565b820191906000526020600020905b8154815290600101906020018083116102e157829003601f168201915b5050505050905090565b60008061031361059f565b90506103208185856105a7565b600191505092915050565b6000600254905090565b60008061034061059f565b905061034d858285610772565b6103588585856107fe565b60019150509392505050565b60006012905090565b60008061037861059f565b905061039981858561038a8589610518565b6103949190610e74565b6105a7565b600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600480546103fb90610f52565b80601f016020809104026020016040519081016040528092919081815260200182805461042790610f52565b80156104745780601f1061044957610100808354040283529160200191610474565b820191906000526020600020905b81548152906001019060200180831161045757829003601f168201915b5050505050905090565b60008061048961059f565b905060006104978286610518565b9050838110156104dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d390610e02565b60405180910390fd5b6104e982868684036105a7565b60019250505092915050565b60008061050061059f565b905061050d8185856107fe565b600191505092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610617576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060e90610de2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610687576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161067e90610d62565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107659190610e22565b60405180910390a3505050565b600061077e8484610518565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146107f857818110156107ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e190610d82565b60405180910390fd5b6107f784848484036105a7565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561086e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086590610dc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156108de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d590610d42565b60405180910390fd5b6108e9838383610a76565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561096f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096690610da2565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610a5d9190610e22565b60405180910390a3610a70848484610a7b565b50505050565b505050565b505050565b600081359050610a8f816111fb565b92915050565b600081359050610aa481611212565b92915050565b600060208284031215610ac057610abf610fe2565b5b6000610ace84828501610a80565b91505092915050565b60008060408385031215610aee57610aed610fe2565b5b6000610afc85828601610a80565b9250506020610b0d85828601610a80565b9150509250929050565b600080600060608486031215610b3057610b2f610fe2565b5b6000610b3e86828701610a80565b9350506020610b4f86828701610a80565b9250506040610b6086828701610a95565b9150509250925092565b60008060408385031215610b8157610b80610fe2565b5b6000610b8f85828601610a80565b9250506020610ba085828601610a95565b9150509250929050565b610bb381610edc565b82525050565b6000610bc482610e58565b610bce8185610e63565b9350610bde818560208601610f1f565b610be781610fe7565b840191505092915050565b6000610bff602383610e63565b9150610c0a82610ff8565b604082019050919050565b6000610c22602283610e63565b9150610c2d82611047565b604082019050919050565b6000610c45601d83610e63565b9150610c5082611096565b602082019050919050565b6000610c68602683610e63565b9150610c73826110bf565b604082019050919050565b6000610c8b602583610e63565b9150610c968261110e565b604082019050919050565b6000610cae602483610e63565b9150610cb98261115d565b604082019050919050565b6000610cd1602583610e63565b9150610cdc826111ac565b604082019050919050565b610cf081610f08565b82525050565b610cff81610f12565b82525050565b6000602082019050610d1a6000830184610baa565b92915050565b60006020820190508181036000830152610d3a8184610bb9565b905092915050565b60006020820190508181036000830152610d5b81610bf2565b9050919050565b60006020820190508181036000830152610d7b81610c15565b9050919050565b60006020820190508181036000830152610d9b81610c38565b9050919050565b60006020820190508181036000830152610dbb81610c5b565b9050919050565b60006020820190508181036000830152610ddb81610c7e565b9050919050565b60006020820190508181036000830152610dfb81610ca1565b9050919050565b60006020820190508181036000830152610e1b81610cc4565b9050919050565b6000602082019050610e376000830184610ce7565b92915050565b6000602082019050610e526000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610e7f82610f08565b9150610e8a83610f08565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ebf57610ebe610f84565b5b828201905092915050565b6000610ed582610ee8565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610f3d578082015181840152602081019050610f22565b83811115610f4c576000848401525b50505050565b60006002820490506001821680610f6a57607f821691505b60208210811415610f7e57610f7d610fb3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b61120481610eca565b811461120f57600080fd5b50565b61121b81610f08565b811461122657600080fd5b5056fea26469706673582212206e7d4645203c528cb4c5c20b28a6d1615134cd17e709cf6083e931dfc154394964736f6c63430008070033"; - -type ERC20MockConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ERC20MockConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ERC20Mock__factory extends ContractFactory { - constructor(...args: ERC20MockConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - name: PromiseOrValue, - symbol: PromiseOrValue, - creator: PromiseOrValue, - initialSupply: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - name, - symbol, - creator, - initialSupply, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - name: PromiseOrValue, - symbol: PromiseOrValue, - creator: PromiseOrValue, - initialSupply: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - name, - symbol, - creator, - initialSupply, - overrides || {} - ); - } - override attach(address: string): ERC20Mock { - return super.attach(address) as ERC20Mock; - } - override connect(signer: Signer): ERC20Mock__factory { - return super.connect(signer) as ERC20Mock__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ERC20MockInterface { - return new utils.Interface(_abi) as ERC20MockInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ERC20Mock { - return new Contract(address, _abi, signerOrProvider) as ERC20Mock; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager__factory.ts b/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager__factory.ts deleted file mode 100644 index 9b701a9eb..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager__factory.ts +++ /dev/null @@ -1,461 +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 { - INonfungiblePositionManager, - INonfungiblePositionManagerInterface, -} from "../../../../../contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "recipient", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "Collect", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - indexed: false, - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "DecreaseLiquidity", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - indexed: false, - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - indexed: false, - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - name: "IncreaseLiquidity", - type: "event", - }, - { - inputs: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "burn", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint128", - name: "amount0Max", - type: "uint128", - }, - { - internalType: "uint128", - name: "amount1Max", - type: "uint128", - }, - ], - internalType: "struct INonfungiblePositionManager.CollectParams", - name: "params", - type: "tuple", - }, - ], - name: "collect", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - internalType: "uint256", - name: "amount0Min", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1Min", - type: "uint256", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - internalType: - "struct INonfungiblePositionManager.DecreaseLiquidityParams", - name: "params", - type: "tuple", - }, - ], - name: "decreaseLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount0Desired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1Desired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount0Min", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1Min", - type: "uint256", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - internalType: - "struct INonfungiblePositionManager.IncreaseLiquidityParams", - name: "params", - type: "tuple", - }, - ], - name: "increaseLiquidity", - outputs: [ - { - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "token0", - type: "address", - }, - { - internalType: "address", - name: "token1", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint256", - name: "amount0Desired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1Desired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount0Min", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1Min", - type: "uint256", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - internalType: "struct INonfungiblePositionManager.MintParams", - name: "params", - type: "tuple", - }, - ], - name: "mint", - outputs: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - internalType: "uint256", - name: "amount0", - type: "uint256", - }, - { - internalType: "uint256", - name: "amount1", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "positions", - outputs: [ - { - internalType: "uint96", - name: "nonce", - type: "uint96", - }, - { - internalType: "address", - name: "operator", - type: "address", - }, - { - internalType: "address", - name: "token0", - type: "address", - }, - { - internalType: "address", - name: "token1", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "int24", - name: "tickLower", - type: "int24", - }, - { - internalType: "int24", - name: "tickUpper", - type: "int24", - }, - { - internalType: "uint128", - name: "liquidity", - type: "uint128", - }, - { - internalType: "uint256", - name: "feeGrowthInside0LastX128", - type: "uint256", - }, - { - internalType: "uint256", - name: "feeGrowthInside1LastX128", - type: "uint256", - }, - { - internalType: "uint128", - name: "tokensOwed0", - type: "uint128", - }, - { - internalType: "uint128", - name: "tokensOwed1", - type: "uint128", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class INonfungiblePositionManager__factory { - static readonly abi = _abi; - static createInterface(): INonfungiblePositionManagerInterface { - return new utils.Interface(_abi) as INonfungiblePositionManagerInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): INonfungiblePositionManager { - return new Contract( - address, - _abi, - signerOrProvider - ) as INonfungiblePositionManager; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer__factory.ts b/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer__factory.ts deleted file mode 100644 index e7e365440..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer__factory.ts +++ /dev/null @@ -1,60 +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 { - IPoolInitializer, - IPoolInitializerInterface, -} from "../../../../../contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "token0", - type: "address", - }, - { - internalType: "address", - name: "token1", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "uint160", - name: "sqrtPriceX96", - type: "uint160", - }, - ], - name: "createAndInitializePoolIfNecessary", - outputs: [ - { - internalType: "address", - name: "pool", - type: "address", - }, - ], - stateMutability: "payable", - type: "function", - }, -] as const; - -export class IPoolInitializer__factory { - static readonly abi = _abi; - static createInterface(): IPoolInitializerInterface { - return new utils.Interface(_abi) as IPoolInitializerInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IPoolInitializer { - return new Contract(address, _abi, signerOrProvider) as IPoolInitializer; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts b/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts deleted file mode 100644 index 9db2e56f4..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/TestUniswapV3Contracts.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { INonfungiblePositionManager__factory } from "./INonfungiblePositionManager__factory"; -export { IPoolInitializer__factory } from "./IPoolInitializer__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/testing/ZetaInteractorMock__factory.ts b/v1/typechain-types/factories/contracts/evm/testing/ZetaInteractorMock__factory.ts deleted file mode 100644 index eda13b7f4..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/ZetaInteractorMock__factory.ts +++ /dev/null @@ -1,336 +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 { - ZetaInteractorMock, - ZetaInteractorMockInterface, -} from "../../../../contracts/evm/testing/ZetaInteractorMock"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaConnectorAddress", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "InvalidCaller", - type: "error", - }, - { - inputs: [], - name: "InvalidDestinationChainId", - type: "error", - }, - { - inputs: [], - name: "InvalidZetaMessageCall", - type: "error", - }, - { - inputs: [], - name: "InvalidZetaRevertCall", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferStarted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - inputs: [], - name: "acceptOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "connector", - outputs: [ - { - internalType: "contract ZetaConnector", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "interactorsByChainId", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaMessage", - name: "zetaMessage", - type: "tuple", - }, - ], - name: "onZetaMessage", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaRevert", - name: "zetaRevert", - type: "tuple", - }, - ], - name: "onZetaRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pendingOwner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "contractAddress", - type: "bytes", - }, - ], - name: "setInteractorByChainId", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x60c06040523480156200001157600080fd5b50604051620011dc380380620011dc833981810160405281019062000037919062000228565b80620000586200004c6200010760201b60201c565b6200010f60201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000c0576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b46608081815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620002ad565b600033905090565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556200014a816200014d60201b620005601760201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620002228162000293565b92915050565b6000602082840312156200024157620002406200028e565b5b6000620002518482850162000211565b91505092915050565b600062000267826200026e565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200029e816200025a565b8114620002aa57600080fd5b50565b60805160a05160601c610f02620002da6000396000818161043e0152610626015260005050610f026000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806379ba50971161006657806379ba50971461013157806383f3084f1461013b5780638da5cb5b14610159578063e30c397814610177578063f2fde38b146101955761009e565b80632618143f146100a35780633749c51a146100d35780633ff0693c146100ef5780634fd3f7d71461010b578063715018a614610127575b600080fd5b6100bd60048036038101906100b8919061098d565b6101b1565b6040516100ca9190610ba6565b60405180910390f35b6100ed60048036038101906100e891906108fb565b610251565b005b61010960048036038101906101049190610944565b6102e7565b005b610125600480360381019061012091906109ba565b61036b565b005b61012f61039b565b005b6101396103af565b005b61014361043c565b6040516101509190610bc8565b60405180910390f35b610161610460565b60405161016e9190610b8b565b60405180910390f35b61017f610489565b60405161018c9190610b8b565b60405180910390f35b6101af60048036038101906101aa91906108ce565b6104b3565b005b600260205280600052604060002060009150905080546101d090610d87565b80601f01602080910402602001604051908101604052809291908181526020018280546101fc90610d87565b80156102495780601f1061021e57610100808354040283529160200191610249565b820191906000526020600020905b81548152906001019060200180831161022c57829003601f168201915b505050505081565b8061025a610624565b600260008260200135815260200190815260200160002060405161027e9190610b74565b60405180910390208180600001906102969190610c23565b6040516102a4929190610b5b565b6040518091039020146102e3576040517fb473eb0a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b806102f0610624565b3073ffffffffffffffffffffffffffffffffffffffff1681600001602081019061031a91906108ce565b73ffffffffffffffffffffffffffffffffffffffff1614610367576040517fc03e9c3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6103736106b6565b818160026000868152602001908152602001600020919061039592919061076d565b50505050565b6103a36106b6565b6103ad6000610734565b565b60006103b9610765565b90508073ffffffffffffffffffffffffffffffffffffffff166103da610489565b73ffffffffffffffffffffffffffffffffffffffff1614610430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042790610be3565b60405180910390fd5b61043981610734565b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6104bb6106b6565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1661051b610460565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106b457336040517fcbd9d2e00000000000000000000000000000000000000000000000000000000081526004016106ab9190610b8b565b60405180910390fd5b565b6106be610765565b73ffffffffffffffffffffffffffffffffffffffff166106dc610460565b73ffffffffffffffffffffffffffffffffffffffff1614610732576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072990610c03565b60405180910390fd5b565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561076281610560565b50565b600033905090565b82805461077990610d87565b90600052602060002090601f01602090048101928261079b57600085556107e2565b82601f106107b457803560ff19168380011785556107e2565b828001600101855582156107e2579182015b828111156107e15782358255916020019190600101906107c6565b5b5090506107ef91906107f3565b5090565b5b8082111561080c5760008160009055506001016107f4565b5090565b60008135905061081f81610e9e565b92915050565b60008083601f84011261083b5761083a610ded565b5b8235905067ffffffffffffffff81111561085857610857610de8565b5b60208301915083600182028301111561087457610873610e01565b5b9250929050565b600060a0828403121561089157610890610df7565b5b81905092915050565b600060c082840312156108b0576108af610df7565b5b81905092915050565b6000813590506108c881610eb5565b92915050565b6000602082840312156108e4576108e3610e10565b5b60006108f284828501610810565b91505092915050565b60006020828403121561091157610910610e10565b5b600082013567ffffffffffffffff81111561092f5761092e610e0b565b5b61093b8482850161087b565b91505092915050565b60006020828403121561095a57610959610e10565b5b600082013567ffffffffffffffff81111561097857610977610e0b565b5b6109848482850161089a565b91505092915050565b6000602082840312156109a3576109a2610e10565b5b60006109b1848285016108b9565b91505092915050565b6000806000604084860312156109d3576109d2610e10565b5b60006109e1868287016108b9565b935050602084013567ffffffffffffffff811115610a0257610a01610e0b565b5b610a0e86828701610825565b92509250509250925092565b610a2381610cd3565b82525050565b6000610a358385610cb7565b9350610a42838584610d45565b82840190509392505050565b6000610a5982610c9b565b610a638185610ca6565b9350610a73818560208601610d54565b610a7c81610e15565b840191505092915050565b60008154610a9481610d87565b610a9e8186610cb7565b94506001821660008114610ab95760018114610aca57610afd565b60ff19831686528186019350610afd565b610ad385610c86565b60005b83811015610af557815481890152600182019150602081019050610ad6565b838801955050505b50505092915050565b610b0f81610d0f565b82525050565b6000610b22602983610cc2565b9150610b2d82610e26565b604082019050919050565b6000610b45602083610cc2565b9150610b5082610e75565b602082019050919050565b6000610b68828486610a29565b91508190509392505050565b6000610b808284610a87565b915081905092915050565b6000602082019050610ba06000830184610a1a565b92915050565b60006020820190508181036000830152610bc08184610a4e565b905092915050565b6000602082019050610bdd6000830184610b06565b92915050565b60006020820190508181036000830152610bfc81610b15565b9050919050565b60006020820190508181036000830152610c1c81610b38565b9050919050565b60008083356001602003843603038112610c4057610c3f610dfc565b5b80840192508235915067ffffffffffffffff821115610c6257610c61610df2565b5b602083019250600182023603831315610c7e57610c7d610e06565b5b509250929050565b60008190508160005260206000209050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000610cde82610ce5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610d1a82610d21565b9050919050565b6000610d2c82610d33565b9050919050565b6000610d3e82610ce5565b9050919050565b82818337600083830152505050565b60005b83811015610d72578082015181840152602081019050610d57565b83811115610d81576000848401525b50505050565b60006002820490506001821680610d9f57607f821691505b60208210811415610db357610db2610db9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060008201527f6e6577206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b610ea781610cd3565b8114610eb257600080fd5b50565b610ebe81610d05565b8114610ec957600080fd5b5056fea2646970667358221220639370598d8dcad7cc48e15d248474209bfbec01023d8ed4d055453bab66415464736f6c63430008070033"; - -type ZetaInteractorMockConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaInteractorMockConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaInteractorMock__factory extends ContractFactory { - constructor(...args: ZetaInteractorMockConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaConnectorAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaConnectorAddress, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaConnectorAddress: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(zetaConnectorAddress, overrides || {}); - } - override attach(address: string): ZetaInteractorMock { - return super.attach(address) as ZetaInteractorMock; - } - override connect(signer: Signer): ZetaInteractorMock__factory { - return super.connect(signer) as ZetaInteractorMock__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaInteractorMockInterface { - return new utils.Interface(_abi) as ZetaInteractorMockInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaInteractorMock { - return new Contract(address, _abi, signerOrProvider) as ZetaInteractorMock; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/testing/ZetaReceiverMock__factory.ts b/v1/typechain-types/factories/contracts/evm/testing/ZetaReceiverMock__factory.ts deleted file mode 100644 index c2163810d..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/ZetaReceiverMock__factory.ts +++ /dev/null @@ -1,174 +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 { - ZetaReceiverMock, - ZetaReceiverMockInterface, -} from "../../../../contracts/evm/testing/ZetaReceiverMock"; - -const _abi = [ - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "destinationAddress", - type: "address", - }, - ], - name: "MockOnZetaMessage", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - ], - name: "MockOnZetaRevert", - type: "event", - }, - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaMessage", - name: "zetaMessage", - type: "tuple", - }, - ], - name: "onZetaMessage", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaRevert", - name: "zetaRevert", - type: "tuple", - }, - ], - name: "onZetaRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b506102d5806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633749c51a1461003b5780633ff0693c14610057575b600080fd5b6100556004803603810190610050919061018b565b610073565b005b610071600480360381019061006c91906101d4565b6100bf565b005b7f72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e8160400160208101906100a7919061015e565b6040516100b4919061022c565b60405180910390a150565b7f53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc48160000160208101906100f3919061015e565b604051610100919061022c565b60405180910390a150565b60008135905061011a81610288565b92915050565b600060a0828403121561013657610135610279565b5b81905092915050565b600060c0828403121561015557610154610279565b5b81905092915050565b60006020828403121561017457610173610283565b5b60006101828482850161010b565b91505092915050565b6000602082840312156101a1576101a0610283565b5b600082013567ffffffffffffffff8111156101bf576101be61027e565b5b6101cb84828501610120565b91505092915050565b6000602082840312156101ea576101e9610283565b5b600082013567ffffffffffffffff8111156102085761020761027e565b5b6102148482850161013f565b91505092915050565b61022681610247565b82525050565b6000602082019050610241600083018461021d565b92915050565b600061025282610259565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b600080fd5b600080fd5b61029181610247565b811461029c57600080fd5b5056fea26469706673582212206d3535c1f777f93a6d105378513b52ef987ededd64b301e5cc1914be4e5ba14564736f6c63430008070033"; - -type ZetaReceiverMockConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaReceiverMockConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaReceiverMock__factory extends ContractFactory { - constructor(...args: ZetaReceiverMockConstructorParams) { - 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): ZetaReceiverMock { - return super.attach(address) as ZetaReceiverMock; - } - override connect(signer: Signer): ZetaReceiverMock__factory { - return super.connect(signer) as ZetaReceiverMock__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaReceiverMockInterface { - return new utils.Interface(_abi) as ZetaReceiverMockInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaReceiverMock { - return new Contract(address, _abi, signerOrProvider) as ZetaReceiverMock; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/testing/index.ts b/v1/typechain-types/factories/contracts/evm/testing/index.ts deleted file mode 100644 index d20dc41ba..000000000 --- a/v1/typechain-types/factories/contracts/evm/testing/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as attackerContractSol from "./AttackerContract.sol"; -export * as testUniswapV3ContractsSol from "./TestUniswapV3Contracts.sol"; -export { ERC20Mock__factory } from "./ERC20Mock__factory"; -export { ZetaInteractorMock__factory } from "./ZetaInteractorMock__factory"; -export { ZetaReceiverMock__factory } from "./ZetaReceiverMock__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory__factory.ts deleted file mode 100644 index 0f3b7068a..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory__factory.ts +++ /dev/null @@ -1,178 +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 { - ImmutableCreate2Factory, - ImmutableCreate2FactoryInterface, -} from "../../../../../contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory"; - -const _abi = [ - { - constant: true, - inputs: [ - { - name: "deploymentAddress", - type: "address", - }, - ], - name: "hasBeenDeployed", - outputs: [ - { - name: "", - type: "bool", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: false, - inputs: [ - { - name: "salt", - type: "bytes32", - }, - { - name: "initializationCode", - type: "bytes", - }, - ], - name: "safeCreate2AndTransfer", - outputs: [ - { - name: "deploymentAddress", - type: "address", - }, - ], - payable: true, - stateMutability: "payable", - type: "function", - }, - { - constant: false, - inputs: [ - { - name: "salt", - type: "bytes32", - }, - { - name: "initializationCode", - type: "bytes", - }, - ], - name: "safeCreate2", - outputs: [ - { - name: "deploymentAddress", - type: "address", - }, - ], - payable: true, - stateMutability: "payable", - type: "function", - }, - { - constant: true, - inputs: [ - { - name: "salt", - type: "bytes32", - }, - { - name: "initCode", - type: "bytes", - }, - ], - name: "findCreate2Address", - outputs: [ - { - name: "deploymentAddress", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [ - { - name: "salt", - type: "bytes32", - }, - { - name: "initCodeHash", - type: "bytes32", - }, - ], - name: "findCreate2AddressViaHash", - outputs: [ - { - name: "deploymentAddress", - type: "address", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x608060405234801561001057600080fd5b50610c54806100206000396000f3fe60806040526004361061004a5760003560e01c806308508b8f1461004f57806329346003146100b857806364e030871461017b57806385cf97ab14610280578063a49a7c9014610350575b600080fd5b34801561005b57600080fd5b5061009e6004803603602081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103d5565b604051808215151515815260200191505060405180910390f35b610139600480360360408110156100ce57600080fd5b8101908080359060200190929190803590602001906401000000008111156100f557600080fd5b82018360208201111561010757600080fd5b8035906020019184600183028401116401000000008311171561012957600080fd5b909192939192939050505061042a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61023e6004803603604081101561019157600080fd5b8101908080359060200190929190803590602001906401000000008111156101b857600080fd5b8201836020820111156101ca57600080fd5b803590602001918460018302840111640100000000831117156101ec57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506105cf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561028c57600080fd5b5061030e600480360360408110156102a357600080fd5b8101908080359060200190929190803590602001906401000000008111156102ca57600080fd5b8201836020820111156102dc57600080fd5b803590602001918460018302840111640100000000831117156102fe57600080fd5b9091929391929390505050610698565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561035c57600080fd5b506103936004803603604081101561037357600080fd5b8101908080359060200190929190803590602001909291905050506107be565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000833373ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff16148061048b5750600060601b6bffffffffffffffffffffffff1916816bffffffffffffffffffffffff1916145b6104e0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526045815260200180610b956045913960600191505060405180910390fd5b61052e8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506108b4565b91508173ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156105af57600080fd5b505af11580156105c3573d6000803e3d6000fd5b50505050509392505050565b6000823373ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff1614806106305750600060601b6bffffffffffffffffffffffff1916816bffffffffffffffffffffffff1916145b610685576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526045815260200180610b956045913960600191505060405180910390fd5b61068f84846108b4565b91505092915050565b6000308484846040516020018083838082843780830192505050925050506040516020818303038152906040528051906020012060405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c90506000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156107b657600090506107b7565b5b9392505050565b600030838360405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c90506000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156108ad57600090506108ae565b5b92915050565b6000606082905060003085836040516020018082805190602001908083835b602083106108f657805182526020820191506020810190506020830392506108d3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012060405160200180807fff000000000000000000000000000000000000000000000000000000000000008152506001018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012060001c90506000808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610a63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603f815260200180610b56603f913960400191505060405180910390fd5b81602001825186818334f5945050508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614610af6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526046815260200180610bda6046913960600191505060405180910390fd5b60016000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050509291505056fe496e76616c696420636f6e7472616374206372656174696f6e202d20636f6e74726163742068617320616c7265616479206265656e206465706c6f7965642e496e76616c69642073616c74202d206669727374203230206279746573206f66207468652073616c74206d757374206d617463682063616c6c696e6720616464726573732e4661696c656420746f206465706c6f7920636f6e7472616374207573696e672070726f76696465642073616c7420616e6420696e697469616c697a6174696f6e20636f64652ea265627a7a72305820df6f8cf8f81946679a805d41e12170a28006ccfb64bce758c74108440cc9337b64736f6c634300050a0032"; - -type ImmutableCreate2FactoryConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ImmutableCreate2FactoryConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ImmutableCreate2Factory__factory extends ContractFactory { - constructor(...args: ImmutableCreate2FactoryConstructorParams) { - 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): ImmutableCreate2Factory { - return super.attach(address) as ImmutableCreate2Factory; - } - override connect(signer: Signer): ImmutableCreate2Factory__factory { - return super.connect(signer) as ImmutableCreate2Factory__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ImmutableCreate2FactoryInterface { - return new utils.Interface(_abi) as ImmutableCreate2FactoryInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ImmutableCreate2Factory { - return new Contract( - address, - _abi, - signerOrProvider - ) as ImmutableCreate2Factory; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable__factory.ts deleted file mode 100644 index 50e952551..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable__factory.ts +++ /dev/null @@ -1,40 +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 { - Ownable, - OwnableInterface, -} from "../../../../../contracts/evm/tools/ImmutableCreate2Factory.sol/Ownable"; - -const _abi = [ - { - constant: false, - inputs: [ - { - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - payable: false, - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class Ownable__factory { - static readonly abi = _abi; - static createInterface(): OwnableInterface { - return new utils.Interface(_abi) as OwnableInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): Ownable { - return new Contract(address, _abi, signerOrProvider) as Ownable; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts deleted file mode 100644 index bacefb31c..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ImmutableCreate2Factory.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ImmutableCreate2Factory__factory } from "./ImmutableCreate2Factory__factory"; -export { Ownable__factory } from "./Ownable__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaInteractor__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaInteractor__factory.ts deleted file mode 100644 index 35e8912f1..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaInteractor__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 { - ZetaInteractor, - ZetaInteractorInterface, -} from "../../../../contracts/evm/tools/ZetaInteractor"; - -const _abi = [ - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "InvalidCaller", - type: "error", - }, - { - inputs: [], - name: "InvalidDestinationChainId", - type: "error", - }, - { - inputs: [], - name: "InvalidZetaMessageCall", - type: "error", - }, - { - inputs: [], - name: "InvalidZetaRevertCall", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferStarted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "previousOwner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "OwnershipTransferred", - type: "event", - }, - { - inputs: [], - name: "acceptOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "connector", - outputs: [ - { - internalType: "contract ZetaConnector", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "interactorsByChainId", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pendingOwner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "contractAddress", - type: "bytes", - }, - ], - name: "setInteractorByChainId", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ZetaInteractor__factory { - static readonly abi = _abi; - static createInterface(): ZetaInteractorInterface { - return new utils.Interface(_abi) as ZetaInteractorInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaInteractor { - return new Contract(address, _abi, signerOrProvider) as ZetaInteractor; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake__factory.ts deleted file mode 100644 index dfe09ffc4..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake__factory.ts +++ /dev/null @@ -1,146 +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 { - ISwapRouterPancake, - ISwapRouterPancakeInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "path", - type: "bytes", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMinimum", - type: "uint256", - }, - ], - internalType: "struct ISwapRouterPancake.ExactInputParams", - name: "params", - type: "tuple", - }, - ], - name: "exactInput", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "address", - name: "tokenOut", - type: "address", - }, - { - internalType: "uint24", - name: "fee", - type: "uint24", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMinimum", - type: "uint256", - }, - { - internalType: "uint160", - name: "sqrtPriceLimitX96", - type: "uint160", - }, - ], - internalType: "struct ISwapRouterPancake.ExactInputSingleParams", - name: "params", - type: "tuple", - }, - ], - name: "exactInputSingle", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "int256", - name: "amount0Delta", - type: "int256", - }, - { - internalType: "int256", - name: "amount1Delta", - type: "int256", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "uniswapV3SwapCallback", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ISwapRouterPancake__factory { - static readonly abi = _abi; - static createInterface(): ISwapRouterPancakeInterface { - return new utils.Interface(_abi) as ISwapRouterPancakeInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ISwapRouterPancake { - return new Contract(address, _abi, signerOrProvider) as ISwapRouterPancake; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9__factory.ts deleted file mode 100644 index b91d6b2c1..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9__factory.ts +++ /dev/null @@ -1,36 +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 { - WETH9, - WETH9Interface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9"; - -const _abi = [ - { - inputs: [ - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class WETH9__factory { - static readonly abi = _abi; - static createInterface(): WETH9Interface { - return new utils.Interface(_abi) as WETH9Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): WETH9 { - return new Contract(address, _abi, signerOrProvider) as WETH9; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3__factory.ts deleted file mode 100644 index 9e2e8ce79..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3__factory.ts +++ /dev/null @@ -1,462 +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 { - ZetaTokenConsumerPancakeV3, - ZetaTokenConsumerPancakeV3Interface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaToken_", - type: "address", - }, - { - internalType: "address", - name: "pancakeV3Router_", - type: "address", - }, - { - internalType: "address", - name: "uniswapV3Factory_", - type: "address", - }, - { - internalType: "address", - name: "WETH9Address_", - type: "address", - }, - { - internalType: "uint24", - name: "zetaPoolFee_", - type: "uint24", - }, - { - internalType: "uint24", - name: "tokenPoolFee_", - type: "uint24", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "EthExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "TokenExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForEth", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForToken", - type: "event", - }, - { - inputs: [], - name: "WETH9Address", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getEthFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "outputToken", - type: "address", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getTokenFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - ], - name: "getZetaFromEth", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "inputToken", - type: "address", - }, - { - internalType: "uint256", - name: "inputTokenAmount", - type: "uint256", - }, - ], - name: "getZetaFromToken", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "hasZetaLiquidity", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pancakeV3Router", - outputs: [ - { - internalType: "contract ISwapRouterPancake", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tokenPoolFee", - outputs: [ - { - internalType: "uint24", - name: "", - type: "uint24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "uniswapV3Factory", - outputs: [ - { - internalType: "contract IUniswapV3Factory", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaPoolFee", - outputs: [ - { - internalType: "uint24", - name: "", - type: "uint24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x6101406040523480156200001257600080fd5b506040516200288c3803806200288c83398181016040528101906200003891906200028a565b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161480620000a05750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b80620000d85750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b80620001105750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1562000148576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508473ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1660601b815250508373ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508162ffffff1660808162ffffff1660e81b815250508062ffffff1660a08162ffffff1660e81b81525050505050505050620003a2565b6000815190506200026d816200036e565b92915050565b600081519050620002848162000388565b92915050565b60008060008060008060c08789031215620002aa57620002a962000369565b5b6000620002ba89828a016200025c565b9650506020620002cd89828a016200025c565b9550506040620002e089828a016200025c565b9450506060620002f389828a016200025c565b93505060806200030689828a0162000273565b92505060a06200031989828a0162000273565b9150509295509295509295565b600062000333826200033a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b600080fd5b620003798162000326565b81146200038557600080fd5b50565b62000393816200035a565b81146200039f57600080fd5b50565b60805160e81c60a05160e81c60c05160601c60e05160601c6101005160601c6101205160601c6123b6620004d660003960008181610d340152610d7f01526000818161045c0152818161067c015281816107a8015281816109b401528181610b13015281816110f80152818161124401526113530152600081816103ae0152818161054e015281816107350152818161096a015281816109d601528181610a2901528181610ddc015281816110ae0152818161111a015261116d015260008181610372015281816106f301528181610a6501528181610bc001528181610dbb015281816111af01526113770152600081816106d201528181610d5801526111d00152600081816103ea015281816107140152818161089d01528181610aa101528181610dfd015261118e01526123b66000f3fe6080604052600436106100a05760003560e01c80635b549182116100645780635b549182146101ac5780635d9dfdde146101d757806380801f8414610202578063a53fb10b1461022d578063c27745dd1461026a578063c469cf1414610295576100a7565b8063013b2ff8146100ac57806321e093b1146100dc5780632405620a146101075780633cbd70051461014457806354c49a2a1461016f576100a7565b366100a757005b600080fd5b6100c660048036038101906100c191906118c0565b6102c0565b6040516100d39190612030565b60405180910390f35b3480156100e857600080fd5b506100f161054c565b6040516100fe9190611dd3565b60405180910390f35b34801561011357600080fd5b5061012e60048036038101906101299190611900565b610570565b60405161013b9190612030565b60405180910390f35b34801561015057600080fd5b5061015961089b565b6040516101669190612015565b60405180910390f35b34801561017b57600080fd5b5061019660048036038101906101919190611967565b6108bf565b6040516101a39190612030565b60405180910390f35b3480156101b857600080fd5b506101c1610d32565b6040516101ce9190611f1b565b60405180910390f35b3480156101e357600080fd5b506101ec610d56565b6040516101f99190612015565b60405180910390f35b34801561020e57600080fd5b50610217610d7a565b6040516102249190611ee5565b60405180910390f35b34801561023957600080fd5b50610254600480360381019061024f9190611900565b610f6b565b6040516102619190612030565b60405180910390f35b34801561027657600080fd5b5061027f611351565b60405161028c9190611f00565b60405180910390f35b3480156102a157600080fd5b506102aa611375565b6040516102b79190611dd3565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610328576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000341415610363576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518060e001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001348152602001848152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166304e45aaf34846040518363ffffffff1660e01b81526004016104b49190611ffa565b6020604051808303818588803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105069190611a14565b90507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161053992919061204b565b60405180910390a1809250505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806105d85750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561060f576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561064a576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106773330848673ffffffffffffffffffffffffffffffffffffffff16611399909392919063ffffffff16565b6106c27f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166114229092919063ffffffff16565b60006040518060800160405280857f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000604051602001610768959493929190611d48565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b858183f836040518263ffffffff1660e01b81526004016107ff9190611fd8565b602060405180830381600087803b15801561081957600080fd5b505af115801561082d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108519190611a14565b90507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f85858360405161088693929190611eae565b60405180910390a18092505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610927576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610962576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109af3330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611399909392919063ffffffff16565b610a1a7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166114229092919063ffffffff16565b60006040518060e001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff168152602001848152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166304e45aaf836040518263ffffffff1660e01b8152600401610b6a9190611ffa565b602060405180830381600087803b158015610b8457600080fd5b505af1158015610b98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bbc9190611a14565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610c179190612030565b600060405180830381600087803b158015610c3157600080fd5b505af1158015610c45573d6000803e3d6000fd5b505050507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8482604051610c7a92919061204b565b60405180910390a160008673ffffffffffffffffffffffffffffffffffffffff1682604051610ca890611dbe565b60006040518083038185875af1925050503d8060008114610ce5576040519150601f19603f3d011682016040523d82523d6000602084013e610cea565b606091505b5050905080610d25576040517f3794aeaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8193505050509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631698ee827f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518463ffffffff1660e01b8152600401610e3a93929190611e17565b60206040518083038186803b158015610e5257600080fd5b505afa158015610e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8a9190611893565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ecb576000915050610f68565b600081905060008173ffffffffffffffffffffffffffffffffffffffff16631a6865026040518163ffffffff1660e01b815260040160206040518083038186803b158015610f1857600080fd5b505afa158015610f2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5091906119e7565b6fffffffffffffffffffffffffffffffff1611925050505b90565b60008060009054906101000a900460ff1615610fb3576040517f29f745a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110345750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561106b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156110a6576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110f33330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611399909392919063ffffffff16565b61115e7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166114229092919063ffffffff16565b600060405180608001604052807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089604051602001611204959493929190611d48565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b858183f836040518263ffffffff1660e01b815260040161129b9190611fd8565b602060405180830381600087803b1580156112b557600080fd5b505af11580156112c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ed9190611a14565b90507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b85858360405161132293929190611eae565b60405180910390a1809250505060008060006101000a81548160ff021916908315150217905550949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b61141c846323b872dd60e01b8585856040516024016113ba93929190611e4e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611580565b50505050565b60008114806114bb575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401611469929190611dee565b60206040518083038186803b15801561148157600080fd5b505afa158015611495573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b99190611a14565b145b6114fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f190611fb8565b60405180910390fd5b61157b8363095ea7b360e01b8484604051602401611519929190611e85565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611580565b505050565b60006115e2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116479092919063ffffffff16565b9050600081511115611642578080602001905181019061160291906119ba565b611641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163890611f98565b60405180910390fd5b5b505050565b6060611656848460008561165f565b90509392505050565b6060824710156116a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169b90611f58565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116cd9190611da7565b60006040518083038185875af1925050503d806000811461170a576040519150601f19603f3d011682016040523d82523d6000602084013e61170f565b606091505b50915091506117208783838761172c565b92505050949350505050565b6060831561178f5760008351141561178757611747856117a2565b611786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177d90611f78565b60405180910390fd5b5b82905061179a565b61179983836117c5565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156117d85781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c9190611f36565b60405180910390fd5b60008135905061182481612324565b92915050565b60008151905061183981612324565b92915050565b60008151905061184e8161233b565b92915050565b60008151905061186381612352565b92915050565b60008135905061187881612369565b92915050565b60008151905061188d81612369565b92915050565b6000602082840312156118a9576118a86121db565b5b60006118b78482850161182a565b91505092915050565b600080604083850312156118d7576118d66121db565b5b60006118e585828601611815565b92505060206118f685828601611869565b9150509250929050565b6000806000806080858703121561191a576119196121db565b5b600061192887828801611815565b945050602061193987828801611869565b935050604061194a87828801611815565b925050606061195b87828801611869565b91505092959194509250565b6000806000606084860312156119805761197f6121db565b5b600061198e86828701611815565b935050602061199f86828701611869565b92505060406119b086828701611869565b9150509250925092565b6000602082840312156119d0576119cf6121db565b5b60006119de8482850161183f565b91505092915050565b6000602082840312156119fd576119fc6121db565b5b6000611a0b84828501611854565b91505092915050565b600060208284031215611a2a57611a296121db565b5b6000611a388482850161187e565b91505092915050565b611a4a816120b7565b82525050565b611a59816120b7565b82525050565b611a70611a6b826120b7565b6121a5565b82525050565b611a7f816120c9565b82525050565b6000611a9082612074565b611a9a818561208a565b9350611aaa818560208601612172565b611ab3816121e0565b840191505092915050565b6000611ac982612074565b611ad3818561209b565b9350611ae3818560208601612172565b80840191505092915050565b611af88161212a565b82525050565b611b078161213c565b82525050565b6000611b188261207f565b611b2281856120a6565b9350611b32818560208601612172565b611b3b816121e0565b840191505092915050565b6000611b536026836120a6565b9150611b5e8261220b565b604082019050919050565b6000611b7660008361209b565b9150611b818261225a565b600082019050919050565b6000611b99601d836120a6565b9150611ba48261225d565b602082019050919050565b6000611bbc602a836120a6565b9150611bc782612286565b604082019050919050565b6000611bdf6036836120a6565b9150611bea826122d5565b604082019050919050565b60006080830160008301518482036000860152611c128282611a85565b9150506020830151611c276020860182611a41565b506040830151611c3a6040860182611d2a565b506060830151611c4d6060860182611d2a565b508091505092915050565b60e082016000820151611c6e6000850182611a41565b506020820151611c816020850182611a41565b506040820151611c946040850182611cf5565b506060820151611ca76060850182611a41565b506080820151611cba6080850182611d2a565b5060a0820151611ccd60a0850182611d2a565b5060c0820151611ce060c0850182611ce6565b50505050565b611cef816120f1565b82525050565b611cfe81612111565b82525050565b611d0d81612111565b82525050565b611d24611d1f82612111565b6121c9565b82525050565b611d3381612120565b82525050565b611d4281612120565b82525050565b6000611d548288611a5f565b601482019150611d648287611d13565b600382019150611d748286611a5f565b601482019150611d848285611d13565b600382019150611d948284611a5f565b6014820191508190509695505050505050565b6000611db38284611abe565b915081905092915050565b6000611dc982611b69565b9150819050919050565b6000602082019050611de86000830184611a50565b92915050565b6000604082019050611e036000830185611a50565b611e106020830184611a50565b9392505050565b6000606082019050611e2c6000830186611a50565b611e396020830185611a50565b611e466040830184611d04565b949350505050565b6000606082019050611e636000830186611a50565b611e706020830185611a50565b611e7d6040830184611d39565b949350505050565b6000604082019050611e9a6000830185611a50565b611ea76020830184611d39565b9392505050565b6000606082019050611ec36000830186611a50565b611ed06020830185611d39565b611edd6040830184611d39565b949350505050565b6000602082019050611efa6000830184611a76565b92915050565b6000602082019050611f156000830184611aef565b92915050565b6000602082019050611f306000830184611afe565b92915050565b60006020820190508181036000830152611f508184611b0d565b905092915050565b60006020820190508181036000830152611f7181611b46565b9050919050565b60006020820190508181036000830152611f9181611b8c565b9050919050565b60006020820190508181036000830152611fb181611baf565b9050919050565b60006020820190508181036000830152611fd181611bd2565b9050919050565b60006020820190508181036000830152611ff28184611bf5565b905092915050565b600060e08201905061200f6000830184611c58565b92915050565b600060208201905061202a6000830184611d04565b92915050565b60006020820190506120456000830184611d39565b92915050565b60006040820190506120606000830185611d39565b61206d6020830184611d39565b9392505050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006120c2826120f1565b9050919050565b60008115159050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b60006121358261214e565b9050919050565b60006121478261214e565b9050919050565b600061215982612160565b9050919050565b600061216b826120f1565b9050919050565b60005b83811015612190578082015181840152602081019050612175565b8381111561219f576000848401525b50505050565b60006121b0826121b7565b9050919050565b60006121c2826121fe565b9050919050565b60006121d4826121f1565b9050919050565b600080fd5b6000601f19601f8301169050919050565b60008160e81b9050919050565b60008160601b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b61232d816120b7565b811461233857600080fd5b50565b612344816120c9565b811461234f57600080fd5b50565b61235b816120d5565b811461236657600080fd5b50565b61237281612120565b811461237d57600080fd5b5056fea26469706673582212208a18b8a2abc958aa0cad934a5005344d1b05623bd9c3bfa606e20b2e17df210364736f6c63430008070033"; - -type ZetaTokenConsumerPancakeV3ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaTokenConsumerPancakeV3ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaTokenConsumerPancakeV3__factory extends ContractFactory { - constructor(...args: ZetaTokenConsumerPancakeV3ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaToken_: PromiseOrValue, - pancakeV3Router_: PromiseOrValue, - uniswapV3Factory_: PromiseOrValue, - WETH9Address_: PromiseOrValue, - zetaPoolFee_: PromiseOrValue, - tokenPoolFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaToken_, - pancakeV3Router_, - uniswapV3Factory_, - WETH9Address_, - zetaPoolFee_, - tokenPoolFee_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaToken_: PromiseOrValue, - pancakeV3Router_: PromiseOrValue, - uniswapV3Factory_: PromiseOrValue, - WETH9Address_: PromiseOrValue, - zetaPoolFee_: PromiseOrValue, - tokenPoolFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaToken_, - pancakeV3Router_, - uniswapV3Factory_, - WETH9Address_, - zetaPoolFee_, - tokenPoolFee_, - overrides || {} - ); - } - override attach(address: string): ZetaTokenConsumerPancakeV3 { - return super.attach(address) as ZetaTokenConsumerPancakeV3; - } - override connect(signer: Signer): ZetaTokenConsumerPancakeV3__factory { - return super.connect(signer) as ZetaTokenConsumerPancakeV3__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerPancakeV3Interface { - return new utils.Interface(_abi) as ZetaTokenConsumerPancakeV3Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerPancakeV3 { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerPancakeV3; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors__factory.ts deleted file mode 100644 index f207c3c6e..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors__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 { - ZetaTokenConsumerUniV3Errors, - ZetaTokenConsumerUniV3ErrorsInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors"; - -const _abi = [ - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, -] as const; - -export class ZetaTokenConsumerUniV3Errors__factory { - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerUniV3ErrorsInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerUniV3ErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerUniV3Errors { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerUniV3Errors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts deleted file mode 100644 index e4bff3ee8..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ISwapRouterPancake__factory } from "./ISwapRouterPancake__factory"; -export { WETH9__factory } from "./WETH9__factory"; -export { ZetaTokenConsumerPancakeV3__factory } from "./ZetaTokenConsumerPancakeV3__factory"; -export { ZetaTokenConsumerUniV3Errors__factory } from "./ZetaTokenConsumerUniV3Errors__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9__factory.ts deleted file mode 100644 index 62ea49c4e..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9__factory.ts +++ /dev/null @@ -1,74 +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 { - WETH9, - WETH9Interface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/WETH9"; - -const _abi = [ - { - inputs: [], - name: "deposit", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - ], - name: "depositTo", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address payable", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "withdrawTo", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class WETH9__factory { - static readonly abi = _abi; - static createInterface(): WETH9Interface { - return new utils.Interface(_abi) as WETH9Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): WETH9 { - return new Contract(address, _abi, signerOrProvider) as WETH9; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors__factory.ts deleted file mode 100644 index 9febf3649..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors__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 { - ZetaTokenConsumerTridentErrors, - ZetaTokenConsumerTridentErrorsInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors"; - -const _abi = [ - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, -] as const; - -export class ZetaTokenConsumerTridentErrors__factory { - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerTridentErrorsInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerTridentErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerTridentErrors { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerTridentErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident__factory.ts deleted file mode 100644 index f12b55c0f..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident__factory.ts +++ /dev/null @@ -1,398 +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 { - ZetaTokenConsumerTrident, - ZetaTokenConsumerTridentInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaToken_", - type: "address", - }, - { - internalType: "address", - name: "uniswapV3Router_", - type: "address", - }, - { - internalType: "address", - name: "WETH9Address_", - type: "address", - }, - { - internalType: "address", - name: "poolFactory_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "EthExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "TokenExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForEth", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForToken", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getEthFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "outputToken", - type: "address", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getTokenFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - ], - name: "getZetaFromEth", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "inputToken", - type: "address", - }, - { - internalType: "uint256", - name: "inputTokenAmount", - type: "uint256", - }, - ], - name: "getZetaFromToken", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "hasZetaLiquidity", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "poolFactory", - outputs: [ - { - internalType: "contract ConcentratedLiquidityPoolFactory", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tridentRouter", - outputs: [ - { - internalType: "contract IPoolRouter", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x6101006040523480156200001257600080fd5b5060405162002b5a38038062002b5a833981810160405281019062000038919062000245565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000a05750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000d85750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80620001105750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000148576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505050506200030a565b6000815190506200023f81620002f0565b92915050565b60008060008060808587031215620002625762000261620002eb565b5b600062000272878288016200022e565b945050602062000285878288016200022e565b935050604062000298878288016200022e565b9250506060620002ab878288016200022e565b91505092959194509250565b6000620002c482620002cb565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620002fb81620002b7565b81146200030757600080fd5b50565b60805160601c60a05160601c60c05160601c60e05160601c6127466200041460003960008181610316015281816107000152818161080c01528181610b4201528181610d14015281816111e301526112cf0152600081816104620152818161068501528181610a4801528181610c5901528181610e7f01528181610f7401528181611128015261152b0152600081816102ea01528181610557015281816107dc01528181610c0f01528181610c7b01528181610cc701528181610dd9015281816110de0152818161114a0152818161119601526114b60152600081816102c9015281816106d4015281816107bb01528181610ce8015281816111b7015261129e01526127466000f3fe60806040526004361061007f5760003560e01c806354c49a2a1161004e57806354c49a2a1461014e57806364b5528a1461018b57806380801f84146101b6578063a53fb10b146101e157610086565b8063013b2ff81461008b57806321e093b1146100bb5780632405620a146100e65780634219dc401461012357610086565b3661008657005b600080fd5b6100a560048036038101906100a09190611c10565b61021e565b6040516100b2919061231a565b60405180910390f35b3480156100c757600080fd5b506100d0610555565b6040516100dd91906120ca565b60405180910390f35b3480156100f257600080fd5b5061010d60048036038101906101089190611c50565b610579565b60405161011a919061231a565b60405180910390f35b34801561012f57600080fd5b50610138610b40565b6040516101459190612205565b60405180910390f35b34801561015a57600080fd5b5061017560048036038101906101709190611cb7565b610b64565b604051610182919061231a565b60405180910390f35b34801561019757600080fd5b506101a0610f72565b6040516101ad9190612220565b60405180910390f35b3480156101c257600080fd5b506101cb610f96565b6040516101d891906121ea565b60405180910390f35b3480156101ed57600080fd5b5061020860048036038101906102039190611c50565b610f9b565b604051610215919061231a565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610286576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003414156102c1576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061030e7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b8152600401610375949392919061210e565b60006040518083038186803b15801561038d57600080fd5b505afa1580156103a1573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906103ca9190611d0a565b905060006040518060c00160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020013481526020018781526020018360008151811061041657610415612532565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020018873ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c07f5c3234846040518363ffffffff1660e01b81526004016104ba91906122ff565b6020604051808303818588803b1580156104d357600080fd5b505af11580156104e7573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061050c9190611d80565b90507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161053f929190612335565b60405180910390a1809550505050505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806105e15750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610618576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610653576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106803330848673ffffffffffffffffffffffffffffffffffffffff1661168d909392919063ffffffff16565b6106cb7f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166117169092919063ffffffff16565b6000806106f8857f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b815260040161075f949392919061210e565b60006040518083038186803b15801561077757600080fd5b505afa15801561078b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906107b49190611d0a565b90506108007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b809350819450505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128585600060016040518563ffffffff1660e01b815260040161086b949392919061210e565b60006040518083038186803b15801561088357600080fd5b505afa158015610897573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906108c09190611d0a565b90506000600267ffffffffffffffff8111156108df576108de612561565b5b60405190808252806020026020018201604052801561090d5781602001602082028036833780820191505090505b5090508260008151811061092457610923612532565b5b6020026020010151816000815181106109405761093f612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508160008151811061098e5761098d612532565b5b6020026020010151816001815181106109aa576109a9612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060006040518060c001604052808a73ffffffffffffffffffffffffffffffffffffffff1681526020018981526020018b81526020018381526020018c73ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663363a9dba836040518263ffffffff1660e01b8152600401610a9f91906122dd565b602060405180830381600087803b158015610ab957600080fd5b505af1158015610acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af19190611d80565b90507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f8a8a83604051610b26939291906121b3565b60405180910390a180975050505050505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610bcc576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610c07576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c543330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661168d909392919063ffffffff16565b610cbf7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166117169092919063ffffffff16565b600080610d0c7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b8152600401610d73949392919061210e565b60006040518083038186803b158015610d8b57600080fd5b505afa158015610d9f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610dc89190611d0a565b905060006040518060c001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16815260200187815260200188815260200183600081518110610e3357610e32612532565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1681526020018973ffffffffffffffffffffffffffffffffffffffff16815260200160011515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c07f5c32836040518263ffffffff1660e01b8152600401610ed691906122ff565b602060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f289190611d80565b90507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8782604051610f5b929190612335565b60405180910390a180955050505050509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600090565b60008060009054906101000a900460ff1615610fe3576040517f29f745a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110645750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1561109b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156110d6576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111233330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661168d909392919063ffffffff16565b61118e7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166117169092919063ffffffff16565b6000806111db7f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061163d565b9150915060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128484600060016040518563ffffffff1660e01b8152600401611242949392919061210e565b60006040518083038186803b15801561125a57600080fd5b505afa15801561126e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906112979190611d0a565b90506112c37f00000000000000000000000000000000000000000000000000000000000000008761163d565b809350819450505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166371a258128585600060016040518563ffffffff1660e01b815260040161132e949392919061210e565b60006040518083038186803b15801561134657600080fd5b505afa15801561135a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906113839190611d0a565b90506000600267ffffffffffffffff8111156113a2576113a1612561565b5b6040519080825280602002602001820160405280156113d05781602001602082028036833780820191505090505b509050826000815181106113e7576113e6612532565b5b60200260200101518160008151811061140357611402612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508160008151811061145157611450612532565b5b60200260200101518160018151811061146d5761146c612532565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060006040518060c001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020018981526020018b81526020018381526020018c73ffffffffffffffffffffffffffffffffffffffff16815260200160001515815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663363a9dba836040518263ffffffff1660e01b815260040161158291906122dd565b602060405180830381600087803b15801561159c57600080fd5b505af11580156115b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d49190611d80565b90507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b8a8a83604051611609939291906121b3565b60405180910390a18097505050505050505060008060006101000a81548160ff021916908315150217905550949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16101561167f57838391509150611686565b8284915091505b9250929050565b611710846323b872dd60e01b8585856040516024016116ae93929190612153565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611874565b50505050565b60008114806117af575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b815260040161175d9291906120e5565b60206040518083038186803b15801561177557600080fd5b505afa158015611789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ad9190611d80565b145b6117ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e5906122bd565b60405180910390fd5b61186f8363095ea7b360e01b848460405160240161180d92919061218a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611874565b505050565b60006118d6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661193b9092919063ffffffff16565b905060008151111561193657808060200190518101906118f69190611d53565b611935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192c9061229d565b60405180910390fd5b5b505050565b606061194a8484600085611953565b90509392505050565b606082471015611998576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198f9061225d565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516119c191906120b3565b60006040518083038185875af1925050503d80600081146119fe576040519150601f19603f3d011682016040523d82523d6000602084013e611a03565b606091505b5091509150611a1487838387611a20565b92505050949350505050565b60608315611a8357600083511415611a7b57611a3b85611a96565b611a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a719061227d565b60405180910390fd5b5b829050611a8e565b611a8d8383611ab9565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611acc5781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b00919061223b565b60405180910390fd5b6000611b1c611b1784612383565b61235e565b90508083825260208201905082856020860282011115611b3f57611b3e612595565b5b60005b85811015611b6f5781611b558882611b8e565b845260208401935060208301925050600181019050611b42565b5050509392505050565b600081359050611b88816126cb565b92915050565b600081519050611b9d816126cb565b92915050565b600082601f830112611bb857611bb7612590565b5b8151611bc8848260208601611b09565b91505092915050565b600081519050611be0816126e2565b92915050565b600081359050611bf5816126f9565b92915050565b600081519050611c0a816126f9565b92915050565b60008060408385031215611c2757611c2661259f565b5b6000611c3585828601611b79565b9250506020611c4685828601611be6565b9150509250929050565b60008060008060808587031215611c6a57611c6961259f565b5b6000611c7887828801611b79565b9450506020611c8987828801611be6565b9350506040611c9a87828801611b79565b9250506060611cab87828801611be6565b91505092959194509250565b600080600060608486031215611cd057611ccf61259f565b5b6000611cde86828701611b79565b9350506020611cef86828701611be6565b9250506040611d0086828701611be6565b9150509250925092565b600060208284031215611d2057611d1f61259f565b5b600082015167ffffffffffffffff811115611d3e57611d3d61259a565b5b611d4a84828501611ba3565b91505092915050565b600060208284031215611d6957611d6861259f565b5b6000611d7784828501611bd1565b91505092915050565b600060208284031215611d9657611d9561259f565b5b6000611da484828501611bfb565b91505092915050565b6000611db98383611dc5565b60208301905092915050565b611dce8161241a565b82525050565b611ddd8161241a565b82525050565b6000611dee826123bf565b611df881856123ed565b9350611e03836123af565b8060005b83811015611e34578151611e1b8882611dad565b9750611e26836123e0565b925050600181019050611e07565b5085935050505092915050565b611e4a8161242c565b82525050565b611e598161242c565b82525050565b6000611e6a826123ca565b611e7481856123fe565b9350611e848185602086016124ce565b80840191505092915050565b611e9981612462565b82525050565b611ea881612474565b82525050565b611eb781612486565b82525050565b611ec681612498565b82525050565b6000611ed7826123d5565b611ee18185612409565b9350611ef18185602086016124ce565b611efa816125a4565b840191505092915050565b6000611f12602683612409565b9150611f1d826125b5565b604082019050919050565b6000611f35601d83612409565b9150611f4082612604565b602082019050919050565b6000611f58602a83612409565b9150611f638261262d565b604082019050919050565b6000611f7b603683612409565b9150611f868261267c565b604082019050919050565b600060c083016000830151611fa96000860182611dc5565b506020830151611fbc6020860182612095565b506040830151611fcf6040860182612095565b5060608301518482036060860152611fe78282611de3565b9150506080830151611ffc6080860182611dc5565b5060a083015161200f60a0860182611e41565b508091505092915050565b60c0820160008201516120306000850182611dc5565b5060208201516120436020850182612095565b5060408201516120566040850182612095565b5060608201516120696060850182611dc5565b50608082015161207c6080850182611dc5565b5060a082015161208f60a0850182611e41565b50505050565b61209e81612458565b82525050565b6120ad81612458565b82525050565b60006120bf8284611e5f565b915081905092915050565b60006020820190506120df6000830184611dd4565b92915050565b60006040820190506120fa6000830185611dd4565b6121076020830184611dd4565b9392505050565b60006080820190506121236000830187611dd4565b6121306020830186611dd4565b61213d6040830185611eae565b61214a6060830184611ebd565b95945050505050565b60006060820190506121686000830186611dd4565b6121756020830185611dd4565b61218260408301846120a4565b949350505050565b600060408201905061219f6000830185611dd4565b6121ac60208301846120a4565b9392505050565b60006060820190506121c86000830186611dd4565b6121d560208301856120a4565b6121e260408301846120a4565b949350505050565b60006020820190506121ff6000830184611e50565b92915050565b600060208201905061221a6000830184611e90565b92915050565b60006020820190506122356000830184611e9f565b92915050565b600060208201905081810360008301526122558184611ecc565b905092915050565b6000602082019050818103600083015261227681611f05565b9050919050565b6000602082019050818103600083015261229681611f28565b9050919050565b600060208201905081810360008301526122b681611f4b565b9050919050565b600060208201905081810360008301526122d681611f6e565b9050919050565b600060208201905081810360008301526122f78184611f91565b905092915050565b600060c082019050612314600083018461201a565b92915050565b600060208201905061232f60008301846120a4565b92915050565b600060408201905061234a60008301856120a4565b61235760208301846120a4565b9392505050565b6000612368612379565b90506123748282612501565b919050565b6000604051905090565b600067ffffffffffffffff82111561239e5761239d612561565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061242582612438565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061246d826124aa565b9050919050565b600061247f826124aa565b9050919050565b600061249182612458565b9050919050565b60006124a382612458565b9050919050565b60006124b5826124bc565b9050919050565b60006124c782612438565b9050919050565b60005b838110156124ec5780820151818401526020810190506124d1565b838111156124fb576000848401525b50505050565b61250a826125a4565b810181811067ffffffffffffffff8211171561252957612528612561565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6126d48161241a565b81146126df57600080fd5b50565b6126eb8161242c565b81146126f657600080fd5b50565b61270281612458565b811461270d57600080fd5b5056fea264697066735822122052bfd21f617a098a8e9f7179f87b0511ff7b45f29043d147ad39b847dabfaf1364736f6c63430008070033"; - -type ZetaTokenConsumerTridentConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaTokenConsumerTridentConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaTokenConsumerTrident__factory extends ContractFactory { - constructor(...args: ZetaTokenConsumerTridentConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaToken_: PromiseOrValue, - uniswapV3Router_: PromiseOrValue, - WETH9Address_: PromiseOrValue, - poolFactory_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaToken_, - uniswapV3Router_, - WETH9Address_, - poolFactory_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaToken_: PromiseOrValue, - uniswapV3Router_: PromiseOrValue, - WETH9Address_: PromiseOrValue, - poolFactory_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaToken_, - uniswapV3Router_, - WETH9Address_, - poolFactory_, - overrides || {} - ); - } - override attach(address: string): ZetaTokenConsumerTrident { - return super.attach(address) as ZetaTokenConsumerTrident; - } - override connect(signer: Signer): ZetaTokenConsumerTrident__factory { - return super.connect(signer) as ZetaTokenConsumerTrident__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerTridentInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerTridentInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerTrident { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerTrident; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts deleted file mode 100644 index aed02e471..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { WETH9__factory } from "./WETH9__factory"; -export { ZetaTokenConsumerTrident__factory } from "./ZetaTokenConsumerTrident__factory"; -export { ZetaTokenConsumerTridentErrors__factory } from "./ZetaTokenConsumerTridentErrors__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors__factory.ts deleted file mode 100644 index f6e521370..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors__factory.ts +++ /dev/null @@ -1,35 +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 { - ZetaTokenConsumerUniV2Errors, - ZetaTokenConsumerUniV2ErrorsInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors"; - -const _abi = [ - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, -] as const; - -export class ZetaTokenConsumerUniV2Errors__factory { - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerUniV2ErrorsInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerUniV2ErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerUniV2Errors { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerUniV2Errors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2__factory.ts deleted file mode 100644 index a525f75c4..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2__factory.ts +++ /dev/null @@ -1,340 +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 { - ZetaTokenConsumerUniV2, - ZetaTokenConsumerUniV2Interface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaToken_", - type: "address", - }, - { - internalType: "address", - name: "uniswapV2Router_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "EthExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "TokenExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForEth", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForToken", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getEthFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "outputToken", - type: "address", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getTokenFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - ], - name: "getZetaFromEth", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "inputToken", - type: "address", - }, - { - internalType: "uint256", - name: "inputTokenAmount", - type: "uint256", - }, - ], - name: "getZetaFromToken", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "hasZetaLiquidity", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60e06040523480156200001157600080fd5b50604051620029a0380380620029a083398181016040528101906200003791906200024e565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806200009f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15620000d7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200018c57600080fd5b505afa158015620001a1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c791906200021c565b73ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620002e8565b6000815190506200021681620002ce565b92915050565b600060208284031215620002355762000234620002c9565b5b6000620002458482850162000205565b91505092915050565b60008060408385031215620002685762000267620002c9565b5b6000620002788582860162000205565b92505060206200028b8582860162000205565b9150509250929050565b6000620002a282620002a9565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620002d98162000295565b8114620002e557600080fd5b50565b60805160601c60a05160601c60c05160601c6125c9620003d76000396000818161036a015281816105ce0152818161091701528181610b4501528181610cdb01528181610f400152818161115501526114be0152600081816102f9015281816104a001528181610727015281816108a501528181610afb01528181610b6701528181610bfb01528181610ed10152818161110b015281816111770152818161125f015261138e01526000818161028a01528181610618015281816106b80152818161083601528181610c6a01528181610e62015281816111bf015281816112ce01526113fd01526125c96000f3fe6080604052600436106100555760003560e01c8063013b2ff81461005a57806321e093b11461008a5780632405620a146100b557806354c49a2a146100f257806380801f841461012f578063a53fb10b1461015a575b600080fd5b610074600480360381019061006f9190611b65565b610197565b6040516100819190612098565b60405180910390f35b34801561009657600080fd5b5061009f61049e565b6040516100ac9190611ed0565b60405180910390f35b3480156100c157600080fd5b506100dc60048036038101906100d79190611ba5565b6104c2565b6040516100e99190612098565b60405180910390f35b3480156100fe57600080fd5b5061011960048036038101906101149190611c0c565b610a50565b6040516101269190612098565b60405180910390f35b34801561013b57600080fd5b50610144610e11565b6040516101519190611fab565b60405180910390f35b34801561016657600080fd5b50610181600480360381019061017c9190611ba5565b611029565b60405161018e9190612098565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156101ff576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600034141561023a576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600267ffffffffffffffff811115610257576102566123e4565b5b6040519080825280602002602001820160405280156102855781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106102bd576102bc6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061032c5761032b6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637ff36ab53486858960c8426103b5919061223e565b6040518663ffffffff1660e01b81526004016103d494939291906120b3565b6000604051808303818588803b1580156103ed57600080fd5b505af1158015610401573d6000803e3d6000fd5b50505050506040513d6000823e3d601f19601f8201168201806040525081019061042b9190611c5f565b90506000816001845161043e9190612294565b8151811061044f5761044e6123b5565b5b602002602001015190507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161048a9291906120ff565b60405180910390a180935050505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061052a5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610561576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561059c576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105c93330848673ffffffffffffffffffffffffffffffffffffffff166115f7909392919063ffffffff16565b6106147f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166116809092919063ffffffff16565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561079957600267ffffffffffffffff811115610685576106846123e4565b5b6040519080825280602002602001820160405280156106b35781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106106eb576106ea6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061075a576107596123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610913565b600367ffffffffffffffff8111156107b4576107b36123e4565b5b6040519080825280602002602001820160405280156107e25781602001602082028036833780820191505090505b50905083816000815181106107fa576107f96123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610869576108686123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000000000000000000000000000000000000000000000816002815181106108d8576108d76123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c842610962919061223e565b6040518663ffffffff1660e01b8152600401610982959493929190612128565b600060405180830381600087803b15801561099c57600080fd5b505af11580156109b0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906109d99190611c5f565b9050600081600184516109ec9190612294565b815181106109fd576109fc6123b5565b5b602002602001015190507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f868683604051610a3a93929190611f74565b60405180910390a1809350505050949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610ab8576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610af3576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b403330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115f7909392919063ffffffff16565b610bab7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116809092919063ffffffff16565b6000600267ffffffffffffffff811115610bc857610bc76123e4565b5b604051908082528060200260200182016040528015610bf65781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610c2e57610c2d6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610c9d57610c9c6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318cbafe58587858a60c842610d26919061223e565b6040518663ffffffff1660e01b8152600401610d46959493929190612128565b600060405180830381600087803b158015610d6057600080fd5b505af1158015610d74573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610d9d9190611c5f565b905060008160018451610db09190612294565b81518110610dc157610dc06123b5565b5b602002602001015190507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8582604051610dfc9291906120ff565b60405180910390a18093505050509392505050565b600080600267ffffffffffffffff811115610e2f57610e2e6123e4565b5b604051908082528060200260200182016040528015610e5d5781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610e9557610e946123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610f0457610f036123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d06ca61f6001836040518363ffffffff1660e01b8152600401610f9a929190611fc6565b60006040518083038186803b158015610fb257600080fd5b505afa925050508015610fe857506040513d6000823e3d601f19601f82011682018060405250810190610fe59190611c5f565b60015b610ff6576000915050611026565b600081600184516110079190612294565b81518110611018576110176123b5565b5b602002602001015111925050505b90565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110915750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156110c8576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415611103576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6111503330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166115f7909392919063ffffffff16565b6111bb7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166116809092919063ffffffff16565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561134057600267ffffffffffffffff81111561122c5761122b6123e4565b5b60405190808252806020026020018201604052801561125a5781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110611292576112916123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110611301576113006123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506114ba565b600367ffffffffffffffff81111561135b5761135a6123e4565b5b6040519080825280602002602001820160405280156113895781602001602082028036833780820191505090505b5090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106113c1576113c06123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106114305761142f6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050838160028151811061147f5761147e6123b5565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250505b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c842611509919061223e565b6040518663ffffffff1660e01b8152600401611529959493929190612128565b600060405180830381600087803b15801561154357600080fd5b505af1158015611557573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906115809190611c5f565b9050600081600184516115939190612294565b815181106115a4576115a36123b5565b5b602002602001015190507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b8686836040516115e193929190611f74565b60405180910390a1809350505050949350505050565b61167a846323b872dd60e01b85858560405160240161161893929190611f14565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117de565b50505050565b6000811480611719575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016116c7929190611eeb565b60206040518083038186803b1580156116df57600080fd5b505afa1580156116f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117179190611cd5565b145b611758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174f90612078565b60405180910390fd5b6117d98363095ea7b360e01b8484604051602401611777929190611f4b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117de565b505050565b6000611840826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166118a59092919063ffffffff16565b90506000815111156118a057808060200190518101906118609190611ca8565b61189f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189690612058565b60405180910390fd5b5b505050565b60606118b484846000856118bd565b90509392505050565b606082471015611902576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f990612018565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161192b9190611eb9565b60006040518083038185875af1925050503d8060008114611968576040519150601f19603f3d011682016040523d82523d6000602084013e61196d565b606091505b509150915061197e8783838761198a565b92505050949350505050565b606083156119ed576000835114156119e5576119a585611a00565b6119e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119db90612038565b60405180910390fd5b5b8290506119f8565b6119f78383611a23565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600082511115611a365781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6a9190611ff6565b60405180910390fd5b6000611a86611a81846121a7565b612182565b90508083825260208201905082856020860282011115611aa957611aa8612418565b5b60005b85811015611ad95781611abf8882611b50565b845260208401935060208301925050600181019050611aac565b5050509392505050565b600081359050611af28161254e565b92915050565b600082601f830112611b0d57611b0c612413565b5b8151611b1d848260208601611a73565b91505092915050565b600081519050611b3581612565565b92915050565b600081359050611b4a8161257c565b92915050565b600081519050611b5f8161257c565b92915050565b60008060408385031215611b7c57611b7b612422565b5b6000611b8a85828601611ae3565b9250506020611b9b85828601611b3b565b9150509250929050565b60008060008060808587031215611bbf57611bbe612422565b5b6000611bcd87828801611ae3565b9450506020611bde87828801611b3b565b9350506040611bef87828801611ae3565b9250506060611c0087828801611b3b565b91505092959194509250565b600080600060608486031215611c2557611c24612422565b5b6000611c3386828701611ae3565b9350506020611c4486828701611b3b565b9250506040611c5586828701611b3b565b9150509250925092565b600060208284031215611c7557611c74612422565b5b600082015167ffffffffffffffff811115611c9357611c9261241d565b5b611c9f84828501611af8565b91505092915050565b600060208284031215611cbe57611cbd612422565b5b6000611ccc84828501611b26565b91505092915050565b600060208284031215611ceb57611cea612422565b5b6000611cf984828501611b50565b91505092915050565b6000611d0e8383611d1a565b60208301905092915050565b611d23816122c8565b82525050565b611d32816122c8565b82525050565b6000611d43826121e3565b611d4d8185612211565b9350611d58836121d3565b8060005b83811015611d89578151611d708882611d02565b9750611d7b83612204565b925050600181019050611d5c565b5085935050505092915050565b611d9f816122da565b82525050565b6000611db0826121ee565b611dba8185612222565b9350611dca818560208601612322565b80840191505092915050565b611ddf81612310565b82525050565b6000611df0826121f9565b611dfa818561222d565b9350611e0a818560208601612322565b611e1381612427565b840191505092915050565b6000611e2b60268361222d565b9150611e3682612438565b604082019050919050565b6000611e4e601d8361222d565b9150611e5982612487565b602082019050919050565b6000611e71602a8361222d565b9150611e7c826124b0565b604082019050919050565b6000611e9460368361222d565b9150611e9f826124ff565b604082019050919050565b611eb381612306565b82525050565b6000611ec58284611da5565b915081905092915050565b6000602082019050611ee56000830184611d29565b92915050565b6000604082019050611f006000830185611d29565b611f0d6020830184611d29565b9392505050565b6000606082019050611f296000830186611d29565b611f366020830185611d29565b611f436040830184611eaa565b949350505050565b6000604082019050611f606000830185611d29565b611f6d6020830184611eaa565b9392505050565b6000606082019050611f896000830186611d29565b611f966020830185611eaa565b611fa36040830184611eaa565b949350505050565b6000602082019050611fc06000830184611d96565b92915050565b6000604082019050611fdb6000830185611dd6565b8181036020830152611fed8184611d38565b90509392505050565b600060208201905081810360008301526120108184611de5565b905092915050565b6000602082019050818103600083015261203181611e1e565b9050919050565b6000602082019050818103600083015261205181611e41565b9050919050565b6000602082019050818103600083015261207181611e64565b9050919050565b6000602082019050818103600083015261209181611e87565b9050919050565b60006020820190506120ad6000830184611eaa565b92915050565b60006080820190506120c86000830187611eaa565b81810360208301526120da8186611d38565b90506120e96040830185611d29565b6120f66060830184611eaa565b95945050505050565b60006040820190506121146000830185611eaa565b6121216020830184611eaa565b9392505050565b600060a08201905061213d6000830188611eaa565b61214a6020830187611eaa565b818103604083015261215c8186611d38565b905061216b6060830185611d29565b6121786080830184611eaa565b9695505050505050565b600061218c61219d565b90506121988282612355565b919050565b6000604051905090565b600067ffffffffffffffff8211156121c2576121c16123e4565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600061224982612306565b915061225483612306565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561228957612288612386565b5b828201905092915050565b600061229f82612306565b91506122aa83612306565b9250828210156122bd576122bc612386565b5b828203905092915050565b60006122d3826122e6565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061231b82612306565b9050919050565b60005b83811015612340578082015181840152602081019050612325565b8381111561234f576000848401525b50505050565b61235e82612427565b810181811067ffffffffffffffff8211171561237d5761237c6123e4565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b612557816122c8565b811461256257600080fd5b50565b61256e816122da565b811461257957600080fd5b50565b61258581612306565b811461259057600080fd5b5056fea264697066735822122043c2ef06b0d58aa4604eef6078aa0a569cff03f21dd48c315ad501590326c57264736f6c63430008070033"; - -type ZetaTokenConsumerUniV2ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaTokenConsumerUniV2ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaTokenConsumerUniV2__factory extends ContractFactory { - constructor(...args: ZetaTokenConsumerUniV2ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaToken_: PromiseOrValue, - uniswapV2Router_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaToken_, - uniswapV2Router_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaToken_: PromiseOrValue, - uniswapV2Router_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaToken_, - uniswapV2Router_, - overrides || {} - ); - } - override attach(address: string): ZetaTokenConsumerUniV2 { - return super.attach(address) as ZetaTokenConsumerUniV2; - } - override connect(signer: Signer): ZetaTokenConsumerUniV2__factory { - return super.connect(signer) as ZetaTokenConsumerUniV2__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerUniV2Interface { - return new utils.Interface(_abi) as ZetaTokenConsumerUniV2Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerUniV2 { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerUniV2; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts deleted file mode 100644 index bff48c491..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaTokenConsumerUniV2__factory } from "./ZetaTokenConsumerUniV2__factory"; -export { ZetaTokenConsumerUniV2Errors__factory } from "./ZetaTokenConsumerUniV2Errors__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9__factory.ts deleted file mode 100644 index b77f4b0d4..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9__factory.ts +++ /dev/null @@ -1,36 +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 { - WETH9, - WETH9Interface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/WETH9"; - -const _abi = [ - { - inputs: [ - { - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class WETH9__factory { - static readonly abi = _abi; - static createInterface(): WETH9Interface { - return new utils.Interface(_abi) as WETH9Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): WETH9 { - return new Contract(address, _abi, signerOrProvider) as WETH9; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors__factory.ts deleted file mode 100644 index 51b88cd26..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors__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 { - ZetaTokenConsumerUniV3Errors, - ZetaTokenConsumerUniV3ErrorsInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3Errors"; - -const _abi = [ - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, -] as const; - -export class ZetaTokenConsumerUniV3Errors__factory { - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerUniV3ErrorsInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerUniV3ErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerUniV3Errors { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerUniV3Errors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3__factory.ts deleted file mode 100644 index 7e147c2bf..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3__factory.ts +++ /dev/null @@ -1,462 +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 { - ZetaTokenConsumerUniV3, - ZetaTokenConsumerUniV3Interface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaToken_", - type: "address", - }, - { - internalType: "address", - name: "uniswapV3Router_", - type: "address", - }, - { - internalType: "address", - name: "uniswapV3Factory_", - type: "address", - }, - { - internalType: "address", - name: "WETH9Address_", - type: "address", - }, - { - internalType: "uint24", - name: "zetaPoolFee_", - type: "uint24", - }, - { - internalType: "uint24", - name: "tokenPoolFee_", - type: "uint24", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "EthExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "TokenExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForEth", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForToken", - type: "event", - }, - { - inputs: [], - name: "WETH9Address", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getEthFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "outputToken", - type: "address", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getTokenFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - ], - name: "getZetaFromEth", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "inputToken", - type: "address", - }, - { - internalType: "uint256", - name: "inputTokenAmount", - type: "uint256", - }, - ], - name: "getZetaFromToken", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "hasZetaLiquidity", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tokenPoolFee", - outputs: [ - { - internalType: "uint24", - name: "", - type: "uint24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "uniswapV3Factory", - outputs: [ - { - internalType: "contract IUniswapV3Factory", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "uniswapV3Router", - outputs: [ - { - internalType: "contract ISwapRouter", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaPoolFee", - outputs: [ - { - internalType: "uint24", - name: "", - type: "uint24", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x6101406040523480156200001257600080fd5b50604051620029833803806200298383398181016040528101906200003891906200028a565b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161480620000a05750600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b80620000d85750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b80620001105750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b1562000148576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8573ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508473ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff1660601b815250508373ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff1660601b815250508273ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1660601b815250508162ffffff1660808162ffffff1660e81b815250508062ffffff1660a08162ffffff1660e81b81525050505050505050620003a2565b6000815190506200026d816200036e565b92915050565b600081519050620002848162000388565b92915050565b60008060008060008060c08789031215620002aa57620002a962000369565b5b6000620002ba89828a016200025c565b9650506020620002cd89828a016200025c565b9550506040620002e089828a016200025c565b9450506060620002f389828a016200025c565b93505060806200030689828a0162000273565b92505060a06200031989828a0162000273565b9150509295509295509295565b600062000333826200033a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b600080fd5b620003798162000326565b81146200038557600080fd5b50565b62000393816200035a565b81146200039f57600080fd5b50565b60805160e81c60a05160e81c60c05160601c60e05160601c6101005160601c6101205160601c6124ad620004d660003960008181610d900152610ddb01526000818161046f0152818161068f015281816107cd015281816108c2015281816109fd01528181610b6f0152818161115401526112b20152600081816103af0152818161056101528181610748015281816109b301528181610a1f01528181610a7301528181610e380152818161110a0152818161117601526111c90152600081816103730152818161070601528181610aaf01528181610c1c01528181610e170152818161120b01526113c10152600081816106e501528181610db4015261122c0152600081816103eb01528181610727015281816108e601528181610aeb01528181610e5901526111ea01526124ad6000f3fe6080604052600436106100a05760003560e01c806354c49a2a1161006457806354c49a2a1461019a5780635b549182146101d75780635d9dfdde1461020257806380801f841461022d578063a53fb10b14610258578063c469cf1414610295576100a7565b8063013b2ff8146100ac57806321e093b1146100dc5780632405620a146101075780632c76d7a6146101445780633cbd70051461016f576100a7565b366100a757005b600080fd5b6100c660048036038101906100c1919061190a565b6102c0565b6040516100d391906120a2565b60405180910390f35b3480156100e857600080fd5b506100f161055f565b6040516100fe9190611e44565b60405180910390f35b34801561011357600080fd5b5061012e6004803603810190610129919061194a565b610583565b60405161013b91906120a2565b60405180910390f35b34801561015057600080fd5b506101596108c0565b6040516101669190611f71565b60405180910390f35b34801561017b57600080fd5b506101846108e4565b6040516101919190612087565b60405180910390f35b3480156101a657600080fd5b506101c160048036038101906101bc91906119b1565b610908565b6040516101ce91906120a2565b60405180910390f35b3480156101e357600080fd5b506101ec610d8e565b6040516101f99190611f8c565b60405180910390f35b34801561020e57600080fd5b50610217610db2565b6040516102249190612087565b60405180910390f35b34801561023957600080fd5b50610242610dd6565b60405161024f9190611f56565b60405180910390f35b34801561026457600080fd5b5061027f600480360381019061027a919061194a565b610fc7565b60405161028c91906120a2565b60405180910390f35b3480156102a157600080fd5b506102aa6113bf565b6040516102b79190611e44565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610328576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000341415610363576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518061010001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200160c84261043d9190612129565b8152602001348152602001848152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663414bf38934846040518363ffffffff1660e01b81526004016104c7919061206b565b6020604051808303818588803b1580156104e057600080fd5b505af11580156104f4573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906105199190611a5e565b90507f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da11348260405161054c9291906120bd565b60405180910390a1809250505092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806105eb5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610622576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082141561065d576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61068a3330848673ffffffffffffffffffffffffffffffffffffffff166113e3909392919063ffffffff16565b6106d57f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff1661146c9092919063ffffffff16565b60006040518060a00160405280857f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000060405160200161077b959493929190611db9565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200160c8426107b89190612129565b815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c04b8d59836040518263ffffffff1660e01b81526004016108249190612049565b602060405180830381600087803b15801561083e57600080fd5b505af1158015610852573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108769190611a5e565b90507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f8585836040516108ab93929190611f1f565b60405180910390a18092505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610970576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156109ab576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109f83330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166113e3909392919063ffffffff16565b610a637f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661146c9092919063ffffffff16565b60006040518061010001604052807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1681526020017f000000000000000000000000000000000000000000000000000000000000000062ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff16815260200160c842610b3d9190612129565b8152602001848152602001858152602001600073ffffffffffffffffffffffffffffffffffffffff16815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663414bf389836040518263ffffffff1660e01b8152600401610bc6919061206b565b602060405180830381600087803b158015610be057600080fd5b505af1158015610bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c189190611a5e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610c7391906120a2565b600060405180830381600087803b158015610c8d57600080fd5b505af1158015610ca1573d6000803e3d6000fd5b505050507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8482604051610cd69291906120bd565b60405180910390a160008673ffffffffffffffffffffffffffffffffffffffff1682604051610d0490611e2f565b60006040518083038185875af1925050503d8060008114610d41576040519150601f19603f3d011682016040523d82523d6000602084013e610d46565b606091505b5050905080610d81576040517f3794aeaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8193505050509392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631698ee827f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006040518463ffffffff1660e01b8152600401610e9693929190611e88565b60206040518083038186803b158015610eae57600080fd5b505afa158015610ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee691906118dd565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f27576000915050610fc4565b600081905060008173ffffffffffffffffffffffffffffffffffffffff16631a6865026040518163ffffffff1660e01b815260040160206040518083038186803b158015610f7457600080fd5b505afa158015610f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fac9190611a31565b6fffffffffffffffffffffffffffffffff1611925050505b90565b60008060009054906101000a900460ff161561100f576040517f29f745a700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016000806101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806110905750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156110c7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415611102576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61114f3330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166113e3909392919063ffffffff16565b6111ba7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661146c9092919063ffffffff16565b60006040518060a001604052807f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089604051602001611260959493929190611db9565b60405160208183030381529060405281526020018773ffffffffffffffffffffffffffffffffffffffff16815260200160c84261129d9190612129565b815260200184815260200186815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663c04b8d59836040518263ffffffff1660e01b81526004016113099190612049565b602060405180830381600087803b15801561132357600080fd5b505af1158015611337573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061135b9190611a5e565b90507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b85858360405161139093929190611f1f565b60405180910390a1809250505060008060006101000a81548160ff021916908315150217905550949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b611466846323b872dd60e01b85858560405160240161140493929190611ebf565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506115ca565b50505050565b6000811480611505575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016114b3929190611e5f565b60206040518083038186803b1580156114cb57600080fd5b505afa1580156114df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115039190611a5e565b145b611544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153b90612029565b60405180910390fd5b6115c58363095ea7b360e01b8484604051602401611563929190611ef6565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506115ca565b505050565b600061162c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116919092919063ffffffff16565b905060008151111561168c578080602001905181019061164c9190611a04565b61168b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168290612009565b60405180910390fd5b5b505050565b60606116a084846000856116a9565b90509392505050565b6060824710156116ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e590611fc9565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516117179190611e18565b60006040518083038185875af1925050503d8060008114611754576040519150601f19603f3d011682016040523d82523d6000602084013e611759565b606091505b509150915061176a87838387611776565b92505050949350505050565b606083156117d9576000835114156117d157611791856117ec565b6117d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c790611fe9565b60405180910390fd5b5b8290506117e4565b6117e3838361180f565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156118225781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118569190611fa7565b60405180910390fd5b60008135905061186e8161241b565b92915050565b6000815190506118838161241b565b92915050565b60008151905061189881612432565b92915050565b6000815190506118ad81612449565b92915050565b6000813590506118c281612460565b92915050565b6000815190506118d781612460565b92915050565b6000602082840312156118f3576118f26122d2565b5b600061190184828501611874565b91505092915050565b60008060408385031215611921576119206122d2565b5b600061192f8582860161185f565b9250506020611940858286016118b3565b9150509250929050565b60008060008060808587031215611964576119636122d2565b5b60006119728782880161185f565b9450506020611983878288016118b3565b93505060406119948782880161185f565b92505060606119a5878288016118b3565b91505092959194509250565b6000806000606084860312156119ca576119c96122d2565b5b60006119d88682870161185f565b93505060206119e9868287016118b3565b92505060406119fa868287016118b3565b9150509250925092565b600060208284031215611a1a57611a196122d2565b5b6000611a2884828501611889565b91505092915050565b600060208284031215611a4757611a466122d2565b5b6000611a558482850161189e565b91505092915050565b600060208284031215611a7457611a736122d2565b5b6000611a82848285016118c8565b91505092915050565b611a948161217f565b82525050565b611aa38161217f565b82525050565b611aba611ab58261217f565b61226d565b82525050565b611ac981612191565b82525050565b6000611ada826120e6565b611ae481856120fc565b9350611af481856020860161223a565b611afd816122d7565b840191505092915050565b6000611b13826120e6565b611b1d818561210d565b9350611b2d81856020860161223a565b80840191505092915050565b611b42816121f2565b82525050565b611b5181612204565b82525050565b6000611b62826120f1565b611b6c8185612118565b9350611b7c81856020860161223a565b611b85816122d7565b840191505092915050565b6000611b9d602683612118565b9150611ba882612302565b604082019050919050565b6000611bc060008361210d565b9150611bcb82612351565b600082019050919050565b6000611be3601d83612118565b9150611bee82612354565b602082019050919050565b6000611c06602a83612118565b9150611c118261237d565b604082019050919050565b6000611c29603683612118565b9150611c34826123cc565b604082019050919050565b600060a0830160008301518482036000860152611c5c8282611acf565b9150506020830151611c716020860182611a8b565b506040830151611c846040860182611d9b565b506060830151611c976060860182611d9b565b506080830151611caa6080860182611d9b565b508091505092915050565b61010082016000820151611ccc6000850182611a8b565b506020820151611cdf6020850182611a8b565b506040820151611cf26040850182611d66565b506060820151611d056060850182611a8b565b506080820151611d186080850182611d9b565b5060a0820151611d2b60a0850182611d9b565b5060c0820151611d3e60c0850182611d9b565b5060e0820151611d5160e0850182611d57565b50505050565b611d60816121b9565b82525050565b611d6f816121d9565b82525050565b611d7e816121d9565b82525050565b611d95611d90826121d9565b612291565b82525050565b611da4816121e8565b82525050565b611db3816121e8565b82525050565b6000611dc58288611aa9565b601482019150611dd58287611d84565b600382019150611de58286611aa9565b601482019150611df58285611d84565b600382019150611e058284611aa9565b6014820191508190509695505050505050565b6000611e248284611b08565b915081905092915050565b6000611e3a82611bb3565b9150819050919050565b6000602082019050611e596000830184611a9a565b92915050565b6000604082019050611e746000830185611a9a565b611e816020830184611a9a565b9392505050565b6000606082019050611e9d6000830186611a9a565b611eaa6020830185611a9a565b611eb76040830184611d75565b949350505050565b6000606082019050611ed46000830186611a9a565b611ee16020830185611a9a565b611eee6040830184611daa565b949350505050565b6000604082019050611f0b6000830185611a9a565b611f186020830184611daa565b9392505050565b6000606082019050611f346000830186611a9a565b611f416020830185611daa565b611f4e6040830184611daa565b949350505050565b6000602082019050611f6b6000830184611ac0565b92915050565b6000602082019050611f866000830184611b39565b92915050565b6000602082019050611fa16000830184611b48565b92915050565b60006020820190508181036000830152611fc18184611b57565b905092915050565b60006020820190508181036000830152611fe281611b90565b9050919050565b6000602082019050818103600083015261200281611bd6565b9050919050565b6000602082019050818103600083015261202281611bf9565b9050919050565b6000602082019050818103600083015261204281611c1c565b9050919050565b600060208201905081810360008301526120638184611c3f565b905092915050565b6000610100820190506120816000830184611cb5565b92915050565b600060208201905061209c6000830184611d75565b92915050565b60006020820190506120b76000830184611daa565b92915050565b60006040820190506120d26000830185611daa565b6120df6020830184611daa565b9392505050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000612134826121e8565b915061213f836121e8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612174576121736122a3565b5b828201905092915050565b600061218a826121b9565b9050919050565b60008115159050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b60006121fd82612216565b9050919050565b600061220f82612216565b9050919050565b600061222182612228565b9050919050565b6000612233826121b9565b9050919050565b60005b8381101561225857808201518184015260208101905061223d565b83811115612267576000848401525b50505050565b60006122788261227f565b9050919050565b600061228a826122f5565b9050919050565b600061229c826122e8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b60008160e81b9050919050565b60008160601b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6124248161217f565b811461242f57600080fd5b50565b61243b81612191565b811461244657600080fd5b50565b6124528161219d565b811461245d57600080fd5b50565b612469816121e8565b811461247457600080fd5b5056fea2646970667358221220c207c922259dc7e5a2e16505dd6095616db7c385800d654ff7d82add8972c36764736f6c63430008070033"; - -type ZetaTokenConsumerUniV3ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaTokenConsumerUniV3ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaTokenConsumerUniV3__factory extends ContractFactory { - constructor(...args: ZetaTokenConsumerUniV3ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaToken_: PromiseOrValue, - uniswapV3Router_: PromiseOrValue, - uniswapV3Factory_: PromiseOrValue, - WETH9Address_: PromiseOrValue, - zetaPoolFee_: PromiseOrValue, - tokenPoolFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaToken_, - uniswapV3Router_, - uniswapV3Factory_, - WETH9Address_, - zetaPoolFee_, - tokenPoolFee_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaToken_: PromiseOrValue, - uniswapV3Router_: PromiseOrValue, - uniswapV3Factory_: PromiseOrValue, - WETH9Address_: PromiseOrValue, - zetaPoolFee_: PromiseOrValue, - tokenPoolFee_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaToken_, - uniswapV3Router_, - uniswapV3Factory_, - WETH9Address_, - zetaPoolFee_, - tokenPoolFee_, - overrides || {} - ); - } - override attach(address: string): ZetaTokenConsumerUniV3 { - return super.attach(address) as ZetaTokenConsumerUniV3; - } - override connect(signer: Signer): ZetaTokenConsumerUniV3__factory { - return super.connect(signer) as ZetaTokenConsumerUniV3__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerUniV3Interface { - return new utils.Interface(_abi) as ZetaTokenConsumerUniV3Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerUniV3 { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerUniV3; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts deleted file mode 100644 index ed161d53a..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { WETH9__factory } from "./WETH9__factory"; -export { ZetaTokenConsumerUniV3__factory } from "./ZetaTokenConsumerUniV3__factory"; -export { ZetaTokenConsumerUniV3Errors__factory } from "./ZetaTokenConsumerUniV3Errors__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors__factory.ts deleted file mode 100644 index 634d041e7..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors__factory.ts +++ /dev/null @@ -1,70 +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 { - ZetaTokenConsumerZEVMErrors, - ZetaTokenConsumerZEVMErrorsInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors"; - -const _abi = [ - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZeta", - type: "error", - }, - { - inputs: [], - name: "InvalidForZEVM", - type: "error", - }, - { - inputs: [], - name: "NotEnoughValue", - type: "error", - }, - { - inputs: [], - name: "OnlyWZETAAllowed", - type: "error", - }, - { - inputs: [], - name: "OutputCantBeZeta", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, -] as const; - -export class ZetaTokenConsumerZEVMErrors__factory { - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerZEVMErrorsInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerZEVMErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerZEVMErrors { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerZEVMErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM__factory.ts deleted file mode 100644 index 5d7cd70a7..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM__factory.ts +++ /dev/null @@ -1,379 +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 { - ZetaTokenConsumerZEVM, - ZetaTokenConsumerZEVMInterface, -} from "../../../../../contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "WETH9Address_", - type: "address", - }, - { - internalType: "address", - name: "uniswapV2Router_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "ErrorSendingETH", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZero", - type: "error", - }, - { - inputs: [], - name: "InputCantBeZeta", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "InvalidForZEVM", - type: "error", - }, - { - inputs: [], - name: "NotEnoughValue", - type: "error", - }, - { - inputs: [], - name: "OnlyWZETAAllowed", - type: "error", - }, - { - inputs: [], - name: "OutputCantBeZeta", - type: "error", - }, - { - inputs: [], - name: "ReentrancyError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "EthExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "TokenExchangedForZeta", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForEth", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "token", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - name: "ZetaExchangedForToken", - type: "event", - }, - { - inputs: [], - name: "WETH9Address", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getEthFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "outputToken", - type: "address", - }, - { - internalType: "uint256", - name: "zetaTokenAmount", - type: "uint256", - }, - ], - name: "getTokenFromZeta", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - ], - name: "getZetaFromEth", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "minAmountOut", - type: "uint256", - }, - { - internalType: "address", - name: "inputToken", - type: "address", - }, - { - internalType: "uint256", - name: "inputTokenAmount", - type: "uint256", - }, - ], - name: "getZetaFromToken", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "hasZetaLiquidity", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60c06040523480156200001157600080fd5b506040516200220938038062002209833981810160405281019062000037919062000164565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806200009f5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15620000d7576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250505050620001fe565b6000815190506200015e81620001e4565b92915050565b600080604083850312156200017e576200017d620001df565b5b60006200018e858286016200014d565b9250506020620001a1858286016200014d565b9150509250929050565b6000620001b882620001bf565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620001ef81620001ab565b8114620001fb57600080fd5b50565b60805160601c60a05160601c611f7e6200028b600039600081816105a4015281816106fa01528181610cb50152610e2b0152600081816060015281816103060152818161038c015281816104ee01528181610689015281816109180152818161095f01528181610bdf01528181610c6b01528181610cd701528181610d6b0152610f660152611f7e6000f3fe6080604052600436106100595760003560e01c8063013b2ff8146100ea5780632405620a1461011a57806354c49a2a1461015757806380801f8414610194578063a53fb10b146101bf578063c469cf14146101fc576100e5565b366100e5577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146100e3576040517f290ee5a500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b61010460048036038101906100ff919061157c565b610227565b6040516101119190611aa8565b60405180910390f35b34801561012657600080fd5b50610141600480360381019061013c91906115bc565b610412565b60405161014e9190611aa8565b60405180910390f35b34801561016357600080fd5b5061017e60048036038101906101799190611623565b610833565b60405161018b9190611aa8565b60405180910390f35b3480156101a057600080fd5b506101a9610acf565b6040516101b691906119eb565b60405180910390f35b3480156101cb57600080fd5b506101e660048036038101906101e191906115bc565b610b03565b6040516101f39190611aa8565b60405180910390f35b34801561020857600080fd5b50610211610f64565b60405161021e9190611910565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561028f576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60003414156102ca576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81341015610304576040517fe2f844a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561036c57600080fd5b505af1158015610380573d6000803e3d6000fd5b50505050506103d083347f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610f889092919063ffffffff16565b7f87890b0a30955b1db16cc894fbe24779ae05d9f337bfe8b6dfc0809b5bf9da113434604051610401929190611ac3565b60405180910390a134905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061047a5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b156104b1576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156104ec576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610572576040517f6edfe50500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61059f3330848673ffffffffffffffffffffffffffffffffffffffff1661100e909392919063ffffffff16565b6105ea7f0000000000000000000000000000000000000000000000000000000000000000838573ffffffffffffffffffffffffffffffffffffffff166110979092919063ffffffff16565b6000600267ffffffffffffffff81111561060757610606611d96565b5b6040519080825280602002602001820160405280156106355781602001602082028036833780820191505090505b509050838160008151811061064d5761064c611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f0000000000000000000000000000000000000000000000000000000000000000816001815181106106bc576106bb611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c8426107459190611c02565b6040518663ffffffff1660e01b8152600401610765959493929190611aec565b600060405180830381600087803b15801561077f57600080fd5b505af1158015610793573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906107bc9190611676565b9050600081600184516107cf9190611c58565b815181106107e0576107df611d67565b5b602002602001015190507f017190d3d99ee6d8dd0604ef1e71ff9802810c6485f57c9b2ed6169848dd119f86868360405161081d939291906119b4565b60405180910390a1809350505050949350505050565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561089b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008214156108d6576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82821015610910576040517fe2f844a000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61095d3330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661100e909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d836040518263ffffffff1660e01b81526004016109b69190611aa8565b600060405180830381600087803b1580156109d057600080fd5b505af11580156109e4573d6000803e3d6000fd5b505050507f74e171117e91660f493740924d8bad0caf48dc4fbccb767fb05935397a2c17ae8283604051610a19929190611ac3565b60405180910390a160008473ffffffffffffffffffffffffffffffffffffffff1683604051610a47906118fb565b60006040518083038185875af1925050503d8060008114610a84576040519150601f19603f3d011682016040523d82523d6000602084013e610a89565b606091505b5050905080610ac4576040517f3794aeaf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b829150509392505050565b60006040517f0e6a82b100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610b6b5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610ba2576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415610bdd576040517fb813f54900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c63576040517f8c51927900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610cb03330847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661100e909392919063ffffffff16565b610d1b7f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166110979092919063ffffffff16565b6000600267ffffffffffffffff811115610d3857610d37611d96565b5b604051908082528060200260200182016040528015610d665781602001602082028036833780820191505090505b5090507f000000000000000000000000000000000000000000000000000000000000000081600081518110610d9e57610d9d611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508381600181518110610ded57610dec611d67565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166338ed17398588858b60c842610e769190611c02565b6040518663ffffffff1660e01b8152600401610e96959493929190611aec565b600060405180830381600087803b158015610eb057600080fd5b505af1158015610ec4573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610eed9190611676565b905060008160018451610f009190611c58565b81518110610f1157610f10611d67565b5b602002602001015190507f0a7cb8f6e1d29e616c1209a3f418c17b3a9137005377f6dd072217b1ede2573b868683604051610f4e939291906119b4565b60405180910390a1809350505050949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6110098363a9059cbb60e01b8484604051602401610fa792919061198b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111f5565b505050565b611091846323b872dd60e01b85858560405160240161102f93929190611954565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111f5565b50505050565b6000811480611130575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016110de92919061192b565b60206040518083038186803b1580156110f657600080fd5b505afa15801561110a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112e91906116ec565b145b61116f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116690611a88565b60405180910390fd5b6111f08363095ea7b360e01b848460405160240161118e92919061198b565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506111f5565b505050565b6000611257826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166112bc9092919063ffffffff16565b90506000815111156112b7578080602001905181019061127791906116bf565b6112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ad90611a68565b60405180910390fd5b5b505050565b60606112cb84846000856112d4565b90509392505050565b606082471015611319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131090611a28565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161134291906118e4565b60006040518083038185875af1925050503d806000811461137f576040519150601f19603f3d011682016040523d82523d6000602084013e611384565b606091505b5091509150611395878383876113a1565b92505050949350505050565b60608315611404576000835114156113fc576113bc85611417565b6113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290611a48565b60405180910390fd5b5b82905061140f565b61140e838361143a565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561144d5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114819190611a06565b60405180910390fd5b600061149d61149884611b6b565b611b46565b905080838252602082019050828560208602820111156114c0576114bf611dca565b5b60005b858110156114f057816114d68882611567565b8452602084019350602083019250506001810190506114c3565b5050509392505050565b60008135905061150981611f03565b92915050565b600082601f83011261152457611523611dc5565b5b815161153484826020860161148a565b91505092915050565b60008151905061154c81611f1a565b92915050565b60008135905061156181611f31565b92915050565b60008151905061157681611f31565b92915050565b6000806040838503121561159357611592611dd4565b5b60006115a1858286016114fa565b92505060206115b285828601611552565b9150509250929050565b600080600080608085870312156115d6576115d5611dd4565b5b60006115e4878288016114fa565b94505060206115f587828801611552565b9350506040611606878288016114fa565b925050606061161787828801611552565b91505092959194509250565b60008060006060848603121561163c5761163b611dd4565b5b600061164a868287016114fa565b935050602061165b86828701611552565b925050604061166c86828701611552565b9150509250925092565b60006020828403121561168c5761168b611dd4565b5b600082015167ffffffffffffffff8111156116aa576116a9611dcf565b5b6116b68482850161150f565b91505092915050565b6000602082840312156116d5576116d4611dd4565b5b60006116e38482850161153d565b91505092915050565b60006020828403121561170257611701611dd4565b5b600061171084828501611567565b91505092915050565b60006117258383611731565b60208301905092915050565b61173a81611c8c565b82525050565b61174981611c8c565b82525050565b600061175a82611ba7565b6117648185611bd5565b935061176f83611b97565b8060005b838110156117a05781516117878882611719565b975061179283611bc8565b925050600181019050611773565b5085935050505092915050565b6117b681611c9e565b82525050565b60006117c782611bb2565b6117d18185611be6565b93506117e1818560208601611cd4565b80840191505092915050565b60006117f882611bbd565b6118028185611bf1565b9350611812818560208601611cd4565b61181b81611dd9565b840191505092915050565b6000611833602683611bf1565b915061183e82611dea565b604082019050919050565b6000611856600083611be6565b915061186182611e39565b600082019050919050565b6000611879601d83611bf1565b915061188482611e3c565b602082019050919050565b600061189c602a83611bf1565b91506118a782611e65565b604082019050919050565b60006118bf603683611bf1565b91506118ca82611eb4565b604082019050919050565b6118de81611cca565b82525050565b60006118f082846117bc565b915081905092915050565b600061190682611849565b9150819050919050565b60006020820190506119256000830184611740565b92915050565b60006040820190506119406000830185611740565b61194d6020830184611740565b9392505050565b60006060820190506119696000830186611740565b6119766020830185611740565b61198360408301846118d5565b949350505050565b60006040820190506119a06000830185611740565b6119ad60208301846118d5565b9392505050565b60006060820190506119c96000830186611740565b6119d660208301856118d5565b6119e360408301846118d5565b949350505050565b6000602082019050611a0060008301846117ad565b92915050565b60006020820190508181036000830152611a2081846117ed565b905092915050565b60006020820190508181036000830152611a4181611826565b9050919050565b60006020820190508181036000830152611a618161186c565b9050919050565b60006020820190508181036000830152611a818161188f565b9050919050565b60006020820190508181036000830152611aa1816118b2565b9050919050565b6000602082019050611abd60008301846118d5565b92915050565b6000604082019050611ad860008301856118d5565b611ae560208301846118d5565b9392505050565b600060a082019050611b0160008301886118d5565b611b0e60208301876118d5565b8181036040830152611b20818661174f565b9050611b2f6060830185611740565b611b3c60808301846118d5565b9695505050505050565b6000611b50611b61565b9050611b5c8282611d07565b919050565b6000604051905090565b600067ffffffffffffffff821115611b8657611b85611d96565b5b602082029050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611c0d82611cca565b9150611c1883611cca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611c4d57611c4c611d38565b5b828201905092915050565b6000611c6382611cca565b9150611c6e83611cca565b925082821015611c8157611c80611d38565b5b828203905092915050565b6000611c9782611caa565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015611cf2578082015181840152602081019050611cd7565b83811115611d01576000848401525b50505050565b611d1082611dd9565b810181811067ffffffffffffffff82111715611d2f57611d2e611d96565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b611f0c81611c8c565b8114611f1757600080fd5b50565b611f2381611c9e565b8114611f2e57600080fd5b50565b611f3a81611cca565b8114611f4557600080fd5b5056fea26469706673582212209d699fd174ff021ab8955aa2ab41ef5c683b288e3873f97ef4d0c4732ceebae264736f6c63430008070033"; - -type ZetaTokenConsumerZEVMConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaTokenConsumerZEVMConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaTokenConsumerZEVM__factory extends ContractFactory { - constructor(...args: ZetaTokenConsumerZEVMConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - WETH9Address_: PromiseOrValue, - uniswapV2Router_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - WETH9Address_, - uniswapV2Router_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - WETH9Address_: PromiseOrValue, - uniswapV2Router_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - WETH9Address_, - uniswapV2Router_, - overrides || {} - ); - } - override attach(address: string): ZetaTokenConsumerZEVM { - return super.attach(address) as ZetaTokenConsumerZEVM; - } - override connect(signer: Signer): ZetaTokenConsumerZEVM__factory { - return super.connect(signer) as ZetaTokenConsumerZEVM__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaTokenConsumerZEVMInterface { - return new utils.Interface(_abi) as ZetaTokenConsumerZEVMInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaTokenConsumerZEVM { - return new Contract( - address, - _abi, - signerOrProvider - ) as ZetaTokenConsumerZEVM; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts deleted file mode 100644 index 50150157b..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaTokenConsumerZEVM__factory } from "./ZetaTokenConsumerZEVM__factory"; -export { ZetaTokenConsumerZEVMErrors__factory } from "./ZetaTokenConsumerZEVMErrors__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/index.ts b/v1/typechain-types/factories/contracts/evm/tools/index.ts deleted file mode 100644 index 46072ff43..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as immutableCreate2FactorySol from "./ImmutableCreate2Factory.sol"; -export * as zetaTokenConsumerPancakeV3StrategySol from "./ZetaTokenConsumerPancakeV3.strategy.sol"; -export * as zetaTokenConsumerTridentStrategySol from "./ZetaTokenConsumerTrident.strategy.sol"; -export * as zetaTokenConsumerUniV2StrategySol from "./ZetaTokenConsumerUniV2.strategy.sol"; -export * as zetaTokenConsumerUniV3StrategySol from "./ZetaTokenConsumerUniV3.strategy.sol"; -export * as zetaTokenConsumerZevmStrategySol from "./ZetaTokenConsumerZEVM.strategy.sol"; -export * as interfaces from "./interfaces"; -export { ZetaInteractor__factory } from "./ZetaInteractor__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory__factory.ts deleted file mode 100644 index 382f2e320..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory__factory.ts +++ /dev/null @@ -1,66 +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 { - ConcentratedLiquidityPoolFactory, - ConcentratedLiquidityPoolFactoryInterface, -} from "../../../../../../contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "token0", - type: "address", - }, - { - internalType: "address", - name: "token1", - type: "address", - }, - { - internalType: "uint256", - name: "startIndex", - type: "uint256", - }, - { - internalType: "uint256", - name: "count", - type: "uint256", - }, - ], - name: "getPools", - outputs: [ - { - internalType: "address[]", - name: "pairPools", - type: "address[]", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class ConcentratedLiquidityPoolFactory__factory { - static readonly abi = _abi; - static createInterface(): ConcentratedLiquidityPoolFactoryInterface { - return new utils.Interface( - _abi - ) as ConcentratedLiquidityPoolFactoryInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ConcentratedLiquidityPoolFactory { - return new Contract( - address, - _abi, - signerOrProvider - ) as ConcentratedLiquidityPoolFactory; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts deleted file mode 100644 index d1fea7710..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ConcentratedLiquidityPoolFactory__factory } from "./ConcentratedLiquidityPoolFactory__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter__factory.ts b/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter__factory.ts deleted file mode 100644 index 20e81f7b5..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter__factory.ts +++ /dev/null @@ -1,253 +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 { - IPoolRouter, - IPoolRouterInterface, -} from "../../../../../../contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMinimum", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "bool", - name: "unwrap", - type: "bool", - }, - ], - internalType: "struct IPoolRouter.ExactInputParams", - name: "params", - type: "tuple", - }, - ], - name: "exactInput", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMinimum", - type: "uint256", - }, - { - internalType: "address", - name: "pool", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "bool", - name: "unwrap", - type: "bool", - }, - ], - internalType: "struct IPoolRouter.ExactInputSingleParams", - name: "params", - type: "tuple", - }, - ], - name: "exactInputSingle", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMaximum", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "bool", - name: "unwrap", - type: "bool", - }, - ], - internalType: "struct IPoolRouter.ExactOutputParams", - name: "params", - type: "tuple", - }, - ], - name: "exactOutput", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "tokenIn", - type: "address", - }, - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMaximum", - type: "uint256", - }, - { - internalType: "address", - name: "pool", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "bool", - name: "unwrap", - type: "bool", - }, - ], - internalType: "struct IPoolRouter.ExactOutputSingleParams", - name: "params", - type: "tuple", - }, - ], - name: "exactOutputSingle", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "address", - name: "recipient", - type: "address", - }, - ], - name: "sweep", - outputs: [], - stateMutability: "payable", - type: "function", - }, -] as const; - -export class IPoolRouter__factory { - static readonly abi = _abi; - static createInterface(): IPoolRouterInterface { - return new utils.Interface(_abi) as IPoolRouterInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IPoolRouter { - return new Contract(address, _abi, signerOrProvider) as IPoolRouter; - } -} diff --git a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts b/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts deleted file mode 100644 index 48f758ebe..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IPoolRouter__factory } from "./IPoolRouter__factory"; diff --git a/v1/typechain-types/factories/contracts/evm/tools/interfaces/index.ts b/v1/typechain-types/factories/contracts/evm/tools/interfaces/index.ts deleted file mode 100644 index 88f7f9136..000000000 --- a/v1/typechain-types/factories/contracts/evm/tools/interfaces/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as tridentConcentratedLiquidityPoolFactorySol from "./TridentConcentratedLiquidityPoolFactory.sol"; -export * as tridentIPoolRouterSol from "./TridentIPoolRouter.sol"; diff --git a/v1/typechain-types/factories/contracts/index.ts b/v1/typechain-types/factories/contracts/index.ts deleted file mode 100644 index 332891231..000000000 --- a/v1/typechain-types/factories/contracts/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as evm from "./evm"; -export * as zevm from "./zevm"; diff --git a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/ISystem__factory.ts b/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/ISystem__factory.ts deleted file mode 100644 index 82c8b68de..000000000 --- a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/ISystem__factory.ts +++ /dev/null @@ -1,122 +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 { - ISystem, - ISystemInterface, -} from "../../../../contracts/zevm/Interfaces.sol/ISystem"; - -const _abi = [ - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasCoinZRC20ByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasPriceByChainId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasZetaPoolByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "uniswapv2FactoryAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "wZetaContractAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class ISystem__factory { - static readonly abi = _abi; - static createInterface(): ISystemInterface { - return new utils.Interface(_abi) as ISystemInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ISystem { - return new Contract(address, _abi, signerOrProvider) as ISystem; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20Metadata__factory.ts b/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20Metadata__factory.ts deleted file mode 100644 index 277ff9981..000000000 --- a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20Metadata__factory.ts +++ /dev/null @@ -1,415 +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 { - IZRC20Metadata, - IZRC20MetadataInterface, -} from "../../../../contracts/zevm/Interfaces.sol/IZRC20Metadata"; - -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: false, - internalType: "bytes", - name: "from", - type: "bytes", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Deposit", - 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", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "gasLimit", - type: "uint256", - }, - ], - name: "UpdatedGasLimit", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "UpdatedProtocolFlatFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "systemContract", - type: "address", - }, - ], - name: "UpdatedSystemContract", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "gasfee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "Withdrawal", - 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: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "deposit", - 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: "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: "bytes", - name: "to", - type: "bytes", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawGasFee", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IZRC20Metadata__factory { - static readonly abi = _abi; - static createInterface(): IZRC20MetadataInterface { - return new utils.Interface(_abi) as IZRC20MetadataInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IZRC20Metadata { - return new Contract(address, _abi, signerOrProvider) as IZRC20Metadata; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20__factory.ts b/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20__factory.ts deleted file mode 100644 index 88ba74414..000000000 --- a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/IZRC20__factory.ts +++ /dev/null @@ -1,373 +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 { - IZRC20, - IZRC20Interface, -} from "../../../../contracts/zevm/Interfaces.sol/IZRC20"; - -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: false, - internalType: "bytes", - name: "from", - type: "bytes", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Deposit", - 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", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "gasLimit", - type: "uint256", - }, - ], - name: "UpdatedGasLimit", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "UpdatedProtocolFlatFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "systemContract", - type: "address", - }, - ], - name: "UpdatedSystemContract", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "gasfee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "Withdrawal", - 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: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "deposit", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - 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: "bytes", - name: "to", - type: "bytes", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawGasFee", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IZRC20__factory { - static readonly abi = _abi; - static createInterface(): IZRC20Interface { - return new utils.Interface(_abi) as IZRC20Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IZRC20 { - return new Contract(address, _abi, signerOrProvider) as IZRC20; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/index.ts deleted file mode 100644 index a82a343f1..000000000 --- a/v1/typechain-types/factories/contracts/zevm/Interfaces.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ISystem__factory } from "./ISystem__factory"; -export { IZRC20__factory } from "./IZRC20__factory"; -export { IZRC20Metadata__factory } from "./IZRC20Metadata__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContractErrors__factory.ts b/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContractErrors__factory.ts deleted file mode 100644 index 858441588..000000000 --- a/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContractErrors__factory.ts +++ /dev/null @@ -1,55 +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 { - SystemContractErrors, - SystemContractErrorsInterface, -} from "../../../../contracts/zevm/SystemContract.sol/SystemContractErrors"; - -const _abi = [ - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "CantBeIdenticalAddresses", - type: "error", - }, - { - inputs: [], - name: "CantBeZeroAddress", - type: "error", - }, - { - inputs: [], - name: "InvalidTarget", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, -] as const; - -export class SystemContractErrors__factory { - static readonly abi = _abi; - static createInterface(): SystemContractErrorsInterface { - return new utils.Interface(_abi) as SystemContractErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): SystemContractErrors { - return new Contract( - address, - _abi, - signerOrProvider - ) as SystemContractErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContract__factory.ts b/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContract__factory.ts deleted file mode 100644 index eab9b543a..000000000 --- a/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/SystemContract__factory.ts +++ /dev/null @@ -1,495 +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 { - SystemContract, - SystemContractInterface, -} from "../../../../contracts/zevm/SystemContract.sol/SystemContract"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "wzeta_", - type: "address", - }, - { - internalType: "address", - name: "uniswapv2Factory_", - type: "address", - }, - { - internalType: "address", - name: "uniswapv2Router02_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "CantBeIdenticalAddresses", - type: "error", - }, - { - inputs: [], - name: "CantBeZeroAddress", - type: "error", - }, - { - inputs: [], - name: "InvalidTarget", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "", - type: "address", - }, - ], - name: "SetConnectorZEVM", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "", - type: "address", - }, - ], - name: "SetGasCoin", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "SetGasPrice", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "", - type: "address", - }, - ], - name: "SetGasZetaPool", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "", - type: "address", - }, - ], - name: "SetWZeta", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "SystemContractDeployed", - type: "event", - }, - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "origin", - type: "bytes", - }, - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - internalType: "struct zContext", - name: "context", - type: "tuple", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "address", - name: "target", - type: "address", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "depositAndCall", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "gasCoinZRC20ByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "gasPriceByChainId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "gasZetaPoolByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "addr", - type: "address", - }, - ], - name: "setConnectorZEVMAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - ], - name: "setGasCoinZRC20", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - { - internalType: "uint256", - name: "price", - type: "uint256", - }, - ], - name: "setGasPrice", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - { - internalType: "address", - name: "erc20", - type: "address", - }, - ], - name: "setGasZetaPool", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "addr", - type: "address", - }, - ], - name: "setWZETAContractAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "uniswapv2FactoryAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "factory", - type: "address", - }, - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - ], - name: "uniswapv2PairFor", - outputs: [ - { - internalType: "address", - name: "pair", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "uniswapv2Router02Address", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "wZetaContractAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "zetaConnectorZEVMAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60c06040523480156200001157600080fd5b50604051620018aa380380620018aa8339818101604052810190620000379190620001ac565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620000b1576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250507f80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac560405160405180910390a15050506200025b565b600081519050620001a68162000241565b92915050565b600080600060608486031215620001c857620001c76200023c565b5b6000620001d88682870162000195565b9350506020620001eb8682870162000195565b9250506040620001fe8682870162000195565b9150509250925092565b600062000215826200021c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200024c8162000208565b81146200025857600080fd5b50565b60805160601c60a05160601c61161c6200028e600039600061051b0152600081816105bd0152610bc5015261161c6000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806397770dff11610097578063c63585cc11610066578063c63585cc1461025e578063d7fd7afb1461028e578063d936a012146102be578063ee2815ba146102dc576100f5565b806397770dff146101ec578063a7cb050714610208578063c39aca3714610224578063c62178ac14610240576100f5565b8063513a9c05116100d3578063513a9c0514610164578063569541b914610194578063842da36d146101b257806391dd645f146101d0576100f5565b80630be15547146100fa5780631f0e251b1461012a5780633ce4a5bc14610146575b600080fd5b610114600480360381019061010f9190611022565b6102f8565b60405161012191906112b1565b60405180910390f35b610144600480360381019061013f9190610ebf565b61032b565b005b61014e6104a8565b60405161015b91906112b1565b60405180910390f35b61017e60048036038101906101799190611022565b6104c0565b60405161018b91906112b1565b60405180910390f35b61019c6104f3565b6040516101a991906112b1565b60405180910390f35b6101ba610519565b6040516101c791906112b1565b60405180910390f35b6101ea60048036038101906101e5919061104f565b61053d565b005b61020660048036038101906102019190610ebf565b610697565b005b610222600480360381019061021d919061108f565b610814565b005b61023e60048036038101906102399190610f6c565b6108e1565b005b610248610b13565b60405161025591906112b1565b60405180910390f35b61027860048036038101906102739190610eec565b610b39565b60405161028591906112b1565b60405180910390f35b6102a860048036038101906102a39190611022565b610bab565b6040516102b5919061134a565b60405180910390f35b6102c6610bc3565b6040516102d391906112b1565b60405180910390f35b6102f660048036038101906102f1919061104f565b610be7565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103a4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561040b576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f3ade88e3922d64780e1bf4460d364c2970b69da813f9c0c07a1c187b5647636c600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161049d91906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146105b6576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006106057f0000000000000000000000000000000000000000000000000000000000000000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684610b39565b9050806002600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0ecec485166da6139b13bb7e033e9446e2d35348e80ebf1180d4afe2dba1704e838260405161068a929190611365565b60405180910390a1505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610710576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610777576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405161080991906112b1565b60405180910390a150565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461088d576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600080848152602001908152602001600020819055507f49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d82826040516108d592919061138e565b60405180910390a15050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461095a576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806109d357503073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15610a0a576040517f82d5d76a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff166347e7ef2484866040518363ffffffff1660e01b8152600401610a459291906112cc565b602060405180830381600087803b158015610a5f57600080fd5b505af1158015610a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a979190610f3f565b508273ffffffffffffffffffffffffffffffffffffffff1663de43156e87878786866040518663ffffffff1660e01b8152600401610ad99594939291906112f5565b600060405180830381600087803b158015610af357600080fd5b505af1158015610b07573d6000803e3d6000fd5b50505050505050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000610b488585610cef565b91509150858282604051602001610b60929190611243565b60405160208183030381529060405280519060200120604051602001610b8792919061126f565b6040516020818303038152906040528051906020012060001c925050509392505050565b60006020528060005260406000206000915090505481565b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c60576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d8282604051610ce3929190611365565b60405180910390a15050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415610d58576040517fcb1e7cfe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610610d92578284610d95565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e04576040517f78b507da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9250929050565b600081359050610e1a816115a1565b92915050565b600081519050610e2f816115b8565b92915050565b60008083601f840112610e4b57610e4a61150e565b5b8235905067ffffffffffffffff811115610e6857610e67611509565b5b602083019150836001820283011115610e8457610e8361151d565b5b9250929050565b600060608284031215610ea157610ea0611513565b5b81905092915050565b600081359050610eb9816115cf565b92915050565b600060208284031215610ed557610ed461152c565b5b6000610ee384828501610e0b565b91505092915050565b600080600060608486031215610f0557610f0461152c565b5b6000610f1386828701610e0b565b9350506020610f2486828701610e0b565b9250506040610f3586828701610e0b565b9150509250925092565b600060208284031215610f5557610f5461152c565b5b6000610f6384828501610e20565b91505092915050565b60008060008060008060a08789031215610f8957610f8861152c565b5b600087013567ffffffffffffffff811115610fa757610fa6611522565b5b610fb389828a01610e8b565b9650506020610fc489828a01610e0b565b9550506040610fd589828a01610eaa565b9450506060610fe689828a01610e0b565b935050608087013567ffffffffffffffff81111561100757611006611522565b5b61101389828a01610e35565b92509250509295509295509295565b6000602082840312156110385761103761152c565b5b600061104684828501610eaa565b91505092915050565b600080604083850312156110665761106561152c565b5b600061107485828601610eaa565b925050602061108585828601610e0b565b9150509250929050565b600080604083850312156110a6576110a561152c565b5b60006110b485828601610eaa565b92505060206110c585828601610eaa565b9150509250929050565b6110d881611475565b82525050565b6110e781611475565b82525050565b6110fe6110f982611475565b6114d6565b82525050565b61111561111082611493565b6114e8565b82525050565b600061112783856113b7565b93506111348385846114c7565b61113d83611531565b840190509392505050565b600061115483856113c8565b93506111618385846114c7565b61116a83611531565b840190509392505050565b60006111826020836113d9565b915061118d8261154f565b602082019050919050565b60006111a56001836113d9565b91506111b082611578565b600182019050919050565b6000606083016111ce60008401846113fb565b85830360008701526111e183828461111b565b925050506111f260208401846113e4565b6111ff60208601826110cf565b5061120d604084018461145e565b61121a6040860182611225565b508091505092915050565b61122e816114bd565b82525050565b61123d816114bd565b82525050565b600061124f82856110ed565b60148201915061125f82846110ed565b6014820191508190509392505050565b600061127a82611198565b915061128682856110ed565b6014820191506112968284611104565b6020820191506112a582611175565b91508190509392505050565b60006020820190506112c660008301846110de565b92915050565b60006040820190506112e160008301856110de565b6112ee6020830184611234565b9392505050565b6000608082019050818103600083015261130f81886111bb565b905061131e60208301876110de565b61132b6040830186611234565b818103606083015261133e818486611148565b90509695505050505050565b600060208201905061135f6000830184611234565b92915050565b600060408201905061137a6000830185611234565b61138760208301846110de565b9392505050565b60006040820190506113a36000830185611234565b6113b06020830184611234565b9392505050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006113f36020840184610e0b565b905092915050565b6000808335600160200384360303811261141857611417611527565b5b83810192508235915060208301925067ffffffffffffffff8211156114405761143f611504565b5b60018202360384131561145657611455611518565b5b509250929050565b600061146d6020840184610eaa565b905092915050565b60006114808261149d565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60006114e1826114f2565b9050919050565b6000819050919050565b60006114fd82611542565b9050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f600082015250565b7fff00000000000000000000000000000000000000000000000000000000000000600082015250565b6115aa81611475565b81146115b557600080fd5b50565b6115c181611487565b81146115cc57600080fd5b50565b6115d8816114bd565b81146115e357600080fd5b5056fea264697066735822122074cb176058c64c566236e929fb1b59095f40ee7409bf1ff681139ad933115af464736f6c63430008070033"; - -type SystemContractConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: SystemContractConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class SystemContract__factory extends ContractFactory { - constructor(...args: SystemContractConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - wzeta_: PromiseOrValue, - uniswapv2Factory_: PromiseOrValue, - uniswapv2Router02_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - wzeta_, - uniswapv2Factory_, - uniswapv2Router02_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - wzeta_: PromiseOrValue, - uniswapv2Factory_: PromiseOrValue, - uniswapv2Router02_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - wzeta_, - uniswapv2Factory_, - uniswapv2Router02_, - overrides || {} - ); - } - override attach(address: string): SystemContract { - return super.attach(address) as SystemContract; - } - override connect(signer: Signer): SystemContract__factory { - return super.connect(signer) as SystemContract__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): SystemContractInterface { - return new utils.Interface(_abi) as SystemContractInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): SystemContract { - return new Contract(address, _abi, signerOrProvider) as SystemContract; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/index.ts deleted file mode 100644 index 32da62ebc..000000000 --- a/v1/typechain-types/factories/contracts/zevm/SystemContract.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { SystemContract__factory } from "./SystemContract__factory"; -export { SystemContractErrors__factory } from "./SystemContractErrors__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/WZETA.sol/WETH9__factory.ts b/v1/typechain-types/factories/contracts/zevm/WZETA.sol/WETH9__factory.ts deleted file mode 100644 index dc7eafac8..000000000 --- a/v1/typechain-types/factories/contracts/zevm/WZETA.sol/WETH9__factory.ts +++ /dev/null @@ -1,344 +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 { - WETH9, - WETH9Interface, -} from "../../../../contracts/zevm/WZETA.sol/WETH9"; - -const _abi = [ - { - 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 = - "0x60806040526040518060400160405280600d81526020017f57726170706564204574686572000000000000000000000000000000000000008152506000908051906020019062000051929190620000d0565b506040518060400160405280600481526020017f5745544800000000000000000000000000000000000000000000000000000000815250600190805190602001906200009f929190620000d0565b506012600260006101000a81548160ff021916908360ff160217905550348015620000c957600080fd5b50620001e5565b828054620000de9062000180565b90600052602060002090601f0160209004810192826200010257600085556200014e565b82601f106200011d57805160ff19168380011785556200014e565b828001600101855582156200014e579182015b828111156200014d57825182559160200191906001019062000130565b5b5090506200015d919062000161565b5090565b5b808211156200017c57600081600090555060010162000162565b5090565b600060028204905060018216806200019957607f821691505b60208210811415620001b057620001af620001b6565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b610fd380620001f56000396000f3fe6080604052600436106100a05760003560e01c8063313ce56711610064578063313ce567146101ad57806370a08231146101d857806395d89b4114610215578063a9059cbb14610240578063d0e30db01461027d578063dd62ed3e14610287576100af565b806306fdde03146100b4578063095ea7b3146100df57806318160ddd1461011c57806323b872dd146101475780632e1a7d4d14610184576100af565b366100af576100ad6102c4565b005b600080fd5b3480156100c057600080fd5b506100c961036a565b6040516100d69190610d20565b60405180910390f35b3480156100eb57600080fd5b5061010660048036038101906101019190610c0f565b6103f8565b6040516101139190610d05565b60405180910390f35b34801561012857600080fd5b506101316104ea565b60405161013e9190610d62565b60405180910390f35b34801561015357600080fd5b5061016e60048036038101906101699190610bbc565b6104f2565b60405161017b9190610d05565b60405180910390f35b34801561019057600080fd5b506101ab60048036038101906101a69190610c4f565b6108c2565b005b3480156101b957600080fd5b506101c2610a32565b6040516101cf9190610d7d565b60405180910390f35b3480156101e457600080fd5b506101ff60048036038101906101fa9190610b4f565b610a45565b60405161020c9190610d62565b60405180910390f35b34801561022157600080fd5b5061022a610a5d565b6040516102379190610d20565b60405180910390f35b34801561024c57600080fd5b5061026760048036038101906102629190610c0f565b610aeb565b6040516102749190610d05565b60405180910390f35b6102856102c4565b005b34801561029357600080fd5b506102ae60048036038101906102a99190610b7c565b610b00565b6040516102bb9190610d62565b60405180910390f35b34600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546103139190610db4565b925050819055503373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516103609190610d62565b60405180910390a2565b6000805461037790610ec6565b80601f01602080910402602001604051908101604052809291908181526020018280546103a390610ec6565b80156103f05780601f106103c5576101008083540402835291602001916103f0565b820191906000526020600020905b8154815290600101906020018083116103d357829003601f168201915b505050505081565b600081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104d89190610d62565b60405180910390a36001905092915050565b600047905090565b600081600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056d90610d42565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415801561064e57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414155b156107a65781600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070990610d42565b60405180910390fd5b81600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461079e9190610e0a565b925050819055505b81600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546107f59190610e0a565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461084b9190610db4565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516108af9190610d62565b60405180910390a3600190509392505050565b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093b90610d42565b60405180910390fd5b80600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546109939190610e0a565b925050819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156109e0573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff167f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6582604051610a279190610d62565b60405180910390a250565b600260009054906101000a900460ff1681565b60036020528060005260406000206000915090505481565b60018054610a6a90610ec6565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9690610ec6565b8015610ae35780601f10610ab857610100808354040283529160200191610ae3565b820191906000526020600020905b815481529060010190602001808311610ac657829003601f168201915b505050505081565b6000610af83384846104f2565b905092915050565b6004602052816000526040600020602052806000526040600020600091509150505481565b600081359050610b3481610f6f565b92915050565b600081359050610b4981610f86565b92915050565b600060208284031215610b6557610b64610f56565b5b6000610b7384828501610b25565b91505092915050565b60008060408385031215610b9357610b92610f56565b5b6000610ba185828601610b25565b9250506020610bb285828601610b25565b9150509250929050565b600080600060608486031215610bd557610bd4610f56565b5b6000610be386828701610b25565b9350506020610bf486828701610b25565b9250506040610c0586828701610b3a565b9150509250925092565b60008060408385031215610c2657610c25610f56565b5b6000610c3485828601610b25565b9250506020610c4585828601610b3a565b9150509250929050565b600060208284031215610c6557610c64610f56565b5b6000610c7384828501610b3a565b91505092915050565b610c8581610e50565b82525050565b6000610c9682610d98565b610ca08185610da3565b9350610cb0818560208601610e93565b610cb981610f5b565b840191505092915050565b6000610cd1600083610da3565b9150610cdc82610f6c565b600082019050919050565b610cf081610e7c565b82525050565b610cff81610e86565b82525050565b6000602082019050610d1a6000830184610c7c565b92915050565b60006020820190508181036000830152610d3a8184610c8b565b905092915050565b60006020820190508181036000830152610d5b81610cc4565b9050919050565b6000602082019050610d776000830184610ce7565b92915050565b6000602082019050610d926000830184610cf6565b92915050565b600081519050919050565b600082825260208201905092915050565b6000610dbf82610e7c565b9150610dca83610e7c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610dff57610dfe610ef8565b5b828201905092915050565b6000610e1582610e7c565b9150610e2083610e7c565b925082821015610e3357610e32610ef8565b5b828203905092915050565b6000610e4982610e5c565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015610eb1578082015181840152602081019050610e96565b83811115610ec0576000848401525b50505050565b60006002820490506001821680610ede57607f821691505b60208210811415610ef257610ef1610f27565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b50565b610f7881610e3e565b8114610f8357600080fd5b50565b610f8f81610e7c565b8114610f9a57600080fd5b5056fea2646970667358221220ed2297470e8d6c8e387b5cdc1c81dd38decdf0b011f3c15df9f52f6da3dcc17664736f6c63430008070033"; - -type WETH9ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: WETH9ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class WETH9__factory extends ContractFactory { - constructor(...args: WETH9ConstructorParams) { - 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): WETH9 { - return super.attach(address) as WETH9; - } - override connect(signer: Signer): WETH9__factory { - return super.connect(signer) as WETH9__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): WETH9Interface { - return new utils.Interface(_abi) as WETH9Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): WETH9 { - return new Contract(address, _abi, signerOrProvider) as WETH9; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/WZETA.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/WZETA.sol/index.ts deleted file mode 100644 index 63c8f2fc9..000000000 --- a/v1/typechain-types/factories/contracts/zevm/WZETA.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { WETH9__factory } from "./WETH9__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20Errors__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20Errors__factory.ts deleted file mode 100644 index 9c690d901..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20Errors__factory.ts +++ /dev/null @@ -1,66 +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 { - ZRC20Errors, - ZRC20ErrorsInterface, -} from "../../../../contracts/zevm/ZRC20.sol/ZRC20Errors"; - -const _abi = [ - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "GasFeeTransferFailed", - type: "error", - }, - { - inputs: [], - name: "InvalidSender", - type: "error", - }, - { - inputs: [], - name: "LowAllowance", - type: "error", - }, - { - inputs: [], - name: "LowBalance", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, - { - inputs: [], - name: "ZeroGasCoin", - type: "error", - }, - { - inputs: [], - name: "ZeroGasPrice", - type: "error", - }, -] as const; - -export class ZRC20Errors__factory { - static readonly abi = _abi; - static createInterface(): ZRC20ErrorsInterface { - return new utils.Interface(_abi) as ZRC20ErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZRC20Errors { - return new Contract(address, _abi, signerOrProvider) as ZRC20Errors; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20__factory.ts deleted file mode 100644 index d80d99918..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/ZRC20__factory.ts +++ /dev/null @@ -1,705 +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 { - ZRC20, - ZRC20Interface, -} from "../../../../contracts/zevm/ZRC20.sol/ZRC20"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "name_", - type: "string", - }, - { - internalType: "string", - name: "symbol_", - type: "string", - }, - { - internalType: "uint8", - name: "decimals_", - type: "uint8", - }, - { - internalType: "uint256", - name: "chainid_", - type: "uint256", - }, - { - internalType: "enum CoinType", - name: "coinType_", - type: "uint8", - }, - { - internalType: "uint256", - name: "gasLimit_", - type: "uint256", - }, - { - internalType: "address", - name: "systemContractAddress_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "GasFeeTransferFailed", - type: "error", - }, - { - inputs: [], - name: "InvalidSender", - type: "error", - }, - { - inputs: [], - name: "LowAllowance", - type: "error", - }, - { - inputs: [], - name: "LowBalance", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, - { - inputs: [], - name: "ZeroGasCoin", - type: "error", - }, - { - inputs: [], - name: "ZeroGasPrice", - type: "error", - }, - { - 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: false, - internalType: "bytes", - name: "from", - type: "bytes", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Deposit", - 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", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "gasLimit", - type: "uint256", - }, - ], - name: "UpdatedGasLimit", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "UpdatedProtocolFlatFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "systemContract", - type: "address", - }, - ], - name: "UpdatedSystemContract", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "gasFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "Withdrawal", - type: "event", - }, - { - inputs: [], - name: "CHAIN_ID", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "COIN_TYPE", - outputs: [ - { - internalType: "enum CoinType", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "GAS_LIMIT", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "PROTOCOL_FLAT_FEE", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "SYSTEM_CONTRACT_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - 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: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "deposit", - 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: "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: "gasLimit", - type: "uint256", - }, - ], - name: "updateGasLimit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "updateProtocolFlatFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "addr", - type: "address", - }, - ], - name: "updateSystemContractAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawGasFee", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60c06040523480156200001157600080fd5b506040516200272c3803806200272c833981810160405281019062000037919062000319565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620000b1576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8660069080519060200190620000c99291906200018f565b508560079080519060200190620000e29291906200018f565b5084600860006101000a81548160ff021916908360ff16021790555083608081815250508260028111156200011c576200011b62000556565b5b60a081600281111562000134576200013362000556565b5b60f81b8152505081600181905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050505062000667565b8280546200019d90620004ea565b90600052602060002090601f016020900481019282620001c157600085556200020d565b82601f10620001dc57805160ff19168380011785556200020d565b828001600101855582156200020d579182015b828111156200020c578251825591602001919060010190620001ef565b5b5090506200021c919062000220565b5090565b5b808211156200023b57600081600090555060010162000221565b5090565b600062000256620002508462000433565b6200040a565b905082815260208101848484011115620002755762000274620005e8565b5b62000282848285620004b4565b509392505050565b6000815190506200029b8162000608565b92915050565b600081519050620002b28162000622565b92915050565b600082601f830112620002d057620002cf620005e3565b5b8151620002e28482602086016200023f565b91505092915050565b600081519050620002fc8162000633565b92915050565b60008151905062000313816200064d565b92915050565b600080600080600080600060e0888a0312156200033b576200033a620005f2565b5b600088015167ffffffffffffffff8111156200035c576200035b620005ed565b5b6200036a8a828b01620002b8565b975050602088015167ffffffffffffffff8111156200038e576200038d620005ed565b5b6200039c8a828b01620002b8565b9650506040620003af8a828b0162000302565b9550506060620003c28a828b01620002eb565b9450506080620003d58a828b01620002a1565b93505060a0620003e88a828b01620002eb565b92505060c0620003fb8a828b016200028a565b91505092959891949750929550565b60006200041662000429565b905062000424828262000520565b919050565b6000604051905090565b600067ffffffffffffffff821115620004515762000450620005b4565b5b6200045c82620005f7565b9050602081019050919050565b600062000476826200047d565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015620004d4578082015181840152602081019050620004b7565b83811115620004e4576000848401525b50505050565b600060028204905060018216806200050357607f821691505b602082108114156200051a576200051962000585565b5b50919050565b6200052b82620005f7565b810181811067ffffffffffffffff821117156200054d576200054c620005b4565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620006138162000469565b81146200061f57600080fd5b50565b600381106200063057600080fd5b50565b6200063e816200049d565b81146200064a57600080fd5b50565b6200065881620004a7565b81146200066457600080fd5b50565b60805160a05160f81c61208e6200069e60003960006108d501526000818161081f01528181610ba20152610cd7015261208e6000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806385e1f4d0116100b8578063c835d7cc1161007c578063c835d7cc146103a5578063d9eeebed146103c1578063dd62ed3e146103e0578063eddeb12314610410578063f2441b321461042c578063f687d12a1461044a57610142565b806385e1f4d0146102eb57806395d89b4114610309578063a3413d0314610327578063a9059cbb14610345578063c70126261461037557610142565b8063313ce5671161010a578063313ce567146102015780633ce4a5bc1461021f57806342966c681461023d57806347e7ef241461026d5780634d8943bb1461029d57806370a08231146102bb57610142565b806306fdde0314610147578063091d278814610165578063095ea7b31461018357806318160ddd146101b357806323b872dd146101d1575b600080fd5b61014f610466565b60405161015c9190611c04565b60405180910390f35b61016d6104f8565b60405161017a9190611c26565b60405180910390f35b61019d600480360381019061019891906118c5565b6104fe565b6040516101aa9190611b52565b60405180910390f35b6101bb61051c565b6040516101c89190611c26565b60405180910390f35b6101eb60048036038101906101e69190611872565b610526565b6040516101f89190611b52565b60405180910390f35b61020961061e565b6040516102169190611c41565b60405180910390f35b610227610635565b6040516102349190611ad7565b60405180910390f35b6102576004803603810190610252919061198e565b61064d565b6040516102649190611b52565b60405180910390f35b610287600480360381019061028291906118c5565b610662565b6040516102949190611b52565b60405180910390f35b6102a56107ce565b6040516102b29190611c26565b60405180910390f35b6102d560048036038101906102d091906117d8565b6107d4565b6040516102e29190611c26565b60405180910390f35b6102f361081d565b6040516103009190611c26565b60405180910390f35b610311610841565b60405161031e9190611c04565b60405180910390f35b61032f6108d3565b60405161033c9190611be9565b60405180910390f35b61035f600480360381019061035a91906118c5565b6108f7565b60405161036c9190611b52565b60405180910390f35b61038f600480360381019061038a9190611932565b610915565b60405161039c9190611b52565b60405180910390f35b6103bf60048036038101906103ba91906117d8565b610a6b565b005b6103c9610b5e565b6040516103d7929190611b29565b60405180910390f35b6103fa60048036038101906103f59190611832565b610dcb565b6040516104079190611c26565b60405180910390f35b61042a6004803603810190610425919061198e565b610e52565b005b610434610f0c565b6040516104419190611ad7565b60405180910390f35b610464600480360381019061045f919061198e565b610f30565b005b60606006805461047590611e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546104a190611e8a565b80156104ee5780601f106104c3576101008083540402835291602001916104ee565b820191906000526020600020905b8154815290600101906020018083116104d157829003601f168201915b5050505050905090565b60015481565b600061051261050b610fea565b8484610ff2565b6001905092915050565b6000600554905090565b60006105338484846111ab565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061057e610fea565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156105f5576040517f10bad14700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61061285610601610fea565b858461060d9190611d9a565b610ff2565b60019150509392505050565b6000600860009054906101000a900460ff16905090565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b60006106593383611407565b60019050919050565b600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610700575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610737576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61074183836115bf565b8273ffffffffffffffffffffffffffffffffffffffff167f67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab373735b14bb79463307aacbed86daf3322b1e6226ab60405160200161079e9190611abc565b604051602081830303815290604052846040516107bc929190611b6d565b60405180910390a26001905092915050565b60025481565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60606007805461085090611e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461087c90611e8a565b80156108c95780601f1061089e576101008083540402835291602001916108c9565b820191906000526020600020905b8154815290600101906020018083116108ac57829003601f168201915b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061090b610904610fea565b84846111ab565b6001905092915050565b6000806000610922610b5e565b915091508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3373735b14bb79463307aacbed86daf3322b1e6226ab846040518463ffffffff1660e01b815260040161097793929190611af2565b602060405180830381600087803b15801561099157600080fd5b505af11580156109a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c99190611905565b6109ff576040517f0a7cd6d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a093385611407565b3373ffffffffffffffffffffffffffffffffffffffff167f9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955868684600254604051610a579493929190611b9d565b60405180910390a260019250505092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ae4576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae81604051610b539190611ad7565b60405180910390a150565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630be155477f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610bdd9190611c26565b60206040518083038186803b158015610bf557600080fd5b505afa158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d9190611805565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610c96576040517f78fff39600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7fd7afb7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610d129190611c26565b60206040518083038186803b158015610d2a57600080fd5b505afa158015610d3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6291906119bb565b90506000811415610d9f576040517fe661aed000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060025460015483610db29190611d40565b610dbc9190611cea565b90508281945094505050509091565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ecb576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002819055507fef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f81604051610f019190611c26565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fa9576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055507fff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a81604051610fdf9190611c26565b60405180910390a150565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611059576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110c0576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161119e9190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611212576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611279576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156112f7576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816113039190611d9a565b600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113959190611cea565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516113f99190611c26565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561146e576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156114ec576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816114f89190611d9a565b600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816005600082825461154d9190611d9a565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516115b29190611c26565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611626576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560008282546116389190611cea565b9250508190555080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168e9190611cea565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516116f39190611c26565b60405180910390a35050565b600061171261170d84611c81565b611c5c565b90508281526020810184848401111561172e5761172d611fd2565b5b611739848285611e48565b509392505050565b60008135905061175081612013565b92915050565b60008151905061176581612013565b92915050565b60008151905061177a8161202a565b92915050565b600082601f83011261179557611794611fcd565b5b81356117a58482602086016116ff565b91505092915050565b6000813590506117bd81612041565b92915050565b6000815190506117d281612041565b92915050565b6000602082840312156117ee576117ed611fdc565b5b60006117fc84828501611741565b91505092915050565b60006020828403121561181b5761181a611fdc565b5b600061182984828501611756565b91505092915050565b6000806040838503121561184957611848611fdc565b5b600061185785828601611741565b925050602061186885828601611741565b9150509250929050565b60008060006060848603121561188b5761188a611fdc565b5b600061189986828701611741565b93505060206118aa86828701611741565b92505060406118bb868287016117ae565b9150509250925092565b600080604083850312156118dc576118db611fdc565b5b60006118ea85828601611741565b92505060206118fb858286016117ae565b9150509250929050565b60006020828403121561191b5761191a611fdc565b5b60006119298482850161176b565b91505092915050565b6000806040838503121561194957611948611fdc565b5b600083013567ffffffffffffffff81111561196757611966611fd7565b5b61197385828601611780565b9250506020611984858286016117ae565b9150509250929050565b6000602082840312156119a4576119a3611fdc565b5b60006119b2848285016117ae565b91505092915050565b6000602082840312156119d1576119d0611fdc565b5b60006119df848285016117c3565b91505092915050565b6119f181611dce565b82525050565b611a08611a0382611dce565b611eed565b82525050565b611a1781611de0565b82525050565b6000611a2882611cb2565b611a328185611cc8565b9350611a42818560208601611e57565b611a4b81611fe1565b840191505092915050565b611a5f81611e36565b82525050565b6000611a7082611cbd565b611a7a8185611cd9565b9350611a8a818560208601611e57565b611a9381611fe1565b840191505092915050565b611aa781611e1f565b82525050565b611ab681611e29565b82525050565b6000611ac882846119f7565b60148201915081905092915050565b6000602082019050611aec60008301846119e8565b92915050565b6000606082019050611b0760008301866119e8565b611b1460208301856119e8565b611b216040830184611a9e565b949350505050565b6000604082019050611b3e60008301856119e8565b611b4b6020830184611a9e565b9392505050565b6000602082019050611b676000830184611a0e565b92915050565b60006040820190508181036000830152611b878185611a1d565b9050611b966020830184611a9e565b9392505050565b60006080820190508181036000830152611bb78187611a1d565b9050611bc66020830186611a9e565b611bd36040830185611a9e565b611be06060830184611a9e565b95945050505050565b6000602082019050611bfe6000830184611a56565b92915050565b60006020820190508181036000830152611c1e8184611a65565b905092915050565b6000602082019050611c3b6000830184611a9e565b92915050565b6000602082019050611c566000830184611aad565b92915050565b6000611c66611c77565b9050611c728282611ebc565b919050565b6000604051905090565b600067ffffffffffffffff821115611c9c57611c9b611f9e565b5b611ca582611fe1565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611cf582611e1f565b9150611d0083611e1f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611d3557611d34611f11565b5b828201905092915050565b6000611d4b82611e1f565b9150611d5683611e1f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d8f57611d8e611f11565b5b828202905092915050565b6000611da582611e1f565b9150611db083611e1f565b925082821015611dc357611dc2611f11565b5b828203905092915050565b6000611dd982611dff565b9050919050565b60008115159050919050565b6000819050611dfa82611fff565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611e4182611dec565b9050919050565b82818337600083830152505050565b60005b83811015611e75578082015181840152602081019050611e5a565b83811115611e84576000848401525b50505050565b60006002820490506001821680611ea257607f821691505b60208210811415611eb657611eb5611f6f565b5b50919050565b611ec582611fe1565b810181811067ffffffffffffffff82111715611ee457611ee3611f9e565b5b80604052505050565b6000611ef882611eff565b9050919050565b6000611f0a82611ff2565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b600381106120105761200f611f40565b5b50565b61201c81611dce565b811461202757600080fd5b50565b61203381611de0565b811461203e57600080fd5b50565b61204a81611e1f565b811461205557600080fd5b5056fea2646970667358221220afef7d1a51c1829fcaf89af9a3239ae43ab2f828aa86ff901f729544637e39d464736f6c63430008070033"; - -type ZRC20ConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZRC20ConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZRC20__factory extends ContractFactory { - constructor(...args: ZRC20ConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - chainid_: PromiseOrValue, - coinType_: PromiseOrValue, - gasLimit_: PromiseOrValue, - systemContractAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - name_, - symbol_, - decimals_, - chainid_, - coinType_, - gasLimit_, - systemContractAddress_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - chainid_: PromiseOrValue, - coinType_: PromiseOrValue, - gasLimit_: PromiseOrValue, - systemContractAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - name_, - symbol_, - decimals_, - chainid_, - coinType_, - gasLimit_, - systemContractAddress_, - overrides || {} - ); - } - override attach(address: string): ZRC20 { - return super.attach(address) as ZRC20; - } - override connect(signer: Signer): ZRC20__factory { - return super.connect(signer) as ZRC20__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZRC20Interface { - return new utils.Interface(_abi) as ZRC20Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): ZRC20 { - return new Contract(address, _abi, signerOrProvider) as ZRC20; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/index.ts deleted file mode 100644 index 7022ef80d..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZRC20.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZRC20__factory } from "./ZRC20__factory"; -export { ZRC20Errors__factory } from "./ZRC20Errors__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20Errors__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20Errors__factory.ts deleted file mode 100644 index b50ce364b..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20Errors__factory.ts +++ /dev/null @@ -1,66 +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 { - ZRC20Errors, - ZRC20ErrorsInterface, -} from "../../../../contracts/zevm/ZRC20New.sol/ZRC20Errors"; - -const _abi = [ - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "GasFeeTransferFailed", - type: "error", - }, - { - inputs: [], - name: "InvalidSender", - type: "error", - }, - { - inputs: [], - name: "LowAllowance", - type: "error", - }, - { - inputs: [], - name: "LowBalance", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, - { - inputs: [], - name: "ZeroGasCoin", - type: "error", - }, - { - inputs: [], - name: "ZeroGasPrice", - type: "error", - }, -] as const; - -export class ZRC20Errors__factory { - static readonly abi = _abi; - static createInterface(): ZRC20ErrorsInterface { - return new utils.Interface(_abi) as ZRC20ErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZRC20Errors { - return new Contract(address, _abi, signerOrProvider) as ZRC20Errors; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20New__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20New__factory.ts deleted file mode 100644 index dd4e8c544..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/ZRC20New__factory.ts +++ /dev/null @@ -1,730 +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 { - ZRC20New, - ZRC20NewInterface, -} from "../../../../contracts/zevm/ZRC20New.sol/ZRC20New"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "name_", - type: "string", - }, - { - internalType: "string", - name: "symbol_", - type: "string", - }, - { - internalType: "uint8", - name: "decimals_", - type: "uint8", - }, - { - internalType: "uint256", - name: "chainid_", - type: "uint256", - }, - { - internalType: "enum CoinType", - name: "coinType_", - type: "uint8", - }, - { - internalType: "uint256", - name: "gasLimit_", - type: "uint256", - }, - { - internalType: "address", - name: "systemContractAddress_", - type: "address", - }, - { - internalType: "address", - name: "gatewayContractAddress_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "GasFeeTransferFailed", - type: "error", - }, - { - inputs: [], - name: "InvalidSender", - type: "error", - }, - { - inputs: [], - name: "LowAllowance", - type: "error", - }, - { - inputs: [], - name: "LowBalance", - type: "error", - }, - { - inputs: [], - name: "ZeroAddress", - type: "error", - }, - { - inputs: [], - name: "ZeroGasCoin", - type: "error", - }, - { - inputs: [], - name: "ZeroGasPrice", - type: "error", - }, - { - 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: false, - internalType: "bytes", - name: "from", - type: "bytes", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Deposit", - 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", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "gasLimit", - type: "uint256", - }, - ], - name: "UpdatedGasLimit", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "UpdatedProtocolFlatFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "systemContract", - type: "address", - }, - ], - name: "UpdatedSystemContract", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "gasFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "Withdrawal", - type: "event", - }, - { - inputs: [], - name: "CHAIN_ID", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "COIN_TYPE", - outputs: [ - { - internalType: "enum CoinType", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "GAS_LIMIT", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "GATEWAY_CONTRACT_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "PROTOCOL_FLAT_FEE", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "SYSTEM_CONTRACT_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - 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: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "deposit", - 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: "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: "gasLimit", - type: "uint256", - }, - ], - name: "updateGasLimit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "updateProtocolFlatFee", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "addr", - type: "address", - }, - ], - name: "updateSystemContractAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawGasFee", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60c06040523480156200001157600080fd5b506040516200282d3803806200282d83398181016040528101906200003791906200035b565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620000b1576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8760079080519060200190620000c9929190620001d1565b508660089080519060200190620000e2929190620001d1565b5085600960006101000a81548160ff021916908360ff16021790555084608081815250508360028111156200011c576200011b620005ae565b5b60a0816002811115620001345762000133620005ae565b5b60f81b8152505082600281905550816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050505050620006bf565b828054620001df9062000542565b90600052602060002090601f0160209004810192826200020357600085556200024f565b82601f106200021e57805160ff19168380011785556200024f565b828001600101855582156200024f579182015b828111156200024e57825182559160200191906001019062000231565b5b5090506200025e919062000262565b5090565b5b808211156200027d57600081600090555060010162000263565b5090565b60006200029862000292846200048b565b62000462565b905082815260208101848484011115620002b757620002b662000640565b5b620002c48482856200050c565b509392505050565b600081519050620002dd8162000660565b92915050565b600081519050620002f4816200067a565b92915050565b600082601f8301126200031257620003116200063b565b5b81516200032484826020860162000281565b91505092915050565b6000815190506200033e816200068b565b92915050565b6000815190506200035581620006a5565b92915050565b600080600080600080600080610100898b0312156200037f576200037e6200064a565b5b600089015167ffffffffffffffff811115620003a0576200039f62000645565b5b620003ae8b828c01620002fa565b985050602089015167ffffffffffffffff811115620003d257620003d162000645565b5b620003e08b828c01620002fa565b9750506040620003f38b828c0162000344565b9650506060620004068b828c016200032d565b9550506080620004198b828c01620002e3565b94505060a06200042c8b828c016200032d565b93505060c06200043f8b828c01620002cc565b92505060e0620004528b828c01620002cc565b9150509295985092959890939650565b60006200046e62000481565b90506200047c828262000578565b919050565b6000604051905090565b600067ffffffffffffffff821115620004a957620004a86200060c565b5b620004b4826200064f565b9050602081019050919050565b6000620004ce82620004d5565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156200052c5780820151818401526020810190506200050f565b838111156200053c576000848401525b50505050565b600060028204905060018216806200055b57607f821691505b60208210811415620005725762000571620005dd565b5b50919050565b62000583826200064f565b810181811067ffffffffffffffff82111715620005a557620005a46200060c565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6200066b81620004c1565b81146200067757600080fd5b50565b600381106200068857600080fd5b50565b6200069681620004f5565b8114620006a257600080fd5b50565b620006b081620004ff565b8114620006bc57600080fd5b50565b60805160a05160f81c612137620006f660003960006109580152600081816108a201528181610c250152610d5a01526121376000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806385e1f4d0116100c3578063d9eeebed1161007c578063d9eeebed146103cc578063dd62ed3e146103eb578063e2f535b81461041b578063eddeb12314610439578063f2441b3214610455578063f687d12a146104735761014d565b806385e1f4d0146102f657806395d89b4114610314578063a3413d0314610332578063a9059cbb14610350578063c701262614610380578063c835d7cc146103b05761014d565b8063313ce56711610115578063313ce5671461020c5780633ce4a5bc1461022a57806342966c681461024857806347e7ef24146102785780634d8943bb146102a857806370a08231146102c65761014d565b806306fdde0314610152578063091d278814610170578063095ea7b31461018e57806318160ddd146101be57806323b872dd146101dc575b600080fd5b61015a61048f565b6040516101679190611cad565b60405180910390f35b610178610521565b6040516101859190611ccf565b60405180910390f35b6101a860048036038101906101a3919061196e565b610527565b6040516101b59190611bfb565b60405180910390f35b6101c6610545565b6040516101d39190611ccf565b60405180910390f35b6101f660048036038101906101f1919061191b565b61054f565b6040516102039190611bfb565b60405180910390f35b610214610647565b6040516102219190611cea565b60405180910390f35b61023261065e565b60405161023f9190611b80565b60405180910390f35b610262600480360381019061025d9190611a37565b610676565b60405161026f9190611bfb565b60405180910390f35b610292600480360381019061028d919061196e565b61068b565b60405161029f9190611bfb565b60405180910390f35b6102b0610851565b6040516102bd9190611ccf565b60405180910390f35b6102e060048036038101906102db9190611881565b610857565b6040516102ed9190611ccf565b60405180910390f35b6102fe6108a0565b60405161030b9190611ccf565b60405180910390f35b61031c6108c4565b6040516103299190611cad565b60405180910390f35b61033a610956565b6040516103479190611c92565b60405180910390f35b61036a6004803603810190610365919061196e565b61097a565b6040516103779190611bfb565b60405180910390f35b61039a600480360381019061039591906119db565b610998565b6040516103a79190611bfb565b60405180910390f35b6103ca60048036038101906103c59190611881565b610aee565b005b6103d4610be1565b6040516103e2929190611bd2565b60405180910390f35b610405600480360381019061040091906118db565b610e4e565b6040516104129190611ccf565b60405180910390f35b610423610ed5565b6040516104309190611b80565b60405180910390f35b610453600480360381019061044e9190611a37565b610efb565b005b61045d610fb5565b60405161046a9190611b80565b60405180910390f35b61048d60048036038101906104889190611a37565b610fd9565b005b60606007805461049e90611f33565b80601f01602080910402602001604051908101604052809291908181526020018280546104ca90611f33565b80156105175780601f106104ec57610100808354040283529160200191610517565b820191906000526020600020905b8154815290600101906020018083116104fa57829003601f168201915b5050505050905090565b60025481565b600061053b610534611093565b848461109b565b6001905092915050565b6000600654905090565b600061055c848484611254565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006105a7611093565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508281101561061e576040517f10bad14700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61063b8561062a611093565b85846106369190611e43565b61109b565b60019150509392505050565b6000600960009054906101000a900460ff16905090565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b600061068233836114b0565b60019050919050565b600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610729575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b80156107835750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b156107ba576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107c48383611668565b8273ffffffffffffffffffffffffffffffffffffffff167f67fc7bdaed5b0ec550d8706b87d60568ab70c6b781263c70101d54cd1564aab373735b14bb79463307aacbed86daf3322b1e6226ab6040516020016108219190611b65565b6040516020818303038152906040528460405161083f929190611c16565b60405180910390a26001905092915050565b60035481565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6060600880546108d390611f33565b80601f01602080910402602001604051908101604052809291908181526020018280546108ff90611f33565b801561094c5780601f106109215761010080835404028352916020019161094c565b820191906000526020600020905b81548152906001019060200180831161092f57829003601f168201915b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b600061098e610987611093565b8484611254565b6001905092915050565b60008060006109a5610be1565b915091508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3373735b14bb79463307aacbed86daf3322b1e6226ab846040518463ffffffff1660e01b81526004016109fa93929190611b9b565b602060405180830381600087803b158015610a1457600080fd5b505af1158015610a28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4c91906119ae565b610a82576040517f0a7cd6d600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a8c33856114b0565b3373ffffffffffffffffffffffffffffffffffffffff167f9ffbffc04a397460ee1dbe8c9503e098090567d6b7f4b3c02a8617d800b6d955868684600354604051610ada9493929190611c46565b60405180910390a260019250505092915050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b67576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd55614e962c5fd6ece71614f6348d702468a997a394dd5e5c1677950226d97ae81604051610bd69190611b80565b60405180910390a150565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630be155477f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610c609190611ccf565b60206040518083038186803b158015610c7857600080fd5b505afa158015610c8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb091906118ae565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d19576040517f78fff39600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d7fd7afb7f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b8152600401610d959190611ccf565b60206040518083038186803b158015610dad57600080fd5b505afa158015610dc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de59190611a64565b90506000811415610e22576040517fe661aed000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060035460025483610e359190611de9565b610e3f9190611d93565b90508281945094505050509091565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f74576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806003819055507fef13af88e424b5d15f49c77758542c1938b08b8b95b91ed0751f98ba99000d8f81604051610faa9190611ccf565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611052576040517f2b2add3d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806002819055507fff5788270f43bfc1ca41c503606d2594aa3023a1a7547de403a3e2f146a4a80a816040516110889190611ccf565b60405180910390a150565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611102576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611169576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516112479190611ccf565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156112bb576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611322576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156113a0576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816113ac9190611e43565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461143e9190611d93565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516114a29190611ccf565b60405180910390a350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611517576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611595576040517ffe382aa700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81816115a19190611e43565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555081600660008282546115f69190611e43565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161165b9190611ccf565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116cf576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600660008282546116e19190611d93565b9250508190555080600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117379190611d93565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161179c9190611ccf565b60405180910390a35050565b60006117bb6117b684611d2a565b611d05565b9050828152602081018484840111156117d7576117d661207b565b5b6117e2848285611ef1565b509392505050565b6000813590506117f9816120bc565b92915050565b60008151905061180e816120bc565b92915050565b600081519050611823816120d3565b92915050565b600082601f83011261183e5761183d612076565b5b813561184e8482602086016117a8565b91505092915050565b600081359050611866816120ea565b92915050565b60008151905061187b816120ea565b92915050565b60006020828403121561189757611896612085565b5b60006118a5848285016117ea565b91505092915050565b6000602082840312156118c4576118c3612085565b5b60006118d2848285016117ff565b91505092915050565b600080604083850312156118f2576118f1612085565b5b6000611900858286016117ea565b9250506020611911858286016117ea565b9150509250929050565b60008060006060848603121561193457611933612085565b5b6000611942868287016117ea565b9350506020611953868287016117ea565b925050604061196486828701611857565b9150509250925092565b6000806040838503121561198557611984612085565b5b6000611993858286016117ea565b92505060206119a485828601611857565b9150509250929050565b6000602082840312156119c4576119c3612085565b5b60006119d284828501611814565b91505092915050565b600080604083850312156119f2576119f1612085565b5b600083013567ffffffffffffffff811115611a1057611a0f612080565b5b611a1c85828601611829565b9250506020611a2d85828601611857565b9150509250929050565b600060208284031215611a4d57611a4c612085565b5b6000611a5b84828501611857565b91505092915050565b600060208284031215611a7a57611a79612085565b5b6000611a888482850161186c565b91505092915050565b611a9a81611e77565b82525050565b611ab1611aac82611e77565b611f96565b82525050565b611ac081611e89565b82525050565b6000611ad182611d5b565b611adb8185611d71565b9350611aeb818560208601611f00565b611af48161208a565b840191505092915050565b611b0881611edf565b82525050565b6000611b1982611d66565b611b238185611d82565b9350611b33818560208601611f00565b611b3c8161208a565b840191505092915050565b611b5081611ec8565b82525050565b611b5f81611ed2565b82525050565b6000611b718284611aa0565b60148201915081905092915050565b6000602082019050611b956000830184611a91565b92915050565b6000606082019050611bb06000830186611a91565b611bbd6020830185611a91565b611bca6040830184611b47565b949350505050565b6000604082019050611be76000830185611a91565b611bf46020830184611b47565b9392505050565b6000602082019050611c106000830184611ab7565b92915050565b60006040820190508181036000830152611c308185611ac6565b9050611c3f6020830184611b47565b9392505050565b60006080820190508181036000830152611c608187611ac6565b9050611c6f6020830186611b47565b611c7c6040830185611b47565b611c896060830184611b47565b95945050505050565b6000602082019050611ca76000830184611aff565b92915050565b60006020820190508181036000830152611cc78184611b0e565b905092915050565b6000602082019050611ce46000830184611b47565b92915050565b6000602082019050611cff6000830184611b56565b92915050565b6000611d0f611d20565b9050611d1b8282611f65565b919050565b6000604051905090565b600067ffffffffffffffff821115611d4557611d44612047565b5b611d4e8261208a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000611d9e82611ec8565b9150611da983611ec8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611dde57611ddd611fba565b5b828201905092915050565b6000611df482611ec8565b9150611dff83611ec8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611e3857611e37611fba565b5b828202905092915050565b6000611e4e82611ec8565b9150611e5983611ec8565b925082821015611e6c57611e6b611fba565b5b828203905092915050565b6000611e8282611ea8565b9050919050565b60008115159050919050565b6000819050611ea3826120a8565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b6000611eea82611e95565b9050919050565b82818337600083830152505050565b60005b83811015611f1e578082015181840152602081019050611f03565b83811115611f2d576000848401525b50505050565b60006002820490506001821680611f4b57607f821691505b60208210811415611f5f57611f5e612018565b5b50919050565b611f6e8261208a565b810181811067ffffffffffffffff82111715611f8d57611f8c612047565b5b80604052505050565b6000611fa182611fa8565b9050919050565b6000611fb38261209b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b600381106120b9576120b8611fe9565b5b50565b6120c581611e77565b81146120d057600080fd5b50565b6120dc81611e89565b81146120e757600080fd5b50565b6120f381611ec8565b81146120fe57600080fd5b5056fea264697066735822122088cc6797a637e9f7f0d8220bcf745a632c2a8fcb9c479e8f3633f88f9d369ecc64736f6c63430008070033"; - -type ZRC20NewConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZRC20NewConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZRC20New__factory extends ContractFactory { - constructor(...args: ZRC20NewConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - chainid_: PromiseOrValue, - coinType_: PromiseOrValue, - gasLimit_: PromiseOrValue, - systemContractAddress_: PromiseOrValue, - gatewayContractAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - name_, - symbol_, - decimals_, - chainid_, - coinType_, - gasLimit_, - systemContractAddress_, - gatewayContractAddress_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - name_: PromiseOrValue, - symbol_: PromiseOrValue, - decimals_: PromiseOrValue, - chainid_: PromiseOrValue, - coinType_: PromiseOrValue, - gasLimit_: PromiseOrValue, - systemContractAddress_: PromiseOrValue, - gatewayContractAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - name_, - symbol_, - decimals_, - chainid_, - coinType_, - gasLimit_, - systemContractAddress_, - gatewayContractAddress_, - overrides || {} - ); - } - override attach(address: string): ZRC20New { - return super.attach(address) as ZRC20New; - } - override connect(signer: Signer): ZRC20New__factory { - return super.connect(signer) as ZRC20New__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZRC20NewInterface { - return new utils.Interface(_abi) as ZRC20NewInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZRC20New { - return new Contract(address, _abi, signerOrProvider) as ZRC20New; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/index.ts deleted file mode 100644 index 7e4b987c7..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZRC20New.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZRC20Errors__factory } from "./ZRC20Errors__factory"; -export { ZRC20New__factory } from "./ZRC20New__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/WZETA__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/WZETA__factory.ts deleted file mode 100644 index e4a3c435a..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/WZETA__factory.ts +++ /dev/null @@ -1,65 +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 { - WZETA, - WZETAInterface, -} from "../../../../contracts/zevm/ZetaConnectorZEVM.sol/WZETA"; - -const _abi = [ - { - 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", - }, -] as const; - -export class WZETA__factory { - static readonly abi = _abi; - static createInterface(): WZETAInterface { - return new utils.Interface(_abi) as WZETAInterface; - } - static connect(address: string, signerOrProvider: Signer | Provider): WZETA { - return new Contract(address, _abi, signerOrProvider) as WZETA; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts deleted file mode 100644 index 6e8eaadb5..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts +++ /dev/null @@ -1,430 +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 { - ZetaConnectorZEVM, - ZetaConnectorZEVMInterface, -} from "../../../../contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "wzeta_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "FailedZetaSent", - type: "error", - }, - { - inputs: [], - name: "OnlyFungibleModule", - type: "error", - }, - { - inputs: [], - name: "OnlyWZETAOrFungible", - type: "error", - }, - { - inputs: [], - name: "WZETATransferFailed", - type: "error", - }, - { - inputs: [], - name: "WrongValue", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "wzeta_", - type: "address", - }, - ], - name: "SetWZETA", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReceived", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReverted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sourceTxOriginAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: false, - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - name: "ZetaSent", - type: "event", - }, - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onReceive", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onRevert", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.SendInput", - name: "input", - type: "tuple", - }, - ], - name: "send", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "wzeta_", - type: "address", - }, - ], - name: "setWzetaAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "wzeta", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b506040516200177d3803806200177d833981810160405281019062000037919062000095565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200011a565b6000815190506200008f8162000100565b92915050565b600060208284031215620000ae57620000ad620000fb565b5b6000620000be848285016200007e565b91505092915050565b6000620000d482620000db565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200010b81620000c7565b81146200011757600080fd5b50565b611653806200012a6000396000f3fe6080604052600436106100585760003560e01c8062173d461461013757806329dd214d146101625780633ce4a5bc1461017e578063942a5e16146101a9578063eb3bacbd146101c5578063ec026901146101ee57610132565b366101325760008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156100f9575073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610130576040517f229930b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b34801561014357600080fd5b5061014c610217565b6040516101599190611276565b60405180910390f35b61017c60048036038101906101779190610f77565b61023b565b005b34801561018a57600080fd5b506101936105f1565b6040516101a09190611276565b60405180910390f35b6101c360048036038101906101be9190610e68565b610609565b005b3480156101d157600080fd5b506101ec60048036038101906101e79190610e3b565b6109b3565b005b3480156101fa57600080fd5b5061021560048036038101906102109190611046565b610aa6565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146102b4576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146102ed576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561035557600080fd5b505af1158015610369573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3087876040518463ffffffff1660e01b81526004016103cb93929190611291565b602060405180830381600087803b1580156103e557600080fd5b505af11580156103f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041d9190610f4a565b610453576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600083839050111561058f578473ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018981526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b815260040161055c91906113f2565b600060405180830381600087803b15801561057657600080fd5b505af115801561058a573d6000803e3d6000fd5b505050505b808573ffffffffffffffffffffffffffffffffffffffff16877ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988b8b8989896040516105df9594939291906113a9565b60405180910390a45050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610682576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8334146106bb576040517f98d4901c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561072357600080fd5b505af1158015610737573d6000803e3d6000fd5b505050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd308b876040518463ffffffff1660e01b815260040161079993929190611291565b602060405180830381600087803b1580156107b357600080fd5b505af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb9190610f4a565b610821576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838390501115610963578873ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b81526020018a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200188815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016109309190611414565b600060405180830381600087803b15801561094a57600080fd5b505af115801561095e573d6000803e3d6000fd5b505050505b80857f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888b8b8b8b8a8a8a6040516109a09796959493929190611344565b60405180910390a3505050505050505050565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a2c576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7325870b05f8f3412c318a35fc6a74feca51ea15811ec7a257676ca4db9d417681604051610a9b9190611276565b60405180910390a150565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333084608001356040518463ffffffff1660e01b8152600401610b0793929190611291565b602060405180830381600087803b158015610b2157600080fd5b505af1158015610b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b599190610f4a565b610b8f576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d82608001356040518263ffffffff1660e01b8152600401610bec9190611436565b600060405180830381600087803b158015610c0657600080fd5b505af1158015610c1a573d6000803e3d6000fd5b50505050600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff168260800135604051610c5c90611261565b60006040518083038185875af1925050503d8060008114610c99576040519150601f19603f3d011682016040523d82523d6000602084013e610c9e565b606091505b5050905080610cd9576040517fc7ffc47b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e432858060200190610d279190611451565b87608001358860400135898060600190610d419190611451565b8b8060a00190610d519190611451565b604051610d66999897969594939291906112c8565b60405180910390a35050565b600081359050610d81816115c1565b92915050565b600081519050610d96816115d8565b92915050565b600081359050610dab816115ef565b92915050565b60008083601f840112610dc757610dc6611585565b5b8235905067ffffffffffffffff811115610de457610de3611580565b5b602083019150836001820283011115610e0057610dff611599565b5b9250929050565b600060c08284031215610e1d57610e1c61158f565b5b81905092915050565b600081359050610e3581611606565b92915050565b600060208284031215610e5157610e506115a8565b5b6000610e5f84828501610d72565b91505092915050565b600080600080600080600080600060e08a8c031215610e8a57610e896115a8565b5b6000610e988c828d01610d72565b9950506020610ea98c828d01610e26565b98505060408a013567ffffffffffffffff811115610eca57610ec96115a3565b5b610ed68c828d01610db1565b97509750506060610ee98c828d01610e26565b9550506080610efa8c828d01610e26565b94505060a08a013567ffffffffffffffff811115610f1b57610f1a6115a3565b5b610f278c828d01610db1565b935093505060c0610f3a8c828d01610d9c565b9150509295985092959850929598565b600060208284031215610f6057610f5f6115a8565b5b6000610f6e84828501610d87565b91505092915050565b60008060008060008060008060c0898b031215610f9757610f966115a8565b5b600089013567ffffffffffffffff811115610fb557610fb46115a3565b5b610fc18b828c01610db1565b98509850506020610fd48b828c01610e26565b9650506040610fe58b828c01610d72565b9550506060610ff68b828c01610e26565b945050608089013567ffffffffffffffff811115611017576110166115a3565b5b6110238b828c01610db1565b935093505060a06110368b828c01610d9c565b9150509295985092959890939650565b60006020828403121561105c5761105b6115a8565b5b600082013567ffffffffffffffff81111561107a576110796115a3565b5b61108684828501610e07565b91505092915050565b611098816114ec565b82525050565b6110a7816114ec565b82525050565b60006110b983856114d0565b93506110c683858461153e565b6110cf836115ad565b840190509392505050565b60006110e5826114b4565b6110ef81856114bf565b93506110ff81856020860161154d565b611108816115ad565b840191505092915050565b60006111206000836114e1565b915061112b826115be565b600082019050919050565b600060a083016000830151848203600086015261115382826110da565b91505060208301516111686020860182611243565b50604083015161117b604086018261108f565b50606083015161118e6060860182611243565b50608083015184820360808601526111a682826110da565b9150508091505092915050565b600060c0830160008301516111cb600086018261108f565b5060208301516111de6020860182611243565b50604083015184820360408601526111f682826110da565b915050606083015161120b6060860182611243565b50608083015161121e6080860182611243565b5060a083015184820360a086015261123682826110da565b9150508091505092915050565b61124c81611534565b82525050565b61125b81611534565b82525050565b600061126c82611113565b9150819050919050565b600060208201905061128b600083018461109e565b92915050565b60006060820190506112a6600083018661109e565b6112b3602083018561109e565b6112c06040830184611252565b949350505050565b600060c0820190506112dd600083018c61109e565b81810360208301526112f0818a8c6110ad565b90506112ff6040830189611252565b61130c6060830188611252565b818103608083015261131f8186886110ad565b905081810360a08301526113348184866110ad565b90509a9950505050505050505050565b600060a082019050611359600083018a61109e565b6113666020830189611252565b81810360408301526113798187896110ad565b90506113886060830186611252565b818103608083015261139b8184866110ad565b905098975050505050505050565b600060608201905081810360008301526113c48187896110ad565b90506113d36020830186611252565b81810360408301526113e68184866110ad565b90509695505050505050565b6000602082019050818103600083015261140c8184611136565b905092915050565b6000602082019050818103600083015261142e81846111b3565b905092915050565b600060208201905061144b6000830184611252565b92915050565b6000808335600160200384360303811261146e5761146d611594565b5b80840192508235915067ffffffffffffffff8211156114905761148f61158a565b5b6020830192506001820236038313156114ac576114ab61159e565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006114f782611514565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561156b578082015181840152602081019050611550565b8381111561157a576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b50565b6115ca816114ec565b81146115d557600080fd5b50565b6115e1816114fe565b81146115ec57600080fd5b50565b6115f88161150a565b811461160357600080fd5b50565b61160f81611534565b811461161a57600080fd5b5056fea26469706673582212208fcfd4dd090449f8c32ab1dc30eb44ec918bcb60da6d7ed0572173ea3fdf6fd364736f6c63430008070033"; - -type ZetaConnectorZEVMConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaConnectorZEVMConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaConnectorZEVM__factory extends ContractFactory { - constructor(...args: ZetaConnectorZEVMConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - wzeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy(wzeta_, overrides || {}) as Promise; - } - override getDeployTransaction( - wzeta_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction(wzeta_, overrides || {}); - } - override attach(address: string): ZetaConnectorZEVM { - return super.attach(address) as ZetaConnectorZEVM; - } - override connect(signer: Signer): ZetaConnectorZEVM__factory { - return super.connect(signer) as ZetaConnectorZEVM__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaConnectorZEVMInterface { - return new utils.Interface(_abi) as ZetaConnectorZEVMInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaConnectorZEVM { - return new Contract(address, _abi, signerOrProvider) as ZetaConnectorZEVM; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts deleted file mode 100644 index cb995084d..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts +++ /dev/null @@ -1,111 +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 { - ZetaReceiver, - ZetaReceiverInterface, -} from "../../../../contracts/zevm/ZetaConnectorZEVM.sol/ZetaReceiver"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaMessage", - name: "zetaMessage", - type: "tuple", - }, - ], - name: "onZetaMessage", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.ZetaRevert", - name: "zetaRevert", - type: "tuple", - }, - ], - name: "onZetaRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ZetaReceiver__factory { - static readonly abi = _abi; - static createInterface(): ZetaReceiverInterface { - return new utils.Interface(_abi) as ZetaReceiverInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaReceiver { - return new Contract(address, _abi, signerOrProvider) as ZetaReceiver; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/index.ts deleted file mode 100644 index aada4e390..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { ZetaConnectorZEVM__factory } from "./ZetaConnectorZEVM__factory"; -export { ZetaReceiver__factory } from "./ZetaReceiver__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM__factory.ts b/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM__factory.ts deleted file mode 100644 index c937e775e..000000000 --- a/v1/typechain-types/factories/contracts/zevm/ZetaConnectorZEVM__factory.ts +++ /dev/null @@ -1,679 +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 { - ZetaConnectorZEVM, - ZetaConnectorZEVMInterface, -} from "../../../contracts/zevm/ZetaConnectorZEVM"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "zetaTokenAddress_", - type: "address", - }, - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - { - internalType: "address", - name: "tssAddressUpdater_", - type: "address", - }, - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotPauser", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTss", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssOrUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "caller", - type: "address", - }, - ], - name: "CallerIsNotTssUpdater", - type: "error", - }, - { - inputs: [ - { - internalType: "uint256", - name: "maxSupply", - type: "uint256", - }, - ], - name: "ExceedsMaxSupply", - type: "error", - }, - { - inputs: [], - name: "FailedZetaSent", - type: "error", - }, - { - inputs: [], - name: "InvalidAddress", - type: "error", - }, - { - inputs: [], - name: "OnlyFungibleModule", - type: "error", - }, - { - inputs: [], - name: "OnlyWZETA", - type: "error", - }, - { - inputs: [], - name: "WZETATransferFailed", - type: "error", - }, - { - inputs: [], - name: "ZetaTransferError", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Paused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "PauserAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssAddress", - type: "address", - }, - ], - name: "TSSAddressUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "callerAddress", - type: "address", - }, - { - indexed: false, - internalType: "address", - name: "newTssUpdaterAddress", - type: "address", - }, - ], - name: "TSSAddressUpdaterUpdated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "Unpaused", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - indexed: true, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReceived", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: true, - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "ZetaReverted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "sourceTxOriginAddress", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - indexed: false, - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - indexed: false, - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - name: "ZetaSent", - type: "event", - }, - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "zetaTxSenderAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "address", - name: "destinationAddress", - type: "address", - }, - { - internalType: "uint256", - name: "zetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onReceive", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "zetaTxSenderAddress", - type: "address", - }, - { - internalType: "uint256", - name: "sourceChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "uint256", - name: "remainingZetaValue", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "bytes32", - name: "internalSendHash", - type: "bytes32", - }, - ], - name: "onRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pauserAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "renounceTssAddressUpdater", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "uint256", - name: "destinationChainId", - type: "uint256", - }, - { - internalType: "bytes", - name: "destinationAddress", - type: "bytes", - }, - { - internalType: "uint256", - name: "destinationGasLimit", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - { - internalType: "uint256", - name: "zetaValueAndGas", - type: "uint256", - }, - { - internalType: "bytes", - name: "zetaParams", - type: "bytes", - }, - ], - internalType: "struct ZetaInterfaces.SendInput", - name: "input", - type: "tuple", - }, - ], - name: "send", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "tssAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "tssAddressUpdater", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "pauserAddress_", - type: "address", - }, - ], - name: "updatePauserAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tssAddress_", - type: "address", - }, - ], - name: "updateTssAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "zetaToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - stateMutability: "payable", - type: "receive", - }, -] as const; - -const _bytecode = - "0x60a06040523480156200001157600080fd5b506040516200238338038062002383833981810160405281019062000037919062000284565b8383838360008060006101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480620000bd5750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b80620000f55750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b806200012d5750600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1562000165576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505062000349565b6000815190506200027e816200032f565b92915050565b60008060008060808587031215620002a157620002a06200032a565b5b6000620002b1878288016200026d565b9450506020620002c4878288016200026d565b9350506040620002d7878288016200026d565b9250506060620002ea878288016200026d565b91505092959194509250565b600062000303826200030a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200033a81620002f6565b81146200034657600080fd5b50565b60805160601c611feb620003986000396000818160e80152818161038801528181610425015281816104a601528181610e7f01528181610f000152818161117f01526112680152611feb6000f3fe6080604052600436106100e15760003560e01c80636128480f1161007f5780639122c344116100595780639122c344146102e0578063942a5e1614610309578063ec02690114610332578063f7fb869b1461035b5761016d565b80636128480f14610289578063779e3b63146102b25780638456cb59146102c95761016d565b80633ce4a5bc116100bb5780633ce4a5bc146101f15780633f4ba83a1461021c5780635b112591146102335780635c975abb1461025e5761016d565b806321e093b11461017257806329dd214d1461019d578063328a01d0146101c65761016d565b3661016d577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461016b576040517f6e6b6de700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b34801561017e57600080fd5b50610187610386565b6040516101949190611b27565b60405180910390f35b3480156101a957600080fd5b506101c460048036038101906101bf91906117d3565b6103aa565b005b3480156101d257600080fd5b506101db610727565b6040516101e89190611b27565b60405180910390f35b3480156101fd57600080fd5b5061020661074d565b6040516102139190611b27565b60405180910390f35b34801561022857600080fd5b50610231610765565b005b34801561023f57600080fd5b50610248610801565b6040516102559190611b27565b60405180910390f35b34801561026a57600080fd5b50610273610827565b6040516102809190611c83565b60405180910390f35b34801561029557600080fd5b506102b060048036038101906102ab9190611697565b61083d565b005b3480156102be57600080fd5b506102c76109b3565b005b3480156102d557600080fd5b506102de610b8e565b005b3480156102ec57600080fd5b5061030760048036038101906103029190611697565b610c2a565b005b34801561031557600080fd5b50610330600480360381019061032b91906116c4565b610dfc565b005b34801561033e57600080fd5b50610359600480360381019061035491906118a2565b611175565b005b34801561036757600080fd5b50610370611449565b60405161037d9190611b27565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610423576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561048b57600080fd5b505af115801561049f573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3087876040518463ffffffff1660e01b815260040161050193929190611b6b565b602060405180830381600087803b15801561051b57600080fd5b505af115801561052f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055391906117a6565b610589576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008383905011156106c5578473ffffffffffffffffffffffffffffffffffffffff16633749c51a6040518060a001604052808b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018981526020018873ffffffffffffffffffffffffffffffffffffffff16815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016106929190611d27565b600060405180830381600087803b1580156106ac57600080fd5b505af11580156106c0573d6000803e3d6000fd5b505050505b808573ffffffffffffffffffffffffffffffffffffffff16877ff1302855733b40d8acb467ee990b6d56c05c80e28ebcabfa6e6f3f57cb50d6988b8b898989604051610715959493929190611c9e565b60405180910390a45050505050505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b73735b14bb79463307aacbed86daf3322b1e6226ab81565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107f757336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016107ee9190611b27565b60405180910390fd5b6107ff61146f565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900460ff16905090565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146108cf57336040517f4677a0d30000000000000000000000000000000000000000000000000000000081526004016108c69190611b27565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610936576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd41d83655d484bdf299598751c371b2d92088667266fe3774b25a97bdd5d039733826040516109a8929190611b42565b60405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a4557336040517fe700765e000000000000000000000000000000000000000000000000000000008152600401610a3c9190611b27565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ace576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f5104c9abdc7d111c2aeb4ce890ac70274a4be2ee83f46a62551be5e6ebc82dd033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051610b84929190611b42565b60405180910390a1565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c2057336040517f4677a0d3000000000000000000000000000000000000000000000000000000008152600401610c179190611b27565b60405180910390fd5b610c286114d1565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610cd65750600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610d1857336040517fcdfcef97000000000000000000000000000000000000000000000000000000008152600401610d0f9190611b27565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610d7f576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe79965b5c67dcfb2cf5fe152715e4a7256cee62a3d5dd8484fd8a8539eb8beff3382604051610df1929190611b42565b60405180910390a150565b610e04611533565b73735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e7d576040517fea02b3f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ee557600080fd5b505af1158015610ef9573d6000803e3d6000fd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd308b876040518463ffffffff1660e01b8152600401610f5b93929190611b6b565b602060405180830381600087803b158015610f7557600080fd5b505af1158015610f89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fad91906117a6565b610fe3576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000838390501115611125578873ffffffffffffffffffffffffffffffffffffffff16633ff0693c6040518060c001604052808c73ffffffffffffffffffffffffffffffffffffffff1681526020018b81526020018a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050815260200188815260200187815260200186868080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508152506040518263ffffffff1660e01b81526004016110f29190611d49565b600060405180830381600087803b15801561110c57600080fd5b505af1158015611120573d6000803e3d6000fd5b505050505b80857f521fb0b407c2eb9b1375530e9b9a569889992140a688bc076aa72c1712012c888b8b8b8b8a8a8a6040516111629796959493929190611c1e565b60405180910390a3505050505050505050565b61117d611533565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd333084608001356040518463ffffffff1660e01b81526004016111de93929190611b6b565b602060405180830381600087803b1580156111f857600080fd5b505af115801561120c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123091906117a6565b611266576040517fa8c6fd4a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d82608001356040518263ffffffff1660e01b81526004016112c39190611d6b565b600060405180830381600087803b1580156112dd57600080fd5b505af11580156112f1573d6000803e3d6000fd5b50505050600073735b14bb79463307aacbed86daf3322b1e6226ab73ffffffffffffffffffffffffffffffffffffffff16826080013560405161133390611b12565b60006040518083038185875af1925050503d8060008114611370576040519150601f19603f3d011682016040523d82523d6000602084013e611375565b606091505b50509050806113b0576040517fc7ffc47b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600001353373ffffffffffffffffffffffffffffffffffffffff167f7ec1c94701e09b1652f3e1d307e60c4b9ebf99aff8c2079fd1d8c585e031c4e4328580602001906113fe9190611d86565b876080013588604001358980606001906114189190611d86565b8b8060a001906114289190611d86565b60405161143d99989796959493929190611ba2565b60405180910390a35050565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61147761157d565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6114ba6115c6565b6040516114c79190611b27565b60405180910390a1565b6114d9611533565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861151c6115c6565b6040516115299190611b27565b60405180910390a1565b61153b610827565b1561157b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157290611d07565b60405180910390fd5b565b611585610827565b6115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb90611ce7565b60405180910390fd5b565b600033905090565b6000813590506115dd81611f59565b92915050565b6000815190506115f281611f70565b92915050565b60008135905061160781611f87565b92915050565b60008083601f84011261162357611622611ecb565b5b8235905067ffffffffffffffff8111156116405761163f611ec6565b5b60208301915083600182028301111561165c5761165b611edf565b5b9250929050565b600060c0828403121561167957611678611ed5565b5b81905092915050565b60008135905061169181611f9e565b92915050565b6000602082840312156116ad576116ac611eee565b5b60006116bb848285016115ce565b91505092915050565b600080600080600080600080600060e08a8c0312156116e6576116e5611eee565b5b60006116f48c828d016115ce565b99505060206117058c828d01611682565b98505060408a013567ffffffffffffffff81111561172657611725611ee9565b5b6117328c828d0161160d565b975097505060606117458c828d01611682565b95505060806117568c828d01611682565b94505060a08a013567ffffffffffffffff81111561177757611776611ee9565b5b6117838c828d0161160d565b935093505060c06117968c828d016115f8565b9150509295985092959850929598565b6000602082840312156117bc576117bb611eee565b5b60006117ca848285016115e3565b91505092915050565b60008060008060008060008060c0898b0312156117f3576117f2611eee565b5b600089013567ffffffffffffffff81111561181157611810611ee9565b5b61181d8b828c0161160d565b985098505060206118308b828c01611682565b96505060406118418b828c016115ce565b95505060606118528b828c01611682565b945050608089013567ffffffffffffffff81111561187357611872611ee9565b5b61187f8b828c0161160d565b935093505060a06118928b828c016115f8565b9150509295985092959890939650565b6000602082840312156118b8576118b7611eee565b5b600082013567ffffffffffffffff8111156118d6576118d5611ee9565b5b6118e284828501611663565b91505092915050565b6118f481611e32565b82525050565b61190381611e32565b82525050565b61191281611e44565b82525050565b60006119248385611e05565b9350611931838584611e84565b61193a83611ef3565b840190509392505050565b600061195082611de9565b61195a8185611df4565b935061196a818560208601611e93565b61197381611ef3565b840191505092915050565b600061198b601483611e21565b915061199682611f04565b602082019050919050565b60006119ae601083611e21565b91506119b982611f2d565b602082019050919050565b60006119d1600083611e16565b91506119dc82611f56565b600082019050919050565b600060a0830160008301518482036000860152611a048282611945565b9150506020830151611a196020860182611af4565b506040830151611a2c60408601826118eb565b506060830151611a3f6060860182611af4565b5060808301518482036080860152611a578282611945565b9150508091505092915050565b600060c083016000830151611a7c60008601826118eb565b506020830151611a8f6020860182611af4565b5060408301518482036040860152611aa78282611945565b9150506060830151611abc6060860182611af4565b506080830151611acf6080860182611af4565b5060a083015184820360a0860152611ae78282611945565b9150508091505092915050565b611afd81611e7a565b82525050565b611b0c81611e7a565b82525050565b6000611b1d826119c4565b9150819050919050565b6000602082019050611b3c60008301846118fa565b92915050565b6000604082019050611b5760008301856118fa565b611b6460208301846118fa565b9392505050565b6000606082019050611b8060008301866118fa565b611b8d60208301856118fa565b611b9a6040830184611b03565b949350505050565b600060c082019050611bb7600083018c6118fa565b8181036020830152611bca818a8c611918565b9050611bd96040830189611b03565b611be66060830188611b03565b8181036080830152611bf9818688611918565b905081810360a0830152611c0e818486611918565b90509a9950505050505050505050565b600060a082019050611c33600083018a6118fa565b611c406020830189611b03565b8181036040830152611c53818789611918565b9050611c626060830186611b03565b8181036080830152611c75818486611918565b905098975050505050505050565b6000602082019050611c986000830184611909565b92915050565b60006060820190508181036000830152611cb9818789611918565b9050611cc86020830186611b03565b8181036040830152611cdb818486611918565b90509695505050505050565b60006020820190508181036000830152611d008161197e565b9050919050565b60006020820190508181036000830152611d20816119a1565b9050919050565b60006020820190508181036000830152611d4181846119e7565b905092915050565b60006020820190508181036000830152611d638184611a64565b905092915050565b6000602082019050611d806000830184611b03565b92915050565b60008083356001602003843603038112611da357611da2611eda565b5b80840192508235915067ffffffffffffffff821115611dc557611dc4611ed0565b5b602083019250600182023603831315611de157611de0611ee4565b5b509250929050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000611e3d82611e5a565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015611eb1578082015181840152602081019050611e96565b83811115611ec0576000848401525b50505050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b50565b611f6281611e32565b8114611f6d57600080fd5b50565b611f7981611e44565b8114611f8457600080fd5b50565b611f9081611e50565b8114611f9b57600080fd5b50565b611fa781611e7a565b8114611fb257600080fd5b5056fea2646970667358221220e26d28d0e1a524eee4ee8ed3c5fafc87b2b8e13ef2506abc1564a0edce9d0be764736f6c63430008070033"; - -type ZetaConnectorZEVMConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: ZetaConnectorZEVMConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class ZetaConnectorZEVM__factory extends ContractFactory { - constructor(...args: ZetaConnectorZEVMConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - zetaTokenAddress_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - zetaTokenAddress_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - zetaTokenAddress_: PromiseOrValue, - tssAddress_: PromiseOrValue, - tssAddressUpdater_: PromiseOrValue, - pauserAddress_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - zetaTokenAddress_, - tssAddress_, - tssAddressUpdater_, - pauserAddress_, - overrides || {} - ); - } - override attach(address: string): ZetaConnectorZEVM { - return super.attach(address) as ZetaConnectorZEVM; - } - override connect(signer: Signer): ZetaConnectorZEVM__factory { - return super.connect(signer) as ZetaConnectorZEVM__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): ZetaConnectorZEVMInterface { - return new utils.Interface(_abi) as ZetaConnectorZEVMInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZetaConnectorZEVM { - return new Contract(address, _abi, signerOrProvider) as ZetaConnectorZEVM; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/index.ts b/v1/typechain-types/factories/contracts/zevm/index.ts deleted file mode 100644 index 89dc41578..000000000 --- a/v1/typechain-types/factories/contracts/zevm/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as systemContractSol from "./SystemContract.sol"; -export * as wzetaSol from "./WZETA.sol"; -export * as zrc20Sol from "./ZRC20.sol"; -export * as zetaConnectorZevmSol from "./ZetaConnectorZEVM.sol"; -export * as interfaces from "./interfaces"; -export * as testing from "./testing"; diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/ISystem__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/ISystem__factory.ts deleted file mode 100644 index 2bbf9c00a..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/ISystem__factory.ts +++ /dev/null @@ -1,122 +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 { - ISystem, - ISystemInterface, -} from "../../../../contracts/zevm/interfaces/ISystem"; - -const _abi = [ - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasCoinZRC20ByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasPriceByChainId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasZetaPoolByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "uniswapv2FactoryAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "wZetaContractAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class ISystem__factory { - static readonly abi = _abi; - static createInterface(): ISystemInterface { - return new utils.Interface(_abi) as ISystemInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ISystem { - return new Contract(address, _abi, signerOrProvider) as ISystem; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router01__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router01__factory.ts deleted file mode 100644 index 2ed0bbdc5..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router01__factory.ts +++ /dev/null @@ -1,775 +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 { - IUniswapV2Router01, - IUniswapV2Router01Interface, -} from "../../../../contracts/zevm/interfaces/IUniswapV2Router01"; - -const _abi = [ - { - inputs: [], - name: "WETH", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "amountADesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "amountTokenDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountIn", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountOut", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsIn", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsOut", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveB", - type: "uint256", - }, - ], - name: "quote", - outputs: [ - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapETHForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2Router01__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2Router01Interface { - return new utils.Interface(_abi) as IUniswapV2Router01Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2Router01 { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2Router01; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router02__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router02__factory.ts deleted file mode 100644 index 4d0da7762..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IUniswapV2Router02__factory.ts +++ /dev/null @@ -1,977 +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 { - IUniswapV2Router02, - IUniswapV2Router02Interface, -} from "../../../../contracts/zevm/interfaces/IUniswapV2Router02"; - -const _abi = [ - { - inputs: [], - name: "WETH", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "amountADesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "amountTokenDesired", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "addLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "factory", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountIn", - outputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveOut", - type: "uint256", - }, - ], - name: "getAmountOut", - outputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsIn", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - ], - name: "getAmountsOut", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveA", - type: "uint256", - }, - { - internalType: "uint256", - name: "reserveB", - type: "uint256", - }, - ], - name: "quote", - outputs: [ - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidity", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETH", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "removeLiquidityETHSupportingFeeOnTransferTokens", - outputs: [ - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountToken", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountTokenMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountETHMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", - outputs: [ - { - internalType: "uint256", - name: "amountETH", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - { - internalType: "uint256", - name: "liquidity", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountAMin", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountBMin", - type: "uint256", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "bool", - name: "approveMax", - type: "bool", - }, - { - internalType: "uint8", - name: "v", - type: "uint8", - }, - { - internalType: "bytes32", - name: "r", - type: "bytes32", - }, - { - internalType: "bytes32", - name: "s", - type: "bytes32", - }, - ], - name: "removeLiquidityWithPermit", - outputs: [ - { - internalType: "uint256", - name: "amountA", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountB", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapETHForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactETHForTokensSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForETHSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountIn", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountOutMin", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapExactTokensForTokensSupportingFeeOnTransferTokens", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactETH", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "amountOut", - type: "uint256", - }, - { - internalType: "uint256", - name: "amountInMax", - type: "uint256", - }, - { - internalType: "address[]", - name: "path", - type: "address[]", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - ], - name: "swapTokensForExactTokens", - outputs: [ - { - internalType: "uint256[]", - name: "amounts", - type: "uint256[]", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class IUniswapV2Router02__factory { - static readonly abi = _abi; - static createInterface(): IUniswapV2Router02Interface { - return new utils.Interface(_abi) as IUniswapV2Router02Interface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IUniswapV2Router02 { - return new Contract(address, _abi, signerOrProvider) as IUniswapV2Router02; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/IWETH9__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/IWETH9__factory.ts deleted file mode 100644 index 911488992..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/IWETH9__factory.ts +++ /dev/null @@ -1,264 +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 { - IWETH9, - IWETH9Interface, -} from "../../../../../contracts/zevm/interfaces/IWZETA.sol/IWETH9"; - -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: "dst", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "wad", - type: "uint256", - }, - ], - name: "Deposit", - 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", - }, - { - 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: "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: "wad", - type: "uint256", - }, - ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - 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: "to", - type: "address", - }, - { - internalType: "uint256", - name: "wad", - 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: "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", - }, -] as const; - -export class IWETH9__factory { - static readonly abi = _abi; - static createInterface(): IWETH9Interface { - return new utils.Interface(_abi) as IWETH9Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IWETH9 { - return new Contract(address, _abi, signerOrProvider) as IWETH9; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/index.ts deleted file mode 100644 index d3b0ed8d9..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IWZETA.sol/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IWETH9__factory } from "./IWETH9__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ISystem__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ISystem__factory.ts deleted file mode 100644 index d99738aef..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ISystem__factory.ts +++ /dev/null @@ -1,122 +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 { - ISystem, - ISystemInterface, -} from "../../../../../contracts/zevm/interfaces/IZRC20.sol/ISystem"; - -const _abi = [ - { - inputs: [], - name: "FUNGIBLE_MODULE_ADDRESS", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasCoinZRC20ByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasPriceByChainId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - name: "gasZetaPoolByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "uniswapv2FactoryAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "wZetaContractAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class ISystem__factory { - static readonly abi = _abi; - static createInterface(): ISystemInterface { - return new utils.Interface(_abi) as ISystemInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ISystem { - return new Contract(address, _abi, signerOrProvider) as ISystem; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata__factory.ts deleted file mode 100644 index 55896920e..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata__factory.ts +++ /dev/null @@ -1,296 +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 { - IZRC20Metadata, - IZRC20MetadataInterface, -} from "../../../../../contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata"; - -const _abi = [ - { - inputs: [], - name: "PROTOCOL_FLAT_FEE", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - 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: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "decimals", - outputs: [ - { - internalType: "uint8", - name: "", - type: "uint8", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "deposit", - 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: "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: "bytes", - name: "to", - type: "bytes", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawGasFee", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IZRC20Metadata__factory { - static readonly abi = _abi; - static createInterface(): IZRC20MetadataInterface { - return new utils.Interface(_abi) as IZRC20MetadataInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): IZRC20Metadata { - return new Contract(address, _abi, signerOrProvider) as IZRC20Metadata; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20__factory.ts deleted file mode 100644 index 34658aa12..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20__factory.ts +++ /dev/null @@ -1,254 +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 { - IZRC20, - IZRC20Interface, -} from "../../../../../contracts/zevm/interfaces/IZRC20.sol/IZRC20"; - -const _abi = [ - { - inputs: [], - name: "PROTOCOL_FLAT_FEE", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - 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: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "deposit", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - 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: "bytes", - name: "to", - type: "bytes", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawGasFee", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IZRC20__factory { - static readonly abi = _abi; - static createInterface(): IZRC20Interface { - return new utils.Interface(_abi) as IZRC20Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IZRC20 { - return new Contract(address, _abi, signerOrProvider) as IZRC20; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events__factory.ts deleted file mode 100644 index 44ec83ce4..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events__factory.ts +++ /dev/null @@ -1,177 +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 { - ZRC20Events, - ZRC20EventsInterface, -} from "../../../../../contracts/zevm/interfaces/IZRC20.sol/ZRC20Events"; - -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: false, - internalType: "bytes", - name: "from", - type: "bytes", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Deposit", - 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", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "gasLimit", - type: "uint256", - }, - ], - name: "UpdatedGasLimit", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "UpdatedProtocolFlatFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "systemContract", - type: "address", - }, - ], - name: "UpdatedSystemContract", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "gasFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "Withdrawal", - type: "event", - }, -] as const; - -export class ZRC20Events__factory { - static readonly abi = _abi; - static createInterface(): ZRC20EventsInterface { - return new utils.Interface(_abi) as ZRC20EventsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZRC20Events { - return new Contract(address, _abi, signerOrProvider) as ZRC20Events; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/index.ts deleted file mode 100644 index 98e010d32..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20.sol/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { IZRC20__factory } from "./IZRC20__factory"; -export { IZRC20Metadata__factory } from "./IZRC20Metadata__factory"; -export { ZRC20Events__factory } from "./ZRC20Events__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20__factory.ts deleted file mode 100644 index 5e878097c..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/IZRC20__factory.ts +++ /dev/null @@ -1,453 +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 { - IZRC20, - IZRC20Interface, -} from "../../../../contracts/zevm/interfaces/IZRC20"; - -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: false, - internalType: "bytes", - name: "from", - type: "bytes", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Deposit", - 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", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "gasLimit", - type: "uint256", - }, - ], - name: "UpdatedGasLimit", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "UpdatedProtocolFlatFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "systemContract", - type: "address", - }, - ], - name: "UpdatedSystemContract", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: false, - internalType: "bytes", - name: "to", - type: "bytes", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "gasFee", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "protocolFlatFee", - type: "uint256", - }, - ], - name: "Withdrawal", - type: "event", - }, - { - inputs: [], - name: "PROTOCOL_FLAT_FEE", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - 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: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "decreaseAllowance", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "deposit", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "increaseAllowance", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - 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: "bytes", - name: "to", - type: "bytes", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "withdraw", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "withdrawGasFee", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -export class IZRC20__factory { - static readonly abi = _abi; - static createInterface(): IZRC20Interface { - return new utils.Interface(_abi) as IZRC20Interface; - } - static connect(address: string, signerOrProvider: Signer | Provider): IZRC20 { - return new Contract(address, _abi, signerOrProvider) as IZRC20; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/ZContract__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/ZContract__factory.ts deleted file mode 100644 index 93bbee2f2..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/ZContract__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 { - ZContract, - ZContractInterface, -} from "../../../../contracts/zevm/interfaces/ZContract"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "origin", - type: "bytes", - }, - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - internalType: "struct zContext", - name: "context", - type: "tuple", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "onCrossChainCall", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ZContract__factory { - static readonly abi = _abi; - static createInterface(): ZContractInterface { - return new utils.Interface(_abi) as ZContractInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZContract { - return new Contract(address, _abi, signerOrProvider) as ZContract; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/index.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/index.ts deleted file mode 100644 index ae70b71d0..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/index.ts +++ /dev/null @@ -1,9 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as iwzetaSol from "./IWZETA.sol"; -export * as izrc20Sol from "./IZRC20.sol"; -export * as zContractSol from "./zContract.sol"; -export { ISystem__factory } from "./ISystem__factory"; -export { IUniswapV2Router01__factory } from "./IUniswapV2Router01__factory"; -export { IUniswapV2Router02__factory } from "./IUniswapV2Router02__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/UniversalContract__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/UniversalContract__factory.ts deleted file mode 100644 index 704f26dd5..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/UniversalContract__factory.ts +++ /dev/null @@ -1,116 +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 { - UniversalContract, - UniversalContractInterface, -} from "../../../../../contracts/zevm/interfaces/zContract.sol/UniversalContract"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "origin", - type: "bytes", - }, - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - internalType: "struct zContext", - name: "context", - type: "tuple", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "onCrossChainCall", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "origin", - type: "bytes", - }, - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - internalType: "struct revertContext", - name: "context", - type: "tuple", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "onRevert", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class UniversalContract__factory { - static readonly abi = _abi; - static createInterface(): UniversalContractInterface { - return new utils.Interface(_abi) as UniversalContractInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): UniversalContract { - return new Contract(address, _abi, signerOrProvider) as UniversalContract; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/ZContract__factory.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/ZContract__factory.ts deleted file mode 100644 index 4491a1da1..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/ZContract__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 { - ZContract, - ZContractInterface, -} from "../../../../../contracts/zevm/interfaces/zContract.sol/ZContract"; - -const _abi = [ - { - inputs: [ - { - components: [ - { - internalType: "bytes", - name: "origin", - type: "bytes", - }, - { - internalType: "address", - name: "sender", - type: "address", - }, - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - ], - internalType: "struct zContext", - name: "context", - type: "tuple", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "onCrossChainCall", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -export class ZContract__factory { - static readonly abi = _abi; - static createInterface(): ZContractInterface { - return new utils.Interface(_abi) as ZContractInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): ZContract { - return new Contract(address, _abi, signerOrProvider) as ZContract; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/index.ts deleted file mode 100644 index c297a535b..000000000 --- a/v1/typechain-types/factories/contracts/zevm/interfaces/zContract.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { UniversalContract__factory } from "./UniversalContract__factory"; -export { ZContract__factory } from "./ZContract__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors__factory.ts b/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors__factory.ts deleted file mode 100644 index 2b4a91bfc..000000000 --- a/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors__factory.ts +++ /dev/null @@ -1,50 +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 { - SystemContractErrors, - SystemContractErrorsInterface, -} from "../../../../../contracts/zevm/testing/SystemContractMock.sol/SystemContractErrors"; - -const _abi = [ - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "CantBeIdenticalAddresses", - type: "error", - }, - { - inputs: [], - name: "CantBeZeroAddress", - type: "error", - }, - { - inputs: [], - name: "InvalidTarget", - type: "error", - }, -] as const; - -export class SystemContractErrors__factory { - static readonly abi = _abi; - static createInterface(): SystemContractErrorsInterface { - return new utils.Interface(_abi) as SystemContractErrorsInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): SystemContractErrors { - return new Contract( - address, - _abi, - signerOrProvider - ) as SystemContractErrors; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock__factory.ts b/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock__factory.ts deleted file mode 100644 index ce91abda4..000000000 --- a/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock__factory.ts +++ /dev/null @@ -1,398 +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 { - SystemContractMock, - SystemContractMockInterface, -} from "../../../../../contracts/zevm/testing/SystemContractMock.sol/SystemContractMock"; - -const _abi = [ - { - inputs: [ - { - internalType: "address", - name: "wzeta_", - type: "address", - }, - { - internalType: "address", - name: "uniswapv2Factory_", - type: "address", - }, - { - internalType: "address", - name: "uniswapv2Router02_", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "CallerIsNotFungibleModule", - type: "error", - }, - { - inputs: [], - name: "CantBeIdenticalAddresses", - type: "error", - }, - { - inputs: [], - name: "CantBeZeroAddress", - type: "error", - }, - { - inputs: [], - name: "InvalidTarget", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "", - type: "address", - }, - ], - name: "SetGasCoin", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "SetGasPrice", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint256", - name: "", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "", - type: "address", - }, - ], - name: "SetGasZetaPool", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "", - type: "address", - }, - ], - name: "SetWZeta", - type: "event", - }, - { - anonymous: false, - inputs: [], - name: "SystemContractDeployed", - type: "event", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "gasCoinZRC20ByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "gasPriceByChainId", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "gasZetaPoolByChainId", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "target", - type: "address", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "bytes", - name: "message", - type: "bytes", - }, - ], - name: "onCrossChainCall", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - { - internalType: "address", - name: "zrc20", - type: "address", - }, - ], - name: "setGasCoinZRC20", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "chainID", - type: "uint256", - }, - { - internalType: "uint256", - name: "price", - type: "uint256", - }, - ], - name: "setGasPrice", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "addr", - type: "address", - }, - ], - name: "setWZETAContractAddress", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "uniswapv2FactoryAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "factory", - type: "address", - }, - { - internalType: "address", - name: "tokenA", - type: "address", - }, - { - internalType: "address", - name: "tokenB", - type: "address", - }, - ], - name: "uniswapv2PairFor", - outputs: [ - { - internalType: "address", - name: "pair", - type: "address", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "uniswapv2Router02Address", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "wZetaContractAddress", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, -] as const; - -const _bytecode = - "0x60806040523480156200001157600080fd5b50604051620010d7380380620010d7833981810160405281019062000037919062000146565b82600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f80699e81136d69cb8367ad52a994e25c722a86da654b561d0c14b61a777e7ac560405160405180910390a1505050620001f5565b6000815190506200014081620001db565b92915050565b600080600060608486031215620001625762000161620001d6565b5b600062000172868287016200012f565b935050602062000185868287016200012f565b925050604062000198868287016200012f565b9150509250925092565b6000620001af82620001b6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b620001e681620001a2565b8114620001f257600080fd5b50565b610ed280620002056000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806397770dff1161007157806397770dff14610166578063a7cb050714610182578063c63585cc1461019e578063d7fd7afb146101ce578063d936a012146101fe578063ee2815ba1461021c576100a9565b80630be15547146100ae5780633c669d55146100de578063513a9c05146100fa578063569541b91461012a578063842da36d14610148575b600080fd5b6100c860048036038101906100c3919061094d565b610238565b6040516100d59190610bce565b60405180910390f35b6100f860048036038101906100f39190610898565b61026b565b005b610114600480360381019061010f919061094d565b6103b8565b6040516101219190610bce565b60405180910390f35b6101326103eb565b60405161013f9190610bce565b60405180910390f35b610150610411565b60405161015d9190610bce565b60405180910390f35b610180600480360381019061017b9190610818565b610437565b005b61019c600480360381019061019791906109ba565b6104d4565b005b6101b860048036038101906101b39190610845565b610528565b6040516101c59190610bce565b60405180910390f35b6101e860048036038101906101e3919061094d565b61059a565b6040516101f59190610c67565b60405180910390f35b6102066105b2565b6040516102139190610bce565b60405180910390f35b6102366004803603810190610231919061097a565b6105d8565b005b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060405180606001604052806040518060200160405280600081525081526020013373ffffffffffffffffffffffffffffffffffffffff1681526020014681525090508473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb87866040518363ffffffff1660e01b81526004016102ea929190610be9565b602060405180830381600087803b15801561030457600080fd5b505af1158015610318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033c9190610920565b508573ffffffffffffffffffffffffffffffffffffffff1663de43156e82878787876040518663ffffffff1660e01b815260040161037e959493929190610c12565b600060405180830381600087803b15801561039857600080fd5b505af11580156103ac573d6000803e3d6000fd5b50505050505050505050565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fdba79d534382d1a8ae108e4c8ecb27c6ae42ab8b91d44eedf88bd329f3868d5e600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516104c99190610bce565b60405180910390a150565b80600080848152602001908152602001600020819055507f49f492222906ac486c3c1401fa545626df1f0c0e5a77a05597ea2ed66af9850d828260405161051c929190610cab565b60405180910390a15050565b60008060006105378585610667565b9150915085828260405160200161054f929190610b60565b60405160208183030381529060405280519060200120604051602001610576929190610b8c565b6040516020818303038152906040528051906020012060001c925050509392505050565b60006020528060005260406000206000915090505481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b806001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd1b36d30f6248e97c473b4d1348ca164a4ef6759022f54a58ec200326c39c45d828260405161065b929190610c82565b60405180910390a15050565b6000808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156106d0576040517fcb1e7cfe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161061070a57828461070d565b83835b8092508193505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561077c576040517f78b507da00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9250929050565b60008135905061079281610e57565b92915050565b6000815190506107a781610e6e565b92915050565b60008083601f8401126107c3576107c2610dd3565b5b8235905067ffffffffffffffff8111156107e0576107df610dce565b5b6020830191508360018202830111156107fc576107fb610dd8565b5b9250929050565b60008135905061081281610e85565b92915050565b60006020828403121561082e5761082d610de2565b5b600061083c84828501610783565b91505092915050565b60008060006060848603121561085e5761085d610de2565b5b600061086c86828701610783565b935050602061087d86828701610783565b925050604061088e86828701610783565b9150509250925092565b6000806000806000608086880312156108b4576108b3610de2565b5b60006108c288828901610783565b95505060206108d388828901610783565b94505060406108e488828901610803565b935050606086013567ffffffffffffffff81111561090557610904610ddd565b5b610911888289016107ad565b92509250509295509295909350565b60006020828403121561093657610935610de2565b5b600061094484828501610798565b91505092915050565b60006020828403121561096357610962610de2565b5b600061097184828501610803565b91505092915050565b6000806040838503121561099157610990610de2565b5b600061099f85828601610803565b92505060206109b085828601610783565b9150509250929050565b600080604083850312156109d1576109d0610de2565b5b60006109df85828601610803565b92505060206109f085828601610803565b9150509250929050565b610a0381610d0c565b82525050565b610a1281610d0c565b82525050565b610a29610a2482610d0c565b610da0565b82525050565b610a40610a3b82610d2a565b610db2565b82525050565b6000610a528385610cf0565b9350610a5f838584610d5e565b610a6883610de7565b840190509392505050565b6000610a7e82610cd4565b610a888185610cdf565b9350610a98818560208601610d6d565b610aa181610de7565b840191505092915050565b6000610ab9602083610d01565b9150610ac482610e05565b602082019050919050565b6000610adc600183610d01565b9150610ae782610e2e565b600182019050919050565b60006060830160008301518482036000860152610b0f8282610a73565b9150506020830151610b2460208601826109fa565b506040830151610b376040860182610b42565b508091505092915050565b610b4b81610d54565b82525050565b610b5a81610d54565b82525050565b6000610b6c8285610a18565b601482019150610b7c8284610a18565b6014820191508190509392505050565b6000610b9782610acf565b9150610ba38285610a18565b601482019150610bb38284610a2f565b602082019150610bc282610aac565b91508190509392505050565b6000602082019050610be36000830184610a09565b92915050565b6000604082019050610bfe6000830185610a09565b610c0b6020830184610b51565b9392505050565b60006080820190508181036000830152610c2c8188610af2565b9050610c3b6020830187610a09565b610c486040830186610b51565b8181036060830152610c5b818486610a46565b90509695505050505050565b6000602082019050610c7c6000830184610b51565b92915050565b6000604082019050610c976000830185610b51565b610ca46020830184610a09565b9392505050565b6000604082019050610cc06000830185610b51565b610ccd6020830184610b51565b9392505050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000610d1782610d34565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015610d8b578082015181840152602081019050610d70565b83811115610d9a576000848401525b50505050565b6000610dab82610dbc565b9050919050565b6000819050919050565b6000610dc782610df8565b9050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f600082015250565b7fff00000000000000000000000000000000000000000000000000000000000000600082015250565b610e6081610d0c565b8114610e6b57600080fd5b50565b610e7781610d1e565b8114610e8257600080fd5b50565b610e8e81610d54565b8114610e9957600080fd5b5056fea26469706673582212200835245fdc75aa593111cf5a43e919740b2258e1512040bc79f39a56cedf119364736f6c63430008070033"; - -type SystemContractMockConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: SystemContractMockConstructorParams -): xs is ConstructorParameters => xs.length > 1; - -export class SystemContractMock__factory extends ContractFactory { - constructor(...args: SystemContractMockConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override deploy( - wzeta_: PromiseOrValue, - uniswapv2Factory_: PromiseOrValue, - uniswapv2Router02_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): Promise { - return super.deploy( - wzeta_, - uniswapv2Factory_, - uniswapv2Router02_, - overrides || {} - ) as Promise; - } - override getDeployTransaction( - wzeta_: PromiseOrValue, - uniswapv2Factory_: PromiseOrValue, - uniswapv2Router02_: PromiseOrValue, - overrides?: Overrides & { from?: PromiseOrValue } - ): TransactionRequest { - return super.getDeployTransaction( - wzeta_, - uniswapv2Factory_, - uniswapv2Router02_, - overrides || {} - ); - } - override attach(address: string): SystemContractMock { - return super.attach(address) as SystemContractMock; - } - override connect(signer: Signer): SystemContractMock__factory { - return super.connect(signer) as SystemContractMock__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): SystemContractMockInterface { - return new utils.Interface(_abi) as SystemContractMockInterface; - } - static connect( - address: string, - signerOrProvider: Signer | Provider - ): SystemContractMock { - return new Contract(address, _abi, signerOrProvider) as SystemContractMock; - } -} diff --git a/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/index.ts b/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/index.ts deleted file mode 100644 index 006bdc5d8..000000000 --- a/v1/typechain-types/factories/contracts/zevm/testing/SystemContractMock.sol/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export { SystemContractErrors__factory } from "./SystemContractErrors__factory"; -export { SystemContractMock__factory } from "./SystemContractMock__factory"; diff --git a/v1/typechain-types/factories/contracts/zevm/testing/index.ts b/v1/typechain-types/factories/contracts/zevm/testing/index.ts deleted file mode 100644 index ffbe5a267..000000000 --- a/v1/typechain-types/factories/contracts/zevm/testing/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as systemContractMockSol from "./SystemContractMock.sol"; diff --git a/v1/typechain-types/factories/index.ts b/v1/typechain-types/factories/index.ts deleted file mode 100644 index 3eb87854e..000000000 --- a/v1/typechain-types/factories/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -export * as openzeppelin from "./@openzeppelin"; -export * as uniswap from "./@uniswap"; -export * as contracts from "./contracts"; diff --git a/v1/typechain-types/hardhat.d.ts b/v1/typechain-types/hardhat.d.ts deleted file mode 100644 index 0ade94697..000000000 --- a/v1/typechain-types/hardhat.d.ts +++ /dev/null @@ -1,843 +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: "Ownable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "Ownable2Step", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "Pausable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20Permit", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC20Burnable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20Metadata", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2Callee", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2ERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2Factory", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2Pair", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "UniswapV2ERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "UniswapV2Factory", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "UniswapV2Pair", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IERC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2Router01", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2Router02", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IWETH", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "UniswapV2Router02", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3SwapCallback", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3Factory", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3Pool", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3PoolActions", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3PoolDerivedState", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3PoolEvents", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3PoolImmutables", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3PoolOwnerActions", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV3PoolState", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IQuoter", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ISwapRouter", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC20Custody", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ConnectorErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaInteractorErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaCommonErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaConnector", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaReceiver", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumer", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaNonEthInterface", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "AttackerContract", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "Victim", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ERC20Mock", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "INonfungiblePositionManager", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IPoolInitializer", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaInteractorMock", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaReceiverMock", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ImmutableCreate2Factory", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "Ownable", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ConcentratedLiquidityPoolFactory", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IPoolRouter", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaInteractor", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ISwapRouterPancake", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "WETH9", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerPancakeV3", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerUniV3Errors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "WETH9", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerTrident", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerTridentErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerUniV2", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerUniV2Errors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "WETH9", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerUniV3", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerUniV3Errors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerZEVM", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaTokenConsumerZEVMErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaEth", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaNonEth", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaConnectorBase", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaConnectorEth", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaConnectorNonEth", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ISystem", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2Router01", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IUniswapV2Router02", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IWETH9", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IZRC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "IZRC20Metadata", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZRC20Events", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "UniversalContract", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZContract", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "SystemContract", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "SystemContractErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "SystemContractErrors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "SystemContractMock", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "WETH9", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaConnectorZEVM", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZetaReceiver", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZRC20", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - getContractFactory( - name: "ZRC20Errors", - signerOrOptions?: ethers.Signer | FactoryOptions - ): Promise; - - getContractAt( - name: "Ownable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "Ownable2Step", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "Pausable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20Permit", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC20Burnable", - 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: "IERC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2Callee", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2ERC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2Factory", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2Pair", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "UniswapV2ERC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "UniswapV2Factory", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "UniswapV2Pair", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IERC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2Router01", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2Router02", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IWETH", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "UniswapV2Router02", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3SwapCallback", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3Factory", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3Pool", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3PoolActions", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3PoolDerivedState", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3PoolEvents", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3PoolImmutables", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3PoolOwnerActions", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV3PoolState", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IQuoter", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ISwapRouter", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC20Custody", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ConnectorErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaInteractorErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaCommonErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaConnector", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaReceiver", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumer", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaNonEthInterface", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "AttackerContract", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "Victim", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ERC20Mock", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "INonfungiblePositionManager", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IPoolInitializer", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaInteractorMock", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaReceiverMock", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ImmutableCreate2Factory", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "Ownable", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ConcentratedLiquidityPoolFactory", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IPoolRouter", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaInteractor", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ISwapRouterPancake", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "WETH9", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerPancakeV3", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerUniV3Errors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "WETH9", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerTrident", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerTridentErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerUniV2", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerUniV2Errors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "WETH9", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerUniV3", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerUniV3Errors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerZEVM", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaTokenConsumerZEVMErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaEth", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaNonEth", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaConnectorBase", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaConnectorEth", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaConnectorNonEth", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ISystem", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2Router01", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IUniswapV2Router02", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IWETH9", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IZRC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "IZRC20Metadata", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZRC20Events", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "UniversalContract", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZContract", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "SystemContract", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "SystemContractErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "SystemContractErrors", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "SystemContractMock", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "WETH9", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaConnectorZEVM", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZetaReceiver", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZRC20", - address: string, - signer?: ethers.Signer - ): Promise; - getContractAt( - name: "ZRC20Errors", - 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/v1/typechain-types/index.ts b/v1/typechain-types/index.ts deleted file mode 100644 index de4aab453..000000000 --- a/v1/typechain-types/index.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import type * as openzeppelin from "./@openzeppelin"; -export type { openzeppelin }; -import type * as uniswap from "./@uniswap"; -export type { uniswap }; -import type * as contracts from "./contracts"; -export type { contracts }; -export * as factories from "./factories"; -export type { Ownable } from "./@openzeppelin/contracts/access/Ownable"; -export { Ownable__factory } from "./factories/@openzeppelin/contracts/access/Ownable__factory"; -export type { Ownable2Step } from "./@openzeppelin/contracts/access/Ownable2Step"; -export { Ownable2Step__factory } from "./factories/@openzeppelin/contracts/access/Ownable2Step__factory"; -export type { Pausable } from "./@openzeppelin/contracts/security/Pausable"; -export { Pausable__factory } from "./factories/@openzeppelin/contracts/security/Pausable__factory"; -export type { ERC20 } from "./@openzeppelin/contracts/token/ERC20/ERC20"; -export { ERC20__factory } from "./factories/@openzeppelin/contracts/token/ERC20/ERC20__factory"; -export type { IERC20Permit } from "./@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit"; -export { IERC20Permit__factory } from "./factories/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit__factory"; -export type { ERC20Burnable } from "./@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable"; -export { ERC20Burnable__factory } from "./factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__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 { IUniswapV2Callee } from "./@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee"; -export { IUniswapV2Callee__factory } from "./factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Callee__factory"; -export type { IUniswapV2ERC20 } from "./@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20"; -export { IUniswapV2ERC20__factory } from "./factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2ERC20__factory"; -export type { IUniswapV2Factory } from "./@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory"; -export { IUniswapV2Factory__factory } from "./factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory__factory"; -export type { IUniswapV2Pair } from "./@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair"; -export { IUniswapV2Pair__factory } from "./factories/@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair__factory"; -export type { UniswapV2ERC20 } from "./@uniswap/v2-core/contracts/UniswapV2ERC20"; -export { UniswapV2ERC20__factory } from "./factories/@uniswap/v2-core/contracts/UniswapV2ERC20__factory"; -export type { UniswapV2Factory } from "./@uniswap/v2-core/contracts/UniswapV2Factory"; -export { UniswapV2Factory__factory } from "./factories/@uniswap/v2-core/contracts/UniswapV2Factory__factory"; -export type { UniswapV2Pair } from "./@uniswap/v2-core/contracts/UniswapV2Pair"; -export { UniswapV2Pair__factory } from "./factories/@uniswap/v2-core/contracts/UniswapV2Pair__factory"; -export type { IUniswapV2Router01 } from "./@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01"; -export { IUniswapV2Router01__factory } from "./factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01__factory"; -export type { IUniswapV2Router02 } from "./@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02"; -export { IUniswapV2Router02__factory } from "./factories/@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02__factory"; -export type { IWETH } from "./@uniswap/v2-periphery/contracts/interfaces/IWETH"; -export { IWETH__factory } from "./factories/@uniswap/v2-periphery/contracts/interfaces/IWETH__factory"; -export type { UniswapV2Router02 } from "./@uniswap/v2-periphery/contracts/UniswapV2Router02"; -export { UniswapV2Router02__factory } from "./factories/@uniswap/v2-periphery/contracts/UniswapV2Router02__factory"; -export type { IUniswapV3SwapCallback } from "./@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback"; -export { IUniswapV3SwapCallback__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback__factory"; -export type { IUniswapV3Factory } from "./@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory"; -export { IUniswapV3Factory__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory__factory"; -export type { IUniswapV3Pool } from "./@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool"; -export { IUniswapV3Pool__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool__factory"; -export type { IUniswapV3PoolActions } from "./@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions"; -export { IUniswapV3PoolActions__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions__factory"; -export type { IUniswapV3PoolDerivedState } from "./@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState"; -export { IUniswapV3PoolDerivedState__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState__factory"; -export type { IUniswapV3PoolEvents } from "./@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents"; -export { IUniswapV3PoolEvents__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents__factory"; -export type { IUniswapV3PoolImmutables } from "./@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables"; -export { IUniswapV3PoolImmutables__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables__factory"; -export type { IUniswapV3PoolOwnerActions } from "./@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions"; -export { IUniswapV3PoolOwnerActions__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions__factory"; -export type { IUniswapV3PoolState } from "./@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState"; -export { IUniswapV3PoolState__factory } from "./factories/@uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState__factory"; -export type { IQuoter } from "./@uniswap/v3-periphery/contracts/interfaces/IQuoter"; -export { IQuoter__factory } from "./factories/@uniswap/v3-periphery/contracts/interfaces/IQuoter__factory"; -export type { ISwapRouter } from "./@uniswap/v3-periphery/contracts/interfaces/ISwapRouter"; -export { ISwapRouter__factory } from "./factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory"; -export type { ERC20Custody } from "./contracts/evm/ERC20Custody"; -export { ERC20Custody__factory } from "./factories/contracts/evm/ERC20Custody__factory"; -export type { ConnectorErrors } from "./contracts/evm/interfaces/ConnectorErrors"; -export { ConnectorErrors__factory } from "./factories/contracts/evm/interfaces/ConnectorErrors__factory"; -export type { ZetaErrors } from "./contracts/evm/interfaces/ZetaErrors"; -export { ZetaErrors__factory } from "./factories/contracts/evm/interfaces/ZetaErrors__factory"; -export type { ZetaInteractorErrors } from "./contracts/evm/interfaces/ZetaInteractorErrors"; -export { ZetaInteractorErrors__factory } from "./factories/contracts/evm/interfaces/ZetaInteractorErrors__factory"; -export type { ZetaCommonErrors } from "./contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors"; -export { ZetaCommonErrors__factory } from "./factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaCommonErrors__factory"; -export type { ZetaConnector } from "./contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector"; -export { ZetaConnector__factory } from "./factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaConnector__factory"; -export type { ZetaReceiver } from "./contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver"; -export { ZetaReceiver__factory } from "./factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaReceiver__factory"; -export type { ZetaTokenConsumer } from "./contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer"; -export { ZetaTokenConsumer__factory } from "./factories/contracts/evm/interfaces/ZetaInterfaces.sol/ZetaTokenConsumer__factory"; -export type { ZetaNonEthInterface } from "./contracts/evm/interfaces/ZetaNonEthInterface"; -export { ZetaNonEthInterface__factory } from "./factories/contracts/evm/interfaces/ZetaNonEthInterface__factory"; -export type { AttackerContract } from "./contracts/evm/testing/AttackerContract.sol/AttackerContract"; -export { AttackerContract__factory } from "./factories/contracts/evm/testing/AttackerContract.sol/AttackerContract__factory"; -export type { Victim } from "./contracts/evm/testing/AttackerContract.sol/Victim"; -export { Victim__factory } from "./factories/contracts/evm/testing/AttackerContract.sol/Victim__factory"; -export type { ERC20Mock } from "./contracts/evm/testing/ERC20Mock"; -export { ERC20Mock__factory } from "./factories/contracts/evm/testing/ERC20Mock__factory"; -export type { INonfungiblePositionManager } from "./contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager"; -export { INonfungiblePositionManager__factory } from "./factories/contracts/evm/testing/TestUniswapV3Contracts.sol/INonfungiblePositionManager__factory"; -export type { IPoolInitializer } from "./contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer"; -export { IPoolInitializer__factory } from "./factories/contracts/evm/testing/TestUniswapV3Contracts.sol/IPoolInitializer__factory"; -export type { ZetaInteractorMock } from "./contracts/evm/testing/ZetaInteractorMock"; -export { ZetaInteractorMock__factory } from "./factories/contracts/evm/testing/ZetaInteractorMock__factory"; -export type { ZetaReceiverMock } from "./contracts/evm/testing/ZetaReceiverMock"; -export { ZetaReceiverMock__factory } from "./factories/contracts/evm/testing/ZetaReceiverMock__factory"; -export type { ImmutableCreate2Factory } from "./contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory"; -export { ImmutableCreate2Factory__factory } from "./factories/contracts/evm/tools/ImmutableCreate2Factory.sol/ImmutableCreate2Factory__factory"; -export type { ConcentratedLiquidityPoolFactory } from "./contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory"; -export { ConcentratedLiquidityPoolFactory__factory } from "./factories/contracts/evm/tools/interfaces/TridentConcentratedLiquidityPoolFactory.sol/ConcentratedLiquidityPoolFactory__factory"; -export type { IPoolRouter } from "./contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter"; -export { IPoolRouter__factory } from "./factories/contracts/evm/tools/interfaces/TridentIPoolRouter.sol/IPoolRouter__factory"; -export type { ZetaInteractor } from "./contracts/evm/tools/ZetaInteractor"; -export { ZetaInteractor__factory } from "./factories/contracts/evm/tools/ZetaInteractor__factory"; -export type { ISwapRouterPancake } from "./contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake"; -export { ISwapRouterPancake__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ISwapRouterPancake__factory"; -export type { WETH9 } from "./contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9"; -export { WETH9__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/WETH9__factory"; -export type { ZetaTokenConsumerPancakeV3 } from "./contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3"; -export { ZetaTokenConsumerPancakeV3__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerPancakeV3__factory"; -export type { ZetaTokenConsumerUniV3Errors } from "./contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors"; -export { ZetaTokenConsumerUniV3Errors__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerPancakeV3.strategy.sol/ZetaTokenConsumerUniV3Errors__factory"; -export type { ZetaTokenConsumerTrident } from "./contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident"; -export { ZetaTokenConsumerTrident__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTrident__factory"; -export type { ZetaTokenConsumerTridentErrors } from "./contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors"; -export { ZetaTokenConsumerTridentErrors__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerTrident.strategy.sol/ZetaTokenConsumerTridentErrors__factory"; -export type { ZetaTokenConsumerUniV2 } from "./contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2"; -export { ZetaTokenConsumerUniV2__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2__factory"; -export type { ZetaTokenConsumerUniV2Errors } from "./contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors"; -export { ZetaTokenConsumerUniV2Errors__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerUniV2.strategy.sol/ZetaTokenConsumerUniV2Errors__factory"; -export type { ZetaTokenConsumerUniV3 } from "./contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3"; -export { ZetaTokenConsumerUniV3__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerUniV3.strategy.sol/ZetaTokenConsumerUniV3__factory"; -export type { ZetaTokenConsumerZEVM } from "./contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM"; -export { ZetaTokenConsumerZEVM__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVM__factory"; -export type { ZetaTokenConsumerZEVMErrors } from "./contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors"; -export { ZetaTokenConsumerZEVMErrors__factory } from "./factories/contracts/evm/tools/ZetaTokenConsumerZEVM.strategy.sol/ZetaTokenConsumerZEVMErrors__factory"; -export type { ZetaEth } from "./contracts/evm/Zeta.eth.sol/ZetaEth"; -export { ZetaEth__factory } from "./factories/contracts/evm/Zeta.eth.sol/ZetaEth__factory"; -export type { ZetaNonEth } from "./contracts/evm/Zeta.non-eth.sol/ZetaNonEth"; -export { ZetaNonEth__factory } from "./factories/contracts/evm/Zeta.non-eth.sol/ZetaNonEth__factory"; -export type { ZetaConnectorBase } from "./contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase"; -export { ZetaConnectorBase__factory } from "./factories/contracts/evm/ZetaConnector.base.sol/ZetaConnectorBase__factory"; -export type { ZetaConnectorEth } from "./contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth"; -export { ZetaConnectorEth__factory } from "./factories/contracts/evm/ZetaConnector.eth.sol/ZetaConnectorEth__factory"; -export type { ZetaConnectorNonEth } from "./contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth"; -export { ZetaConnectorNonEth__factory } from "./factories/contracts/evm/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory"; -export type { ISystem } from "./contracts/zevm/interfaces/ISystem"; -export { ISystem__factory } from "./factories/contracts/zevm/interfaces/ISystem__factory"; -export type { IWETH9 } from "./contracts/zevm/interfaces/IWZETA.sol/IWETH9"; -export { IWETH9__factory } from "./factories/contracts/zevm/interfaces/IWZETA.sol/IWETH9__factory"; -export type { IZRC20 } from "./contracts/zevm/interfaces/IZRC20.sol/IZRC20"; -export { IZRC20__factory } from "./factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20__factory"; -export type { IZRC20Metadata } from "./contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata"; -export { IZRC20Metadata__factory } from "./factories/contracts/zevm/interfaces/IZRC20.sol/IZRC20Metadata__factory"; -export type { ZRC20Events } from "./contracts/zevm/interfaces/IZRC20.sol/ZRC20Events"; -export { ZRC20Events__factory } from "./factories/contracts/zevm/interfaces/IZRC20.sol/ZRC20Events__factory"; -export type { UniversalContract } from "./contracts/zevm/interfaces/zContract.sol/UniversalContract"; -export { UniversalContract__factory } from "./factories/contracts/zevm/interfaces/zContract.sol/UniversalContract__factory"; -export type { ZContract } from "./contracts/zevm/interfaces/zContract.sol/ZContract"; -export { ZContract__factory } from "./factories/contracts/zevm/interfaces/zContract.sol/ZContract__factory"; -export type { SystemContract } from "./contracts/zevm/SystemContract.sol/SystemContract"; -export { SystemContract__factory } from "./factories/contracts/zevm/SystemContract.sol/SystemContract__factory"; -export type { SystemContractErrors } from "./contracts/zevm/SystemContract.sol/SystemContractErrors"; -export { SystemContractErrors__factory } from "./factories/contracts/zevm/SystemContract.sol/SystemContractErrors__factory"; -export type { SystemContractMock } from "./contracts/zevm/testing/SystemContractMock.sol/SystemContractMock"; -export { SystemContractMock__factory } from "./factories/contracts/zevm/testing/SystemContractMock.sol/SystemContractMock__factory"; -export type { ZetaConnectorZEVM } from "./contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM"; -export { ZetaConnectorZEVM__factory } from "./factories/contracts/zevm/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory"; -export type { ZRC20 } from "./contracts/zevm/ZRC20.sol/ZRC20"; -export { ZRC20__factory } from "./factories/contracts/zevm/ZRC20.sol/ZRC20__factory"; -export type { ZRC20Errors } from "./contracts/zevm/ZRC20.sol/ZRC20Errors"; -export { ZRC20Errors__factory } from "./factories/contracts/zevm/ZRC20.sol/ZRC20Errors__factory"; diff --git a/v1/yarn.lock b/v1/yarn.lock deleted file mode 100644 index 2777ab0d7..000000000 --- a/v1/yarn.lock +++ /dev/null @@ -1,9917 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@aws-crypto/sha256-js@1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@aws-crypto/sha256-js/-/sha256-js-1.2.2.tgz#02acd1a1fda92896fc5a28ec7c6e164644ea32fc" - integrity sha512-Nr1QJIbW/afYYGzYvrF70LtaHrIRtd4TNAglX8BvlfxJLZ45SAmueIKYl5tWoNBPzp65ymXGFK0Bb1vZUpuc9g== - dependencies: - "@aws-crypto/util" "^1.2.2" - "@aws-sdk/types" "^3.1.0" - tslib "^1.11.1" - -"@aws-crypto/util@^1.2.2": - version "1.2.2" - resolved "https://registry.yarnpkg.com/@aws-crypto/util/-/util-1.2.2.tgz#b28f7897730eb6538b21c18bd4de22d0ea09003c" - integrity sha512-H8PjG5WJ4wz0UXAFXeJjWCW1vkvIJ3qUUD+rGRwJ2/hj+xT58Qle2MTql/2MGzkU+1JLAFuR6aJpLAjHwhmwwg== - dependencies: - "@aws-sdk/types" "^3.1.0" - "@aws-sdk/util-utf8-browser" "^3.0.0" - tslib "^1.11.1" - -"@aws-sdk/types@^3.1.0": - version "3.598.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.598.0.tgz#b840d2446dee19a2a4731e6166f2327915d846db" - integrity sha512-742uRl6z7u0LFmZwDrFP6r1wlZcgVPw+/TilluDJmCAR8BgRw3IR+743kUXKBGd8QZDRW2n6v/PYsi/AWCDDMQ== - dependencies: - "@smithy/types" "^3.1.0" - tslib "^2.6.2" - -"@aws-sdk/util-utf8-browser@^3.0.0": - version "3.259.0" - resolved "https://registry.yarnpkg.com/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz#3275a6f5eb334f96ca76635b961d3c50259fd9ff" - integrity sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw== - dependencies: - tslib "^2.3.1" - -"@babel/code-frame@^7.0.0": - version "7.21.4" - resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz" - integrity sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g== - dependencies: - "@babel/highlight" "^7.18.6" - -"@babel/helper-validator-identifier@^7.18.6": - version "7.19.1" - resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz" - integrity sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w== - -"@babel/highlight@^7.18.6": - version "7.18.6" - resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz" - integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== - dependencies: - "@babel/helper-validator-identifier" "^7.18.6" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@babel/runtime@^7.20.1", "@babel/runtime@^7.5.5": - version "7.21.0" - resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz" - integrity sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw== - dependencies: - regenerator-runtime "^0.13.11" - -"@babel/runtime@^7.21.0": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.7.tgz#f4f0d5530e8dbdf59b3451b9b3e594b6ba082e12" - integrity sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw== - dependencies: - regenerator-runtime "^0.14.0" - -"@changesets/apply-release-plan@^6.1.3": - version "6.1.3" - resolved "https://registry.npmjs.org/@changesets/apply-release-plan/-/apply-release-plan-6.1.3.tgz" - integrity sha512-ECDNeoc3nfeAe1jqJb5aFQX7CqzQhD2klXRez2JDb/aVpGUbX673HgKrnrgJRuQR/9f2TtLoYIzrGB9qwD77mg== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/config" "^2.3.0" - "@changesets/get-version-range-type" "^0.3.2" - "@changesets/git" "^2.0.0" - "@changesets/types" "^5.2.1" - "@manypkg/get-packages" "^1.1.3" - detect-indent "^6.0.0" - fs-extra "^7.0.1" - lodash.startcase "^4.4.0" - outdent "^0.5.0" - prettier "^2.7.1" - resolve-from "^5.0.0" - semver "^5.4.1" - -"@changesets/assemble-release-plan@^5.2.3": - version "5.2.3" - resolved "https://registry.npmjs.org/@changesets/assemble-release-plan/-/assemble-release-plan-5.2.3.tgz" - integrity sha512-g7EVZCmnWz3zMBAdrcKhid4hkHT+Ft1n0mLussFMcB1dE2zCuwcvGoy9ec3yOgPGF4hoMtgHaMIk3T3TBdvU9g== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/errors" "^0.1.4" - "@changesets/get-dependents-graph" "^1.3.5" - "@changesets/types" "^5.2.1" - "@manypkg/get-packages" "^1.1.3" - semver "^5.4.1" - -"@changesets/changelog-git@^0.1.14": - version "0.1.14" - resolved "https://registry.npmjs.org/@changesets/changelog-git/-/changelog-git-0.1.14.tgz" - integrity sha512-+vRfnKtXVWsDDxGctOfzJsPhaCdXRYoe+KyWYoq5X/GqoISREiat0l3L8B0a453B2B4dfHGcZaGyowHbp9BSaA== - dependencies: - "@changesets/types" "^5.2.1" - -"@changesets/cli@^2.23.1": - version "2.26.1" - resolved "https://registry.npmjs.org/@changesets/cli/-/cli-2.26.1.tgz" - integrity sha512-XnTa+b51vt057fyAudvDKGB0Sh72xutQZNAdXkCqPBKO2zvs2yYZx5hFZj1u9cbtpwM6Sxtcr02/FQJfZOzemQ== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/apply-release-plan" "^6.1.3" - "@changesets/assemble-release-plan" "^5.2.3" - "@changesets/changelog-git" "^0.1.14" - "@changesets/config" "^2.3.0" - "@changesets/errors" "^0.1.4" - "@changesets/get-dependents-graph" "^1.3.5" - "@changesets/get-release-plan" "^3.0.16" - "@changesets/git" "^2.0.0" - "@changesets/logger" "^0.0.5" - "@changesets/pre" "^1.0.14" - "@changesets/read" "^0.5.9" - "@changesets/types" "^5.2.1" - "@changesets/write" "^0.2.3" - "@manypkg/get-packages" "^1.1.3" - "@types/is-ci" "^3.0.0" - "@types/semver" "^6.0.0" - ansi-colors "^4.1.3" - chalk "^2.1.0" - enquirer "^2.3.0" - external-editor "^3.1.0" - fs-extra "^7.0.1" - human-id "^1.0.2" - is-ci "^3.0.1" - meow "^6.0.0" - outdent "^0.5.0" - p-limit "^2.2.0" - preferred-pm "^3.0.0" - resolve-from "^5.0.0" - semver "^5.4.1" - spawndamnit "^2.0.0" - term-size "^2.1.0" - tty-table "^4.1.5" - -"@changesets/config@^2.3.0": - version "2.3.0" - resolved "https://registry.npmjs.org/@changesets/config/-/config-2.3.0.tgz" - integrity sha512-EgP/px6mhCx8QeaMAvWtRrgyxW08k/Bx2tpGT+M84jEdX37v3VKfh4Cz1BkwrYKuMV2HZKeHOh8sHvja/HcXfQ== - dependencies: - "@changesets/errors" "^0.1.4" - "@changesets/get-dependents-graph" "^1.3.5" - "@changesets/logger" "^0.0.5" - "@changesets/types" "^5.2.1" - "@manypkg/get-packages" "^1.1.3" - fs-extra "^7.0.1" - micromatch "^4.0.2" - -"@changesets/errors@^0.1.4": - version "0.1.4" - resolved "https://registry.npmjs.org/@changesets/errors/-/errors-0.1.4.tgz" - integrity sha512-HAcqPF7snsUJ/QzkWoKfRfXushHTu+K5KZLJWPb34s4eCZShIf8BFO3fwq6KU8+G7L5KdtN2BzQAXOSXEyiY9Q== - dependencies: - extendable-error "^0.1.5" - -"@changesets/get-dependents-graph@^1.3.5": - version "1.3.5" - resolved "https://registry.npmjs.org/@changesets/get-dependents-graph/-/get-dependents-graph-1.3.5.tgz" - integrity sha512-w1eEvnWlbVDIY8mWXqWuYE9oKhvIaBhzqzo4ITSJY9hgoqQ3RoBqwlcAzg11qHxv/b8ReDWnMrpjpKrW6m1ZTA== - dependencies: - "@changesets/types" "^5.2.1" - "@manypkg/get-packages" "^1.1.3" - chalk "^2.1.0" - fs-extra "^7.0.1" - semver "^5.4.1" - -"@changesets/get-release-plan@^3.0.16": - version "3.0.16" - resolved "https://registry.npmjs.org/@changesets/get-release-plan/-/get-release-plan-3.0.16.tgz" - integrity sha512-OpP9QILpBp1bY2YNIKFzwigKh7Qe9KizRsZomzLe6pK8IUo8onkAAVUD8+JRKSr8R7d4+JRuQrfSSNlEwKyPYg== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/assemble-release-plan" "^5.2.3" - "@changesets/config" "^2.3.0" - "@changesets/pre" "^1.0.14" - "@changesets/read" "^0.5.9" - "@changesets/types" "^5.2.1" - "@manypkg/get-packages" "^1.1.3" - -"@changesets/get-version-range-type@^0.3.2": - version "0.3.2" - resolved "https://registry.npmjs.org/@changesets/get-version-range-type/-/get-version-range-type-0.3.2.tgz" - integrity sha512-SVqwYs5pULYjYT4op21F2pVbcrca4qA/bAA3FmFXKMN7Y+HcO8sbZUTx3TAy2VXulP2FACd1aC7f2nTuqSPbqg== - -"@changesets/git@^2.0.0": - version "2.0.0" - resolved "https://registry.npmjs.org/@changesets/git/-/git-2.0.0.tgz" - integrity sha512-enUVEWbiqUTxqSnmesyJGWfzd51PY4H7mH9yUw0hPVpZBJ6tQZFMU3F3mT/t9OJ/GjyiM4770i+sehAn6ymx6A== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/errors" "^0.1.4" - "@changesets/types" "^5.2.1" - "@manypkg/get-packages" "^1.1.3" - is-subdir "^1.1.1" - micromatch "^4.0.2" - spawndamnit "^2.0.0" - -"@changesets/logger@^0.0.5": - version "0.0.5" - resolved "https://registry.npmjs.org/@changesets/logger/-/logger-0.0.5.tgz" - integrity sha512-gJyZHomu8nASHpaANzc6bkQMO9gU/ib20lqew1rVx753FOxffnCrJlGIeQVxNWCqM+o6OOleCo/ivL8UAO5iFw== - dependencies: - chalk "^2.1.0" - -"@changesets/parse@^0.3.16": - version "0.3.16" - resolved "https://registry.npmjs.org/@changesets/parse/-/parse-0.3.16.tgz" - integrity sha512-127JKNd167ayAuBjUggZBkmDS5fIKsthnr9jr6bdnuUljroiERW7FBTDNnNVyJ4l69PzR57pk6mXQdtJyBCJKg== - dependencies: - "@changesets/types" "^5.2.1" - js-yaml "^3.13.1" - -"@changesets/pre@^1.0.14": - version "1.0.14" - resolved "https://registry.npmjs.org/@changesets/pre/-/pre-1.0.14.tgz" - integrity sha512-dTsHmxQWEQekHYHbg+M1mDVYFvegDh9j/kySNuDKdylwfMEevTeDouR7IfHNyVodxZXu17sXoJuf2D0vi55FHQ== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/errors" "^0.1.4" - "@changesets/types" "^5.2.1" - "@manypkg/get-packages" "^1.1.3" - fs-extra "^7.0.1" - -"@changesets/read@^0.5.9": - version "0.5.9" - resolved "https://registry.npmjs.org/@changesets/read/-/read-0.5.9.tgz" - integrity sha512-T8BJ6JS6j1gfO1HFq50kU3qawYxa4NTbI/ASNVVCBTsKquy2HYwM9r7ZnzkiMe8IEObAJtUVGSrePCOxAK2haQ== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/git" "^2.0.0" - "@changesets/logger" "^0.0.5" - "@changesets/parse" "^0.3.16" - "@changesets/types" "^5.2.1" - chalk "^2.1.0" - fs-extra "^7.0.1" - p-filter "^2.1.0" - -"@changesets/types@^4.0.1": - version "4.1.0" - resolved "https://registry.npmjs.org/@changesets/types/-/types-4.1.0.tgz" - integrity sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw== - -"@changesets/types@^5.2.1": - version "5.2.1" - resolved "https://registry.npmjs.org/@changesets/types/-/types-5.2.1.tgz" - integrity sha512-myLfHbVOqaq9UtUKqR/nZA/OY7xFjQMdfgfqeZIBK4d0hA6pgxArvdv8M+6NUzzBsjWLOtvApv8YHr4qM+Kpfg== - -"@changesets/write@^0.2.3": - version "0.2.3" - resolved "https://registry.npmjs.org/@changesets/write/-/write-0.2.3.tgz" - integrity sha512-Dbamr7AIMvslKnNYsLFafaVORx4H0pvCA2MHqgtNCySMe1blImEyAEOzDmcgKAkgz4+uwoLz7demIrX+JBr/Xw== - dependencies: - "@babel/runtime" "^7.20.1" - "@changesets/types" "^5.2.1" - fs-extra "^7.0.1" - human-id "^1.0.2" - prettier "^2.7.1" - -"@cspotcode/source-map-support@^0.8.0": - version "0.8.1" - resolved "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz" - integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== - dependencies: - "@jridgewell/trace-mapping" "0.3.9" - -"@eslint-community/eslint-utils@^4.2.0": - version "4.4.0" - resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz" - integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== - dependencies: - eslint-visitor-keys "^3.3.0" - -"@eslint-community/regexpp@^4.4.0": - version "4.5.0" - resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.0.tgz" - integrity sha512-vITaYzIcNmjn5tF5uxcZ/ft7/RXGrMUIS9HalWckEOF6ESiwXKoMzAQf2UW0aVd6rnOeExTJVd5hmWXucBKGXQ== - -"@eslint/eslintrc@^2.0.2": - version "2.0.2" - resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.2.tgz" - integrity sha512-3W4f5tDUra+pA+FzgugqL2pRimUTDJWKr7BINqOpkZrC0uYI0NIc0/JFgBROCU07HR6GieA5m3/rsPIhDmCXTQ== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.5.1" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - -"@eslint/js@8.38.0": - version "8.38.0" - resolved "https://registry.npmjs.org/@eslint/js/-/js-8.38.0.tgz" - integrity sha512-IoD2MfUnOV58ghIHCiil01PcohxjbYR/qCxsoC+xNgUwh1EY8jOOrYmu3d3a71+tJJ23uscEV4X2HJWMsPJu4g== - -"@ethereum-waffle/chai@4.0.10": - version "4.0.10" - resolved "https://registry.npmjs.org/@ethereum-waffle/chai/-/chai-4.0.10.tgz" - integrity sha512-X5RepE7Dn8KQLFO7HHAAe+KeGaX/by14hn90wePGBhzL54tq4Y8JscZFu+/LCwCl6TnkAAy5ebiMoqJ37sFtWw== - dependencies: - "@ethereum-waffle/provider" "4.0.5" - debug "^4.3.4" - json-bigint "^1.0.0" - -"@ethereum-waffle/compiler@4.0.3": - version "4.0.3" - resolved "https://registry.npmjs.org/@ethereum-waffle/compiler/-/compiler-4.0.3.tgz" - integrity sha512-5x5U52tSvEVJS6dpCeXXKvRKyf8GICDwiTwUvGD3/WD+DpvgvaoHOL82XqpTSUHgV3bBq6ma5/8gKUJUIAnJCw== - dependencies: - "@resolver-engine/imports" "^0.3.3" - "@resolver-engine/imports-fs" "^0.3.3" - "@typechain/ethers-v5" "^10.0.0" - "@types/mkdirp" "^0.5.2" - "@types/node-fetch" "^2.6.1" - mkdirp "^0.5.1" - node-fetch "^2.6.7" - -"@ethereum-waffle/ens@4.0.3": - version "4.0.3" - resolved "https://registry.npmjs.org/@ethereum-waffle/ens/-/ens-4.0.3.tgz" - integrity sha512-PVLcdnTbaTfCrfSOrvtlA9Fih73EeDvFS28JQnT5M5P4JMplqmchhcZB1yg/fCtx4cvgHlZXa0+rOCAk2Jk0Jw== - -"@ethereum-waffle/mock-contract@4.0.4": - version "4.0.4" - resolved "https://registry.npmjs.org/@ethereum-waffle/mock-contract/-/mock-contract-4.0.4.tgz" - integrity sha512-LwEj5SIuEe9/gnrXgtqIkWbk2g15imM/qcJcxpLyAkOj981tQxXmtV4XmQMZsdedEsZ/D/rbUAOtZbgwqgUwQA== - -"@ethereum-waffle/provider@4.0.5": - version "4.0.5" - resolved "https://registry.npmjs.org/@ethereum-waffle/provider/-/provider-4.0.5.tgz" - integrity sha512-40uzfyzcrPh+Gbdzv89JJTMBlZwzya1YLDyim8mVbEqYLP5VRYWoGp0JMyaizgV3hMoUFRqJKVmIUw4v7r3hYw== - dependencies: - "@ethereum-waffle/ens" "4.0.3" - "@ganache/ethereum-options" "0.1.4" - debug "^4.3.4" - ganache "7.4.3" - -"@ethereumjs/block@^3.5.0", "@ethereumjs/block@^3.6.0", "@ethereumjs/block@^3.6.2": - version "3.6.3" - resolved "https://registry.npmjs.org/@ethereumjs/block/-/block-3.6.3.tgz" - integrity sha512-CegDeryc2DVKnDkg5COQrE0bJfw/p0v3GBk2W5/Dj5dOVfEmb50Ux0GLnSPypooLnfqjwFaorGuT9FokWB3GRg== - dependencies: - "@ethereumjs/common" "^2.6.5" - "@ethereumjs/tx" "^3.5.2" - ethereumjs-util "^7.1.5" - merkle-patricia-tree "^4.2.4" - -"@ethereumjs/blockchain@^5.5.0": - version "5.5.3" - resolved "https://registry.npmjs.org/@ethereumjs/blockchain/-/blockchain-5.5.3.tgz" - integrity sha512-bi0wuNJ1gw4ByNCV56H0Z4Q7D+SxUbwyG12Wxzbvqc89PXLRNR20LBcSUZRKpN0+YCPo6m0XZL/JLio3B52LTw== - dependencies: - "@ethereumjs/block" "^3.6.2" - "@ethereumjs/common" "^2.6.4" - "@ethereumjs/ethash" "^1.1.0" - debug "^4.3.3" - ethereumjs-util "^7.1.5" - level-mem "^5.0.1" - lru-cache "^5.1.1" - semaphore-async-await "^1.5.1" - -"@ethereumjs/common@2.6.0": - version "2.6.0" - resolved "https://registry.npmjs.org/@ethereumjs/common/-/common-2.6.0.tgz" - integrity sha512-Cq2qS0FTu6O2VU1sgg+WyU9Ps0M6j/BEMHN+hRaECXCV/r0aI78u4N6p52QW/BDVhwWZpCdrvG8X7NJdzlpNUA== - dependencies: - crc-32 "^1.2.0" - ethereumjs-util "^7.1.3" - -"@ethereumjs/common@^2.6.0", "@ethereumjs/common@^2.6.4", "@ethereumjs/common@^2.6.5": - version "2.6.5" - resolved "https://registry.npmjs.org/@ethereumjs/common/-/common-2.6.5.tgz" - integrity sha512-lRyVQOeCDaIVtgfbowla32pzeDv2Obr8oR8Put5RdUBNRGr1VGPGQNGP6elWIpgK3YdpzqTOh4GyUGOureVeeA== - dependencies: - crc-32 "^1.2.0" - ethereumjs-util "^7.1.5" - -"@ethereumjs/ethash@^1.1.0": - version "1.1.0" - resolved "https://registry.npmjs.org/@ethereumjs/ethash/-/ethash-1.1.0.tgz" - integrity sha512-/U7UOKW6BzpA+Vt+kISAoeDie1vAvY4Zy2KF5JJb+So7+1yKmJeJEHOGSnQIj330e9Zyl3L5Nae6VZyh2TJnAA== - dependencies: - "@ethereumjs/block" "^3.5.0" - "@types/levelup" "^4.3.0" - buffer-xor "^2.0.1" - ethereumjs-util "^7.1.1" - miller-rabin "^4.0.0" - -"@ethereumjs/rlp@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@ethereumjs/rlp/-/rlp-4.0.1.tgz#626fabfd9081baab3d0a3074b0c7ecaf674aaa41" - integrity sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw== - -"@ethereumjs/tx@3.4.0": - version "3.4.0" - resolved "https://registry.npmjs.org/@ethereumjs/tx/-/tx-3.4.0.tgz" - integrity sha512-WWUwg1PdjHKZZxPPo274ZuPsJCWV3SqATrEKQP1n2DrVYVP1aZIYpo/mFaA0BDoE0tIQmBeimRCEA0Lgil+yYw== - dependencies: - "@ethereumjs/common" "^2.6.0" - ethereumjs-util "^7.1.3" - -"@ethereumjs/tx@^3.4.0", "@ethereumjs/tx@^3.5.2": - version "3.5.2" - resolved "https://registry.npmjs.org/@ethereumjs/tx/-/tx-3.5.2.tgz" - integrity sha512-gQDNJWKrSDGu2w7w0PzVXVBNMzb7wwdDOmOqczmhNjqFxFuIbhVJDwiGEnxFNC2/b8ifcZzY7MLcluizohRzNw== - dependencies: - "@ethereumjs/common" "^2.6.4" - ethereumjs-util "^7.1.5" - -"@ethereumjs/util@^8.1.0": - version "8.1.0" - resolved "https://registry.yarnpkg.com/@ethereumjs/util/-/util-8.1.0.tgz#299df97fb6b034e0577ce9f94c7d9d1004409ed4" - integrity sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA== - dependencies: - "@ethereumjs/rlp" "^4.0.1" - ethereum-cryptography "^2.0.0" - micro-ftch "^0.3.1" - -"@ethereumjs/vm@5.6.0": - version "5.6.0" - resolved "https://registry.npmjs.org/@ethereumjs/vm/-/vm-5.6.0.tgz" - integrity sha512-J2m/OgjjiGdWF2P9bj/4LnZQ1zRoZhY8mRNVw/N3tXliGI8ai1sI1mlDPkLpeUUM4vq54gH6n0ZlSpz8U/qlYQ== - dependencies: - "@ethereumjs/block" "^3.6.0" - "@ethereumjs/blockchain" "^5.5.0" - "@ethereumjs/common" "^2.6.0" - "@ethereumjs/tx" "^3.4.0" - async-eventemitter "^0.2.4" - core-js-pure "^3.0.1" - debug "^2.2.0" - ethereumjs-util "^7.1.3" - functional-red-black-tree "^1.0.1" - mcl-wasm "^0.7.1" - merkle-patricia-tree "^4.2.2" - rustbn.js "~0.2.0" - -"@ethersproject/abi@5.6.3": - version "5.6.3" - resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.6.3.tgz" - integrity sha512-CxKTdoZY4zDJLWXG6HzNH6znWK0M79WzzxHegDoecE3+K32pzfHOzuXg2/oGSTecZynFgpkjYXNPOqXVJlqClw== - dependencies: - "@ethersproject/address" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/constants" "^5.6.1" - "@ethersproject/hash" "^5.6.1" - "@ethersproject/keccak256" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/strings" "^5.6.1" - -"@ethersproject/abi@^5.0.0-beta.146", "@ethersproject/abi@^5.0.9", "@ethersproject/abi@^5.1.2", "@ethersproject/abi@^5.4.7", "@ethersproject/abi@^5.5.0", "@ethersproject/abi@^5.6.3": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz" - integrity sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA== - dependencies: - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ethersproject/abstract-provider@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.6.1.tgz" - integrity sha512-BxlIgogYJtp1FS8Muvj8YfdClk3unZH0vRMVX791Z9INBNT/kuACZ9GzaY1Y4yFq+YSy6/w4gzj3HCRKrK9hsQ== - dependencies: - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/networks" "^5.6.3" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/transactions" "^5.6.2" - "@ethersproject/web" "^5.6.1" - -"@ethersproject/abstract-provider@^5.6.1", "@ethersproject/abstract-provider@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz" - integrity sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/networks" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/web" "^5.7.0" - -"@ethersproject/abstract-signer@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.6.2.tgz" - integrity sha512-n1r6lttFBG0t2vNiI3HoWaS/KdOt8xyDjzlP2cuevlWLG6EX0OwcKLyG/Kp/cuwNxdy/ous+R/DEMdTUwWQIjQ== - dependencies: - "@ethersproject/abstract-provider" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - -"@ethersproject/abstract-signer@^5.6.2", "@ethersproject/abstract-signer@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz" - integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== - dependencies: - "@ethersproject/abstract-provider" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - -"@ethersproject/address@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.6.1.tgz" - integrity sha512-uOgF0kS5MJv9ZvCz7x6T2EXJSzotiybApn4XlOgoTX0xdtyVIJ7pF+6cGPxiEq/dpBiTfMiw7Yc81JcwhSYA0Q== - dependencies: - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/keccak256" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/rlp" "^5.6.1" - -"@ethersproject/address@^5.0.2", "@ethersproject/address@^5.6.1", "@ethersproject/address@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz" - integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - -"@ethersproject/base64@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.6.1.tgz" - integrity sha512-qB76rjop6a0RIYYMiB4Eh/8n+Hxu2NIZm8S/Q7kNo5pmZfXhHGHmS4MinUainiBC54SCyRnwzL+KZjj8zbsSsw== - dependencies: - "@ethersproject/bytes" "^5.6.1" - -"@ethersproject/base64@^5.6.1", "@ethersproject/base64@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz" - integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - -"@ethersproject/basex@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.6.1.tgz" - integrity sha512-a52MkVz4vuBXR06nvflPMotld1FJWSj2QT0985v7P/emPZO00PucFAkbcmq2vpVU7Ts7umKiSI6SppiLykVWsA== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/properties" "^5.6.0" - -"@ethersproject/basex@^5.6.1", "@ethersproject/basex@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz" - integrity sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - -"@ethersproject/bignumber@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.6.2.tgz" - integrity sha512-v7+EEUbhGqT3XJ9LMPsKvXYHFc8eHxTowFCG/HgJErmq4XHJ2WR7aeyICg3uTOAQ7Icn0GFHAohXEhxQHq4Ubw== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - bn.js "^5.2.1" - -"@ethersproject/bignumber@^5.6.2", "@ethersproject/bignumber@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz" - integrity sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - bn.js "^5.2.1" - -"@ethersproject/bytes@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.6.1.tgz" - integrity sha512-NwQt7cKn5+ZE4uDn+X5RAXLp46E1chXoaMmrxAyA0rblpxz8t58lVkrHXoRIn0lz1joQElQ8410GqhTqMOwc6g== - dependencies: - "@ethersproject/logger" "^5.6.0" - -"@ethersproject/bytes@^5.6.1", "@ethersproject/bytes@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz" - integrity sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/constants@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.6.1.tgz" - integrity sha512-QSq9WVnZbxXYFftrjSjZDUshp6/eKp6qrtdBtUCm0QxCV5z1fG/w3kdlcsjMCQuQHUnAclKoK7XpXMezhRDOLg== - dependencies: - "@ethersproject/bignumber" "^5.6.2" - -"@ethersproject/constants@^5.6.1", "@ethersproject/constants@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz" - integrity sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA== - dependencies: - "@ethersproject/bignumber" "^5.7.0" - -"@ethersproject/contracts@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.6.2.tgz" - integrity sha512-hguUA57BIKi6WY0kHvZp6PwPlWF87MCeB4B7Z7AbUpTxfFXFdn/3b0GmjZPagIHS+3yhcBJDnuEfU4Xz+Ks/8g== - dependencies: - "@ethersproject/abi" "^5.6.3" - "@ethersproject/abstract-provider" "^5.6.1" - "@ethersproject/abstract-signer" "^5.6.2" - "@ethersproject/address" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/constants" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/transactions" "^5.6.2" - -"@ethersproject/hash@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.6.1.tgz" - integrity sha512-L1xAHurbaxG8VVul4ankNX5HgQ8PNCTrnVXEiFnE9xoRnaUcgfD12tZINtDinSllxPLCtGwguQxJ5E6keE84pA== - dependencies: - "@ethersproject/abstract-signer" "^5.6.2" - "@ethersproject/address" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/keccak256" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/strings" "^5.6.1" - -"@ethersproject/hash@^5.6.1", "@ethersproject/hash@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz" - integrity sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g== - dependencies: - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/base64" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ethersproject/hdnode@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.6.2.tgz" - integrity sha512-tERxW8Ccf9CxW2db3WsN01Qao3wFeRsfYY9TCuhmG0xNpl2IO8wgXU3HtWIZ49gUWPggRy4Yg5axU0ACaEKf1Q== - dependencies: - "@ethersproject/abstract-signer" "^5.6.2" - "@ethersproject/basex" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/pbkdf2" "^5.6.1" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/sha2" "^5.6.1" - "@ethersproject/signing-key" "^5.6.2" - "@ethersproject/strings" "^5.6.1" - "@ethersproject/transactions" "^5.6.2" - "@ethersproject/wordlists" "^5.6.1" - -"@ethersproject/hdnode@^5.6.2", "@ethersproject/hdnode@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz" - integrity sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg== - dependencies: - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/basex" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/pbkdf2" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - "@ethersproject/signing-key" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/wordlists" "^5.7.0" - -"@ethersproject/json-wallets@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.6.1.tgz" - integrity sha512-KfyJ6Zwz3kGeX25nLihPwZYlDqamO6pfGKNnVMWWfEVVp42lTfCZVXXy5Ie8IZTN0HKwAngpIPi7gk4IJzgmqQ== - dependencies: - "@ethersproject/abstract-signer" "^5.6.2" - "@ethersproject/address" "^5.6.1" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/hdnode" "^5.6.2" - "@ethersproject/keccak256" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/pbkdf2" "^5.6.1" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/random" "^5.6.1" - "@ethersproject/strings" "^5.6.1" - "@ethersproject/transactions" "^5.6.2" - aes-js "3.0.0" - scrypt-js "3.0.1" - -"@ethersproject/json-wallets@^5.6.1": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz" - integrity sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g== - dependencies: - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/hdnode" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/pbkdf2" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/random" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - aes-js "3.0.0" - scrypt-js "3.0.1" - -"@ethersproject/keccak256@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.6.1.tgz" - integrity sha512-bB7DQHCTRDooZZdL3lk9wpL0+XuG3XLGHLh3cePnybsO3V0rdCAOQGpn/0R3aODmnTOOkCATJiD2hnL+5bwthA== - dependencies: - "@ethersproject/bytes" "^5.6.1" - js-sha3 "0.8.0" - -"@ethersproject/keccak256@^5.6.1", "@ethersproject/keccak256@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz" - integrity sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - js-sha3 "0.8.0" - -"@ethersproject/logger@5.6.0": - version "5.6.0" - resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.6.0.tgz" - integrity sha512-BiBWllUROH9w+P21RzoxJKzqoqpkyM1pRnEKG69bulE9TSQD8SAIvTQqIMZmmCO8pUNkgLP1wndX1gKghSpBmg== - -"@ethersproject/logger@^5.6.0", "@ethersproject/logger@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz" - integrity sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig== - -"@ethersproject/networks@5.6.3": - version "5.6.3" - resolved "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.6.3.tgz" - integrity sha512-QZxRH7cA5Ut9TbXwZFiCyuPchdWi87ZtVNHWZd0R6YFgYtes2jQ3+bsslJ0WdyDe0i6QumqtoYqvY3rrQFRZOQ== - dependencies: - "@ethersproject/logger" "^5.6.0" - -"@ethersproject/networks@^5.6.3", "@ethersproject/networks@^5.7.0": - version "5.7.1" - resolved "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz" - integrity sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/pbkdf2@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.6.1.tgz" - integrity sha512-k4gRQ+D93zDRPNUfmduNKq065uadC2YjMP/CqwwX5qG6R05f47boq6pLZtV/RnC4NZAYOPH1Cyo54q0c9sshRQ== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/sha2" "^5.6.1" - -"@ethersproject/pbkdf2@^5.6.1", "@ethersproject/pbkdf2@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz" - integrity sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - -"@ethersproject/properties@5.6.0": - version "5.6.0" - resolved "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.6.0.tgz" - integrity sha512-szoOkHskajKePTJSZ46uHUWWkbv7TzP2ypdEK6jGMqJaEt2sb0jCgfBo0gH0m2HBpRixMuJ6TBRaQCF7a9DoCg== - dependencies: - "@ethersproject/logger" "^5.6.0" - -"@ethersproject/properties@^5.6.0", "@ethersproject/properties@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.7.0.tgz" - integrity sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw== - dependencies: - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/providers@5.6.8": - version "5.6.8" - resolved "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.6.8.tgz" - integrity sha512-Wf+CseT/iOJjrGtAOf3ck9zS7AgPmr2fZ3N97r4+YXN3mBePTG2/bJ8DApl9mVwYL+RpYbNxMEkEp4mPGdwG/w== - dependencies: - "@ethersproject/abstract-provider" "^5.6.1" - "@ethersproject/abstract-signer" "^5.6.2" - "@ethersproject/address" "^5.6.1" - "@ethersproject/base64" "^5.6.1" - "@ethersproject/basex" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/constants" "^5.6.1" - "@ethersproject/hash" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/networks" "^5.6.3" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/random" "^5.6.1" - "@ethersproject/rlp" "^5.6.1" - "@ethersproject/sha2" "^5.6.1" - "@ethersproject/strings" "^5.6.1" - "@ethersproject/transactions" "^5.6.2" - "@ethersproject/web" "^5.6.1" - bech32 "1.1.4" - ws "7.4.6" - -"@ethersproject/providers@^5.4.7": - version "5.7.2" - resolved "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.2.tgz" - integrity sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg== - dependencies: - "@ethersproject/abstract-provider" "^5.7.0" - "@ethersproject/abstract-signer" "^5.7.0" - "@ethersproject/address" "^5.7.0" - "@ethersproject/base64" "^5.7.0" - "@ethersproject/basex" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/networks" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/random" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - "@ethersproject/sha2" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - "@ethersproject/transactions" "^5.7.0" - "@ethersproject/web" "^5.7.0" - bech32 "1.1.4" - ws "7.4.6" - -"@ethersproject/random@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/random/-/random-5.6.1.tgz" - integrity sha512-/wtPNHwbmng+5yi3fkipA8YBT59DdkGRoC2vWk09Dci/q5DlgnMkhIycjHlavrvrjJBkFjO/ueLyT+aUDfc4lA== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - -"@ethersproject/random@^5.6.1", "@ethersproject/random@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/random/-/random-5.7.0.tgz" - integrity sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/rlp@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.6.1.tgz" - integrity sha512-uYjmcZx+DKlFUk7a5/W9aQVaoEC7+1MOBgNtvNg13+RnuUwT4F0zTovC0tmay5SmRslb29V1B7Y5KCri46WhuQ== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - -"@ethersproject/rlp@^5.6.1", "@ethersproject/rlp@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz" - integrity sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/sha2@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.6.1.tgz" - integrity sha512-5K2GyqcW7G4Yo3uenHegbXRPDgARpWUiXc6RiF7b6i/HXUoWlb7uCARh7BAHg7/qT/Q5ydofNwiZcim9qpjB6g== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - hash.js "1.1.7" - -"@ethersproject/sha2@^5.6.1", "@ethersproject/sha2@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.7.0.tgz" - integrity sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - hash.js "1.1.7" - -"@ethersproject/signing-key@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.6.2.tgz" - integrity sha512-jVbu0RuP7EFpw82vHcL+GP35+KaNruVAZM90GxgQnGqB6crhBqW/ozBfFvdeImtmb4qPko0uxXjn8l9jpn0cwQ== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - bn.js "^5.2.1" - elliptic "6.5.4" - hash.js "1.1.7" - -"@ethersproject/signing-key@^5.6.2", "@ethersproject/signing-key@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.7.0.tgz" - integrity sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - bn.js "^5.2.1" - elliptic "6.5.4" - hash.js "1.1.7" - -"@ethersproject/solidity@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.6.1.tgz" - integrity sha512-KWqVLkUUoLBfL1iwdzUVlkNqAUIFMpbbeH0rgCfKmJp0vFtY4AsaN91gHKo9ZZLkC4UOm3cI3BmMV4N53BOq4g== - dependencies: - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/keccak256" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/sha2" "^5.6.1" - "@ethersproject/strings" "^5.6.1" - -"@ethersproject/strings@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.6.1.tgz" - integrity sha512-2X1Lgk6Jyfg26MUnsHiT456U9ijxKUybz8IM1Vih+NJxYtXhmvKBcHOmvGqpFSVJ0nQ4ZCoIViR8XlRw1v/+Cw== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/constants" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - -"@ethersproject/strings@^5.6.1", "@ethersproject/strings@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.7.0.tgz" - integrity sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - -"@ethersproject/transactions@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.6.2.tgz" - integrity sha512-BuV63IRPHmJvthNkkt9G70Ullx6AcM+SDc+a8Aw/8Yew6YwT51TcBKEp1P4oOQ/bP25I18JJr7rcFRgFtU9B2Q== - dependencies: - "@ethersproject/address" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/constants" "^5.6.1" - "@ethersproject/keccak256" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/rlp" "^5.6.1" - "@ethersproject/signing-key" "^5.6.2" - -"@ethersproject/transactions@^5.6.2", "@ethersproject/transactions@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.7.0.tgz" - integrity sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ== - dependencies: - "@ethersproject/address" "^5.7.0" - "@ethersproject/bignumber" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/constants" "^5.7.0" - "@ethersproject/keccak256" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/rlp" "^5.7.0" - "@ethersproject/signing-key" "^5.7.0" - -"@ethersproject/units@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/units/-/units-5.6.1.tgz" - integrity sha512-rEfSEvMQ7obcx3KWD5EWWx77gqv54K6BKiZzKxkQJqtpriVsICrktIQmKl8ReNToPeIYPnFHpXvKpi068YFZXw== - dependencies: - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/constants" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - -"@ethersproject/wallet@5.6.2": - version "5.6.2" - resolved "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.6.2.tgz" - integrity sha512-lrgh0FDQPuOnHcF80Q3gHYsSUODp6aJLAdDmDV0xKCN/T7D99ta1jGVhulg3PY8wiXEngD0DfM0I2XKXlrqJfg== - dependencies: - "@ethersproject/abstract-provider" "^5.6.1" - "@ethersproject/abstract-signer" "^5.6.2" - "@ethersproject/address" "^5.6.1" - "@ethersproject/bignumber" "^5.6.2" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/hash" "^5.6.1" - "@ethersproject/hdnode" "^5.6.2" - "@ethersproject/json-wallets" "^5.6.1" - "@ethersproject/keccak256" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/random" "^5.6.1" - "@ethersproject/signing-key" "^5.6.2" - "@ethersproject/transactions" "^5.6.2" - "@ethersproject/wordlists" "^5.6.1" - -"@ethersproject/web@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.6.1.tgz" - integrity sha512-/vSyzaQlNXkO1WV+RneYKqCJwualcUdx/Z3gseVovZP0wIlOFcCE1hkRhKBH8ImKbGQbMl9EAAyJFrJu7V0aqA== - dependencies: - "@ethersproject/base64" "^5.6.1" - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/strings" "^5.6.1" - -"@ethersproject/web@^5.6.1", "@ethersproject/web@^5.7.0": - version "5.7.1" - resolved "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz" - integrity sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w== - dependencies: - "@ethersproject/base64" "^5.7.0" - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ethersproject/wordlists@5.6.1": - version "5.6.1" - resolved "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.6.1.tgz" - integrity sha512-wiPRgBpNbNwCQFoCr8bcWO8o5I810cqO6mkdtKfLKFlLxeCWcnzDi4Alu8iyNzlhYuS9npCwivMbRWF19dyblw== - dependencies: - "@ethersproject/bytes" "^5.6.1" - "@ethersproject/hash" "^5.6.1" - "@ethersproject/logger" "^5.6.0" - "@ethersproject/properties" "^5.6.0" - "@ethersproject/strings" "^5.6.1" - -"@ethersproject/wordlists@^5.6.1", "@ethersproject/wordlists@^5.7.0": - version "5.7.0" - resolved "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.7.0.tgz" - integrity sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA== - dependencies: - "@ethersproject/bytes" "^5.7.0" - "@ethersproject/hash" "^5.7.0" - "@ethersproject/logger" "^5.7.0" - "@ethersproject/properties" "^5.7.0" - "@ethersproject/strings" "^5.7.0" - -"@ganache/ethereum-address@0.1.4": - version "0.1.4" - resolved "https://registry.npmjs.org/@ganache/ethereum-address/-/ethereum-address-0.1.4.tgz" - integrity sha512-sTkU0M9z2nZUzDeHRzzGlW724xhMLXo2LeX1hixbnjHWY1Zg1hkqORywVfl+g5uOO8ht8T0v+34IxNxAhmWlbw== - dependencies: - "@ganache/utils" "0.1.4" - -"@ganache/ethereum-options@0.1.4": - version "0.1.4" - resolved "https://registry.npmjs.org/@ganache/ethereum-options/-/ethereum-options-0.1.4.tgz" - integrity sha512-i4l46taoK2yC41FPkcoDlEVoqHS52wcbHPqJtYETRWqpOaoj9hAg/EJIHLb1t6Nhva2CdTO84bG+qlzlTxjAHw== - dependencies: - "@ganache/ethereum-address" "0.1.4" - "@ganache/ethereum-utils" "0.1.4" - "@ganache/options" "0.1.4" - "@ganache/utils" "0.1.4" - bip39 "3.0.4" - seedrandom "3.0.5" - -"@ganache/ethereum-utils@0.1.4": - version "0.1.4" - resolved "https://registry.npmjs.org/@ganache/ethereum-utils/-/ethereum-utils-0.1.4.tgz" - integrity sha512-FKXF3zcdDrIoCqovJmHLKZLrJ43234Em2sde/3urUT/10gSgnwlpFmrv2LUMAmSbX3lgZhW/aSs8krGhDevDAg== - dependencies: - "@ethereumjs/common" "2.6.0" - "@ethereumjs/tx" "3.4.0" - "@ethereumjs/vm" "5.6.0" - "@ganache/ethereum-address" "0.1.4" - "@ganache/rlp" "0.1.4" - "@ganache/utils" "0.1.4" - emittery "0.10.0" - ethereumjs-abi "0.6.8" - ethereumjs-util "7.1.3" - -"@ganache/options@0.1.4": - version "0.1.4" - resolved "https://registry.npmjs.org/@ganache/options/-/options-0.1.4.tgz" - integrity sha512-zAe/craqNuPz512XQY33MOAG6Si1Xp0hCvfzkBfj2qkuPcbJCq6W/eQ5MB6SbXHrICsHrZOaelyqjuhSEmjXRw== - dependencies: - "@ganache/utils" "0.1.4" - bip39 "3.0.4" - seedrandom "3.0.5" - -"@ganache/rlp@0.1.4": - version "0.1.4" - resolved "https://registry.npmjs.org/@ganache/rlp/-/rlp-0.1.4.tgz" - integrity sha512-Do3D1H6JmhikB+6rHviGqkrNywou/liVeFiKIpOBLynIpvZhRCgn3SEDxyy/JovcaozTo/BynHumfs5R085MFQ== - dependencies: - "@ganache/utils" "0.1.4" - rlp "2.2.6" - -"@ganache/utils@0.1.4": - version "0.1.4" - resolved "https://registry.npmjs.org/@ganache/utils/-/utils-0.1.4.tgz" - integrity sha512-oatUueU3XuXbUbUlkyxeLLH3LzFZ4y5aSkNbx6tjSIhVTPeh+AuBKYt4eQ73FFcTB3nj/gZoslgAh5CN7O369w== - dependencies: - emittery "0.10.0" - keccak "3.0.1" - seedrandom "3.0.5" - optionalDependencies: - "@trufflesuite/bigint-buffer" "1.1.9" - -"@hapi/hoek@^9.0.0", "@hapi/hoek@^9.3.0": - version "9.3.0" - resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" - integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== - -"@hapi/topo@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012" - integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg== - dependencies: - "@hapi/hoek" "^9.0.0" - -"@humanwhocodes/config-array@^0.11.8": - version "0.11.8" - resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz" - integrity sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.5" - -"@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - -"@jridgewell/resolve-uri@^3.0.3": - version "3.1.1" - resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz" - integrity sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA== - -"@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.15" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== - -"@jridgewell/trace-mapping@0.3.9": - version "0.3.9" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@manypkg/find-root@^1.1.0": - version "1.1.0" - resolved "https://registry.npmjs.org/@manypkg/find-root/-/find-root-1.1.0.tgz" - integrity sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA== - dependencies: - "@babel/runtime" "^7.5.5" - "@types/node" "^12.7.1" - find-up "^4.1.0" - fs-extra "^8.1.0" - -"@manypkg/get-packages@^1.1.3": - version "1.1.3" - resolved "https://registry.npmjs.org/@manypkg/get-packages/-/get-packages-1.1.3.tgz" - integrity sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A== - dependencies: - "@babel/runtime" "^7.5.5" - "@changesets/types" "^4.0.1" - "@manypkg/find-root" "^1.1.0" - fs-extra "^8.1.0" - globby "^11.0.0" - read-yaml-file "^1.1.0" - -"@metamask/eth-sig-util@^4.0.0": - version "4.0.1" - resolved "https://registry.npmjs.org/@metamask/eth-sig-util/-/eth-sig-util-4.0.1.tgz" - integrity sha512-tghyZKLHZjcdlDqCA3gNZmLeR0XvOE9U1qoQO9ohyAZT6Pya+H9vkBPcsyXytmYLNgVoin7CKCmweo/R43V+tQ== - dependencies: - ethereumjs-abi "^0.6.8" - ethereumjs-util "^6.2.1" - ethjs-util "^0.1.6" - tweetnacl "^1.0.3" - tweetnacl-util "^0.15.1" - -"@morgan-stanley/ts-mocking-bird@^0.6.2": - version "0.6.4" - resolved "https://registry.npmjs.org/@morgan-stanley/ts-mocking-bird/-/ts-mocking-bird-0.6.4.tgz" - integrity sha512-57VJIflP8eR2xXa9cD1LUawh+Gh+BVQfVu0n6GALyg/AqV/Nz25kDRvws3i9kIe1PTrbsZZOYpsYp6bXPd6nVA== - dependencies: - lodash "^4.17.16" - uuid "^7.0.3" - -"@noble/curves@1.4.0", "@noble/curves@~1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.4.0.tgz#f05771ef64da724997f69ee1261b2417a49522d6" - integrity sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg== - dependencies: - "@noble/hashes" "1.4.0" - -"@noble/hashes@1.2.0", "@noble/hashes@~1.2.0": - version "1.2.0" - resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz" - integrity sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ== - -"@noble/hashes@1.4.0", "@noble/hashes@~1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.4.0.tgz#45814aa329f30e4fe0ba49426f49dfccdd066426" - integrity sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg== - -"@noble/secp256k1@1.7.1", "@noble/secp256k1@~1.7.0": - version "1.7.1" - resolved "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz" - integrity sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw== - -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - -"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@nomicfoundation/edr-darwin-arm64@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.4.1.tgz#210e6b5eaff9278814e8f19800182d1071554855" - integrity sha512-XuiUUnWAVNw7JYv7nRqDWfpBm21HOxCRBQ8lQnRnmiets9Ss2X5Ul9mvBheIPh/D0wBzwJ8TRtsSrorpwE79cA== - -"@nomicfoundation/edr-darwin-x64@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.4.1.tgz#81e660de77d1d73317c9a5140349d1197cddef9a" - integrity sha512-N1MfJqEX5ixaXlyyrHnaYxzwIT27Nc/jUgLI7ts4/9kRvPTvyZRYmXS1ciKhmUFr/WvFckTCix2RJbZoGGtX7g== - -"@nomicfoundation/edr-linux-arm64-gnu@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.4.1.tgz#6e1ce12080a35505c7f3eaf772f4e171db8b7f9a" - integrity sha512-bSPOfmcFjJwDgWOV5kgZHeqg2OWu1cINrHSGjig0aVHehjcoX4Sgayrj6fyAxcOV5NQKA6WcyTFll6NrCxzWRA== - -"@nomicfoundation/edr-linux-arm64-musl@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.4.1.tgz#a467a6c8631053d10a8641f67618b9bdf057c636" - integrity sha512-F/+DgOdeBFQDrk+SX4aFffJFBgJfd75ZtE2mjcWNAh/qWiS7NfUxdQX/5OvNo/H6EY4a+3bZH6Bgzqg4mEWvMw== - -"@nomicfoundation/edr-linux-x64-gnu@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.4.1.tgz#63753d05767b4bc0d4f9f9be8399928c790c931e" - integrity sha512-POHhTWczIXCPhzKtY0Vt/l+VCqqCx5gNR5ErwSrNnLz/arfQobZFAU+nc61BX3Jch82TW8b3AbfGI73Kh7gO0w== - -"@nomicfoundation/edr-linux-x64-musl@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.4.1.tgz#44d128b9a09e3f61b08617213a58cd84dd15c418" - integrity sha512-uu8oNp4Ozg3H1x1We0FF+rwXfFiAvsOm5GQ+OBx9YYOXnfDPWqguQfGIkhrti9GD0iYhfQ/WOG5wvp0IzzgGSg== - -"@nomicfoundation/edr-win32-x64-msvc@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.4.1.tgz#1667b725337ca6f27ec58c63337b6a62a0d7ed09" - integrity sha512-PaZHFw455z89ZiKYNTnKu+/TiVZVRI+mRJsbRTe2N0VlYfUBS1o2gdXBM12oP1t198HR7xQwEPPAslTFxGBqHA== - -"@nomicfoundation/edr@^0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/edr/-/edr-0.4.1.tgz#7d698454d228ffc5399f1c58799104b53e1b60ae" - integrity sha512-NgrMo2rI9r28uidumvd+K2/AJLdxtXsUlJr3hj/pM6S1FCd/HiWaLeLa/cjCVPcE2u1rYAa3W6UFxLCB7S5Dhw== - dependencies: - "@nomicfoundation/edr-darwin-arm64" "0.4.1" - "@nomicfoundation/edr-darwin-x64" "0.4.1" - "@nomicfoundation/edr-linux-arm64-gnu" "0.4.1" - "@nomicfoundation/edr-linux-arm64-musl" "0.4.1" - "@nomicfoundation/edr-linux-x64-gnu" "0.4.1" - "@nomicfoundation/edr-linux-x64-musl" "0.4.1" - "@nomicfoundation/edr-win32-x64-msvc" "0.4.1" - -"@nomicfoundation/ethereumjs-common@4.0.4": - version "4.0.4" - resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-common/-/ethereumjs-common-4.0.4.tgz#9901f513af2d4802da87c66d6f255b510bef5acb" - integrity sha512-9Rgb658lcWsjiicr5GzNCjI1llow/7r0k50dLL95OJ+6iZJcVbi15r3Y0xh2cIO+zgX0WIHcbzIu6FeQf9KPrg== - dependencies: - "@nomicfoundation/ethereumjs-util" "9.0.4" - -"@nomicfoundation/ethereumjs-rlp@5.0.4": - version "5.0.4" - resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-rlp/-/ethereumjs-rlp-5.0.4.tgz#66c95256fc3c909f6fb18f6a586475fc9762fa30" - integrity sha512-8H1S3s8F6QueOc/X92SdrA4RDenpiAEqMg5vJH99kcQaCy/a3Q6fgseo75mgWlbanGJXSlAPtnCeG9jvfTYXlw== - -"@nomicfoundation/ethereumjs-tx@5.0.4": - version "5.0.4" - resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-tx/-/ethereumjs-tx-5.0.4.tgz#b0ceb58c98cc34367d40a30d255d6315b2f456da" - integrity sha512-Xjv8wAKJGMrP1f0n2PeyfFCCojHd7iS3s/Ab7qzF1S64kxZ8Z22LCMynArYsVqiFx6rzYy548HNVEyI+AYN/kw== - dependencies: - "@nomicfoundation/ethereumjs-common" "4.0.4" - "@nomicfoundation/ethereumjs-rlp" "5.0.4" - "@nomicfoundation/ethereumjs-util" "9.0.4" - ethereum-cryptography "0.1.3" - -"@nomicfoundation/ethereumjs-util@9.0.4": - version "9.0.4" - resolved "https://registry.yarnpkg.com/@nomicfoundation/ethereumjs-util/-/ethereumjs-util-9.0.4.tgz#84c5274e82018b154244c877b76bc049a4ed7b38" - integrity sha512-sLOzjnSrlx9Bb9EFNtHzK/FJFsfg2re6bsGqinFinH1gCqVfz9YYlXiMWwDM4C/L4ywuHFCYwfKTVr/QHQcU0Q== - dependencies: - "@nomicfoundation/ethereumjs-rlp" "5.0.4" - ethereum-cryptography "0.1.3" - -"@nomicfoundation/hardhat-chai-matchers@^1.0.6": - version "1.0.6" - resolved "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-1.0.6.tgz" - integrity sha512-f5ZMNmabZeZegEfuxn/0kW+mm7+yV7VNDxLpMOMGXWFJ2l/Ct3QShujzDRF9cOkK9Ui/hbDeOWGZqyQALDXVCQ== - dependencies: - "@ethersproject/abi" "^5.1.2" - "@types/chai-as-promised" "^7.1.3" - chai-as-promised "^7.1.1" - deep-eql "^4.0.1" - ordinal "^1.0.3" - -"@nomicfoundation/hardhat-network-helpers@^1.0.0": - version "1.0.8" - resolved "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.0.8.tgz" - integrity sha512-MNqQbzUJZnCMIYvlniC3U+kcavz/PhhQSsY90tbEtUyMj/IQqsLwIRZa4ctjABh3Bz0KCh9OXUZ7Yk/d9hr45Q== - dependencies: - ethereumjs-util "^7.1.4" - -"@nomicfoundation/hardhat-toolbox@^2.0.0": - version "2.0.2" - resolved "https://registry.npmjs.org/@nomicfoundation/hardhat-toolbox/-/hardhat-toolbox-2.0.2.tgz" - integrity sha512-vnN1AzxbvpSx9pfdRHbUzTRIXpMLPXnUlkW855VaDk6N1pwRaQ2gNzEmFAABk4lWf11E00PKwFd/q27HuwYrYg== - -"@nomicfoundation/hardhat-verify@2.0.3": - version "2.0.3" - resolved "https://registry.npmjs.org/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.0.3.tgz" - integrity sha512-ESbRu9by53wu6VvgwtMtm108RSmuNsVqXtzg061D+/4R7jaWh/Wl/8ve+p6SdDX7vA1Z3L02hDO1Q3BY4luLXQ== - dependencies: - "@ethersproject/abi" "^5.1.2" - "@ethersproject/address" "^5.0.2" - cbor "^8.1.0" - chalk "^2.4.2" - debug "^4.1.1" - lodash.clonedeep "^4.5.0" - semver "^6.3.0" - table "^6.8.0" - undici "^5.14.0" - -"@nomicfoundation/solidity-analyzer-darwin-arm64@0.1.1": - version "0.1.1" - resolved "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-arm64/-/solidity-analyzer-darwin-arm64-0.1.1.tgz" - integrity sha512-KcTodaQw8ivDZyF+D76FokN/HdpgGpfjc/gFCImdLUyqB6eSWVaZPazMbeAjmfhx3R0zm/NYVzxwAokFKgrc0w== - -"@nomicfoundation/solidity-analyzer-darwin-x64@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-darwin-x64/-/solidity-analyzer-darwin-x64-0.1.1.tgz#6e25ccdf6e2d22389c35553b64fe6f3fdaec432c" - integrity sha512-XhQG4BaJE6cIbjAVtzGOGbK3sn1BO9W29uhk9J8y8fZF1DYz0Doj8QDMfpMu+A6TjPDs61lbsmeYodIDnfveSA== - -"@nomicfoundation/solidity-analyzer-freebsd-x64@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-freebsd-x64/-/solidity-analyzer-freebsd-x64-0.1.1.tgz#0a224ea50317139caeebcdedd435c28a039d169c" - integrity sha512-GHF1VKRdHW3G8CndkwdaeLkVBi5A9u2jwtlS7SLhBc8b5U/GcoL39Q+1CSO3hYqePNP+eV5YI7Zgm0ea6kMHoA== - -"@nomicfoundation/solidity-analyzer-linux-arm64-gnu@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-arm64-gnu/-/solidity-analyzer-linux-arm64-gnu-0.1.1.tgz#dfa085d9ffab9efb2e7b383aed3f557f7687ac2b" - integrity sha512-g4Cv2fO37ZsUENQ2vwPnZc2zRenHyAxHcyBjKcjaSmmkKrFr64yvzeNO8S3GBFCo90rfochLs99wFVGT/0owpg== - -"@nomicfoundation/solidity-analyzer-linux-arm64-musl@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-arm64-musl/-/solidity-analyzer-linux-arm64-musl-0.1.1.tgz#c9e06b5d513dd3ab02a7ac069c160051675889a4" - integrity sha512-WJ3CE5Oek25OGE3WwzK7oaopY8xMw9Lhb0mlYuJl/maZVo+WtP36XoQTb7bW/i8aAdHW5Z+BqrHMux23pvxG3w== - -"@nomicfoundation/solidity-analyzer-linux-x64-gnu@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-x64-gnu/-/solidity-analyzer-linux-x64-gnu-0.1.1.tgz#8d328d16839e52571f72f2998c81e46bf320f893" - integrity sha512-5WN7leSr5fkUBBjE4f3wKENUy9HQStu7HmWqbtknfXkkil+eNWiBV275IOlpXku7v3uLsXTOKpnnGHJYI2qsdA== - -"@nomicfoundation/solidity-analyzer-linux-x64-musl@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-linux-x64-musl/-/solidity-analyzer-linux-x64-musl-0.1.1.tgz#9b49d0634b5976bb5ed1604a1e1b736f390959bb" - integrity sha512-KdYMkJOq0SYPQMmErv/63CwGwMm5XHenEna9X9aB8mQmhDBrYrlAOSsIPgFCUSL0hjxE3xHP65/EPXR/InD2+w== - -"@nomicfoundation/solidity-analyzer-win32-arm64-msvc@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-win32-arm64-msvc/-/solidity-analyzer-win32-arm64-msvc-0.1.1.tgz#e2867af7264ebbcc3131ef837878955dd6a3676f" - integrity sha512-VFZASBfl4qiBYwW5xeY20exWhmv6ww9sWu/krWSesv3q5hA0o1JuzmPHR4LPN6SUZj5vcqci0O6JOL8BPw+APg== - -"@nomicfoundation/solidity-analyzer-win32-ia32-msvc@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-win32-ia32-msvc/-/solidity-analyzer-win32-ia32-msvc-0.1.1.tgz#0685f78608dd516c8cdfb4896ed451317e559585" - integrity sha512-JnFkYuyCSA70j6Si6cS1A9Gh1aHTEb8kOTBApp/c7NRTFGNMH8eaInKlyuuiIbvYFhlXW4LicqyYuWNNq9hkpQ== - -"@nomicfoundation/solidity-analyzer-win32-x64-msvc@0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.1.tgz#c9a44f7108646f083b82e851486e0f6aeb785836" - integrity sha512-HrVJr6+WjIXGnw3Q9u6KQcbZCtk0caVWhCdFADySvRyUxJ8PnzlaP+MhwNE8oyT8OZ6ejHBRrrgjSqDCFXGirw== - -"@nomicfoundation/solidity-analyzer@^0.1.0": - version "0.1.1" - resolved "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.1.tgz" - integrity sha512-1LMtXj1puAxyFusBgUIy5pZk3073cNXYnXUpuNKFghHbIit/xZgbk0AokpUADbNm3gyD6bFWl3LRFh3dhVdREg== - optionalDependencies: - "@nomicfoundation/solidity-analyzer-darwin-arm64" "0.1.1" - "@nomicfoundation/solidity-analyzer-darwin-x64" "0.1.1" - "@nomicfoundation/solidity-analyzer-freebsd-x64" "0.1.1" - "@nomicfoundation/solidity-analyzer-linux-arm64-gnu" "0.1.1" - "@nomicfoundation/solidity-analyzer-linux-arm64-musl" "0.1.1" - "@nomicfoundation/solidity-analyzer-linux-x64-gnu" "0.1.1" - "@nomicfoundation/solidity-analyzer-linux-x64-musl" "0.1.1" - "@nomicfoundation/solidity-analyzer-win32-arm64-msvc" "0.1.1" - "@nomicfoundation/solidity-analyzer-win32-ia32-msvc" "0.1.1" - "@nomicfoundation/solidity-analyzer-win32-x64-msvc" "0.1.1" - -"@nomiclabs/hardhat-ethers@^2.0.5": - version "2.2.3" - resolved "https://registry.npmjs.org/@nomiclabs/hardhat-ethers/-/hardhat-ethers-2.2.3.tgz" - integrity sha512-YhzPdzb612X591FOe68q+qXVXGG2ANZRvDo0RRUtimev85rCrAlv/TLMEZw5c+kq9AbzocLTVX/h2jVIFPL9Xg== - -"@nomiclabs/hardhat-waffle@^2.0.3": - version "2.0.5" - resolved "https://registry.npmjs.org/@nomiclabs/hardhat-waffle/-/hardhat-waffle-2.0.5.tgz" - integrity sha512-U1RH9OQ1mWYQfb+moX5aTgGjpVVlOcpiFI47wwnaGG4kLhcTy90cNiapoqZenxcRAITVbr0/+QSduINL5EsUIQ== - -"@openzeppelin/contracts-upgradeable@^4.8.3": - version "4.9.6" - resolved "https://registry.yarnpkg.com/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.9.6.tgz#38b21708a719da647de4bb0e4802ee235a0d24df" - integrity sha512-m4iHazOsOCv1DgM7eD7GupTJ+NFVujRZt1wzddDPSVGpWdKq1SKkla5htKG7+IS4d2XOCtzkUNwRZ7Vq5aEUMA== - -"@openzeppelin/contracts@3.4.2-solc-0.7": - version "3.4.2-solc-0.7" - resolved "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.2-solc-0.7.tgz" - integrity sha512-W6QmqgkADuFcTLzHL8vVoNBtkwjvQRpYIAom7KiUNoLKghyx3FgH0GBjt8NRvigV1ZmMOBllvE1By1C+bi8WpA== - -"@openzeppelin/contracts@^4.3.2": - version "4.9.6" - resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-4.9.6.tgz#2a880a24eb19b4f8b25adc2a5095f2aa27f39677" - integrity sha512-xSmezSupL+y9VkHZJGDoCBpmnB2ogM13ccaYDWqJTfS3dbuHkgjuwDFUmaFauBCboQMGB/S5UqUl2y54X99BmA== - -"@openzeppelin/contracts@^4.8.3": - version "4.8.3" - resolved "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.8.3.tgz" - integrity sha512-bQHV8R9Me8IaJoJ2vPG4rXcL7seB7YVuskr4f+f5RyOStSZetwzkWtoqDMl5erkBJy0lDRUnIR2WIkPiC0GJlg== - -"@openzeppelin/defender-base-client@^1.46.0": - version "1.54.6" - resolved "https://registry.yarnpkg.com/@openzeppelin/defender-base-client/-/defender-base-client-1.54.6.tgz#b65a90dba49375ac1439d638832382344067a0b9" - integrity sha512-PTef+rMxkM5VQ7sLwLKSjp2DBakYQd661ZJiSRywx+q/nIpm3B/HYGcz5wPZCA5O/QcEP6TatXXDoeMwimbcnw== - dependencies: - amazon-cognito-identity-js "^6.0.1" - async-retry "^1.3.3" - axios "^1.4.0" - lodash "^4.17.19" - node-fetch "^2.6.0" - -"@openzeppelin/hardhat-upgrades@1.28.0": - version "1.28.0" - resolved "https://registry.yarnpkg.com/@openzeppelin/hardhat-upgrades/-/hardhat-upgrades-1.28.0.tgz#6361f313a8a879d8a08a5e395acf0933bc190950" - integrity sha512-7sb/Jf+X+uIufOBnmHR0FJVWuxEs2lpxjJnLNN6eCJCP8nD0v+Ot5lTOW2Qb/GFnh+fLvJtEkhkowz4ZQ57+zQ== - dependencies: - "@openzeppelin/defender-base-client" "^1.46.0" - "@openzeppelin/platform-deploy-client" "^0.8.0" - "@openzeppelin/upgrades-core" "^1.27.0" - chalk "^4.1.0" - debug "^4.1.1" - proper-lockfile "^4.1.1" - -"@openzeppelin/platform-deploy-client@^0.8.0": - version "0.8.0" - resolved "https://registry.yarnpkg.com/@openzeppelin/platform-deploy-client/-/platform-deploy-client-0.8.0.tgz#af6596275a19c283d6145f0128cc1247d18223c1" - integrity sha512-POx3AsnKwKSV/ZLOU/gheksj0Lq7Is1q2F3pKmcFjGZiibf+4kjGxr4eSMrT+2qgKYZQH1ZLQZ+SkbguD8fTvA== - dependencies: - "@ethersproject/abi" "^5.6.3" - "@openzeppelin/defender-base-client" "^1.46.0" - axios "^0.21.2" - lodash "^4.17.19" - node-fetch "^2.6.0" - -"@openzeppelin/upgrades-core@^1.27.0": - version "1.34.1" - resolved "https://registry.yarnpkg.com/@openzeppelin/upgrades-core/-/upgrades-core-1.34.1.tgz#660301692e706c7e701395467267128cc43c1de9" - integrity sha512-LV3hHm60htmP3HJjn2VoGqXNPn1RLFSSInRyXNbm15Z2oWKGxOfAWSC4+okRckum0yVB5g3k4/SEyqjsJRB07A== - dependencies: - cbor "^9.0.0" - chalk "^4.1.0" - compare-versions "^6.0.0" - debug "^4.1.1" - ethereumjs-util "^7.0.3" - minimist "^1.2.7" - proper-lockfile "^4.1.1" - solidity-ast "^0.4.51" - -"@pnpm/config.env-replace@^1.1.0": - version "1.1.0" - resolved "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz" - integrity sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w== - -"@pnpm/network.ca-file@^1.0.1": - version "1.0.2" - resolved "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz" - integrity sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA== - dependencies: - graceful-fs "4.2.10" - -"@pnpm/npm-conf@^2.1.0": - version "2.2.2" - resolved "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.2.2.tgz" - integrity sha512-UA91GwWPhFExt3IizW6bOeY/pQ0BkuNwKjk9iQW9KqxluGCrg4VenZ0/L+2Y0+ZOtme72EVvg6v0zo3AMQRCeA== - dependencies: - "@pnpm/config.env-replace" "^1.1.0" - "@pnpm/network.ca-file" "^1.0.1" - config-chain "^1.1.11" - -"@resolver-engine/core@^0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@resolver-engine/core/-/core-0.3.3.tgz" - integrity sha512-eB8nEbKDJJBi5p5SrvrvILn4a0h42bKtbCTri3ZxCGt6UvoQyp7HnGOfki944bUjBSHKK3RvgfViHn+kqdXtnQ== - dependencies: - debug "^3.1.0" - is-url "^1.2.4" - request "^2.85.0" - -"@resolver-engine/fs@^0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@resolver-engine/fs/-/fs-0.3.3.tgz" - integrity sha512-wQ9RhPUcny02Wm0IuJwYMyAG8fXVeKdmhm8xizNByD4ryZlx6PP6kRen+t/haF43cMfmaV7T3Cx6ChOdHEhFUQ== - dependencies: - "@resolver-engine/core" "^0.3.3" - debug "^3.1.0" - -"@resolver-engine/imports-fs@^0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@resolver-engine/imports-fs/-/imports-fs-0.3.3.tgz" - integrity sha512-7Pjg/ZAZtxpeyCFlZR5zqYkz+Wdo84ugB5LApwriT8XFeQoLwGUj4tZFFvvCuxaNCcqZzCYbonJgmGObYBzyCA== - dependencies: - "@resolver-engine/fs" "^0.3.3" - "@resolver-engine/imports" "^0.3.3" - debug "^3.1.0" - -"@resolver-engine/imports@^0.3.3": - version "0.3.3" - resolved "https://registry.npmjs.org/@resolver-engine/imports/-/imports-0.3.3.tgz" - integrity sha512-anHpS4wN4sRMwsAbMXhMfOD/y4a4Oo0Cw/5+rue7hSwGWsDOQaAU1ClK1OxjUC35/peazxEl8JaSRRS+Xb8t3Q== - dependencies: - "@resolver-engine/core" "^0.3.3" - debug "^3.1.0" - hosted-git-info "^2.6.0" - path-browserify "^1.0.0" - url "^0.11.0" - -"@scure/base@~1.1.0": - version "1.1.1" - resolved "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz" - integrity sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA== - -"@scure/base@~1.1.6": - version "1.1.7" - resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.7.tgz#fe973311a5c6267846aa131bc72e96c5d40d2b30" - integrity sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g== - -"@scure/bip32@1.1.5": - version "1.1.5" - resolved "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz" - integrity sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw== - dependencies: - "@noble/hashes" "~1.2.0" - "@noble/secp256k1" "~1.7.0" - "@scure/base" "~1.1.0" - -"@scure/bip32@1.4.0": - version "1.4.0" - resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.4.0.tgz#4e1f1e196abedcef395b33b9674a042524e20d67" - integrity sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg== - dependencies: - "@noble/curves" "~1.4.0" - "@noble/hashes" "~1.4.0" - "@scure/base" "~1.1.6" - -"@scure/bip39@1.1.1": - version "1.1.1" - resolved "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz" - integrity sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg== - dependencies: - "@noble/hashes" "~1.2.0" - "@scure/base" "~1.1.0" - -"@scure/bip39@1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.3.0.tgz#0f258c16823ddd00739461ac31398b4e7d6a18c3" - integrity sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ== - dependencies: - "@noble/hashes" "~1.4.0" - "@scure/base" "~1.1.6" - -"@sentry/core@5.30.0": - version "5.30.0" - resolved "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz" - integrity sha512-TmfrII8w1PQZSZgPpUESqjB+jC6MvZJZdLtE/0hZ+SrnKhW3x5WlYLvTXZpcWePYBku7rl2wn1RZu6uT0qCTeg== - dependencies: - "@sentry/hub" "5.30.0" - "@sentry/minimal" "5.30.0" - "@sentry/types" "5.30.0" - "@sentry/utils" "5.30.0" - tslib "^1.9.3" - -"@sentry/hub@5.30.0": - version "5.30.0" - resolved "https://registry.npmjs.org/@sentry/hub/-/hub-5.30.0.tgz" - integrity sha512-2tYrGnzb1gKz2EkMDQcfLrDTvmGcQPuWxLnJKXJvYTQDGLlEvi2tWz1VIHjunmOvJrB5aIQLhm+dcMRwFZDCqQ== - dependencies: - "@sentry/types" "5.30.0" - "@sentry/utils" "5.30.0" - tslib "^1.9.3" - -"@sentry/minimal@5.30.0": - version "5.30.0" - resolved "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.30.0.tgz" - integrity sha512-BwWb/owZKtkDX+Sc4zCSTNcvZUq7YcH3uAVlmh/gtR9rmUvbzAA3ewLuB3myi4wWRAMEtny6+J/FN/x+2wn9Xw== - dependencies: - "@sentry/hub" "5.30.0" - "@sentry/types" "5.30.0" - tslib "^1.9.3" - -"@sentry/node@^5.18.1": - version "5.30.0" - resolved "https://registry.npmjs.org/@sentry/node/-/node-5.30.0.tgz" - integrity sha512-Br5oyVBF0fZo6ZS9bxbJZG4ApAjRqAnqFFurMVJJdunNb80brh7a5Qva2kjhm+U6r9NJAB5OmDyPkA1Qnt+QVg== - dependencies: - "@sentry/core" "5.30.0" - "@sentry/hub" "5.30.0" - "@sentry/tracing" "5.30.0" - "@sentry/types" "5.30.0" - "@sentry/utils" "5.30.0" - cookie "^0.4.1" - https-proxy-agent "^5.0.0" - lru_map "^0.3.3" - tslib "^1.9.3" - -"@sentry/tracing@5.30.0": - version "5.30.0" - resolved "https://registry.npmjs.org/@sentry/tracing/-/tracing-5.30.0.tgz" - integrity sha512-dUFowCr0AIMwiLD7Fs314Mdzcug+gBVo/+NCMyDw8tFxJkwWAKl7Qa2OZxLQ0ZHjakcj1hNKfCQJ9rhyfOl4Aw== - dependencies: - "@sentry/hub" "5.30.0" - "@sentry/minimal" "5.30.0" - "@sentry/types" "5.30.0" - "@sentry/utils" "5.30.0" - tslib "^1.9.3" - -"@sentry/types@5.30.0": - version "5.30.0" - resolved "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz" - integrity sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw== - -"@sentry/utils@5.30.0": - version "5.30.0" - resolved "https://registry.npmjs.org/@sentry/utils/-/utils-5.30.0.tgz" - integrity sha512-zaYmoH0NWWtvnJjC9/CBseXMtKHm/tm40sz3YfJRxeQjyzRqNQPgivpd9R/oDJCYj999mzdW382p/qi2ypjLww== - dependencies: - "@sentry/types" "5.30.0" - tslib "^1.9.3" - -"@sideway/address@^4.1.5": - version "4.1.5" - resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.5.tgz#4bc149a0076623ced99ca8208ba780d65a99b9d5" - integrity sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q== - dependencies: - "@hapi/hoek" "^9.0.0" - -"@sideway/formula@^3.0.1": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f" - integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg== - -"@sideway/pinpoint@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df" - integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ== - -"@sindresorhus/is@^5.2.0": - version "5.6.0" - resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz" - integrity sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g== - -"@smithy/types@^3.1.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@smithy/types/-/types-3.2.0.tgz#1350fe8a50d5e35e12ffb34be46d946860b2b5ab" - integrity sha512-cKyeKAPazZRVqm7QPvcPD2jEIt2wqDPAL1KJKb0f/5I7uhollvsWZuZKLclmyP6a+Jwmr3OV3t+X0pZUUHS9BA== - dependencies: - tslib "^2.6.2" - -"@solidity-parser/parser@^0.14.0": - version "0.14.5" - resolved "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.14.5.tgz" - integrity sha512-6dKnHZn7fg/iQATVEzqyUOyEidbn05q7YA2mQ9hC0MMXhhV3/JrsxmFSYZAcr7j1yUP700LLhTruvJ3MiQmjJg== - dependencies: - antlr4ts "^0.5.0-alpha.4" - -"@solidity-parser/parser@^0.18.0": - version "0.18.0" - resolved "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.18.0.tgz" - integrity sha512-yfORGUIPgLck41qyN7nbwJRAx17/jAIXCTanHOJZhB6PJ1iAk/84b/xlsVKFSyNyLXIj0dhppoE0+CRws7wlzA== - -"@szmarczak/http-timer@^5.0.1": - version "5.0.1" - resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz" - integrity sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw== - dependencies: - defer-to-connect "^2.0.1" - -"@trufflesuite/bigint-buffer@1.1.10": - version "1.1.10" - resolved "https://registry.npmjs.org/@trufflesuite/bigint-buffer/-/bigint-buffer-1.1.10.tgz" - integrity sha512-pYIQC5EcMmID74t26GCC67946mgTJFiLXOT/BYozgrd4UEY2JHEGLhWi9cMiQCt5BSqFEvKkCHNnoj82SRjiEw== - dependencies: - node-gyp-build "4.4.0" - -"@trufflesuite/bigint-buffer@1.1.9": - version "1.1.9" - resolved "https://registry.npmjs.org/@trufflesuite/bigint-buffer/-/bigint-buffer-1.1.9.tgz" - integrity sha512-bdM5cEGCOhDSwminryHJbRmXc1x7dPKg6Pqns3qyTwFlxsqUgxE29lsERS3PlIW1HTjoIGMUqsk1zQQwST1Yxw== - dependencies: - node-gyp-build "4.3.0" - -"@tsconfig/node10@^1.0.7": - version "1.0.9" - resolved "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz" - integrity sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA== - -"@tsconfig/node12@^1.0.7": - version "1.0.11" - resolved "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz" - integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== - -"@tsconfig/node14@^1.0.0": - version "1.0.3" - resolved "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz" - integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== - -"@tsconfig/node16@^1.0.2": - version "1.0.3" - resolved "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz" - integrity sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ== - -"@typechain/ethers-v5@^10.0.0", "@typechain/ethers-v5@^10.1.0": - version "10.2.0" - resolved "https://registry.npmjs.org/@typechain/ethers-v5/-/ethers-v5-10.2.0.tgz" - integrity sha512-ikaq0N/w9fABM+G01OFmU3U3dNnyRwEahkdvi9mqy1a3XwKiPZaF/lu54OcNaEWnpvEYyhhS0N7buCtLQqC92w== - dependencies: - lodash "^4.17.15" - ts-essentials "^7.0.1" - -"@typechain/hardhat@^6.1.2": - version "6.1.5" - resolved "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-6.1.5.tgz" - integrity sha512-lg7LW4qDZpxFMknp3Xool61Fg6Lays8F8TXdFGBG+MxyYcYU5795P1U2XdStuzGq9S2Dzdgh+1jGww9wvZ6r4Q== - dependencies: - fs-extra "^9.1.0" - -"@types/abstract-leveldown@*": - version "7.2.1" - resolved "https://registry.npmjs.org/@types/abstract-leveldown/-/abstract-leveldown-7.2.1.tgz" - integrity sha512-YK8irIC+eMrrmtGx0H4ISn9GgzLd9dojZWJaMbjp1YHLl2VqqNFBNrL5Q3KjGf4VE3sf/4hmq6EhQZ7kZp1NoQ== - -"@types/bn.js@^4.11.3": - version "4.11.6" - resolved "https://registry.npmjs.org/@types/bn.js/-/bn.js-4.11.6.tgz" - integrity sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg== - dependencies: - "@types/node" "*" - -"@types/bn.js@^5.1.0": - version "5.1.1" - resolved "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.1.1.tgz" - integrity sha512-qNrYbZqMx0uJAfKnKclPh+dTwK33KfLHYqtyODwd5HnXOjnkhc4qgn3BrK6RWyGZm5+sIFE7Q7Vz6QQtJB7w7g== - dependencies: - "@types/node" "*" - -"@types/chai-as-promised@^7.1.3": - version "7.1.5" - resolved "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.5.tgz" - integrity sha512-jStwss93SITGBwt/niYrkf2C+/1KTeZCZl1LaeezTlqppAKeoQC7jxyqYuP72sxBGKCIbw7oHgbYssIRzT5FCQ== - dependencies: - "@types/chai" "*" - -"@types/chai@*", "@types/chai@^4.3.1": - version "4.3.4" - resolved "https://registry.npmjs.org/@types/chai/-/chai-4.3.4.tgz" - integrity sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw== - -"@types/concat-stream@^1.6.0": - version "1.6.1" - resolved "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-1.6.1.tgz" - integrity sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA== - dependencies: - "@types/node" "*" - -"@types/form-data@0.0.33": - version "0.0.33" - resolved "https://registry.npmjs.org/@types/form-data/-/form-data-0.0.33.tgz" - integrity sha512-8BSvG1kGm83cyJITQMZSulnl6QV8jqAGreJsc5tPu1Jq0vTSOiY/k24Wx82JRpWwZSqrala6sd5rWi6aNXvqcw== - dependencies: - "@types/node" "*" - -"@types/glob@^7.1.1": - version "7.2.0" - resolved "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz" - integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== - dependencies: - "@types/minimatch" "*" - "@types/node" "*" - -"@types/http-cache-semantics@^4.0.2": - version "4.0.4" - resolved "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz" - integrity sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA== - -"@types/inquirer@^8.2.1": - version "8.2.6" - resolved "https://registry.npmjs.org/@types/inquirer/-/inquirer-8.2.6.tgz" - integrity sha512-3uT88kxg8lNzY8ay2ZjP44DKcRaTGztqeIvN2zHvhzIBH/uAPaL75aBtdNRKbA7xXoMbBt5kX0M00VKAnfOYlA== - dependencies: - "@types/through" "*" - rxjs "^7.2.0" - -"@types/is-ci@^3.0.0": - version "3.0.0" - resolved "https://registry.npmjs.org/@types/is-ci/-/is-ci-3.0.0.tgz" - integrity sha512-Q0Op0hdWbYd1iahB+IFNQcWXFq4O0Q5MwQP7uN0souuQ4rPg1vEYcnIOfr1gY+M+6rc8FGoRaBO1mOOvL29sEQ== - dependencies: - ci-info "^3.1.0" - -"@types/json-schema@^7.0.9": - version "7.0.11" - resolved "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz" - integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== - -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz" - integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== - -"@types/level-errors@*": - version "3.0.0" - resolved "https://registry.npmjs.org/@types/level-errors/-/level-errors-3.0.0.tgz" - integrity sha512-/lMtoq/Cf/2DVOm6zE6ORyOM+3ZVm/BvzEZVxUhf6bgh8ZHglXlBqxbxSlJeVp8FCbD3IVvk/VbsaNmDjrQvqQ== - -"@types/levelup@^4.3.0": - version "4.3.3" - resolved "https://registry.npmjs.org/@types/levelup/-/levelup-4.3.3.tgz" - integrity sha512-K+OTIjJcZHVlZQN1HmU64VtrC0jC3dXWQozuEIR9zVvltIk90zaGPM2AgT+fIkChpzHhFE3YnvFLCbLtzAmexA== - dependencies: - "@types/abstract-leveldown" "*" - "@types/level-errors" "*" - "@types/node" "*" - -"@types/lodash@^4.17.6": - version "4.17.6" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.6.tgz#193ced6a40c8006cfc1ca3f4553444fb38f0e543" - integrity sha512-OpXEVoCKSS3lQqjx9GGGOapBeuW5eUboYHRlHP9urXPX25IKZ6AnP5ZRxtVf63iieUbsHxLn8NQ5Nlftc6yzAA== - -"@types/lru-cache@5.1.1", "@types/lru-cache@^5.1.0": - version "5.1.1" - resolved "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.1.tgz" - integrity sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw== - -"@types/minimatch@*": - version "5.1.2" - resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz" - integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== - -"@types/minimist@^1.2.0", "@types/minimist@^1.2.2": - version "1.2.2" - resolved "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.2.tgz" - integrity sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ== - -"@types/mkdirp@^0.5.2": - version "0.5.2" - resolved "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-0.5.2.tgz" - integrity sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg== - dependencies: - "@types/node" "*" - -"@types/mocha@^10.0.1": - version "10.0.1" - resolved "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.1.tgz" - integrity sha512-/fvYntiO1GeICvqbQ3doGDIP97vWmvFt83GKguJ6prmQM2iXZfFcq6YE8KteFyRtX2/h5Hf91BYvPodJKFYv5Q== - -"@types/node-fetch@^2.6.1": - version "2.6.3" - resolved "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz" - integrity sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w== - dependencies: - "@types/node" "*" - form-data "^3.0.0" - -"@types/node@*", "@types/node@^17.0.25": - version "17.0.45" - resolved "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz" - integrity sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw== - -"@types/node@11.11.6": - version "11.11.6" - resolved "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz" - integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== - -"@types/node@^10.0.3": - version "10.17.60" - resolved "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz" - integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw== - -"@types/node@^12.7.1": - version "12.20.55" - resolved "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz" - integrity sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ== - -"@types/node@^8.0.0": - version "8.10.66" - resolved "https://registry.npmjs.org/@types/node/-/node-8.10.66.tgz" - integrity sha512-tktOkFUA4kXx2hhhrB8bIFb5TbwzS4uOhKEmwiD+NoiL0qtP2OQ9mFldbgD4dV1djrlBYP6eBuQZiWjuHUpqFw== - -"@types/normalize-package-data@^2.4.0": - version "2.4.1" - resolved "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz" - integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== - -"@types/pbkdf2@^3.0.0": - version "3.1.0" - resolved "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.0.tgz" - integrity sha512-Cf63Rv7jCQ0LaL8tNXmEyqTHuIJxRdlS5vMh1mj5voN4+QFhVZnlZruezqpWYDiJ8UTzhP0VmeLXCmBk66YrMQ== - dependencies: - "@types/node" "*" - -"@types/prettier@^2.1.1": - version "2.7.2" - resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz" - integrity sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg== - -"@types/qs@^6.2.31": - version "6.9.7" - resolved "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz" - integrity sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw== - -"@types/secp256k1@^4.0.1": - version "4.0.3" - resolved "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.3.tgz" - integrity sha512-Da66lEIFeIz9ltsdMZcpQvmrmmoqrfju8pm1BH8WbYjZSwUgCwXLb9C+9XYogwBITnbsSaMdVPb2ekf7TV+03w== - dependencies: - "@types/node" "*" - -"@types/seedrandom@3.0.1": - version "3.0.1" - resolved "https://registry.npmjs.org/@types/seedrandom/-/seedrandom-3.0.1.tgz" - integrity sha512-giB9gzDeiCeloIXDgzFBCgjj1k4WxcDrZtGl6h1IqmUPlxF+Nx8Ve+96QCyDZ/HseB/uvDsKbpib9hU5cU53pw== - -"@types/semver@^6.0.0": - version "6.2.3" - resolved "https://registry.npmjs.org/@types/semver/-/semver-6.2.3.tgz" - integrity sha512-KQf+QAMWKMrtBMsB8/24w53tEsxllMj6TuA80TT/5igJalLI/zm0L3oXRbIAl4Ohfc85gyHX/jhMwsVkmhLU4A== - -"@types/semver@^7.3.12": - version "7.3.13" - resolved "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz" - integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== - -"@types/through@*": - version "0.0.30" - resolved "https://registry.npmjs.org/@types/through/-/through-0.0.30.tgz" - integrity sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg== - dependencies: - "@types/node" "*" - -"@typescript-eslint/eslint-plugin@^5.20.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.58.0.tgz" - integrity sha512-vxHvLhH0qgBd3/tW6/VccptSfc8FxPQIkmNTVLWcCOVqSBvqpnKkBTYrhcGlXfSnd78azwe+PsjYFj0X34/njA== - dependencies: - "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.58.0" - "@typescript-eslint/type-utils" "5.58.0" - "@typescript-eslint/utils" "5.58.0" - debug "^4.3.4" - grapheme-splitter "^1.0.4" - ignore "^5.2.0" - natural-compare-lite "^1.4.0" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/experimental-utils@^5.0.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.58.0.tgz" - integrity sha512-LA/sRPaynZlrlYxdefrZbMx8dqs/1Kc0yNG+XOk5CwwZx7tTv263ix3AJNioF0YBVt7hADpAUR20owl6pv4MIQ== - dependencies: - "@typescript-eslint/utils" "5.58.0" - -"@typescript-eslint/parser@^5.20.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.58.0.tgz" - integrity sha512-ixaM3gRtlfrKzP8N6lRhBbjTow1t6ztfBvQNGuRM8qH1bjFFXIJ35XY+FC0RRBKn3C6cT+7VW1y8tNm7DwPHDQ== - dependencies: - "@typescript-eslint/scope-manager" "5.58.0" - "@typescript-eslint/types" "5.58.0" - "@typescript-eslint/typescript-estree" "5.58.0" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@5.58.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.58.0.tgz" - integrity sha512-b+w8ypN5CFvrXWQb9Ow9T4/6LC2MikNf1viLkYTiTbkQl46CnR69w7lajz1icW0TBsYmlpg+mRzFJ4LEJ8X9NA== - dependencies: - "@typescript-eslint/types" "5.58.0" - "@typescript-eslint/visitor-keys" "5.58.0" - -"@typescript-eslint/type-utils@5.58.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.58.0.tgz" - integrity sha512-FF5vP/SKAFJ+LmR9PENql7fQVVgGDOS+dq3j+cKl9iW/9VuZC/8CFmzIP0DLKXfWKpRHawJiG70rVH+xZZbp8w== - dependencies: - "@typescript-eslint/typescript-estree" "5.58.0" - "@typescript-eslint/utils" "5.58.0" - debug "^4.3.4" - tsutils "^3.21.0" - -"@typescript-eslint/types@5.58.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.58.0.tgz" - integrity sha512-JYV4eITHPzVQMnHZcYJXl2ZloC7thuUHrcUmxtzvItyKPvQ50kb9QXBkgNAt90OYMqwaodQh2kHutWZl1fc+1g== - -"@typescript-eslint/typescript-estree@5.58.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.58.0.tgz" - integrity sha512-cRACvGTodA+UxnYM2uwA2KCwRL7VAzo45syNysqlMyNyjw0Z35Icc9ihPJZjIYuA5bXJYiJ2YGUB59BqlOZT1Q== - dependencies: - "@typescript-eslint/types" "5.58.0" - "@typescript-eslint/visitor-keys" "5.58.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/utils@5.58.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.58.0.tgz" - integrity sha512-gAmLOTFXMXOC+zP1fsqm3VceKSBQJNzV385Ok3+yzlavNHZoedajjS4UyS21gabJYcobuigQPs/z71A9MdJFqQ== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.58.0" - "@typescript-eslint/types" "5.58.0" - "@typescript-eslint/typescript-estree" "5.58.0" - eslint-scope "^5.1.1" - semver "^7.3.7" - -"@typescript-eslint/visitor-keys@5.58.0": - version "5.58.0" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.58.0.tgz" - integrity sha512-/fBraTlPj0jwdyTwLyrRTxv/3lnU2H96pNTVM6z3esTWLtA5MZ9ghSMJ7Rb+TtUAdtEw9EyJzJ0EydIMKxQ9gA== - dependencies: - "@typescript-eslint/types" "5.58.0" - eslint-visitor-keys "^3.3.0" - -"@uniswap/lib@1.1.1": - version "1.1.1" - resolved "https://registry.npmjs.org/@uniswap/lib/-/lib-1.1.1.tgz" - integrity sha512-2yK7sLpKIT91TiS5sewHtOa7YuM8IuBXVl4GZv2jZFys4D2sY7K5vZh6MqD25TPA95Od+0YzCVq6cTF2IKrOmg== - -"@uniswap/lib@^4.0.1-alpha": - version "4.0.1-alpha" - resolved "https://registry.npmjs.org/@uniswap/lib/-/lib-4.0.1-alpha.tgz" - integrity sha512-f6UIliwBbRsgVLxIaBANF6w09tYqc6Y/qXdsrbEmXHyFA7ILiKrIwRFXe1yOg8M3cksgVsO9N7yuL2DdCGQKBA== - -"@uniswap/v2-core@1.0.0": - version "1.0.0" - resolved "https://registry.npmjs.org/@uniswap/v2-core/-/v2-core-1.0.0.tgz" - integrity sha512-BJiXrBGnN8mti7saW49MXwxDBRFiWemGetE58q8zgfnPPzQKq55ADltEILqOt6VFZ22kVeVKbF8gVd8aY3l7pA== - -"@uniswap/v2-core@1.0.1", "@uniswap/v2-core@^1.0.1": - version "1.0.1" - resolved "https://registry.npmjs.org/@uniswap/v2-core/-/v2-core-1.0.1.tgz" - integrity sha512-MtybtkUPSyysqLY2U210NBDeCHX+ltHt3oADGdjqoThZaFRDKwM6k1Nb3F0A3hk5hwuQvytFWhrWHOEq6nVJ8Q== - -"@uniswap/v2-periphery@1.1.0-beta.0", "@uniswap/v2-periphery@^1.1.0-beta.0": - version "1.1.0-beta.0" - resolved "https://registry.npmjs.org/@uniswap/v2-periphery/-/v2-periphery-1.1.0-beta.0.tgz" - integrity sha512-6dkwAMKza8nzqYiXEr2D86dgW3TTavUvCR0w2Tu33bAbM8Ah43LKAzH7oKKPRT5VJQaMi1jtkGs1E8JPor1n5g== - dependencies: - "@uniswap/lib" "1.1.1" - "@uniswap/v2-core" "1.0.0" - -"@uniswap/v3-core@1.0.0": - version "1.0.0" - resolved "https://registry.npmjs.org/@uniswap/v3-core/-/v3-core-1.0.0.tgz" - integrity sha512-kSC4djMGKMHj7sLMYVnn61k9nu+lHjMIxgg9CDQT+s2QYLoA56GbSK9Oxr+qJXzzygbkrmuY6cwgP6cW2JXPFA== - -"@uniswap/v3-periphery@^1.4.3": - version "1.4.3" - resolved "https://registry.npmjs.org/@uniswap/v3-periphery/-/v3-periphery-1.4.3.tgz" - integrity sha512-80c+wtVzl5JJT8UQskxVYYG3oZb4pkhY0zDe0ab/RX4+8f9+W5d8wI4BT0wLB0wFQTSnbW+QdBSpkHA/vRyGBA== - dependencies: - "@openzeppelin/contracts" "3.4.2-solc-0.7" - "@uniswap/lib" "^4.0.1-alpha" - "@uniswap/v2-core" "1.0.1" - "@uniswap/v3-core" "1.0.0" - base64-sol "1.0.1" - -"@zetachain/networks@^9.0.0": - version "9.0.0" - resolved "https://registry.yarnpkg.com/@zetachain/networks/-/networks-9.0.0.tgz#59eddb02578d784a1d76299ead600dffce87f48c" - integrity sha512-vCSkzyiubgYHK0NAJFFCv9gQziGrB+BT9q6DEu29owWxHcGLHPbI4VJ5PbkWH+z8pExVSDe2wKxGN5l2ZAcbGA== - dependencies: - dotenv "^16.1.4" - -abbrev@1: - version "1.1.1" - resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz" - integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== - -abbrev@1.0.x: - version "1.0.9" - resolved "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz" - integrity sha512-LEyx4aLEC3x6T0UguF6YILf+ntvmOaWsVfENmIW0E9H09vKlLDGelMjjSm0jkDHALj8A8quZ/HapKNigzwge+Q== - -abstract-leveldown@^6.2.1: - version "6.3.0" - resolved "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-6.3.0.tgz" - integrity sha512-TU5nlYgta8YrBMNpc9FwQzRbiXsj49gsALsXadbGHt9CROPzX5fB0rWDR5mtdpOOKa5XqRFpbj1QroPAoPzVjQ== - dependencies: - buffer "^5.5.0" - immediate "^3.2.3" - level-concat-iterator "~2.0.0" - level-supports "~1.0.0" - xtend "~4.0.0" - -abstract-leveldown@^7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-7.2.0.tgz" - integrity sha512-DnhQwcFEaYsvYDnACLZhMmCWd3rkOeEvglpa4q5i/5Jlm3UIsWaxVzuXvDLFCSCWRO3yy2/+V/G7FusFgejnfQ== - dependencies: - buffer "^6.0.3" - catering "^2.0.0" - is-buffer "^2.0.5" - level-concat-iterator "^3.0.0" - level-supports "^2.0.1" - queue-microtask "^1.2.3" - -abstract-leveldown@~6.2.1: - version "6.2.3" - resolved "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-6.2.3.tgz" - integrity sha512-BsLm5vFMRUrrLeCcRc+G0t2qOaTzpoJQLOubq2XM72eNpjF5UdU5o/5NvlNhx95XHcAvcl8OMXr4mlg/fRgUXQ== - dependencies: - buffer "^5.5.0" - immediate "^3.2.3" - level-concat-iterator "~2.0.0" - level-supports "~1.0.0" - xtend "~4.0.0" - -acorn-jsx@^5.2.0, acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn-walk@^8.1.1: - version "8.2.0" - resolved "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz" - integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== - -acorn@^7.1.1: - version "7.4.1" - resolved "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.4.1, acorn@^8.8.0: - version "8.8.2" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== - -adm-zip@^0.4.16: - version "0.4.16" - resolved "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz" - integrity sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg== - -aes-js@3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz" - integrity sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw== - -agent-base@6: - version "6.0.2" - resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - -aggregate-error@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz" - integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== - dependencies: - clean-stack "^2.0.0" - indent-string "^4.0.0" - -aggregate-error@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/aggregate-error/-/aggregate-error-4.0.1.tgz" - integrity sha512-0poP0T7el6Vq3rstR8Mn4V/IQrpBLO6POkUSrN7RhyY+GF/InCFShQzsQ39T25gkHhLgSLByyAz+Kjb+c2L98w== - dependencies: - clean-stack "^4.0.0" - indent-string "^5.0.0" - -ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.6: - version "6.12.6" - resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^8.0.1: - version "8.12.0" - resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" - integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -amazon-cognito-identity-js@^6.0.1: - version "6.3.12" - resolved "https://registry.yarnpkg.com/amazon-cognito-identity-js/-/amazon-cognito-identity-js-6.3.12.tgz#af73df033094ad4c679c19cf6122b90058021619" - integrity sha512-s7NKDZgx336cp+oDeUtB2ZzT8jWJp/v2LWuYl+LQtMEODe22RF1IJ4nRiDATp+rp1pTffCZcm44Quw4jx2bqNg== - dependencies: - "@aws-crypto/sha256-js" "1.2.2" - buffer "4.9.2" - fast-base64-decode "^1.0.0" - isomorphic-unfetch "^3.0.0" - js-cookie "^2.2.1" - -amdefine@>=0.0.4: - version "1.0.1" - resolved "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz" - integrity sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg== - -ansi-align@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59" - integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== - dependencies: - string-width "^4.1.0" - -ansi-colors@3.2.3: - version "3.2.3" - resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz" - integrity sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw== - -ansi-colors@4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== - -ansi-colors@^4.1.0, ansi-colors@^4.1.1, ansi-colors@^4.1.3: - version "4.1.3" - resolved "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - -ansi-escapes@^4.2.1, ansi-escapes@^4.3.0: - version "4.3.2" - resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - -ansi-regex@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz" - integrity sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw== - -ansi-regex@^4.1.0: - version "4.1.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz" - integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^3.2.0, ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -antlr4@^4.13.1-patch-1: - version "4.13.1-patch-1" - resolved "https://registry.npmjs.org/antlr4/-/antlr4-4.13.1-patch-1.tgz" - integrity sha512-OjFLWWLzDMV9rdFhpvroCWR4ooktNg9/nvVYSA5z28wuVpU36QUNuioR1XLnQtcjVlf8npjyz593PxnU/f/Cow== - -antlr4ts@^0.5.0-alpha.4: - version "0.5.0-alpha.4" - resolved "https://registry.npmjs.org/antlr4ts/-/antlr4ts-0.5.0-alpha.4.tgz" - integrity sha512-WPQDt1B74OfPv/IMS2ekXAKkTZIHl88uMetg6q3OTqgFxZ/dxDXI0EWLyZid/1Pe6hTftyg5N7gel5wNAGxXyQ== - -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz" - integrity sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA== - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - -anymatch@~3.1.1, anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz" - integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz" - integrity sha512-dtXTVMkh6VkEEA7OhXnN1Ecb8aAGFdZ1LFxtOCoqj4qkyOJMt7+qs6Ahdy6p/NQCPYsRSXXivhSB/J5E9jmYKA== - dependencies: - arr-flatten "^1.0.1" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz" - integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== - -arr-flatten@^1.0.1, arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz" - integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== - -array-back@^3.0.1, array-back@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz" - integrity sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q== - -array-back@^4.0.1, array-back@^4.0.2: - version "4.0.2" - resolved "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz" - integrity sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg== - -array-buffer-byte-length@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz" - integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== - dependencies: - call-bind "^1.0.2" - is-array-buffer "^3.0.1" - -array-buffer-byte-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz#1e5583ec16763540a27ae52eed99ff899223568f" - integrity sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg== - dependencies: - call-bind "^1.0.5" - is-array-buffer "^3.0.4" - -array-includes@^3.1.6: - version "3.1.6" - resolved "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz" - integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - get-intrinsic "^1.1.3" - is-string "^1.0.7" - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -array-uniq@1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz" - integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q== - -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz" - integrity sha512-G2n5bG5fSUCpnsXz4+8FUkYsGPkNfLn9YvS66U5qbTIXI2Ynnlo4Bi42bWv+omKUCqz+ejzfClwne0alJWJPhg== - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz" - integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== - -array.prototype.findlast@^1.2.2: - version "1.2.5" - resolved "https://registry.yarnpkg.com/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz#3e4fbcb30a15a7f5bf64cf2faae22d139c2e4904" - integrity sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.2" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - es-shim-unscopables "^1.0.2" - -array.prototype.flat@^1.2.3, array.prototype.flat@^1.3.1: - version "1.3.1" - resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz" - integrity sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - -array.prototype.flatmap@^1.3.1: - version "1.3.1" - resolved "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz" - integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-shim-unscopables "^1.0.0" - -array.prototype.reduce@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/array.prototype.reduce/-/array.prototype.reduce-1.0.5.tgz" - integrity sha512-kDdugMl7id9COE8R7MHF5jWk7Dqt/fs4Pv+JXoICnYwqpjjjbUurz6w5fT5IG6brLdJhv6/VoHB0H7oyIBXd+Q== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - es-array-method-boxes-properly "^1.0.0" - is-string "^1.0.7" - -arraybuffer.prototype.slice@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz#097972f4255e41bc3425e37dc3f6421cf9aefde6" - integrity sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A== - dependencies: - array-buffer-byte-length "^1.0.1" - call-bind "^1.0.5" - define-properties "^1.2.1" - es-abstract "^1.22.3" - es-errors "^1.2.1" - get-intrinsic "^1.2.3" - is-array-buffer "^3.0.4" - is-shared-array-buffer "^1.0.2" - -arrify@^1.0.0, arrify@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" - integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA== - -asap@~2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" - integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== - -asn1@~0.2.3: - version "0.2.6" - resolved "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz" - integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== - dependencies: - safer-buffer "~2.1.0" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz" - integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== - -assertion-error@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz" - integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz" - integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== - -ast-parents@^0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/ast-parents/-/ast-parents-0.0.1.tgz" - integrity sha512-XHusKxKz3zoYk1ic8Un640joHbFMhbqneyoZfoKnEGtf2ey9Uh/IdpcQplODdO/kENaMIWsD0nJm4+wX3UNLHA== - -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== - -async-each@^1.0.0: - version "1.0.6" - resolved "https://registry.npmjs.org/async-each/-/async-each-1.0.6.tgz" - integrity sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg== - -async-eventemitter@^0.2.4: - version "0.2.4" - resolved "https://registry.npmjs.org/async-eventemitter/-/async-eventemitter-0.2.4.tgz" - integrity sha512-pd20BwL7Yt1zwDFy+8MX8F1+WCT8aQeKj0kQnTrH9WaeRETlRamVhD0JtRPmrV4GfOJ2F9CvdQkZeZhnh2TuHw== - dependencies: - async "^2.4.0" - -async-retry@^1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.3.3.tgz#0e7f36c04d8478e7a58bdbed80cedf977785f280" - integrity sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw== - dependencies: - retry "0.13.1" - -async@1.x: - version "1.5.2" - resolved "https://registry.npmjs.org/async/-/async-1.5.2.tgz" - integrity sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w== - -async@^2.4.0: - version "2.6.4" - resolved "https://registry.npmjs.org/async/-/async-2.6.4.tgz" - integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== - dependencies: - lodash "^4.17.14" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -available-typed-arrays@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz" - integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw== - -available-typed-arrays@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" - integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== - dependencies: - possible-typed-array-names "^1.0.0" - -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz" - integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== - -aws4@^1.8.0: - version "1.12.0" - resolved "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz" - integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg== - -axios@^0.21.2: - version "0.21.4" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" - integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== - dependencies: - follow-redirects "^1.14.0" - -axios@^1.4.0, axios@^1.6.1: - version "1.7.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.2.tgz#b625db8a7051fbea61c35a3cbb3a1daa7b9c7621" - integrity sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw== - dependencies: - follow-redirects "^1.15.6" - form-data "^4.0.0" - proxy-from-env "^1.1.0" - -axios@^1.6.5: - version "1.6.5" - resolved "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz" - integrity sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg== - dependencies: - follow-redirects "^1.15.4" - form-data "^4.0.0" - proxy-from-env "^1.1.0" - -babel-runtime@^6.9.2: - version "6.26.0" - resolved "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz" - integrity sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g== - dependencies: - core-js "^2.4.0" - regenerator-runtime "^0.11.0" - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -base-x@^3.0.2: - version "3.0.9" - resolved "https://registry.npmjs.org/base-x/-/base-x-3.0.9.tgz" - integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ== - dependencies: - safe-buffer "^5.0.1" - -base64-js@^1.0.2, base64-js@^1.3.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -base64-sol@1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/base64-sol/-/base64-sol-1.0.1.tgz" - integrity sha512-ld3cCNMeXt4uJXmLZBHFGMvVpK9KsLVEhPpFRXnvSVAqABKbuNZg/+dsq3NuM+wxFLb/UrVkz7m1ciWmkMfTbg== - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.npmjs.org/base/-/base-0.11.2.tgz" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -bcrypt-pbkdf@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz" - integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== - dependencies: - tweetnacl "^0.14.3" - -bech32@1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz" - integrity sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ== - -better-path-resolve@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/better-path-resolve/-/better-path-resolve-1.0.0.tgz" - integrity sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g== - dependencies: - is-windows "^1.0.0" - -bignumber.js@^9.0.0: - version "9.1.1" - resolved "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz" - integrity sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig== - -binary-extensions@^1.0.0: - version "1.13.1" - resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz" - integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== - -binary-extensions@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" - integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== - -bindings@^1.2.1, bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - -bip39@3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/bip39/-/bip39-3.0.4.tgz" - integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw== - dependencies: - "@types/node" "11.11.6" - create-hash "^1.1.0" - pbkdf2 "^3.0.9" - randombytes "^2.0.1" - -bip66@^1.1.5: - version "1.1.5" - resolved "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz" - integrity sha512-nemMHz95EmS38a26XbbdxIYj5csHd3RMP3H5bwQknX0WYHF01qhpufP42mLOwVICuH2JmhIhXiWs89MfUGL7Xw== - dependencies: - safe-buffer "^5.0.1" - -bl@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - -blakejs@^1.1.0: - version "1.2.1" - resolved "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz" - integrity sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ== - -bn.js@4.11.6: - version "4.11.6" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz" - integrity sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA== - -bn.js@^4.0.0, bn.js@^4.11.0, bn.js@^4.11.1, bn.js@^4.11.8, bn.js@^4.11.9: - version "4.12.0" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz" - integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA== - -bn.js@^5.1.2, bn.js@^5.2.0, bn.js@^5.2.1: - version "5.2.1" - resolved "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz" - integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ== - -boxen@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50" - integrity sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ== - dependencies: - ansi-align "^3.0.0" - camelcase "^6.2.0" - chalk "^4.1.0" - cli-boxes "^2.2.1" - string-width "^4.2.2" - type-fest "^0.20.2" - widest-line "^3.1.0" - wrap-ansi "^7.0.0" - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== - dependencies: - balanced-match "^1.0.0" - -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz" - integrity sha512-xU7bpz2ytJl1bH9cgIurjpg/n8Gohy9GTw81heDYLJQ4RU60dlyJsa+atVF2pI0yMMvKxI9HkKwjePCj5XI1hw== - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@^3.0.2, braces@~3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -breakword@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/breakword/-/breakword-1.0.5.tgz" - integrity sha512-ex5W9DoOQ/LUEU3PMdLs9ua/CYZl1678NUkKOdUSi8Aw5F1idieaiRURCBFJCwVcrD1J8Iy3vfWSloaMwO2qFg== - dependencies: - wcwidth "^1.0.1" - -brorand@^1.0.1, brorand@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz" - integrity sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w== - -browser-stdout@1.3.1: - version "1.3.1" - resolved "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz" - integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== - -browserify-aes@^1.0.6, browserify-aes@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz" - integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== - dependencies: - buffer-xor "^1.0.3" - cipher-base "^1.0.0" - create-hash "^1.1.0" - evp_bytestokey "^1.0.3" - inherits "^2.0.1" - safe-buffer "^5.0.1" - -bs58@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz" - integrity sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw== - dependencies: - base-x "^3.0.2" - -bs58check@^2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz" - integrity sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA== - dependencies: - bs58 "^4.0.0" - create-hash "^1.1.0" - safe-buffer "^5.1.2" - -buffer-from@^1.0.0, buffer-from@^1.1.0: - version "1.1.2" - resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -buffer-xor@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz" - integrity sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ== - -buffer-xor@^2.0.1: - version "2.0.2" - resolved "https://registry.npmjs.org/buffer-xor/-/buffer-xor-2.0.2.tgz" - integrity sha512-eHslX0bin3GB+Lx2p7lEYRShRewuNZL3fUl4qlVJGGiwoPGftmt8JQgk2Y9Ji5/01TnVDo33E5b5O3vUB1HdqQ== - dependencies: - safe-buffer "^5.1.1" - -buffer@4.9.2: - version "4.9.2" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.2.tgz#230ead344002988644841ab0244af8c44bbe3ef8" - integrity sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg== - dependencies: - base64-js "^1.0.2" - ieee754 "^1.1.4" - isarray "^1.0.0" - -buffer@^5.5.0, buffer@^5.6.0: - version "5.7.1" - resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" - -buffer@^6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz" - integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.2.1" - -bufferutil@4.0.5: - version "4.0.5" - resolved "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.5.tgz" - integrity sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A== - dependencies: - node-gyp-build "^4.3.0" - -busboy@^1.6.0: - version "1.6.0" - resolved "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz" - integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== - dependencies: - streamsearch "^1.1.0" - -bytes@3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz" - integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -cacheable-lookup@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz" - integrity sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w== - -cacheable-request@^10.2.8: - version "10.2.14" - resolved "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz" - integrity sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ== - dependencies: - "@types/http-cache-semantics" "^4.0.2" - get-stream "^6.0.1" - http-cache-semantics "^4.1.1" - keyv "^4.5.3" - mimic-response "^4.0.0" - normalize-url "^8.0.0" - responselike "^3.0.0" - -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== - dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - -call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" - integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - set-function-length "^1.2.1" - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase-keys@^6.2.2: - version "6.2.2" - resolved "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz" - integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== - dependencies: - camelcase "^5.3.1" - map-obj "^4.0.0" - quick-lru "^4.0.1" - -camelcase-keys@^7.0.0: - version "7.0.2" - resolved "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-7.0.2.tgz" - integrity sha512-Rjs1H+A9R+Ig+4E/9oyB66UC5Mj9Xq3N//vcLf2WzgdTi/3gUu3Z9KoqmlrEG4VuuLK8wJHofxzdQXz/knhiYg== - dependencies: - camelcase "^6.3.0" - map-obj "^4.1.0" - quick-lru "^5.1.1" - type-fest "^1.2.1" - -camelcase@^5.0.0, camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.0.0, camelcase@^6.2.0, camelcase@^6.3.0: - version "6.3.0" - resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - -caseless@^0.12.0, caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz" - integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== - -catering@^2.0.0, catering@^2.1.0: - version "2.1.1" - resolved "https://registry.npmjs.org/catering/-/catering-2.1.1.tgz" - integrity sha512-K7Qy8O9p76sL3/3m7/zLKbRkyOlSZAgzEaLhyj2mXS8PsCud2Eo4hAb8aLtZqHh0QGqLcb9dlJSu6lHRVENm1w== - -cbor@^8.1.0: - version "8.1.0" - resolved "https://registry.npmjs.org/cbor/-/cbor-8.1.0.tgz" - integrity sha512-DwGjNW9omn6EwP70aXsn7FQJx5kO12tX0bZkaTjzdVFM6/7nhA4t0EENocKGx6D2Bch9PE2KzCUf5SceBdeijg== - dependencies: - nofilter "^3.1.0" - -cbor@^9.0.0: - version "9.0.2" - resolved "https://registry.yarnpkg.com/cbor/-/cbor-9.0.2.tgz#536b4f2d544411e70ec2b19a2453f10f83cd9fdb" - integrity sha512-JPypkxsB10s9QOWwa6zwPzqE1Md3vqpPc+cai4sAecuCsRyAtAl/pMyhPlMbT/xtPnm2dznJZYRLui57qiRhaQ== - dependencies: - nofilter "^3.1.0" - -chai-as-promised@^7.1.1: - version "7.1.1" - resolved "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz" - integrity sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA== - dependencies: - check-error "^1.0.2" - -chai@^4.3.6: - version "4.3.7" - resolved "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz" - integrity sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A== - dependencies: - assertion-error "^1.1.0" - check-error "^1.0.2" - deep-eql "^4.1.2" - get-func-name "^2.0.0" - loupe "^2.3.1" - pathval "^1.1.1" - type-detect "^4.0.5" - -chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.2: - version "2.4.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: - version "4.1.2" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -chardet@^0.7.0: - version "0.7.0" - resolved "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz" - integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== - -"charenc@>= 0.0.1": - version "0.0.2" - resolved "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz" - integrity sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA== - -check-error@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz" - integrity sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA== - -chokidar@3.3.0: - version "3.3.0" - resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.3.0.tgz" - integrity sha512-dGmKLDdT3Gdl7fBUe8XK+gAtGmzy5Fn0XkkWQuYxGIgWVPPse2CxFA5mtrlD0TOHaHjEUqkWNyP1XdHoJES/4A== - dependencies: - anymatch "~3.1.1" - braces "~3.0.2" - glob-parent "~5.1.0" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.2.0" - optionalDependencies: - fsevents "~2.1.1" - -chokidar@3.5.3, chokidar@^3.4.0: - version "3.5.3" - resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz" - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - -chokidar@^1.6.0: - version "1.7.0" - resolved "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz" - integrity sha512-mk8fAWcRUOxY7btlLtitj3A45jOwSAxH4tOFOoEGbVsl6cL6pPMWUy7dwZ/canfj3QEdP6FHSnf/l1c6/WkzVg== - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - -ci-info@^3.1.0, ci-info@^3.2.0: - version "3.8.0" - resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz" - integrity sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw== - -cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz" - integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -clean-stack@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" - integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== - -clean-stack@^4.0.0: - version "4.2.0" - resolved "https://registry.npmjs.org/clean-stack/-/clean-stack-4.2.0.tgz" - integrity sha512-LYv6XPxoyODi36Dp976riBtSY27VmFo+MKqEU9QCCWyTrdEPDog+RWA7xQWHi6Vbp61j5c4cdzzX1NidnwtUWg== - dependencies: - escape-string-regexp "5.0.0" - -cli-boxes@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" - integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== - -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - -cli-spinners@^2.5.0: - version "2.8.0" - resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.8.0.tgz" - integrity sha512-/eG5sJcvEIwxcdYM86k5tPwn0MUzkX5YY3eImTGpJOZgVe4SdTMY14vQpcxgBzJ0wXwAYrS8E+c3uHeK4JNyzQ== - -cli-table3@^0.5.0: - version "0.5.1" - resolved "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz" - integrity sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw== - dependencies: - object-assign "^4.1.0" - string-width "^2.1.1" - optionalDependencies: - colors "^1.1.2" - -cli-width@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz" - integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== - -cliui@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz" - integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== - dependencies: - string-width "^3.1.0" - strip-ansi "^5.2.0" - wrap-ansi "^5.1.0" - -cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz" - integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -cliui@^8.0.1: - version "8.0.1" - resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" - integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.1" - wrap-ansi "^7.0.0" - -clone@^1.0.2: - version "1.0.4" - resolved "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" - integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz" - integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -colors@1.4.0, colors@^1.1.2: - version "1.4.0" - resolved "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz" - integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== - -combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: - version "1.0.8" - resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -command-exists@^1.2.8: - version "1.2.9" - resolved "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz" - integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== - -command-line-args@^5.1.1: - version "5.2.1" - resolved "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz" - integrity sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg== - dependencies: - array-back "^3.1.0" - find-replace "^3.0.0" - lodash.camelcase "^4.3.0" - typical "^4.0.0" - -command-line-usage@^6.1.0: - version "6.1.3" - resolved "https://registry.npmjs.org/command-line-usage/-/command-line-usage-6.1.3.tgz" - integrity sha512-sH5ZSPr+7UStsloltmDh7Ce5fb8XPlHyoPzTpyyMuYCtervL65+ubVZ6Q61cFtFl62UyJlc8/JwERRbAFPUqgw== - dependencies: - array-back "^4.0.2" - chalk "^2.4.2" - table-layout "^1.0.2" - typical "^5.2.0" - -commander@^10.0.0: - version "10.0.1" - resolved "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz" - integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== - -commander@^8.1.0: - version "8.3.0" - resolved "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz" - integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww== - -compare-versions@^6.0.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-6.1.0.tgz#3f2131e3ae93577df111dba133e6db876ffe127a" - integrity sha512-LNZQXhqUvqUTotpZ00qLSaify3b4VFD588aRr8MKFw4CMUr98ytzCW5wDH5qx/DEY5kCDXcbcRuCqL0szEf2tg== - -component-emitter@^1.2.1: - version "1.3.0" - resolved "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz" - integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -concat-stream@^1.6.0, concat-stream@^1.6.2: - version "1.6.2" - resolved "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz" - integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== - dependencies: - buffer-from "^1.0.0" - inherits "^2.0.3" - readable-stream "^2.2.2" - typedarray "^0.0.6" - -concurrently@^8.2.2: - version "8.2.2" - resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-8.2.2.tgz#353141985c198cfa5e4a3ef90082c336b5851784" - integrity sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg== - dependencies: - chalk "^4.1.2" - date-fns "^2.30.0" - lodash "^4.17.21" - rxjs "^7.8.1" - shell-quote "^1.8.1" - spawn-command "0.0.2" - supports-color "^8.1.1" - tree-kill "^1.2.2" - yargs "^17.7.2" - -config-chain@^1.1.11: - version "1.1.13" - resolved "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz" - integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ== - dependencies: - ini "^1.3.4" - proto-list "~1.2.1" - -cookie@^0.4.1: - version "0.4.2" - resolved "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz" - integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA== - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz" - integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== - -core-js-pure@^3.0.1: - version "3.30.1" - resolved "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.1.tgz" - integrity sha512-nXBEVpmUnNRhz83cHd9JRQC52cTMcuXAmR56+9dSMpRdpeA4I1PX6yjmhd71Eyc/wXNsdBdUDIj1QTIeZpU5Tg== - -core-js@^2.4.0: - version "2.6.12" - resolved "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz" - integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ== - -core-util-is@1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz" - integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== - -core-util-is@~1.0.0: - version "1.0.3" - resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz" - integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== - -cosmiconfig@^8.0.0: - version "8.3.6" - resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-8.3.6.tgz" - integrity sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA== - dependencies: - import-fresh "^3.3.0" - js-yaml "^4.1.0" - parse-json "^5.2.0" - path-type "^4.0.0" - -cpx@^1.5.0: - version "1.5.0" - resolved "https://registry.npmjs.org/cpx/-/cpx-1.5.0.tgz" - integrity sha512-jHTjZhsbg9xWgsP2vuNW2jnnzBX+p4T+vNI9Lbjzs1n4KhOfa22bQppiFYLsWQKd8TzmL5aSP/Me3yfsCwXbDA== - dependencies: - babel-runtime "^6.9.2" - chokidar "^1.6.0" - duplexer "^0.1.1" - glob "^7.0.5" - glob2base "^0.0.12" - minimatch "^3.0.2" - mkdirp "^0.5.1" - resolve "^1.1.7" - safe-buffer "^5.0.1" - shell-quote "^1.6.1" - subarg "^1.0.0" - -crc-32@^1.2.0: - version "1.2.2" - resolved "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz" - integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== - -create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz" - integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== - dependencies: - cipher-base "^1.0.1" - inherits "^2.0.1" - md5.js "^1.3.4" - ripemd160 "^2.0.1" - sha.js "^2.4.0" - -create-hmac@^1.1.4, create-hmac@^1.1.7: - version "1.1.7" - resolved "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz" - integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== - dependencies: - cipher-base "^1.0.3" - create-hash "^1.1.0" - inherits "^2.0.1" - ripemd160 "^2.0.0" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz" - integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== - -cross-env@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf" - integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw== - dependencies: - cross-spawn "^7.0.1" - -cross-spawn@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz" - integrity sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A== - dependencies: - lru-cache "^4.0.1" - shebang-command "^1.2.0" - which "^1.2.9" - -cross-spawn@^7.0.1, cross-spawn@^7.0.2: - version "7.0.3" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -"crypt@>= 0.0.1": - version "0.0.2" - resolved "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz" - integrity sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow== - -csv-generate@^3.4.3: - version "3.4.3" - resolved "https://registry.npmjs.org/csv-generate/-/csv-generate-3.4.3.tgz" - integrity sha512-w/T+rqR0vwvHqWs/1ZyMDWtHHSJaN06klRqJXBEpDJaM/+dZkso0OKh1VcuuYvK3XM53KysVNq8Ko/epCK8wOw== - -csv-parse@^4.16.3: - version "4.16.3" - resolved "https://registry.npmjs.org/csv-parse/-/csv-parse-4.16.3.tgz" - integrity sha512-cO1I/zmz4w2dcKHVvpCr7JVRu8/FymG5OEpmvsZYlccYolPBLoVGKUHgNoc4ZGkFeFlWGEDmMyBM+TTqRdW/wg== - -csv-stringify@^5.6.5: - version "5.6.5" - resolved "https://registry.npmjs.org/csv-stringify/-/csv-stringify-5.6.5.tgz" - integrity sha512-PjiQ659aQ+fUTQqSrd1XEDnOr52jh30RBurfzkscaE2tPaFsDH5wOAHJiw8XAHphRknCwMUE9KRayc4K/NbO8A== - -csv@^5.5.3: - version "5.5.3" - resolved "https://registry.npmjs.org/csv/-/csv-5.5.3.tgz" - integrity sha512-QTaY0XjjhTQOdguARF0lGKm5/mEq9PD9/VhZZegHDIBq2tQwgNpHc3dneD4mGo2iJs+fTKv5Bp0fZ+BRuY3Z0g== - dependencies: - csv-generate "^3.4.3" - csv-parse "^4.16.3" - csv-stringify "^5.6.5" - stream-transform "^2.1.3" - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz" - integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== - dependencies: - assert-plus "^1.0.0" - -data-view-buffer@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.1.tgz#8ea6326efec17a2e42620696e671d7d5a8bc66b2" - integrity sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA== - dependencies: - call-bind "^1.0.6" - es-errors "^1.3.0" - is-data-view "^1.0.1" - -data-view-byte-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz#90721ca95ff280677eb793749fce1011347669e2" - integrity sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ== - dependencies: - call-bind "^1.0.7" - es-errors "^1.3.0" - is-data-view "^1.0.1" - -data-view-byte-offset@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz#5e0bbfb4828ed2d1b9b400cd8a7d119bca0ff18a" - integrity sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA== - dependencies: - call-bind "^1.0.6" - es-errors "^1.3.0" - is-data-view "^1.0.1" - -date-fns@^2.30.0: - version "2.30.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" - integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== - dependencies: - "@babel/runtime" "^7.21.0" - -death@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/death/-/death-1.1.0.tgz" - integrity sha512-vsV6S4KVHvTGxbEcij7hkWRv0It+sGGWVOM67dQde/o5Xjnr+KmLjxWJii2uEObIrt1CcM9w0Yaovx+iOlIL+w== - -debug@3.2.6: - version "3.2.6" - resolved "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz" - integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== - dependencies: - ms "^2.1.1" - -debug@4, debug@4.3.4, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: - version "4.3.4" - resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -debug@^2.2.0, debug@^2.3.3: - version "2.6.9" - resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@^3.1.0, debug@^3.2.7: - version "3.2.7" - resolved "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - -decamelize-keys@^1.1.0: - version "1.1.1" - resolved "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.1.tgz" - integrity sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg== - dependencies: - decamelize "^1.1.0" - map-obj "^1.0.0" - -decamelize@^1.1.0, decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - -decamelize@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz" - integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== - -decamelize@^5.0.0: - version "5.0.1" - resolved "https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz" - integrity sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA== - -decode-uri-component@^0.2.0: - version "0.2.2" - resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz" - integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== - -decompress-response@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz" - integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== - dependencies: - mimic-response "^3.1.0" - -deep-eql@^4.0.1, deep-eql@^4.1.2: - version "4.1.3" - resolved "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz" - integrity sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw== - dependencies: - type-detect "^4.0.0" - -deep-extend@^0.6.0, deep-extend@~0.6.0: - version "0.6.0" - resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" - integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== - -deep-is@^0.1.3, deep-is@~0.1.3: - version "0.1.4" - resolved "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -defaults@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz" - integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== - dependencies: - clone "^1.0.2" - -defer-to-connect@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz" - integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== - -deferred-leveldown@~5.3.0: - version "5.3.0" - resolved "https://registry.npmjs.org/deferred-leveldown/-/deferred-leveldown-5.3.0.tgz" - integrity sha512-a59VOT+oDy7vtAbLRCZwWgxu2BaCfd5Hk7wxJd48ei7I+nsg8Orlb9CLG0PMZienk9BSUKgeAqkO2+Lw+1+Ukw== - dependencies: - abstract-leveldown "~6.2.1" - inherits "^2.0.3" - -define-data-property@^1.0.1, define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - -define-properties@^1.1.2, define-properties@^1.1.3, define-properties@^1.1.4: - version "1.2.0" - resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz" - integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== - dependencies: - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -define-properties@^1.2.0, define-properties@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" - integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== - dependencies: - define-data-property "^1.0.1" - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz" - integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz" - integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -del-cli@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/del-cli/-/del-cli-5.0.0.tgz" - integrity sha512-rENFhUaYcjoMODwFhhlON+ogN7DoG+4+GFN+bsA1XeDt4w2OKQnQadFP1thHSAlK9FAtl88qgP66wOV+eFZZiQ== - dependencies: - del "^7.0.0" - meow "^10.1.3" - -del@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/del/-/del-7.0.0.tgz" - integrity sha512-tQbV/4u5WVB8HMJr08pgw0b6nG4RGt/tj+7Numvq+zqcvUFeMaIWWOUFltiU+6go8BSO2/ogsB4EasDaj0y68Q== - dependencies: - globby "^13.1.2" - graceful-fs "^4.2.10" - is-glob "^4.0.3" - is-path-cwd "^3.0.0" - is-path-inside "^4.0.0" - p-map "^5.5.0" - rimraf "^3.0.2" - slash "^4.0.0" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -delete-empty@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/delete-empty/-/delete-empty-3.0.0.tgz" - integrity sha512-ZUyiwo76W+DYnKsL3Kim6M/UOavPdBJgDYWOmuQhYaZvJH0AXAHbUNyEDtRbBra8wqqr686+63/0azfEk1ebUQ== - dependencies: - ansi-colors "^4.1.0" - minimist "^1.2.0" - path-starts-with "^2.0.0" - rimraf "^2.6.2" - -depd@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz" - integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== - -detect-indent@^6.0.0: - version "6.1.0" - resolved "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz" - integrity sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA== - -diff@3.5.0, diff@^3.1.0: - version "3.5.0" - resolved "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz" - integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== - -diff@5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz" - integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -difflib@^0.2.4: - version "0.2.4" - resolved "https://registry.yarnpkg.com/difflib/-/difflib-0.2.4.tgz#b5e30361a6db023176d562892db85940a718f47e" - integrity sha512-9YVwmMb0wQHQNr5J9m6BSj6fk4pfGITGQOOs+D9Fl+INODWFOfvhIU1hNv6GgR1RBoC/9NJcwu77zShxV0kT7w== - dependencies: - heap ">= 0.2.0" - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -dotenv@^16.0.0: - version "16.0.3" - resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz" - integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== - -dotenv@^16.1.4: - version "16.3.1" - resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz" - integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== - -drbg.js@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/drbg.js/-/drbg.js-1.0.1.tgz" - integrity sha512-F4wZ06PvqxYLFEZKkFxTDcns9oFNk34hvmJSEwdzsxVQ8YI5YaxtACgQatkYgv2VI2CFkUd2Y+xosPQnHv809g== - dependencies: - browserify-aes "^1.0.6" - create-hash "^1.1.2" - create-hmac "^1.1.4" - -duplexer@^0.1.1: - version "0.1.2" - resolved "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz" - integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== - -ecc-jsbn@~0.1.1: - version "0.1.2" - resolved "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz" - integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== - dependencies: - jsbn "~0.1.0" - safer-buffer "^2.1.0" - -elliptic@6.5.4, elliptic@^6.5.2, elliptic@^6.5.4: - version "6.5.4" - resolved "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz" - integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ== - dependencies: - bn.js "^4.11.9" - brorand "^1.1.0" - hash.js "^1.0.0" - hmac-drbg "^1.0.1" - inherits "^2.0.4" - minimalistic-assert "^1.0.1" - minimalistic-crypto-utils "^1.0.1" - -emittery@0.10.0: - version "0.10.0" - resolved "https://registry.npmjs.org/emittery/-/emittery-0.10.0.tgz" - integrity sha512-AGvFfs+d0JKCJQ4o01ASQLGPmSCxgfU9RFXvzPvZdjKK8oscynksuJhWrSTSw7j7Ep/sZct5b5ZhYCi8S/t0HQ== - -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -encoding-down@^6.3.0: - version "6.3.0" - resolved "https://registry.npmjs.org/encoding-down/-/encoding-down-6.3.0.tgz" - integrity sha512-QKrV0iKR6MZVJV08QY0wp1e7vF6QbhnbQhb07bwpEyuz4uZiZgPlEGdkCROuFkUwdxlFaiPIhjyarH1ee/3vhw== - dependencies: - abstract-leveldown "^6.2.1" - inherits "^2.0.3" - level-codec "^9.0.0" - level-errors "^2.0.0" - -enquirer@^2.3.0: - version "2.3.6" - resolved "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - -env-paths@^2.2.0: - version "2.2.1" - resolved "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz" - integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== - -errno@~0.1.1: - version "0.1.8" - resolved "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz" - integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A== - dependencies: - prr "~1.0.1" - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -es-abstract@^1.19.0, es-abstract@^1.20.4: - version "1.21.2" - resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz" - integrity sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg== - dependencies: - array-buffer-byte-length "^1.0.0" - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" - es-set-tostringtag "^2.0.1" - es-to-primitive "^1.2.1" - function.prototype.name "^1.1.5" - get-intrinsic "^1.2.0" - get-symbol-description "^1.0.0" - globalthis "^1.0.3" - gopd "^1.0.1" - has "^1.0.3" - has-property-descriptors "^1.0.0" - has-proto "^1.0.1" - has-symbols "^1.0.3" - internal-slot "^1.0.5" - is-array-buffer "^3.0.2" - is-callable "^1.2.7" - is-negative-zero "^2.0.2" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.2" - is-string "^1.0.7" - is-typed-array "^1.1.10" - is-weakref "^1.0.2" - object-inspect "^1.12.3" - object-keys "^1.1.1" - object.assign "^4.1.4" - regexp.prototype.flags "^1.4.3" - safe-regex-test "^1.0.0" - string.prototype.trim "^1.2.7" - string.prototype.trimend "^1.0.6" - string.prototype.trimstart "^1.0.6" - typed-array-length "^1.0.4" - unbox-primitive "^1.0.2" - which-typed-array "^1.1.9" - -es-abstract@^1.22.1, es-abstract@^1.22.3, es-abstract@^1.23.0, es-abstract@^1.23.2: - version "1.23.3" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.23.3.tgz#8f0c5a35cd215312573c5a27c87dfd6c881a0aa0" - integrity sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A== - dependencies: - array-buffer-byte-length "^1.0.1" - arraybuffer.prototype.slice "^1.0.3" - available-typed-arrays "^1.0.7" - call-bind "^1.0.7" - data-view-buffer "^1.0.1" - data-view-byte-length "^1.0.1" - data-view-byte-offset "^1.0.0" - es-define-property "^1.0.0" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - es-set-tostringtag "^2.0.3" - es-to-primitive "^1.2.1" - function.prototype.name "^1.1.6" - get-intrinsic "^1.2.4" - get-symbol-description "^1.0.2" - globalthis "^1.0.3" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - has-proto "^1.0.3" - has-symbols "^1.0.3" - hasown "^2.0.2" - internal-slot "^1.0.7" - is-array-buffer "^3.0.4" - is-callable "^1.2.7" - is-data-view "^1.0.1" - is-negative-zero "^2.0.3" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.3" - is-string "^1.0.7" - is-typed-array "^1.1.13" - is-weakref "^1.0.2" - object-inspect "^1.13.1" - object-keys "^1.1.1" - object.assign "^4.1.5" - regexp.prototype.flags "^1.5.2" - safe-array-concat "^1.1.2" - safe-regex-test "^1.0.3" - string.prototype.trim "^1.2.9" - string.prototype.trimend "^1.0.8" - string.prototype.trimstart "^1.0.8" - typed-array-buffer "^1.0.2" - typed-array-byte-length "^1.0.1" - typed-array-byte-offset "^1.0.2" - typed-array-length "^1.0.6" - unbox-primitive "^1.0.2" - which-typed-array "^1.1.15" - -es-array-method-boxes-properly@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz" - integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== - -es-define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" - integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== - dependencies: - get-intrinsic "^1.2.4" - -es-errors@^1.2.1, es-errors@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" - integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== - -es-object-atoms@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" - integrity sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw== - dependencies: - es-errors "^1.3.0" - -es-set-tostringtag@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz" - integrity sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg== - dependencies: - get-intrinsic "^1.1.3" - has "^1.0.3" - has-tostringtag "^1.0.0" - -es-set-tostringtag@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz#8bb60f0a440c2e4281962428438d58545af39777" - integrity sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ== - dependencies: - get-intrinsic "^1.2.4" - has-tostringtag "^1.0.2" - hasown "^2.0.1" - -es-shim-unscopables@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz" - integrity sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w== - dependencies: - has "^1.0.3" - -es-shim-unscopables@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" - integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== - dependencies: - hasown "^2.0.0" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-string-regexp@1.0.5, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escape-string-regexp@5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz" - integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== - -escodegen@1.8.x: - version "1.8.1" - resolved "https://registry.npmjs.org/escodegen/-/escodegen-1.8.1.tgz" - integrity sha512-yhi5S+mNTOuRvyW4gWlg5W1byMaQGWWSYHXsuFZ7GBo7tpyOwi2EdzMP/QWxh9hwkD2m+wDVHJsxhRIj+v/b/A== - dependencies: - esprima "^2.7.1" - estraverse "^1.9.1" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.2.0" - -eslint-config-prettier@^8.5.0: - version "8.8.0" - resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz" - integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== - -eslint-config-standard@^17.0.0: - version "17.0.0" - resolved "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-17.0.0.tgz" - integrity sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg== - -eslint-import-resolver-node@^0.3.7: - version "0.3.7" - resolved "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz" - integrity sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA== - dependencies: - debug "^3.2.7" - is-core-module "^2.11.0" - resolve "^1.22.1" - -eslint-import-resolver-typescript@^2.7.1: - version "2.7.1" - resolved "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.7.1.tgz" - integrity sha512-00UbgGwV8bSgUv34igBDbTOtKhqoRMy9bFjNehT40bXg6585PNIct8HhXZ0SybqB9rWtXj9crcku8ndDn/gIqQ== - dependencies: - debug "^4.3.4" - glob "^7.2.0" - is-glob "^4.0.3" - resolve "^1.22.0" - tsconfig-paths "^3.14.1" - -eslint-module-utils@^2.7.4: - version "2.8.0" - resolved "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz" - integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== - dependencies: - debug "^3.2.7" - -eslint-plugin-es@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz" - integrity sha512-GUmAsJaN4Fc7Gbtl8uOBlayo2DqhwWvEzykMHSCZHU3XdJ+NSzzZcVhXh3VxX5icqQ+oQdIEawXX8xkR3mIFmQ== - dependencies: - eslint-utils "^2.0.0" - regexpp "^3.0.0" - -eslint-plugin-import@^2.26.0: - version "2.27.5" - resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz" - integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow== - dependencies: - array-includes "^3.1.6" - array.prototype.flat "^1.3.1" - array.prototype.flatmap "^1.3.1" - debug "^3.2.7" - doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.7" - eslint-module-utils "^2.7.4" - has "^1.0.3" - is-core-module "^2.11.0" - is-glob "^4.0.3" - minimatch "^3.1.2" - object.values "^1.1.6" - resolve "^1.22.1" - semver "^6.3.0" - tsconfig-paths "^3.14.1" - -eslint-plugin-node@^11.1.0: - version "11.1.0" - resolved "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz" - integrity sha512-oUwtPJ1W0SKD0Tr+wqu92c5xuCeQqB3hSCHasn/ZgjFdA9iDGNkNf2Zi9ztY7X+hNuMib23LNGRm6+uN+KLE3g== - dependencies: - eslint-plugin-es "^3.0.0" - eslint-utils "^2.0.0" - ignore "^5.1.1" - minimatch "^3.0.4" - resolve "^1.10.1" - semver "^6.1.0" - -eslint-plugin-prettier@^4.0.0: - version "4.2.1" - resolved "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz" - integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== - dependencies: - prettier-linter-helpers "^1.0.0" - -eslint-plugin-promise@^6.0.0: - version "6.1.1" - resolved "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz" - integrity sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig== - -eslint-plugin-simple-import-sort@7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-7.0.0.tgz" - integrity sha512-U3vEDB5zhYPNfxT5TYR7u01dboFZp+HNpnGhkDB2g/2E4wZ/g1Q9Ton8UwCLfRV9yAKyYqDh62oHOamvkFxsvw== - -eslint-plugin-sort-keys-fix@1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/eslint-plugin-sort-keys-fix/-/eslint-plugin-sort-keys-fix-1.1.2.tgz" - integrity sha512-DNPHFGCA0/hZIsfODbeLZqaGY/+q3vgtshF85r+YWDNCQ2apd9PNs/zL6ttKm0nD1IFwvxyg3YOTI7FHl4unrw== - dependencies: - espree "^6.1.2" - esutils "^2.0.2" - natural-compare "^1.4.0" - requireindex "~1.2.0" - -eslint-plugin-typescript-sort-keys@2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-2.1.0.tgz" - integrity sha512-ET7ABypdz19m47QnKynzNfWPi4CTNQ5jQQC1X5d0gojIwblkbGiCa5IilsqzBTmqxZ0yXDqKBO/GBkBFQCOFsg== - dependencies: - "@typescript-eslint/experimental-utils" "^5.0.0" - json-schema "^0.4.0" - natural-compare-lite "^1.4.0" - -eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-scope@^7.1.1: - version "7.2.0" - resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz" - integrity sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-utils@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== - dependencies: - eslint-visitor-keys "^1.1.0" - -eslint-visitor-keys@^1.1.0: - version "1.3.0" - resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== - -eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.0: - version "3.4.0" - resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz" - integrity sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ== - -eslint@^8.13.0: - version "8.38.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-8.38.0.tgz" - integrity sha512-pIdsD2jwlUGf/U38Jv97t8lq6HpaU/G9NKbYmpWpZGw3LdTNhZLbJePqxOXGB5+JEKfOPU/XLxYxFh03nr1KTg== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.4.0" - "@eslint/eslintrc" "^2.0.2" - "@eslint/js" "8.38.0" - "@humanwhocodes/config-array" "^0.11.8" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.1.1" - eslint-visitor-keys "^3.4.0" - espree "^9.5.1" - esquery "^1.4.2" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - grapheme-splitter "^1.0.4" - ignore "^5.2.0" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - is-path-inside "^3.0.3" - js-sdsl "^4.1.4" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.1.2" - natural-compare "^1.4.0" - optionator "^0.9.1" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - -espree@^6.1.2: - version "6.2.1" - resolved "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz" - integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw== - dependencies: - acorn "^7.1.1" - acorn-jsx "^5.2.0" - eslint-visitor-keys "^1.1.0" - -espree@^9.5.1: - version "9.5.1" - resolved "https://registry.npmjs.org/espree/-/espree-9.5.1.tgz" - integrity sha512-5yxtHSZXRSW5pvv3hAlXM5+/Oswi1AUFqBmbibKb5s6bp3rGIDkyXU6xCoyuuLhijr4SFwPrXRoZjz0AZDN9tg== - dependencies: - acorn "^8.8.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.0" - -esprima@2.7.x, esprima@^2.7.1: - version "2.7.3" - resolved "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz" - integrity sha512-OarPfz0lFCiW4/AV2Oy1Rp9qu0iusTKqykwTspGCZtPxmF81JR4MmIebvF1F9+UOKth2ZubLQ4XGGaU+hSn99A== - -esprima@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -esquery@^1.4.2: - version "1.5.0" - resolved "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz" - integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^1.9.1: - version "1.9.3" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-1.9.3.tgz" - integrity sha512-25w1fMXQrGdoquWnScXZGckOv+Wes+JDnuN/+7ex3SauFRS72r2lFDec0EKPt2YD1wUJ/IrfEex+9yp4hfSOJA== - -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -eth-gas-reporter@^0.2.25: - version "0.2.25" - resolved "https://registry.npmjs.org/eth-gas-reporter/-/eth-gas-reporter-0.2.25.tgz" - integrity sha512-1fRgyE4xUB8SoqLgN3eDfpDfwEfRxh2Sz1b7wzFbyQA+9TekMmvSjjoRu9SKcSVyK+vLkLIsVbJDsTWjw195OQ== - dependencies: - "@ethersproject/abi" "^5.0.0-beta.146" - "@solidity-parser/parser" "^0.14.0" - cli-table3 "^0.5.0" - colors "1.4.0" - ethereum-cryptography "^1.0.3" - ethers "^4.0.40" - fs-readdir-recursive "^1.1.0" - lodash "^4.17.14" - markdown-table "^1.1.3" - mocha "^7.1.1" - req-cwd "^2.0.0" - request "^2.88.0" - request-promise-native "^1.0.5" - sha1 "^1.1.1" - sync-request "^6.0.0" - -ethereum-bloom-filters@^1.0.6: - version "1.0.10" - resolved "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.0.10.tgz" - integrity sha512-rxJ5OFN3RwjQxDcFP2Z5+Q9ho4eIdEmSc2ht0fCu8Se9nbXjZ7/031uXoUYJ87KHCOdVeiUuwSnoS7hmYAGVHA== - dependencies: - js-sha3 "^0.8.0" - -ethereum-cryptography@0.1.3, ethereum-cryptography@^0.1.3: - version "0.1.3" - resolved "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz" - integrity sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ== - dependencies: - "@types/pbkdf2" "^3.0.0" - "@types/secp256k1" "^4.0.1" - blakejs "^1.1.0" - browserify-aes "^1.2.0" - bs58check "^2.1.2" - create-hash "^1.2.0" - create-hmac "^1.1.7" - hash.js "^1.1.7" - keccak "^3.0.0" - pbkdf2 "^3.0.17" - randombytes "^2.1.0" - safe-buffer "^5.1.2" - scrypt-js "^3.0.0" - secp256k1 "^4.0.1" - setimmediate "^1.0.5" - -ethereum-cryptography@^1.0.3: - version "1.2.0" - resolved "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz" - integrity sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw== - dependencies: - "@noble/hashes" "1.2.0" - "@noble/secp256k1" "1.7.1" - "@scure/bip32" "1.1.5" - "@scure/bip39" "1.1.1" - -ethereum-cryptography@^2.0.0, ethereum-cryptography@^2.1.2: - version "2.2.0" - resolved "https://registry.yarnpkg.com/ethereum-cryptography/-/ethereum-cryptography-2.2.0.tgz#06e2d9c0d89f98ffc6a83818f55bf85afecd50dc" - integrity sha512-hsm9JhfytIf8QME/3B7j4bc8V+VdTU+Vas1aJlvIS96ffoNAosudXvGoEvWmc7QZYdkC8mrMJz9r0fcbw7GyCA== - dependencies: - "@noble/curves" "1.4.0" - "@noble/hashes" "1.4.0" - "@scure/bip32" "1.4.0" - "@scure/bip39" "1.3.0" - -ethereum-waffle@^4.0.9: - version "4.0.10" - resolved "https://registry.npmjs.org/ethereum-waffle/-/ethereum-waffle-4.0.10.tgz" - integrity sha512-iw9z1otq7qNkGDNcMoeNeLIATF9yKl1M8AIeu42ElfNBplq0e+5PeasQmm8ybY/elkZ1XyRO0JBQxQdVRb8bqQ== - dependencies: - "@ethereum-waffle/chai" "4.0.10" - "@ethereum-waffle/compiler" "4.0.3" - "@ethereum-waffle/mock-contract" "4.0.4" - "@ethereum-waffle/provider" "4.0.5" - solc "0.8.15" - typechain "^8.0.0" - -ethereumjs-abi@0.6.8, ethereumjs-abi@^0.6.8: - version "0.6.8" - resolved "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz" - integrity sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA== - dependencies: - bn.js "^4.11.8" - ethereumjs-util "^6.0.0" - -ethereumjs-util@7.1.3: - version "7.1.3" - resolved "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.3.tgz" - integrity sha512-y+82tEbyASO0K0X1/SRhbJJoAlfcvq8JbrG4a5cjrOks7HS/36efU/0j2flxCPOUM++HFahk33kr/ZxyC4vNuw== - dependencies: - "@types/bn.js" "^5.1.0" - bn.js "^5.1.2" - create-hash "^1.1.2" - ethereum-cryptography "^0.1.3" - rlp "^2.2.4" - -ethereumjs-util@^6.0.0, ethereumjs-util@^6.2.1: - version "6.2.1" - resolved "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-6.2.1.tgz" - integrity sha512-W2Ktez4L01Vexijrm5EB6w7dg4n/TgpoYU4avuT5T3Vmnw/eCRtiBrJfQYS/DCSvDIOLn2k57GcHdeBcgVxAqw== - dependencies: - "@types/bn.js" "^4.11.3" - bn.js "^4.11.0" - create-hash "^1.1.2" - elliptic "^6.5.2" - ethereum-cryptography "^0.1.3" - ethjs-util "0.1.6" - rlp "^2.2.3" - -ethereumjs-util@^7.0.3, ethereumjs-util@^7.1.1, ethereumjs-util@^7.1.3, ethereumjs-util@^7.1.4, ethereumjs-util@^7.1.5: - version "7.1.5" - resolved "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz" - integrity sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg== - dependencies: - "@types/bn.js" "^5.1.0" - bn.js "^5.1.2" - create-hash "^1.1.2" - ethereum-cryptography "^0.1.3" - rlp "^2.2.4" - -ethereumjs-utils@^5.2.5: - version "5.2.5" - resolved "https://registry.npmjs.org/ethereumjs-utils/-/ethereumjs-utils-5.2.5.tgz" - integrity sha512-IkXL26c21kUKT5NQO4NFgeuYwXtqCD4dmiSWc/vivGNGwfYhEn2lYwmVIcbqVKS9yJfVEmrolWnQBuxEmTinIg== - dependencies: - bn.js "^4.11.0" - create-hash "^1.1.2" - ethjs-util "^0.1.3" - keccak "^1.0.2" - rlp "^2.0.0" - safe-buffer "^5.1.1" - secp256k1 "^3.0.1" - -ethers@5.6.8: - version "5.6.8" - resolved "https://registry.npmjs.org/ethers/-/ethers-5.6.8.tgz" - integrity sha512-YxIGaltAOdvBFPZwIkyHnXbW40f1r8mHUgapW6dxkO+6t7H6wY8POUn0Kbxrd/N7I4hHxyi7YCddMAH/wmho2w== - dependencies: - "@ethersproject/abi" "5.6.3" - "@ethersproject/abstract-provider" "5.6.1" - "@ethersproject/abstract-signer" "5.6.2" - "@ethersproject/address" "5.6.1" - "@ethersproject/base64" "5.6.1" - "@ethersproject/basex" "5.6.1" - "@ethersproject/bignumber" "5.6.2" - "@ethersproject/bytes" "5.6.1" - "@ethersproject/constants" "5.6.1" - "@ethersproject/contracts" "5.6.2" - "@ethersproject/hash" "5.6.1" - "@ethersproject/hdnode" "5.6.2" - "@ethersproject/json-wallets" "5.6.1" - "@ethersproject/keccak256" "5.6.1" - "@ethersproject/logger" "5.6.0" - "@ethersproject/networks" "5.6.3" - "@ethersproject/pbkdf2" "5.6.1" - "@ethersproject/properties" "5.6.0" - "@ethersproject/providers" "5.6.8" - "@ethersproject/random" "5.6.1" - "@ethersproject/rlp" "5.6.1" - "@ethersproject/sha2" "5.6.1" - "@ethersproject/signing-key" "5.6.2" - "@ethersproject/solidity" "5.6.1" - "@ethersproject/strings" "5.6.1" - "@ethersproject/transactions" "5.6.2" - "@ethersproject/units" "5.6.1" - "@ethersproject/wallet" "5.6.2" - "@ethersproject/web" "5.6.1" - "@ethersproject/wordlists" "5.6.1" - -ethers@^4.0.40: - version "4.0.49" - resolved "https://registry.npmjs.org/ethers/-/ethers-4.0.49.tgz" - integrity sha512-kPltTvWiyu+OktYy1IStSO16i2e7cS9D9OxZ81q2UUaiNPVrm/RTcbxamCXF9VUSKzJIdJV68EAIhTEVBalRWg== - dependencies: - aes-js "3.0.0" - bn.js "^4.11.9" - elliptic "6.5.4" - hash.js "1.1.3" - js-sha3 "0.5.7" - scrypt-js "2.0.4" - setimmediate "1.0.4" - uuid "2.0.1" - xmlhttprequest "1.8.0" - -ethjs-unit@0.1.6: - version "0.1.6" - resolved "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz" - integrity sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw== - dependencies: - bn.js "4.11.6" - number-to-bn "1.7.0" - -ethjs-util@0.1.6, ethjs-util@^0.1.3, ethjs-util@^0.1.6: - version "0.1.6" - resolved "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.6.tgz" - integrity sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w== - dependencies: - is-hex-prefixed "1.0.0" - strip-hex-prefix "1.0.0" - -evp_bytestokey@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz" - integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== - dependencies: - md5.js "^1.3.4" - safe-buffer "^5.1.1" - -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz" - integrity sha512-hxx03P2dJxss6ceIeri9cmYOT4SRs3Zk3afZwWpOsRqLqprhTR8u++SlC+sFGsQr7WGFPdMF7Gjc1njDLDK6UA== - dependencies: - is-posix-bracket "^0.1.0" - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz" - integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz" - integrity sha512-AFASGfIlnIbkKPQwX1yHaDjFvh/1gyKJODme52V6IORh69uEYgZp0o9C+qsIGNVEiuuhQU0CSSl++Rlegg1qvA== - dependencies: - fill-range "^2.1.0" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz" - integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz" - integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extend@~3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - -extendable-error@^0.1.5: - version "0.1.7" - resolved "https://registry.npmjs.org/extendable-error/-/extendable-error-0.1.7.tgz" - integrity sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg== - -external-editor@^3.0.3, external-editor@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz" - integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== - dependencies: - chardet "^0.7.0" - iconv-lite "^0.4.24" - tmp "^0.0.33" - -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz" - integrity sha512-1FOj1LOwn42TMrruOHGt18HemVnbwAmAak7krWk+wa93KXxGbK+2jpezm+ytJYDaBX0/SPLZFHKM7m+tKobWGg== - dependencies: - is-extglob "^1.0.0" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz" - integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== - -extsprintf@^1.2.0: - version "1.4.1" - resolved "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz" - integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== - -fast-base64-decode@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fast-base64-decode/-/fast-base64-decode-1.0.0.tgz#b434a0dd7d92b12b43f26819300d2dafb83ee418" - integrity sha512-qwaScUgUGBYeDNRnbc/KyllVU88Jk1pRHPStuF/lO7B0/RTRLj7U0lkdTAutlBblY08rwZDff6tNU9cjv6j//Q== - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-diff@^1.1.2, fast-diff@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" - integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== - -fast-glob@^3.0.3, fast-glob@^3.2.11, fast-glob@^3.2.9: - version "3.2.12" - resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz" - integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fastq@^1.6.0: - version "1.15.0" - resolved "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz" - integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw== - dependencies: - reusify "^1.0.4" - -figures@^3.0.0: - version "3.2.0" - resolved "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz" - integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== - dependencies: - escape-string-regexp "^1.0.5" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz" - integrity sha512-BTCqyBaWBTsauvnHiE8i562+EdJj+oUpkqWp2R1iCoR8f6oo8STRu3of7WJJ0TqWtxN50a5YFpzYK4Jj9esYfQ== - -fill-range@^2.1.0: - version "2.2.4" - resolved "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz" - integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^3.0.0" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz" - integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-index@^0.1.1: - version "0.1.1" - resolved "https://registry.npmjs.org/find-index/-/find-index-0.1.1.tgz" - integrity sha512-uJ5vWrfBKMcE6y2Z8834dwEZj9mNGxYa3t3I53OwFeuZ8D9oc2E5zcsrkuhX6h4iYrjhiv0T3szQmxlAV9uxDg== - -find-replace@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz" - integrity sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ== - dependencies: - array-back "^3.0.1" - -find-up@3.0.0, find-up@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz" - integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== - dependencies: - locate-path "^3.0.0" - -find-up@5.0.0, find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz" - integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ== - dependencies: - locate-path "^2.0.0" - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-yarn-workspace-root2@1.2.16: - version "1.2.16" - resolved "https://registry.npmjs.org/find-yarn-workspace-root2/-/find-yarn-workspace-root2-1.2.16.tgz" - integrity sha512-hr6hb1w8ePMpPVUK39S4RlwJzi+xPLuVuG8XlwXU3KD5Yn3qgBWVfy3AzNlDhWvE1EORCE65/Qm26rFQt3VLVA== - dependencies: - micromatch "^4.0.2" - pkg-dir "^4.2.0" - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flat@^4.1.0: - version "4.1.1" - resolved "https://registry.npmjs.org/flat/-/flat-4.1.1.tgz" - integrity sha512-FmTtBsHskrU6FJ2VxCnsDb84wu9zhmO3cUX2kGFb5tuwhfXxGciiT0oRY+cck35QmG+NmGh5eLz6lLCpWTqwpA== - dependencies: - is-buffer "~2.0.3" - -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -flatted@^3.1.0: - version "3.2.7" - resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz" - integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== - -follow-redirects@^1.12.1: - version "1.15.2" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz" - integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== - -follow-redirects@^1.14.0, follow-redirects@^1.15.6: - version "1.15.6" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" - integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== - -follow-redirects@^1.15.4: - version "1.15.4" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz" - integrity sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw== - -for-each@^0.3.3: - version "0.3.3" - resolved "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz" - integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== - dependencies: - is-callable "^1.1.3" - -for-in@^1.0.1, for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz" - integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== - -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz" - integrity sha512-SKmowqGTJoPzLO1T0BBJpkfp3EMacCMOuH40hOUbrbzElVktk4DioXVM99QkLCyKoiuOmyjgcWMpVz2xjE7LZw== - dependencies: - for-in "^1.0.1" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz" - integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== - -form-data-encoder@^2.1.2: - version "2.1.4" - resolved "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.4.tgz" - integrity sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw== - -form-data@^2.2.0: - version "2.5.1" - resolved "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz" - integrity sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz" - integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -form-data@~2.3.2: - version "2.3.3" - resolved "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz" - integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - -fp-ts@1.19.3: - version "1.19.3" - resolved "https://registry.npmjs.org/fp-ts/-/fp-ts-1.19.3.tgz" - integrity sha512-H5KQDspykdHuztLTg+ajGN0Z2qUjcEf3Ybxc6hLt0k7/zPkn29XnKnxlBPyW2XIddWrGaJBzBl4VLYOtk39yZg== - -fp-ts@^1.0.0: - version "1.19.5" - resolved "https://registry.npmjs.org/fp-ts/-/fp-ts-1.19.5.tgz" - integrity sha512-wDNqTimnzs8QqpldiId9OavWK2NptormjXnRJTQecNjzwfyp6P/8s/zG8e4h3ja3oqkKaY72UlTjQYt/1yXf9A== - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz" - integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== - dependencies: - map-cache "^0.2.2" - -fs-extra@^7.0.0, fs-extra@^7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz" - integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw== - dependencies: - graceful-fs "^4.1.2" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs-extra@^9.1.0: - version "9.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" - integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== - dependencies: - at-least-node "^1.0.0" - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-readdir-recursive@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz" - integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@^1.0.0: - version "1.2.13" - resolved "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz" - integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== - dependencies: - bindings "^1.5.0" - nan "^2.12.1" - -fsevents@~2.1.1: - version "2.1.3" - resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz" - integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== - -fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -function.prototype.name@^1.1.5: - version "1.1.5" - resolved "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz" - integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.0" - functions-have-names "^1.2.2" - -function.prototype.name@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" - integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - functions-have-names "^1.2.3" - -functional-red-black-tree@^1.0.1, functional-red-black-tree@~1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" - integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== - -functions-have-names@^1.2.2, functions-have-names@^1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" - integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== - -ganache@7.4.3: - version "7.4.3" - resolved "https://registry.npmjs.org/ganache/-/ganache-7.4.3.tgz" - integrity sha512-RpEDUiCkqbouyE7+NMXG26ynZ+7sGiODU84Kz+FVoXUnQ4qQM4M8wif3Y4qUCt+D/eM1RVeGq0my62FPD6Y1KA== - dependencies: - "@trufflesuite/bigint-buffer" "1.1.10" - "@types/bn.js" "^5.1.0" - "@types/lru-cache" "5.1.1" - "@types/seedrandom" "3.0.1" - emittery "0.10.0" - keccak "3.0.2" - leveldown "6.1.0" - secp256k1 "4.0.3" - optionalDependencies: - bufferutil "4.0.5" - utf-8-validate "5.0.7" - -get-caller-file@^2.0.1, get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-func-name@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz" - integrity sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig== - -get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz" - integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.3" - -get-intrinsic@^1.2.1, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" - integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== - dependencies: - es-errors "^1.3.0" - function-bind "^1.1.2" - has-proto "^1.0.1" - has-symbols "^1.0.3" - hasown "^2.0.0" - -get-port@^3.1.0: - version "3.2.0" - resolved "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz" - integrity sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg== - -get-stream@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" - integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== - -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" - -get-symbol-description@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.2.tgz#533744d5aa20aca4e079c8e5daf7fd44202821f5" - integrity sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg== - dependencies: - call-bind "^1.0.5" - es-errors "^1.3.0" - get-intrinsic "^1.2.4" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz" - integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz" - integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== - dependencies: - assert-plus "^1.0.0" - -ghost-testrpc@^0.0.2: - version "0.0.2" - resolved "https://registry.npmjs.org/ghost-testrpc/-/ghost-testrpc-0.0.2.tgz" - integrity sha512-i08dAEgJ2g8z5buJIrCTduwPIhih3DP+hOCTyyryikfV8T0bNvHnGXO67i0DD1H4GBDETTclPy9njZbfluQYrQ== - dependencies: - chalk "^2.4.2" - node-emoji "^1.10.0" - -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz" - integrity sha512-ab1S1g1EbO7YzauaJLkgLp7DZVAqj9M/dvKlTt8DkXA2tiOIcSMrlVI2J1RZyB5iJVccEscjGn+kpOG9788MHA== - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz" - integrity sha512-JDYOvfxio/t42HKdxkAYaCiBN7oYiuxykOxKxdaUW5Qn0zaYN3gRQWolrwdnf0shM9/EP0ebuuTmyoXNr1cC5w== - dependencies: - is-glob "^2.0.0" - -glob-parent@^5.1.2, glob-parent@~5.1.0, glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob2base@^0.0.12: - version "0.0.12" - resolved "https://registry.npmjs.org/glob2base/-/glob2base-0.0.12.tgz" - integrity sha512-ZyqlgowMbfj2NPjxaZZ/EtsXlOch28FRXgMd64vqZWk1bT9+wvSRLYD1om9M7QfQru51zJPAT17qXm4/zd+9QA== - dependencies: - find-index "^0.1.1" - -glob@7.1.3: - version "7.1.3" - resolved "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz" - integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@7.1.7: - version "7.1.7" - resolved "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz" - integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^5.0.15: - version "5.0.15" - resolved "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz" - integrity sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA== - dependencies: - inflight "^1.0.4" - inherits "2" - minimatch "2 || 3" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.0.0, glob@^7.0.5, glob@^7.1.3, glob@^7.2.0: - version "7.2.3" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^8.0.3: - version "8.1.0" - resolved "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz" - integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^5.0.1" - once "^1.3.0" - -global-modules@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz" - integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== - dependencies: - global-prefix "^3.0.0" - -global-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz" - integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== - dependencies: - ini "^1.3.5" - kind-of "^6.0.2" - which "^1.3.1" - -globals@^13.19.0: - version "13.20.0" - resolved "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz" - integrity sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ== - dependencies: - type-fest "^0.20.2" - -globalthis@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz" - integrity sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA== - dependencies: - define-properties "^1.1.3" - -globby@^10.0.1: - version "10.0.2" - resolved "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz" - integrity sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg== - dependencies: - "@types/glob" "^7.1.1" - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.0.3" - glob "^7.1.3" - ignore "^5.1.1" - merge2 "^1.2.3" - slash "^3.0.0" - -globby@^11.0.0, globby@^11.1.0: - version "11.1.0" - resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -globby@^13.1.2: - version "13.2.0" - resolved "https://registry.npmjs.org/globby/-/globby-13.2.0.tgz" - integrity sha512-jWsQfayf13NvqKUIL3Ta+CIqMnvlaIDFveWE/dpOZ9+3AMEJozsxDvKA02zync9UuvOM8rOXzsD5GqKP4OnWPQ== - dependencies: - dir-glob "^3.0.1" - fast-glob "^3.2.11" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^4.0.0" - -gopd@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz" - integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== - dependencies: - get-intrinsic "^1.1.3" - -got@^12.1.0: - version "12.6.1" - resolved "https://registry.npmjs.org/got/-/got-12.6.1.tgz" - integrity sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ== - dependencies: - "@sindresorhus/is" "^5.2.0" - "@szmarczak/http-timer" "^5.0.1" - cacheable-lookup "^7.0.0" - cacheable-request "^10.2.8" - decompress-response "^6.0.0" - form-data-encoder "^2.1.2" - get-stream "^6.0.1" - http2-wrapper "^2.1.10" - lowercase-keys "^3.0.0" - p-cancelable "^3.0.0" - responselike "^3.0.0" - -graceful-fs@4.2.10: - version "4.2.10" - resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz" - integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== - -graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.5, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.10, graceful-fs@^4.2.4: - version "4.2.11" - resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz" - integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== - -grapheme-splitter@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz" - integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== - -growl@1.10.5: - version "1.10.5" - resolved "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz" - integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== - -handlebars@^4.0.1: - version "4.7.7" - resolved "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz" - integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== - dependencies: - minimist "^1.2.5" - neo-async "^2.6.0" - source-map "^0.6.1" - wordwrap "^1.0.0" - optionalDependencies: - uglify-js "^3.1.4" - -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz" - integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== - -har-validator@~5.1.3: - version "5.1.5" - resolved "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz" - integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== - dependencies: - ajv "^6.12.3" - har-schema "^2.0.0" - -hard-rejection@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz" - integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== - -hardhat-abi-exporter@^2.10.1: - version "2.10.1" - resolved "https://registry.npmjs.org/hardhat-abi-exporter/-/hardhat-abi-exporter-2.10.1.tgz" - integrity sha512-X8GRxUTtebMAd2k4fcPyVnCdPa6dYK4lBsrwzKP5yiSq4i+WadWPIumaLfce53TUf/o2TnLpLOduyO1ylE2NHQ== - dependencies: - "@ethersproject/abi" "^5.5.0" - delete-empty "^3.0.0" - -hardhat-gas-reporter@^1.0.9: - version "1.0.9" - resolved "https://registry.npmjs.org/hardhat-gas-reporter/-/hardhat-gas-reporter-1.0.9.tgz" - integrity sha512-INN26G3EW43adGKBNzYWOlI3+rlLnasXTwW79YNnUhXPDa+yHESgt639dJEs37gCjhkbNKcRRJnomXEuMFBXJg== - dependencies: - array-uniq "1.0.3" - eth-gas-reporter "^0.2.25" - sha1 "^1.1.1" - -hardhat@^2.17.2: - version "2.22.6" - resolved "https://registry.yarnpkg.com/hardhat/-/hardhat-2.22.6.tgz#d73caece246cd8219a1815554dabc31d400fa035" - integrity sha512-abFEnd9QACwEtSvZZGSmzvw7N3zhQN1cDKz5SLHAupfG24qTHofCjqvD5kT5Wwsq5XOL0ON1Mq5rr4v0XX5ciw== - dependencies: - "@ethersproject/abi" "^5.1.2" - "@metamask/eth-sig-util" "^4.0.0" - "@nomicfoundation/edr" "^0.4.1" - "@nomicfoundation/ethereumjs-common" "4.0.4" - "@nomicfoundation/ethereumjs-tx" "5.0.4" - "@nomicfoundation/ethereumjs-util" "9.0.4" - "@nomicfoundation/solidity-analyzer" "^0.1.0" - "@sentry/node" "^5.18.1" - "@types/bn.js" "^5.1.0" - "@types/lru-cache" "^5.1.0" - adm-zip "^0.4.16" - aggregate-error "^3.0.0" - ansi-escapes "^4.3.0" - boxen "^5.1.2" - chalk "^2.4.2" - chokidar "^3.4.0" - ci-info "^2.0.0" - debug "^4.1.1" - enquirer "^2.3.0" - env-paths "^2.2.0" - ethereum-cryptography "^1.0.3" - ethereumjs-abi "^0.6.8" - find-up "^2.1.0" - fp-ts "1.19.3" - fs-extra "^7.0.1" - glob "7.2.0" - immutable "^4.0.0-rc.12" - io-ts "1.10.4" - keccak "^3.0.2" - lodash "^4.17.11" - mnemonist "^0.38.0" - mocha "^10.0.0" - p-map "^4.0.0" - raw-body "^2.4.1" - resolve "1.17.0" - semver "^6.3.0" - solc "0.8.26" - source-map-support "^0.5.13" - stacktrace-parser "^0.1.10" - tsort "0.0.1" - undici "^5.14.0" - uuid "^8.3.2" - ws "^7.4.6" - -has-bigints@^1.0.1, has-bigints@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz" - integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== - -has-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz" - integrity sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" - integrity sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ== - dependencies: - get-intrinsic "^1.1.1" - -has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz" - integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== - -has-proto@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" - integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== - -has-symbols@^1.0.0, has-symbols@^1.0.2, has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -has-tostringtag@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" - integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== - dependencies: - has-symbols "^1.0.2" - -has-tostringtag@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" - integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== - dependencies: - has-symbols "^1.0.3" - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz" - integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz" - integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz" - integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz" - integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" - -hash-base@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz" - integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== - dependencies: - inherits "^2.0.4" - readable-stream "^3.6.0" - safe-buffer "^5.2.0" - -hash.js@1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz" - integrity sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA== - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.0" - -hash.js@1.1.7, hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7: - version "1.1.7" - resolved "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz" - integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== - dependencies: - inherits "^2.0.3" - minimalistic-assert "^1.0.1" - -hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" - integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== - dependencies: - function-bind "^1.1.2" - -he@1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz" - integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== - -"heap@>= 0.2.0": - version "0.2.7" - resolved "https://registry.yarnpkg.com/heap/-/heap-0.2.7.tgz#1e6adf711d3f27ce35a81fe3b7bd576c2260a8fc" - integrity sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg== - -hmac-drbg@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz" - integrity sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg== - dependencies: - hash.js "^1.0.3" - minimalistic-assert "^1.0.0" - minimalistic-crypto-utils "^1.0.1" - -hosted-git-info@^2.1.4, hosted-git-info@^2.6.0: - version "2.8.9" - resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -hosted-git-info@^4.0.1: - version "4.1.0" - resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz" - integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== - dependencies: - lru-cache "^6.0.0" - -http-basic@^8.1.1: - version "8.1.3" - resolved "https://registry.npmjs.org/http-basic/-/http-basic-8.1.3.tgz" - integrity sha512-/EcDMwJZh3mABI2NhGfHOGOeOZITqfkEO4p/xK+l3NpyncIHUQBoMvCSF/b5GqvKtySC2srL/GGG3+EtlqlmCw== - dependencies: - caseless "^0.12.0" - concat-stream "^1.6.2" - http-response-object "^3.0.1" - parse-cache-control "^1.0.1" - -http-cache-semantics@^4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz" - integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== - -http-errors@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz" - integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== - dependencies: - depd "2.0.0" - inherits "2.0.4" - setprototypeof "1.2.0" - statuses "2.0.1" - toidentifier "1.0.1" - -http-response-object@^3.0.1: - version "3.0.2" - resolved "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.2.tgz" - integrity sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA== - dependencies: - "@types/node" "^10.0.3" - -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz" - integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== - dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -http2-wrapper@^2.1.10: - version "2.2.1" - resolved "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.1.tgz" - integrity sha512-V5nVw1PAOgfI3Lmeaj2Exmeg7fenjhRUgz1lPSezy1CuhPYbgQtbQj4jZfEAEMlaL+vupsvhjqCyjzob0yxsmQ== - dependencies: - quick-lru "^5.1.1" - resolve-alpn "^1.2.0" - -https-proxy-agent@^5.0.0: - version "5.0.1" - resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz" - integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== - dependencies: - agent-base "6" - debug "4" - -human-id@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/human-id/-/human-id-1.0.2.tgz" - integrity sha512-UNopramDEhHJD+VR+ehk8rOslwSfByxPIZyJRfV739NDhN5LF1fa1MqnzKm2lGTQRjNrjK19Q5fhkgIfjlVUKw== - -iconv-lite@0.4.24, iconv-lite@^0.4.24: - version "0.4.24" - resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -ieee754@^1.1.13, ieee754@^1.1.4, ieee754@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" - integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== - -ignore@^5.1.1, ignore@^5.2.0, ignore@^5.2.4: - version "5.2.4" - resolved "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz" - integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== - -immediate@^3.2.3: - version "3.3.0" - resolved "https://registry.npmjs.org/immediate/-/immediate-3.3.0.tgz" - integrity sha512-HR7EVodfFUdQCTIeySw+WDRFJlPcLOJbXfwwZ7Oom6tjsvZ3bOkCDJHehQC3nxJrv7+f9XecwazynjU8e4Vw3Q== - -immediate@~3.2.3: - version "3.2.3" - resolved "https://registry.npmjs.org/immediate/-/immediate-3.2.3.tgz" - integrity sha512-RrGCXRm/fRVqMIhqXrGEX9rRADavPiDFSoMb/k64i9XMk8uH4r/Omi5Ctierj6XzNecwDbO4WuFbDD1zmpl3Tg== - -immutable@^4.0.0-rc.12: - version "4.3.0" - resolved "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz" - integrity sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg== - -import-fresh@^3.0.0, import-fresh@^3.2.1, import-fresh@^3.3.0: - version "3.3.0" - resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -indent-string@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" - integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== - -indent-string@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz" - integrity sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: - version "1.3.8" - resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz" - integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== - -inquirer@^8.2.4: - version "8.2.5" - resolved "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz" - integrity sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ== - dependencies: - ansi-escapes "^4.2.1" - chalk "^4.1.1" - cli-cursor "^3.1.0" - cli-width "^3.0.0" - external-editor "^3.0.3" - figures "^3.0.0" - lodash "^4.17.21" - mute-stream "0.0.8" - ora "^5.4.1" - run-async "^2.4.0" - rxjs "^7.5.5" - string-width "^4.1.0" - strip-ansi "^6.0.0" - through "^2.3.6" - wrap-ansi "^7.0.0" - -internal-slot@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz" - integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== - dependencies: - get-intrinsic "^1.2.0" - has "^1.0.3" - side-channel "^1.0.4" - -internal-slot@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802" - integrity sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g== - dependencies: - es-errors "^1.3.0" - hasown "^2.0.0" - side-channel "^1.0.4" - -interpret@^1.0.0: - version "1.4.0" - resolved "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - -io-ts@1.10.4: - version "1.10.4" - resolved "https://registry.npmjs.org/io-ts/-/io-ts-1.10.4.tgz" - integrity sha512-b23PteSnYXSONJ6JQXRAlvJhuw8KOtkqa87W4wDtvMrud/DTJd5X+NpOOI+O/zZwVq6v0VLAaJ+1EDViKEuN9g== - dependencies: - fp-ts "^1.0.0" - -is-accessor-descriptor@^0.1.6: - version "0.1.6" - resolved "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz" - integrity sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A== - dependencies: - kind-of "^3.0.2" - -is-accessor-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz" - integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== - dependencies: - kind-of "^6.0.0" - -is-array-buffer@^3.0.1, is-array-buffer@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz" - integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.0" - is-typed-array "^1.1.10" - -is-array-buffer@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98" - integrity sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.1" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== - -is-bigint@^1.0.1: - version "1.0.4" - resolved "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz" - integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== - dependencies: - has-bigints "^1.0.1" - -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz" - integrity sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q== - dependencies: - binary-extensions "^1.0.0" - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-boolean-object@^1.1.0: - version "1.1.2" - resolved "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz" - integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-buffer@^2.0.5, is-buffer@~2.0.3: - version "2.0.5" - resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz" - integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== - -is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: - version "1.2.7" - resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" - integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== - -is-ci@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz" - integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ== - dependencies: - ci-info "^3.2.0" - -is-core-module@^2.11.0, is-core-module@^2.12.0: - version "2.12.0" - resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.0.tgz" - integrity sha512-RECHCBCd/viahWmwj6enj19sKbHfJrddi/6cBDsNTKbNq0f7VeaUkBo60BqzvPqo/W54ChS62Z5qyun7cfOMqQ== - dependencies: - has "^1.0.3" - -is-core-module@^2.5.0: - version "2.12.1" - resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz" - integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== - dependencies: - has "^1.0.3" - -is-data-descriptor@^0.1.4: - version "0.1.4" - resolved "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz" - integrity sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg== - dependencies: - kind-of "^3.0.2" - -is-data-descriptor@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz" - integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== - dependencies: - kind-of "^6.0.0" - -is-data-view@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-data-view/-/is-data-view-1.0.1.tgz#4b4d3a511b70f3dc26d42c03ca9ca515d847759f" - integrity sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w== - dependencies: - is-typed-array "^1.1.13" - -is-date-object@^1.0.1: - version "1.0.5" - resolved "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz" - integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== - dependencies: - has-tostringtag "^1.0.0" - -is-descriptor@^0.1.0: - version "0.1.6" - resolved "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz" - integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== - dependencies: - is-accessor-descriptor "^0.1.6" - is-data-descriptor "^0.1.4" - kind-of "^5.0.0" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz" - integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== - dependencies: - is-accessor-descriptor "^1.0.0" - is-data-descriptor "^1.0.0" - kind-of "^6.0.2" - -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz" - integrity sha512-9YclgOGtN/f8zx0Pr4FQYMdibBiTaH3sn52vjYip4ZSf6C4/6RfTEZ+MR4GvKhCxdPh21Bg42/WL55f6KSnKpg== - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz" - integrity sha512-0EygVC5qPvIyb+gSz7zdD5/AAoS6Qrx1e//6N4yv4oNm30kqvdmG66oZFWVlQHUWe5OjP08FuTw2IdT0EOTcYA== - dependencies: - is-primitive "^2.0.0" - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz" - integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz" - integrity sha512-7Q+VbVafe6x2T+Tu6NcOf6sRklazEPmBoB3IWk3WdGZM2iGUwU/Oe3Wtq5lSEkDTTlpp8yx+5t4pzO/i9Ty1ww== - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" - integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz" - integrity sha512-a1dBeB19NXsf/E0+FHqkagizel/LQw2DjSQpvQrj3zT+jYPpaUCryPnrQajXKFLCMuf4I6FhRpaGtw4lPrG6Eg== - dependencies: - is-extglob "^1.0.0" - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-hex-prefixed@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz" - integrity sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA== - -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - -is-negative-zero@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" - integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== - -is-negative-zero@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz#ced903a027aca6381b777a5743069d7376a49747" - integrity sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw== - -is-number-object@^1.0.4: - version "1.0.7" - resolved "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz" - integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== - dependencies: - has-tostringtag "^1.0.0" - -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz" - integrity sha512-QUzH43Gfb9+5yckcrSA0VBDwEtDUchrk4F6tfJZQuNzDJbEDB9cZNzSfXGQ1jqmdDY/kl41lUOWM9syA8z8jlg== - dependencies: - kind-of "^3.0.2" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz" - integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== - dependencies: - kind-of "^3.0.2" - -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz" - integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-path-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-3.0.0.tgz" - integrity sha512-kyiNFFLU0Ampr6SDZitD/DwUo4Zs1nSdnygUBqsu3LooL00Qvb5j+UnvApUn/TTj1J3OuE6BTdQ5rudKmU2ZaA== - -is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - -is-path-inside@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-4.0.0.tgz" - integrity sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA== - -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz" - integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== - -is-plain-obj@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz" - integrity sha512-Yu68oeXJ7LeWNmZ3Zov/xg/oDBnBK2RNxwYY1ilNJX+tKKZqgPK+qOn/Gs9jEu66KDY9Netf5XLKNGzas/vPfQ== - -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz" - integrity sha512-N3w1tFaRfk3UrPfqeRyD+GYDASU3W5VinKhlORy8EWVf/sIdDL9GAcew85XmktCfH+ngG7SRXEVDoO18WMdB/Q== - -is-regex@^1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" - integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-shared-array-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz" - integrity sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA== - dependencies: - call-bind "^1.0.2" - -is-shared-array-buffer@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz#1237f1cba059cdb62431d378dcc37d9680181688" - integrity sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg== - dependencies: - call-bind "^1.0.7" - -is-string@^1.0.5, is-string@^1.0.7: - version "1.0.7" - resolved "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" - integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== - dependencies: - has-tostringtag "^1.0.0" - -is-subdir@^1.1.1: - version "1.2.0" - resolved "https://registry.npmjs.org/is-subdir/-/is-subdir-1.2.0.tgz" - integrity sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw== - dependencies: - better-path-resolve "1.0.0" - -is-symbol@^1.0.2, is-symbol@^1.0.3: - version "1.0.4" - resolved "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz" - integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== - dependencies: - has-symbols "^1.0.2" - -is-typed-array@^1.1.10, is-typed-array@^1.1.9: - version "1.1.10" - resolved "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz" - integrity sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A== - dependencies: - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" - for-each "^0.3.3" - gopd "^1.0.1" - has-tostringtag "^1.0.0" - -is-typed-array@^1.1.13: - version "1.1.13" - resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.13.tgz#d6c5ca56df62334959322d7d7dd1cca50debe229" - integrity sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw== - dependencies: - which-typed-array "^1.1.14" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -is-url@^1.2.4: - version "1.2.4" - resolved "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz" - integrity sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww== - -is-weakref@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz" - integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== - dependencies: - call-bind "^1.0.2" - -is-windows@^1.0.0, is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== - -isarray@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" - integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz" - integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== - -isomorphic-unfetch@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/isomorphic-unfetch/-/isomorphic-unfetch-3.1.0.tgz#87341d5f4f7b63843d468438128cb087b7c3e98f" - integrity sha512-geDJjpoZ8N0kWexiwkX8F9NkTsXhetLPVbZFQ+JTW239QNOwvB0gniuR1Wc6f0AMTn7/mFGyXvHTifrCp/GH8Q== - dependencies: - node-fetch "^2.6.1" - unfetch "^4.2.0" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz" - integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== - -joi@^17.11.0: - version "17.13.3" - resolved "https://registry.yarnpkg.com/joi/-/joi-17.13.3.tgz#0f5cc1169c999b30d344366d384b12d92558bcec" - integrity sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA== - dependencies: - "@hapi/hoek" "^9.3.0" - "@hapi/topo" "^5.1.0" - "@sideway/address" "^4.1.5" - "@sideway/formula" "^3.0.1" - "@sideway/pinpoint" "^2.0.0" - -js-cookie@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/js-cookie/-/js-cookie-2.2.1.tgz#69e106dc5d5806894562902aa5baec3744e9b2b8" - integrity sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ== - -js-sdsl@^4.1.4: - version "4.4.0" - resolved "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz" - integrity sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg== - -js-sha3@0.5.7: - version "0.5.7" - resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz" - integrity sha512-GII20kjaPX0zJ8wzkTbNDYMY7msuZcTWk8S5UOh6806Jq/wz1J8/bnr8uGU0DAUmYDjj2Mr4X1cW8v/GLYnR+g== - -js-sha3@0.8.0, js-sha3@^0.8.0: - version "0.8.0" - resolved "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz" - integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== - -js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@3.13.1: - version "3.13.1" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz" - integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -js-yaml@3.x, js-yaml@^3.13.0, js-yaml@^3.13.1, js-yaml@^3.6.1: - version "3.14.1" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -js-yaml@4.1.0, js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz" - integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== - -json-bigint@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz" - integrity sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ== - dependencies: - bignumber.js "^9.0.0" - -json-buffer@3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz" - integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== - -json-parse-even-better-errors@^2.3.0: - version "2.3.1" - resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - -json-schema@0.4.0, json-schema@^0.4.0: - version "0.4.0" - resolved "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz" - integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" - integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== - -json5@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz" - integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== - dependencies: - minimist "^1.2.0" - -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" - integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== - optionalDependencies: - graceful-fs "^4.1.6" - -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== - dependencies: - universalify "^2.0.0" - optionalDependencies: - graceful-fs "^4.1.6" - -jsonschema@^1.2.4: - version "1.4.1" - resolved "https://registry.npmjs.org/jsonschema/-/jsonschema-1.4.1.tgz" - integrity sha512-S6cATIPVv1z0IlxdN+zUk5EPjkGCdnhN4wVSBlvoUO1tOLJootbo9CquNJmbIh4yikWHiUedhRYrNPn1arpEmQ== - -jsprim@^1.2.2: - version "1.4.2" - resolved "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz" - integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.4.0" - verror "1.10.0" - -keccak@3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/keccak/-/keccak-3.0.1.tgz" - integrity sha512-epq90L9jlFWCW7+pQa6JOnKn2Xgl2mtI664seYR6MHskvI9agt7AnDqmAlp9TqU4/caMYbA08Hi5DMZAl5zdkA== - dependencies: - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - -keccak@3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/keccak/-/keccak-3.0.2.tgz" - integrity sha512-PyKKjkH53wDMLGrvmRGSNWgmSxZOUqbnXwKL9tmgbFYA1iAYqW21kfR7mZXV0MlESiefxQQE9X9fTa3X+2MPDQ== - dependencies: - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - readable-stream "^3.6.0" - -keccak@^1.0.2: - version "1.4.0" - resolved "https://registry.npmjs.org/keccak/-/keccak-1.4.0.tgz" - integrity sha512-eZVaCpblK5formjPjeTBik7TAg+pqnDrMHIffSvi9Lh7PQgM1+hSzakUeZFCk9DVVG0dacZJuaz2ntwlzZUIBw== - dependencies: - bindings "^1.2.1" - inherits "^2.0.3" - nan "^2.2.1" - safe-buffer "^5.1.0" - -keccak@^3.0.0, keccak@^3.0.2: - version "3.0.3" - resolved "https://registry.npmjs.org/keccak/-/keccak-3.0.3.tgz" - integrity sha512-JZrLIAJWuZxKbCilMpNz5Vj7Vtb4scDG3dMXLOsbzBmQGyjwE61BbW7bJkfKKCShXiQZt3T6sBgALRtmd+nZaQ== - dependencies: - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - readable-stream "^3.6.0" - -keyv@^4.5.3: - version "4.5.4" - resolved "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz" - integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== - dependencies: - json-buffer "3.0.1" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz" - integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz" - integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== - dependencies: - is-buffer "^1.1.5" - -kind-of@^5.0.0: - version "5.1.0" - resolved "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz" - integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== - -kind-of@^6.0.0, kind-of@^6.0.2, kind-of@^6.0.3: - version "6.0.3" - resolved "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -kleur@^4.1.5: - version "4.1.5" - resolved "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz" - integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ== - -latest-version@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz" - integrity sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg== - dependencies: - package-json "^8.1.0" - -level-codec@^9.0.0: - version "9.0.2" - resolved "https://registry.npmjs.org/level-codec/-/level-codec-9.0.2.tgz" - integrity sha512-UyIwNb1lJBChJnGfjmO0OR+ezh2iVu1Kas3nvBS/BzGnx79dv6g7unpKIDNPMhfdTEGoc7mC8uAu51XEtX+FHQ== - dependencies: - buffer "^5.6.0" - -level-concat-iterator@^3.0.0: - version "3.1.0" - resolved "https://registry.npmjs.org/level-concat-iterator/-/level-concat-iterator-3.1.0.tgz" - integrity sha512-BWRCMHBxbIqPxJ8vHOvKUsaO0v1sLYZtjN3K2iZJsRBYtp+ONsY6Jfi6hy9K3+zolgQRryhIn2NRZjZnWJ9NmQ== - dependencies: - catering "^2.1.0" - -level-concat-iterator@~2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/level-concat-iterator/-/level-concat-iterator-2.0.1.tgz" - integrity sha512-OTKKOqeav2QWcERMJR7IS9CUo1sHnke2C0gkSmcR7QuEtFNLLzHQAvnMw8ykvEcv0Qtkg0p7FOwP1v9e5Smdcw== - -level-errors@^2.0.0, level-errors@~2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/level-errors/-/level-errors-2.0.1.tgz" - integrity sha512-UVprBJXite4gPS+3VznfgDSU8PTRuVX0NXwoWW50KLxd2yw4Y1t2JUR5In1itQnudZqRMT9DlAM3Q//9NCjCFw== - dependencies: - errno "~0.1.1" - -level-iterator-stream@~4.0.0: - version "4.0.2" - resolved "https://registry.npmjs.org/level-iterator-stream/-/level-iterator-stream-4.0.2.tgz" - integrity sha512-ZSthfEqzGSOMWoUGhTXdX9jv26d32XJuHz/5YnuHZzH6wldfWMOVwI9TBtKcya4BKTyTt3XVA0A3cF3q5CY30Q== - dependencies: - inherits "^2.0.4" - readable-stream "^3.4.0" - xtend "^4.0.2" - -level-mem@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/level-mem/-/level-mem-5.0.1.tgz" - integrity sha512-qd+qUJHXsGSFoHTziptAKXoLX87QjR7v2KMbqncDXPxQuCdsQlzmyX+gwrEHhlzn08vkf8TyipYyMmiC6Gobzg== - dependencies: - level-packager "^5.0.3" - memdown "^5.0.0" - -level-packager@^5.0.3: - version "5.1.1" - resolved "https://registry.npmjs.org/level-packager/-/level-packager-5.1.1.tgz" - integrity sha512-HMwMaQPlTC1IlcwT3+swhqf/NUO+ZhXVz6TY1zZIIZlIR0YSn8GtAAWmIvKjNY16ZkEg/JcpAuQskxsXqC0yOQ== - dependencies: - encoding-down "^6.3.0" - levelup "^4.3.2" - -level-supports@^2.0.1: - version "2.1.0" - resolved "https://registry.npmjs.org/level-supports/-/level-supports-2.1.0.tgz" - integrity sha512-E486g1NCjW5cF78KGPrMDRBYzPuueMZ6VBXHT6gC7A8UYWGiM14fGgp+s/L1oFfDWSPV/+SFkYCmZ0SiESkRKA== - -level-supports@~1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/level-supports/-/level-supports-1.0.1.tgz" - integrity sha512-rXM7GYnW8gsl1vedTJIbzOrRv85c/2uCMpiiCzO2fndd06U/kUXEEU9evYn4zFggBOg36IsBW8LzqIpETwwQzg== - dependencies: - xtend "^4.0.2" - -level-ws@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/level-ws/-/level-ws-2.0.0.tgz" - integrity sha512-1iv7VXx0G9ec1isqQZ7y5LmoZo/ewAsyDHNA8EFDW5hqH2Kqovm33nSFkSdnLLAK+I5FlT+lo5Cw9itGe+CpQA== - dependencies: - inherits "^2.0.3" - readable-stream "^3.1.0" - xtend "^4.0.1" - -leveldown@6.1.0: - version "6.1.0" - resolved "https://registry.npmjs.org/leveldown/-/leveldown-6.1.0.tgz" - integrity sha512-8C7oJDT44JXxh04aSSsfcMI8YiaGRhOFI9/pMEL7nWJLVsWajDPTRxsSHTM2WcTVY5nXM+SuRHzPPi0GbnDX+w== - dependencies: - abstract-leveldown "^7.2.0" - napi-macros "~2.0.0" - node-gyp-build "^4.3.0" - -levelup@^4.3.2: - version "4.4.0" - resolved "https://registry.npmjs.org/levelup/-/levelup-4.4.0.tgz" - integrity sha512-94++VFO3qN95cM/d6eBXvd894oJE0w3cInq9USsyQzzoJxmiYzPAocNcuGCPGGjoXqDVJcr3C1jzt1TSjyaiLQ== - dependencies: - deferred-leveldown "~5.3.0" - level-errors "~2.0.0" - level-iterator-stream "~4.0.0" - level-supports "~1.0.0" - xtend "~4.0.0" - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz" - integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - -load-yaml-file@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/load-yaml-file/-/load-yaml-file-0.2.0.tgz" - integrity sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw== - dependencies: - graceful-fs "^4.1.5" - js-yaml "^3.13.0" - pify "^4.0.1" - strip-bom "^3.0.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz" - integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA== - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -locate-path@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz" - integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== - dependencies: - p-locate "^3.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -lodash.camelcase@^4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz" - integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA== - -lodash.clonedeep@^4.5.0: - version "4.5.0" - resolved "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz" - integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ== - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -lodash.startcase@^4.4.0: - version "4.4.0" - resolved "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz" - integrity sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg== - -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz" - integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== - -lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.16, lodash@^4.17.19, lodash@^4.17.21: - version "4.17.21" - resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -log-symbols@3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz" - integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== - dependencies: - chalk "^2.4.2" - -log-symbols@4.1.0, log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -loupe@^2.3.1: - version "2.3.6" - resolved "https://registry.npmjs.org/loupe/-/loupe-2.3.6.tgz" - integrity sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA== - dependencies: - get-func-name "^2.0.0" - -lowercase-keys@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz" - integrity sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ== - -lru-cache@^4.0.1: - version "4.1.5" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz" - integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== - dependencies: - pseudomap "^1.0.2" - yallist "^2.1.2" - -lru-cache@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" - integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== - dependencies: - yallist "^3.0.2" - -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -lru_map@^0.3.3: - version "0.3.3" - resolved "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz" - integrity sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ== - -ltgt@~2.2.0: - version "2.2.1" - resolved "https://registry.npmjs.org/ltgt/-/ltgt-2.2.1.tgz" - integrity sha512-AI2r85+4MquTw9ZYqabu4nMwy9Oftlfa/e/52t9IjtfG+mGBbTNdAoZ3RQKLHR6r0wQnwZnPIEh/Ya6XTWAKNA== - -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz" - integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== - -map-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz" - integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== - -map-obj@^4.0.0, map-obj@^4.1.0: - version "4.3.0" - resolved "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz" - integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz" - integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== - dependencies: - object-visit "^1.0.0" - -markdown-table@^1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/markdown-table/-/markdown-table-1.1.3.tgz" - integrity sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q== - -math-random@^1.0.1: - version "1.0.4" - resolved "https://registry.npmjs.org/math-random/-/math-random-1.0.4.tgz" - integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== - -mcl-wasm@^0.7.1: - version "0.7.9" - resolved "https://registry.npmjs.org/mcl-wasm/-/mcl-wasm-0.7.9.tgz" - integrity sha512-iJIUcQWA88IJB/5L15GnJVnSQJmf/YaxxV6zRavv83HILHaJQb6y0iFyDMdDO0gN8X37tdxmAOrH/P8B6RB8sQ== - -md5.js@^1.3.4: - version "1.3.5" - resolved "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz" - integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - safe-buffer "^5.1.2" - -memdown@^5.0.0: - version "5.1.0" - resolved "https://registry.npmjs.org/memdown/-/memdown-5.1.0.tgz" - integrity sha512-B3J+UizMRAlEArDjWHTMmadet+UKwHd3UjMgGBkZcKAxAYVPS9o0Yeiha4qvz7iGiL2Sb3igUft6p7nbFWctpw== - dependencies: - abstract-leveldown "~6.2.1" - functional-red-black-tree "~1.0.1" - immediate "~3.2.3" - inherits "~2.0.1" - ltgt "~2.2.0" - safe-buffer "~5.2.0" - -memorystream@^0.3.1: - version "0.3.1" - resolved "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz" - integrity sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw== - -meow@^10.1.3: - version "10.1.5" - resolved "https://registry.npmjs.org/meow/-/meow-10.1.5.tgz" - integrity sha512-/d+PQ4GKmGvM9Bee/DPa8z3mXs/pkvJE2KEThngVNOqtmljC6K7NMPxtc2JeZYTmpWb9k/TmxjeL18ez3h7vCw== - dependencies: - "@types/minimist" "^1.2.2" - camelcase-keys "^7.0.0" - decamelize "^5.0.0" - decamelize-keys "^1.1.0" - hard-rejection "^2.1.0" - minimist-options "4.1.0" - normalize-package-data "^3.0.2" - read-pkg-up "^8.0.0" - redent "^4.0.0" - trim-newlines "^4.0.2" - type-fest "^1.2.2" - yargs-parser "^20.2.9" - -meow@^6.0.0: - version "6.1.1" - resolved "https://registry.npmjs.org/meow/-/meow-6.1.1.tgz" - integrity sha512-3YffViIt2QWgTy6Pale5QpopX/IvU3LPL03jOTqp6pGj3VjesdO/U8CuHMKpnQr4shCNCM5fd5XFFvIIl6JBHg== - dependencies: - "@types/minimist" "^1.2.0" - camelcase-keys "^6.2.2" - decamelize-keys "^1.1.0" - hard-rejection "^2.1.0" - minimist-options "^4.0.2" - normalize-package-data "^2.5.0" - read-pkg-up "^7.0.1" - redent "^3.0.0" - trim-newlines "^3.0.0" - type-fest "^0.13.1" - yargs-parser "^18.1.3" - -merge2@^1.2.3, merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -merkle-patricia-tree@^4.2.2, merkle-patricia-tree@^4.2.4: - version "4.2.4" - resolved "https://registry.npmjs.org/merkle-patricia-tree/-/merkle-patricia-tree-4.2.4.tgz" - integrity sha512-eHbf/BG6eGNsqqfbLED9rIqbsF4+sykEaBn6OLNs71tjclbMcMOk1tEPmJKcNcNCLkvbpY/lwyOlizWsqPNo8w== - dependencies: - "@types/levelup" "^4.3.0" - ethereumjs-util "^7.1.4" - level-mem "^5.0.1" - level-ws "^2.0.0" - readable-stream "^3.6.0" - semaphore-async-await "^1.5.1" - -micro-ftch@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/micro-ftch/-/micro-ftch-0.3.1.tgz#6cb83388de4c1f279a034fb0cf96dfc050853c5f" - integrity sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg== - -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz" - integrity sha512-LnU2XFEk9xxSJ6rfgAry/ty5qwUTyHYOBU0g4R6tIw5ljwgGIBmiKhRWLw5NpMOnrgUNcDJ4WMp8rl3sYVHLNA== - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -micromatch@^4.0.2, micromatch@^4.0.4: - version "4.0.5" - resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - -miller-rabin@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz" - integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA== - dependencies: - bn.js "^4.0.0" - brorand "^1.0.1" - -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@^2.1.12, mime-types@~2.1.19: - version "2.1.35" - resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -mimic-response@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz" - integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== - -mimic-response@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz" - integrity sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg== - -min-indent@^1.0.0, min-indent@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz" - integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== - -minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz" - integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== - -minimalistic-crypto-utils@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz" - integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== - -"minimatch@2 || 3", minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== - dependencies: - brace-expansion "^1.1.7" - -minimatch@5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz" - integrity sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g== - dependencies: - brace-expansion "^2.0.1" - -minimatch@^5.0.1: - version "5.1.6" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz" - integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== - dependencies: - brace-expansion "^2.0.1" - -minimist-options@4.1.0, minimist-options@^4.0.2: - version "4.1.0" - resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz" - integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - kind-of "^6.0.3" - -minimist@^1.1.0, minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.7, minimist@^1.2.8: - version "1.2.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mixme@^0.5.1: - version "0.5.9" - resolved "https://registry.npmjs.org/mixme/-/mixme-0.5.9.tgz" - integrity sha512-VC5fg6ySUscaWUpI4gxCBTQMH2RdUpNrk+MsbpCYtIvf9SBJdiUey4qE7BXviJsJR4nDQxCZ+3yaYNW3guz/Pw== - -mkdirp@0.5.5: - version "0.5.5" - resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" - -mkdirp@0.5.x, mkdirp@^0.5.1: - version "0.5.6" - resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -mkdirp@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - -mnemonist@^0.38.0: - version "0.38.5" - resolved "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.5.tgz" - integrity sha512-bZTFT5rrPKtPJxj8KSV0WkPyNxl72vQepqqVUAW2ARUpUSF2qXMB6jZj7hW5/k7C1rtpzqbD/IIbJwLXUjCHeg== - dependencies: - obliterator "^2.0.0" - -mocha@^10.0.0, mocha@^10.2.0: - version "10.2.0" - resolved "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz" - integrity sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg== - 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" - -mocha@^7.1.1: - version "7.2.0" - resolved "https://registry.npmjs.org/mocha/-/mocha-7.2.0.tgz" - integrity sha512-O9CIypScywTVpNaRrCAgoUnJgozpIofjKUYmJhiCIJMiuYnLI6otcb1/kpW9/n/tJODHGZ7i8aLQoDVsMtOKQQ== - dependencies: - ansi-colors "3.2.3" - browser-stdout "1.3.1" - chokidar "3.3.0" - debug "3.2.6" - diff "3.5.0" - escape-string-regexp "1.0.5" - find-up "3.0.0" - glob "7.1.3" - growl "1.10.5" - he "1.2.0" - js-yaml "3.13.1" - log-symbols "3.0.0" - minimatch "3.0.4" - mkdirp "0.5.5" - ms "2.1.1" - node-environment-flags "1.0.6" - object.assign "4.1.0" - strip-json-comments "2.0.1" - supports-color "6.0.0" - which "1.3.1" - wide-align "1.1.3" - yargs "13.3.2" - yargs-parser "13.1.2" - yargs-unparser "1.6.0" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - -ms@2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz" - integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@2.1.3, ms@^2.1.1: - version "2.1.3" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -mute-stream@0.0.8: - version "0.0.8" - resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" - integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== - -nan@^2.12.1, nan@^2.14.0, nan@^2.2.1: - version "2.17.0" - resolved "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz" - integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== - -nanoid@3.3.3: - version "3.3.3" - resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz" - integrity sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -napi-macros@~2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/napi-macros/-/napi-macros-2.0.0.tgz" - integrity sha512-A0xLykHtARfueITVDernsAWdtIMbOJgKgcluwENp3AlsKN/PloyO10HtmoqnFAQAcxPkgZN7wdfPfEd0zNGxbg== - -natural-compare-lite@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz" - integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -neo-async@^2.6.0: - version "2.6.2" - resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== - -node-addon-api@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz" - integrity sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA== - -node-emoji@^1.10.0: - version "1.11.0" - resolved "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz" - integrity sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A== - dependencies: - lodash "^4.17.21" - -node-environment-flags@1.0.6: - version "1.0.6" - resolved "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.6.tgz" - integrity sha512-5Evy2epuL+6TM0lCQGpFIj6KwiEsGh1SrHUhTbNX+sLbBtjidPZFAnVK9y5yU1+h//RitLbRHTIMyxQPtxMdHw== - dependencies: - object.getownpropertydescriptors "^2.0.3" - semver "^5.7.0" - -node-fetch@^2.6.0, node-fetch@^2.6.1: - version "2.7.0" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" - integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== - dependencies: - whatwg-url "^5.0.0" - -node-fetch@^2.6.7: - version "2.6.9" - resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz" - integrity sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg== - dependencies: - whatwg-url "^5.0.0" - -node-gyp-build@4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.3.0.tgz" - integrity sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q== - -node-gyp-build@4.4.0: - version "4.4.0" - resolved "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.4.0.tgz" - integrity sha512-amJnQCcgtRVw9SvoebO3BKGESClrfXGCUTX9hSn1OuGQTQBOZmVd0Z0OlecpuRksKvbsUqALE8jls/ErClAPuQ== - -node-gyp-build@^4.2.0, node-gyp-build@^4.3.0: - version "4.6.0" - resolved "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz" - integrity sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ== - -nofilter@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz" - integrity sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g== - -nopt@3.x: - version "3.0.6" - resolved "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz" - integrity sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg== - dependencies: - abbrev "1" - -normalize-package-data@^2.5.0: - version "2.5.0" - resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-package-data@^3.0.2: - version "3.0.3" - resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-3.0.3.tgz" - integrity sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA== - dependencies: - hosted-git-info "^4.0.1" - is-core-module "^2.5.0" - semver "^7.3.4" - validate-npm-package-license "^3.0.1" - -normalize-path@^2.0.0, normalize-path@^2.0.1: - version "2.1.1" - resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz" - integrity sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w== - dependencies: - remove-trailing-separator "^1.0.1" - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -normalize-url@^8.0.0: - version "8.0.1" - resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.1.tgz" - integrity sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w== - -number-to-bn@1.7.0: - version "1.7.0" - resolved "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz" - integrity sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig== - dependencies: - bn.js "4.11.6" - strip-hex-prefix "1.0.0" - -oauth-sign@~0.9.0: - version "0.9.0" - resolved "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz" - integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== - -object-assign@^4.1.0: - version "4.1.1" - resolved "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz" - integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-inspect@^1.12.3, object-inspect@^1.9.0: - version "1.12.3" - resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz" - integrity sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g== - -object-inspect@^1.13.1: - version "1.13.2" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.2.tgz#dea0088467fb991e67af4058147a24824a3043ff" - integrity sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g== - -object-keys@^1.0.11, object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz" - integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== - dependencies: - isobject "^3.0.0" - -object.assign@4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz" - integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== - dependencies: - define-properties "^1.1.2" - function-bind "^1.1.1" - has-symbols "^1.0.0" - object-keys "^1.0.11" - -object.assign@^4.1.4: - version "4.1.4" - resolved "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz" - integrity sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - has-symbols "^1.0.3" - object-keys "^1.1.1" - -object.assign@^4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.5.tgz#3a833f9ab7fdb80fc9e8d2300c803d216d8fdbb0" - integrity sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ== - dependencies: - call-bind "^1.0.5" - define-properties "^1.2.1" - has-symbols "^1.0.3" - object-keys "^1.1.1" - -object.getownpropertydescriptors@^2.0.3: - version "2.1.5" - resolved "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.5.tgz" - integrity sha512-yDNzckpM6ntyQiGTik1fKV1DcVDRS+w8bvpWNCBanvH5LfRX9O8WTHqQzG4RZwRAM4I0oU7TV11Lj5v0g20ibw== - dependencies: - array.prototype.reduce "^1.0.5" - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz" - integrity sha512-UiAM5mhmIuKLsOvrL+B0U2d1hXHF3bFYWIuH1LMpuV2EJEHG1Ntz06PgLEHjm6VFd87NpH8rastvPoyv6UW2fA== - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz" - integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== - dependencies: - isobject "^3.0.1" - -object.values@^1.1.6: - version "1.1.6" - resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz" - integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -obliterator@^2.0.0: - version "2.0.4" - resolved "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz" - integrity sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ== - -once@1.x, once@^1.3.0: - version "1.4.0" - resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -onetime@^5.1.0: - version "5.1.2" - resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - -ora@^5.4.1: - version "5.4.1" - resolved "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - -ordinal@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/ordinal/-/ordinal-1.0.3.tgz" - integrity sha512-cMddMgb2QElm8G7vdaa02jhUNbTSrhsgAGUz1OokD83uJTwSUn+nKoNoKVVaRa08yF6sgfO7Maou1+bgLd9rdQ== - -os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz" - integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== - -outdent@^0.5.0: - version "0.5.0" - resolved "https://registry.npmjs.org/outdent/-/outdent-0.5.0.tgz" - integrity sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q== - -p-cancelable@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz" - integrity sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw== - -p-filter@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz" - integrity sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw== - dependencies: - p-map "^2.0.0" - -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - -p-limit@^2.0.0, p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz" - integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== - dependencies: - p-limit "^1.1.0" - -p-locate@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz" - integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== - dependencies: - p-limit "^2.0.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-locate@^5.0.0: - 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== - dependencies: - p-limit "^3.0.2" - -p-map@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz" - integrity sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw== - -p-map@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" - integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== - dependencies: - aggregate-error "^3.0.0" - -p-map@^5.5.0: - version "5.5.0" - resolved "https://registry.npmjs.org/p-map/-/p-map-5.5.0.tgz" - integrity sha512-VFqfGDHlx87K66yZrNdI4YGtD70IRyd+zSvgks6mzHPRNkoKy+9EKP4SFC77/vTTQYmRmti7dvqC+m5jBrBAcg== - dependencies: - aggregate-error "^4.0.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz" - integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -package-json@^8.1.0: - version "8.1.1" - resolved "https://registry.npmjs.org/package-json/-/package-json-8.1.1.tgz" - integrity sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA== - dependencies: - got "^12.1.0" - registry-auth-token "^5.0.1" - registry-url "^6.0.0" - semver "^7.3.7" - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -parse-cache-control@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz" - integrity sha512-60zvsJReQPX5/QP0Kzfd/VrpjScIQ7SHBW6bFCYfEP+fp0Eppr1SHhIO5nd1PjZtvclzSzES9D/p5nFJurwfWg== - -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz" - integrity sha512-FC5TeK0AwXzq3tUBFtH74naWkPQCEWs4K+xMxWZBlKDWu0bVHXGZa+KKqxKidd7xwhdZ19ZNuF2uO1M/r196HA== - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - -parse-json@^5.0.0, parse-json@^5.2.0: - version "5.2.0" - resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz" - integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== - -path-browserify@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz" - integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.6, path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-starts-with@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/path-starts-with/-/path-starts-with-2.0.0.tgz" - integrity sha512-3UHTHbJz5+NLkPafFR+2ycJOjoc4WV2e9qCZCnm71zHiWaFrm1XniLVTkZXvaRgxr1xFh9JsTdicpH2yM03nLA== - -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - -pathval@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz" - integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== - -pbkdf2@^3.0.17, pbkdf2@^3.0.9: - version "3.1.2" - resolved "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz" - integrity sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA== - dependencies: - create-hash "^1.1.2" - create-hmac "^1.1.4" - ripemd160 "^2.0.1" - safe-buffer "^5.0.1" - sha.js "^2.4.8" - -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz" - integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== - -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -pify@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz" - integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== - -pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - -pluralize@^8.0.0: - version "8.0.0" - resolved "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz" - integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz" - integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== - -possible-typed-array-names@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" - integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== - -preferred-pm@^3.0.0: - version "3.0.3" - resolved "https://registry.npmjs.org/preferred-pm/-/preferred-pm-3.0.3.tgz" - integrity sha512-+wZgbxNES/KlJs9q40F/1sfOd/j7f1O9JaHcW5Dsn3aUUOZg3L2bjpVUcKV2jvtElYfoTuQiNeMfQJ4kwUAhCQ== - dependencies: - find-up "^5.0.0" - find-yarn-workspace-root2 "1.2.16" - path-exists "^4.0.0" - which-pm "2.0.0" - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz" - integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== - -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz" - integrity sha512-s/46sYeylUfHNjI+sA/78FAHlmIuKqI9wNnzEOGehAlUUYeObv5C2mOinXBjyUyWmJ2SfcS2/ydApH4hTF4WXQ== - -prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== - dependencies: - fast-diff "^1.1.2" - -prettier@^2.3.1, prettier@^2.7.1, prettier@^2.8.3: - version "2.8.7" - resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz" - integrity sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw== - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -promise@^8.0.0: - version "8.3.0" - resolved "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz" - integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg== - dependencies: - asap "~2.0.6" - -proper-lockfile@^4.1.1: - version "4.1.2" - resolved "https://registry.yarnpkg.com/proper-lockfile/-/proper-lockfile-4.1.2.tgz#c8b9de2af6b2f1601067f98e01ac66baa223141f" - integrity sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA== - dependencies: - graceful-fs "^4.2.4" - retry "^0.12.0" - signal-exit "^3.0.2" - -proto-list@~1.2.1: - version "1.2.4" - resolved "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz" - integrity sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA== - -proxy-from-env@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" - integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== - -prr@~1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz" - integrity sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw== - -pseudomap@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz" - integrity sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ== - -psl@^1.1.28: - version "1.9.0" - resolved "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== - -punycode@1.3.2: - version "1.3.2" - resolved "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz" - integrity sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw== - -punycode@^2.1.0, punycode@^2.1.1: - version "2.3.0" - resolved "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz" - integrity sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA== - -qs@^6.4.0: - version "6.11.1" - resolved "https://registry.npmjs.org/qs/-/qs-6.11.1.tgz" - integrity sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ== - dependencies: - side-channel "^1.0.4" - -qs@~6.5.2: - version "6.5.3" - resolved "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz" - integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== - -querystring@0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz" - integrity sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g== - -queue-microtask@^1.2.2, queue-microtask@^1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -quick-lru@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/quick-lru/-/quick-lru-4.0.1.tgz" - integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== - -quick-lru@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz" - integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== - -randomatic@^3.0.0: - version "3.1.1" - resolved "https://registry.npmjs.org/randomatic/-/randomatic-3.1.1.tgz" - integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== - dependencies: - is-number "^4.0.0" - kind-of "^6.0.0" - math-random "^1.0.1" - -randombytes@^2.0.1, randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -raw-body@^2.4.1: - version "2.5.2" - resolved "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz" - integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== - dependencies: - bytes "3.1.2" - http-errors "2.0.0" - iconv-lite "0.4.24" - unpipe "1.0.0" - -rc@1.2.8: - version "1.2.8" - resolved "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz" - integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== - dependencies: - deep-extend "^0.6.0" - ini "~1.3.0" - minimist "^1.2.0" - strip-json-comments "~2.0.1" - -read-pkg-up@^7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz" - integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== - dependencies: - find-up "^4.1.0" - read-pkg "^5.2.0" - type-fest "^0.8.1" - -read-pkg-up@^8.0.0: - version "8.0.0" - resolved "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-8.0.0.tgz" - integrity sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ== - dependencies: - find-up "^5.0.0" - read-pkg "^6.0.0" - type-fest "^1.0.1" - -read-pkg@^5.2.0: - version "5.2.0" - resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz" - integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== - dependencies: - "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^2.5.0" - parse-json "^5.0.0" - type-fest "^0.6.0" - -read-pkg@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-6.0.0.tgz" - integrity sha512-X1Fu3dPuk/8ZLsMhEj5f4wFAF0DWoK7qhGJvgaijocXxBmSToKfbFtqbxMO7bVjNA1dmE5huAzjXj/ey86iw9Q== - dependencies: - "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^3.0.2" - parse-json "^5.2.0" - type-fest "^1.0.1" - -read-yaml-file@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/read-yaml-file/-/read-yaml-file-1.1.0.tgz" - integrity sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA== - dependencies: - graceful-fs "^4.1.5" - js-yaml "^3.6.1" - pify "^4.0.1" - strip-bom "^3.0.0" - -readable-stream@^2.0.2, readable-stream@^2.2.2: - version "2.3.8" - resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz" - integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readable-stream@^3.1.0, readable-stream@^3.4.0, readable-stream@^3.6.0: - version "3.6.2" - resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz" - integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readdirp@^2.0.0: - version "2.2.1" - resolved "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz" - integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== - dependencies: - graceful-fs "^4.1.11" - micromatch "^3.1.10" - readable-stream "^2.0.2" - -readdirp@~3.2.0: - version "3.2.0" - resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.2.0.tgz" - integrity sha512-crk4Qu3pmXwgxdSgGhgA/eXiJAPQiX4GMOZZMXnqKxHX7TaoL+3gQVo/WeuAiogr07DpnfjIMpXXa+PAIvwPGQ== - dependencies: - picomatch "^2.0.4" - -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz" - integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== - dependencies: - resolve "^1.1.6" - -recursive-readdir@^2.2.2: - version "2.2.3" - resolved "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz" - integrity sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA== - dependencies: - minimatch "^3.0.5" - -redent@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz" - integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== - dependencies: - indent-string "^4.0.0" - strip-indent "^3.0.0" - -redent@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/redent/-/redent-4.0.0.tgz" - integrity sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag== - dependencies: - indent-string "^5.0.0" - strip-indent "^4.0.0" - -reduce-flatten@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz" - integrity sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w== - -regenerator-runtime@^0.11.0: - version "0.11.1" - resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz" - integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== - -regenerator-runtime@^0.13.11: - version "0.13.11" - resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz" - integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== - -regenerator-runtime@^0.14.0: - version "0.14.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" - integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== - -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz" - integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== - dependencies: - is-equal-shallow "^0.1.3" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regexp.prototype.flags@^1.4.3: - version "1.4.3" - resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz" - integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - functions-have-names "^1.2.2" - -regexp.prototype.flags@^1.5.2: - version "1.5.2" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334" - integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw== - dependencies: - call-bind "^1.0.6" - define-properties "^1.2.1" - es-errors "^1.3.0" - set-function-name "^2.0.1" - -regexpp@^3.0.0: - version "3.2.0" - resolved "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== - -registry-auth-token@^5.0.1: - version "5.0.2" - resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz" - integrity sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ== - dependencies: - "@pnpm/npm-conf" "^2.1.0" - -registry-url@^6.0.0: - version "6.0.1" - resolved "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz" - integrity sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q== - dependencies: - rc "1.2.8" - -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz" - integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== - -repeat-element@^1.1.2: - version "1.1.4" - resolved "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz" - integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== - -repeat-string@^1.5.2, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz" - integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== - -req-cwd@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz" - integrity sha512-ueoIoLo1OfB6b05COxAA9UpeoscNpYyM+BqYlA7H6LVF4hKGPXQQSSaD2YmvDVJMkk4UDpAHIeU1zG53IqjvlQ== - dependencies: - req-from "^2.0.0" - -req-from@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/req-from/-/req-from-2.0.0.tgz" - integrity sha512-LzTfEVDVQHBRfjOUMgNBA+V6DWsSnoeKzf42J7l0xa/B4jyPOuuF5MlNSmomLNGemWTnV2TIdjSSLnEn95fOQA== - dependencies: - resolve-from "^3.0.0" - -request-promise-core@1.1.4: - version "1.1.4" - resolved "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz" - integrity sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw== - dependencies: - lodash "^4.17.19" - -request-promise-native@^1.0.5: - version "1.0.9" - resolved "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz" - integrity sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g== - dependencies: - request-promise-core "1.1.4" - stealthy-require "^1.1.1" - tough-cookie "^2.3.3" - -request@^2.85.0, request@^2.88.0: - version "2.88.2" - resolved "https://registry.npmjs.org/request/-/request-2.88.2.tgz" - integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.8.0" - caseless "~0.12.0" - combined-stream "~1.0.6" - extend "~3.0.2" - forever-agent "~0.6.1" - form-data "~2.3.2" - har-validator "~5.1.3" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.19" - oauth-sign "~0.9.0" - performance-now "^2.1.0" - qs "~6.5.2" - safe-buffer "^5.1.2" - tough-cookie "~2.5.0" - tunnel-agent "^0.6.0" - uuid "^3.3.2" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -requireindex@~1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/requireindex/-/requireindex-1.2.0.tgz" - integrity sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww== - -resolve-alpn@^1.2.0: - version "1.2.1" - resolved "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz" - integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== - -resolve-from@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz" - integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz" - integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== - -resolve@1.1.x: - version "1.1.7" - resolved "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz" - integrity sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg== - -resolve@1.17.0: - version "1.17.0" - resolved "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz" - integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== - dependencies: - path-parse "^1.0.6" - -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.22.0, resolve@^1.22.1: - version "1.22.3" - resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.3.tgz" - integrity sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw== - dependencies: - is-core-module "^2.12.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -resolve@^1.1.7: - version "1.22.2" - resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz" - integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== - dependencies: - is-core-module "^2.11.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -responselike@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz" - integrity sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg== - dependencies: - lowercase-keys "^3.0.0" - -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -retry@0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" - integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== - -retry@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" - integrity sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow== - -reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - -rimraf@^2.6.2: - version "2.7.1" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - -rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -ripemd160@^2.0.0, ripemd160@^2.0.1: - version "2.0.2" - resolved "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz" - integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== - dependencies: - hash-base "^3.0.0" - inherits "^2.0.1" - -rlp@2.2.6: - version "2.2.6" - resolved "https://registry.npmjs.org/rlp/-/rlp-2.2.6.tgz" - integrity sha512-HAfAmL6SDYNWPUOJNrM500x4Thn4PZsEy5pijPh40U9WfNk0z15hUYzO9xVIMAdIHdFtD8CBDHd75Td1g36Mjg== - dependencies: - bn.js "^4.11.1" - -rlp@^2.0.0, rlp@^2.2.3, rlp@^2.2.4: - version "2.2.7" - resolved "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz" - integrity sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ== - dependencies: - bn.js "^5.2.0" - -run-async@^2.4.0: - version "2.4.1" - resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz" - integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -rustbn.js@~0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/rustbn.js/-/rustbn.js-0.2.0.tgz" - integrity sha512-4VlvkRUuCJvr2J6Y0ImW7NvTCriMi7ErOAqWk1y69vAdoNIzCF3yPmgeNzx+RQTLEDFq5sHfscn1MwHxP9hNfA== - -rxjs@^7.2.0, rxjs@^7.5.5: - version "7.8.0" - resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz" - integrity sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg== - dependencies: - tslib "^2.1.0" - -rxjs@^7.8.1: - version "7.8.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" - integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== - dependencies: - tslib "^2.1.0" - -safe-array-concat@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.2.tgz#81d77ee0c4e8b863635227c721278dd524c20edb" - integrity sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q== - dependencies: - call-bind "^1.0.7" - get-intrinsic "^1.2.4" - has-symbols "^1.0.3" - isarray "^2.0.5" - -safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-regex-test@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz" - integrity sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.3" - is-regex "^1.1.4" - -safe-regex-test@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.3.tgz#a5b4c0f06e0ab50ea2c395c14d8371232924c377" - integrity sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw== - dependencies: - call-bind "^1.0.6" - es-errors "^1.3.0" - is-regex "^1.1.4" - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz" - integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== - dependencies: - ret "~0.1.10" - -"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: - version "2.1.2" - resolved "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -sc-istanbul@^0.4.5: - version "0.4.6" - resolved "https://registry.npmjs.org/sc-istanbul/-/sc-istanbul-0.4.6.tgz" - integrity sha512-qJFF/8tW/zJsbyfh/iT/ZM5QNHE3CXxtLJbZsL+CzdJLBsPD7SedJZoUA4d8iAcN2IoMp/Dx80shOOd2x96X/g== - dependencies: - abbrev "1.0.x" - async "1.x" - escodegen "1.8.x" - esprima "2.7.x" - glob "^5.0.15" - handlebars "^4.0.1" - js-yaml "3.x" - mkdirp "0.5.x" - nopt "3.x" - once "1.x" - resolve "1.1.x" - supports-color "^3.1.0" - which "^1.1.1" - wordwrap "^1.0.0" - -scrypt-js@2.0.4: - version "2.0.4" - resolved "https://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.4.tgz" - integrity sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw== - -scrypt-js@3.0.1, scrypt-js@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz" - integrity sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA== - -secp256k1@4.0.3, secp256k1@^4.0.1: - version "4.0.3" - resolved "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.3.tgz" - integrity sha512-NLZVf+ROMxwtEj3Xa562qgv2BK5e2WNmXPiOdVIPLgs6lyTzMvBq0aWTYMI5XCP9jZMVKOcqZLw/Wc4vDkuxhA== - dependencies: - elliptic "^6.5.4" - node-addon-api "^2.0.0" - node-gyp-build "^4.2.0" - -secp256k1@^3.0.1: - version "3.8.0" - resolved "https://registry.npmjs.org/secp256k1/-/secp256k1-3.8.0.tgz" - integrity sha512-k5ke5avRZbtl9Tqx/SA7CbY3NF6Ro+Sj9cZxezFzuBlLDmyqPiL8hJJ+EmzD8Ig4LUDByHJ3/iPOVoRixs/hmw== - dependencies: - bindings "^1.5.0" - bip66 "^1.1.5" - bn.js "^4.11.8" - create-hash "^1.2.0" - drbg.js "^1.0.1" - elliptic "^6.5.2" - nan "^2.14.0" - safe-buffer "^5.1.2" - -seedrandom@3.0.5: - version "3.0.5" - resolved "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz" - integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg== - -semaphore-async-await@^1.5.1: - version "1.5.1" - resolved "https://registry.npmjs.org/semaphore-async-await/-/semaphore-async-await-1.5.1.tgz" - integrity sha512-b/ptP11hETwYWpeilHXXQiV5UJNJl7ZWWooKRE5eBIYWoom6dZ0SluCIdCtKycsMtZgKWE01/qAw6jblw1YVhg== - -"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.7.0: - version "5.7.1" - resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -semver@^6.1.0, semver@^6.3.0: - version "6.3.0" - resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -semver@^7.3.4, semver@^7.3.7: - version "7.4.0" - resolved "https://registry.npmjs.org/semver/-/semver-7.4.0.tgz" - integrity sha512-RgOxM8Mw+7Zus0+zcLEUn8+JfoLpj/huFTItQy2hsM4khuC1HYRDp0cU482Ewn/Fcy6bCjufD8vAj7voC66KQw== - dependencies: - lru-cache "^6.0.0" - -semver@^7.5.2: - version "7.6.2" - resolved "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz" - integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== - -serialize-javascript@6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz" - integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== - dependencies: - randombytes "^2.1.0" - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" - integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== - -set-function-length@^1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - -set-function-name@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" - integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - functions-have-names "^1.2.3" - has-property-descriptors "^1.0.2" - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setimmediate@1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz" - integrity sha512-/TjEmXQVEzdod/FFskf3o7oOAsGhHf2j1dZqRFbDzq4F3mvvxflIIi4Hd3bLQE9y/CpwqfSQam5JakI/mi3Pog== - -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz" - integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== - -setprototypeof@1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" - integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== - -sha.js@^2.4.0, sha.js@^2.4.8: - version "2.4.11" - resolved "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz" - integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== - dependencies: - inherits "^2.0.1" - safe-buffer "^5.0.1" - -sha1@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz" - integrity sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA== - dependencies: - charenc ">= 0.0.1" - crypt ">= 0.0.1" - -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" - integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg== - dependencies: - shebang-regex "^1.0.0" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" - integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ== - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -shell-quote@^1.6.1, shell-quote@^1.8.1: - version "1.8.1" - resolved "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz" - integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== - -shelljs@^0.8.3: - version "0.8.5" - resolved "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz" - integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - -side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== - dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" - -signal-exit@^3.0.2: - version "3.0.7" - resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -slash@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz" - integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== - -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - -smartwrap@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/smartwrap/-/smartwrap-2.0.2.tgz" - integrity sha512-vCsKNQxb7PnCNd2wY1WClWifAc2lwqsG8OaswpJkVJsvMGcnEntdTCDajZCkk93Ay1U3t/9puJmb525Rg5MZBA== - dependencies: - array.prototype.flat "^1.2.3" - breakword "^1.0.5" - grapheme-splitter "^1.0.4" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - yargs "^15.1.0" - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -solc@0.8.15: - version "0.8.15" - resolved "https://registry.npmjs.org/solc/-/solc-0.8.15.tgz" - integrity sha512-Riv0GNHNk/SddN/JyEuFKwbcWcEeho15iyupTSHw5Np6WuXA5D8kEHbyzDHi6sqmvLzu2l+8b1YmL8Ytple+8w== - dependencies: - command-exists "^1.2.8" - commander "^8.1.0" - follow-redirects "^1.12.1" - js-sha3 "0.8.0" - memorystream "^0.3.1" - semver "^5.5.0" - tmp "0.0.33" - -solc@0.8.26: - version "0.8.26" - resolved "https://registry.yarnpkg.com/solc/-/solc-0.8.26.tgz#afc78078953f6ab3e727c338a2fefcd80dd5b01a" - integrity sha512-yiPQNVf5rBFHwN6SIf3TUUvVAFKcQqmSUFeq+fb6pNRCo0ZCgpYOZDi3BVoezCPIAcKrVYd/qXlBLUP9wVrZ9g== - dependencies: - command-exists "^1.2.8" - commander "^8.1.0" - follow-redirects "^1.12.1" - js-sha3 "0.8.0" - memorystream "^0.3.1" - semver "^5.5.0" - tmp "0.0.33" - -solhint@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/solhint/-/solhint-5.0.1.tgz" - integrity sha512-QeQLS9HGCnIiibt+xiOa/+MuP7BWz9N7C5+Mj9pLHshdkNhuo3AzCpWmjfWVZBUuwIUO3YyCRVIcYLR3YOKGfg== - dependencies: - "@solidity-parser/parser" "^0.18.0" - ajv "^6.12.6" - antlr4 "^4.13.1-patch-1" - ast-parents "^0.0.1" - chalk "^4.1.2" - commander "^10.0.0" - cosmiconfig "^8.0.0" - fast-diff "^1.2.0" - glob "^8.0.3" - ignore "^5.2.4" - js-yaml "^4.1.0" - latest-version "^7.0.0" - lodash "^4.17.21" - pluralize "^8.0.0" - semver "^7.5.2" - strip-ansi "^6.0.1" - table "^6.8.1" - text-table "^0.2.0" - optionalDependencies: - prettier "^2.8.3" - -solidity-ast@^0.4.51: - version "0.4.56" - resolved "https://registry.yarnpkg.com/solidity-ast/-/solidity-ast-0.4.56.tgz#94fe296f12e8de1a3bed319bc06db8d05a113d7a" - integrity sha512-HgmsA/Gfklm/M8GFbCX/J1qkVH0spXHgALCNZ8fA8x5X+MFdn/8CP2gr5OVyXjXw6RZTPC/Sxl2RUDQOXyNMeA== - dependencies: - array.prototype.findlast "^1.2.2" - -solidity-coverage@^0.8.12: - version "0.8.12" - resolved "https://registry.yarnpkg.com/solidity-coverage/-/solidity-coverage-0.8.12.tgz#c4fa2f64eff8ada7a1387b235d6b5b0e6c6985ed" - integrity sha512-8cOB1PtjnjFRqOgwFiD8DaUsYJtVJ6+YdXQtSZDrLGf8cdhhh8xzTtGzVTGeBf15kTv0v7lYPJlV/az7zLEPJw== - dependencies: - "@ethersproject/abi" "^5.0.9" - "@solidity-parser/parser" "^0.18.0" - chalk "^2.4.2" - death "^1.1.0" - difflib "^0.2.4" - fs-extra "^8.1.0" - ghost-testrpc "^0.0.2" - global-modules "^2.0.0" - globby "^10.0.1" - jsonschema "^1.2.4" - lodash "^4.17.21" - mocha "^10.2.0" - node-emoji "^1.10.0" - pify "^4.0.1" - recursive-readdir "^2.2.2" - sc-istanbul "^0.4.5" - semver "^7.3.4" - shelljs "^0.8.3" - web3-utils "^1.3.6" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@^0.5.13, source-map-support@^0.5.6: - version "0.5.21" - resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - -source-map@^0.6.0, source-map@^0.6.1: - version "0.6.1" - resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@~0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz" - integrity sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA== - dependencies: - amdefine ">=0.0.4" - -spawn-command@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2.tgz#9544e1a43ca045f8531aac1a48cb29bdae62338e" - integrity sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ== - -spawndamnit@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/spawndamnit/-/spawndamnit-2.0.0.tgz" - integrity sha512-j4JKEcncSjFlqIwU5L/rp2N5SIPsdxaRsIv678+TZxZ0SRDJTm8JrxJMjE/XuiEZNEir3S8l0Fa3Ke339WI4qA== - dependencies: - cross-spawn "^5.1.0" - signal-exit "^3.0.2" - -spdx-correct@^3.0.0: - version "3.2.0" - resolved "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz" - integrity sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.3.0" - resolved "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz" - integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.13" - resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz" - integrity sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w== - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" - integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== - -sshpk@^1.7.0: - version "1.17.0" - resolved "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz" - integrity sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ== - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - bcrypt-pbkdf "^1.0.0" - dashdash "^1.12.0" - ecc-jsbn "~0.1.1" - getpass "^0.1.1" - jsbn "~0.1.0" - safer-buffer "^2.0.2" - tweetnacl "~0.14.0" - -stacktrace-parser@^0.1.10: - version "0.1.10" - resolved "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz" - integrity sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg== - dependencies: - type-fest "^0.7.1" - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz" - integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -statuses@2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz" - integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== - -stealthy-require@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz" - integrity sha512-ZnWpYnYugiOVEY5GkcuJK1io5V8QmNYChG62gSit9pQVGErXtrKuPC55ITaVSukmMta5qpMU7vqLt2Lnni4f/g== - -stream-transform@^2.1.3: - version "2.1.3" - resolved "https://registry.npmjs.org/stream-transform/-/stream-transform-2.1.3.tgz" - integrity sha512-9GHUiM5hMiCi6Y03jD2ARC1ettBXkQBoQAe7nJsPknnI0ow10aXjTnew8QtYQmLjzn974BnmWEAJgCY6ZP1DeQ== - dependencies: - mixme "^0.5.1" - -streamsearch@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz" - integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== - -string-format@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/string-format/-/string-format-2.0.0.tgz" - integrity sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA== - -"string-width@^1.0.2 || 2", string-width@^2.1.1: - version "2.1.1" - resolved "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz" - integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== - dependencies: - is-fullwidth-code-point "^2.0.0" - strip-ansi "^4.0.0" - -string-width@^3.0.0, string-width@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" - -string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string.prototype.trim@^1.2.7: - version "1.2.7" - resolved "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz" - integrity sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -string.prototype.trim@^1.2.9: - version "1.2.9" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz#b6fa326d72d2c78b6df02f7759c73f8f6274faa4" - integrity sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.0" - es-object-atoms "^1.0.0" - -string.prototype.trimend@^1.0.6: - version "1.0.6" - resolved "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz" - integrity sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -string.prototype.trimend@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz#3651b8513719e8a9f48de7f2f77640b26652b229" - integrity sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -string.prototype.trimstart@^1.0.6: - version "1.0.6" - resolved "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz" - integrity sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.4" - es-abstract "^1.20.4" - -string.prototype.trimstart@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz#7ee834dda8c7c17eff3118472bb35bfedaa34dde" - integrity sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -strip-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz" - integrity sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow== - dependencies: - ansi-regex "^3.0.0" - -strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: - version "5.2.0" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" - integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== - -strip-hex-prefix@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz" - integrity sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A== - dependencies: - is-hex-prefixed "1.0.0" - -strip-indent@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz" - integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== - dependencies: - min-indent "^1.0.0" - -strip-indent@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz" - integrity sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA== - dependencies: - min-indent "^1.0.1" - -strip-json-comments@2.0.1, strip-json-comments@~2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" - integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== - -strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -subarg@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz" - integrity sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg== - dependencies: - minimist "^1.1.0" - -supports-color@6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz" - integrity sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg== - dependencies: - has-flag "^3.0.0" - -supports-color@8.1.1, supports-color@^8.1.1: - version "8.1.1" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-color@^3.1.0: - version "3.2.3" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz" - integrity sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A== - dependencies: - has-flag "^1.0.0" - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -sync-request@^6.0.0: - version "6.1.0" - resolved "https://registry.npmjs.org/sync-request/-/sync-request-6.1.0.tgz" - integrity sha512-8fjNkrNlNCrVc/av+Jn+xxqfCjYaBoHqCsDz6mt030UMxJGr+GSfCV1dQt2gRtlL63+VPidwDVLr7V2OcTSdRw== - dependencies: - http-response-object "^3.0.1" - sync-rpc "^1.2.1" - then-request "^6.0.0" - -sync-rpc@^1.2.1: - version "1.3.6" - resolved "https://registry.npmjs.org/sync-rpc/-/sync-rpc-1.3.6.tgz" - integrity sha512-J8jTXuZzRlvU7HemDgHi3pGnh/rkoqR/OZSjhTyyZrEkkYQbk7Z33AXp37mkPfPpfdOuj7Ex3H/TJM1z48uPQw== - dependencies: - get-port "^3.1.0" - -table-layout@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/table-layout/-/table-layout-1.0.2.tgz" - integrity sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A== - dependencies: - array-back "^4.0.1" - deep-extend "~0.6.0" - typical "^5.2.0" - wordwrapjs "^4.0.0" - -table@^6.8.0, table@^6.8.1: - version "6.8.1" - resolved "https://registry.npmjs.org/table/-/table-6.8.1.tgz" - integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== - dependencies: - ajv "^8.0.1" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - -term-size@^2.1.0: - version "2.2.1" - resolved "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz" - integrity sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg== - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - -then-request@^6.0.0: - version "6.0.2" - resolved "https://registry.npmjs.org/then-request/-/then-request-6.0.2.tgz" - integrity sha512-3ZBiG7JvP3wbDzA9iNY5zJQcHL4jn/0BWtXIkagfz7QgOL/LqjCEOBQuJNZfu0XYnv5JhKh+cDxCPM4ILrqruA== - dependencies: - "@types/concat-stream" "^1.6.0" - "@types/form-data" "0.0.33" - "@types/node" "^8.0.0" - "@types/qs" "^6.2.31" - caseless "~0.12.0" - concat-stream "^1.6.0" - form-data "^2.2.0" - http-basic "^8.1.1" - http-response-object "^3.0.1" - promise "^8.0.0" - qs "^6.4.0" - -through@^2.3.6: - version "2.3.8" - resolved "https://registry.npmjs.org/through/-/through-2.3.8.tgz" - integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== - -tmp@0.0.33, tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz" - integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== - dependencies: - os-tmpdir "~1.0.2" - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz" - integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz" - integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -toidentifier@1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz" - integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== - -tough-cookie@^2.3.3, tough-cookie@~2.5.0: - version "2.5.0" - resolved "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz" - integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== - dependencies: - psl "^1.1.28" - punycode "^2.1.1" - -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - -tree-kill@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" - integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== - -trim-newlines@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.1.tgz" - integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== - -trim-newlines@^4.0.2: - version "4.1.1" - resolved "https://registry.npmjs.org/trim-newlines/-/trim-newlines-4.1.1.tgz" - integrity sha512-jRKj0n0jXWo6kh62nA5TEh3+4igKDXLvzBJcPpiizP7oOolUrYIxmVBG9TOtHYFHoddUk6YvAkGeGoSVTXfQXQ== - -ts-command-line-args@^2.2.0: - version "2.5.0" - resolved "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.0.tgz" - integrity sha512-Ff7Xt04WWCjj/cmPO9eWTJX3qpBZWuPWyQYG1vnxJao+alWWYjwJBc5aYz3h5p5dE08A6AnpkgiCtP/0KXXBYw== - dependencies: - "@morgan-stanley/ts-mocking-bird" "^0.6.2" - chalk "^4.1.0" - command-line-args "^5.1.1" - command-line-usage "^6.1.0" - string-format "^2.0.0" - -ts-essentials@^7.0.1: - version "7.0.3" - resolved "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz" - integrity sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ== - -ts-mocha@^10.0.0: - version "10.0.0" - resolved "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz" - integrity sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw== - dependencies: - ts-node "7.0.1" - optionalDependencies: - tsconfig-paths "^3.5.0" - -ts-node@10.8.1: - version "10.8.1" - resolved "https://registry.npmjs.org/ts-node/-/ts-node-10.8.1.tgz" - integrity sha512-Wwsnao4DQoJsN034wePSg5nZiw4YKXf56mPIAeD6wVmiv+RytNSWqc2f3fKvcUoV+Yn2+yocD71VOfQHbmVX4g== - dependencies: - "@cspotcode/source-map-support" "^0.8.0" - "@tsconfig/node10" "^1.0.7" - "@tsconfig/node12" "^1.0.7" - "@tsconfig/node14" "^1.0.0" - "@tsconfig/node16" "^1.0.2" - acorn "^8.4.1" - acorn-walk "^8.1.1" - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - v8-compile-cache-lib "^3.0.1" - yn "3.1.1" - -ts-node@7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz" - integrity sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw== - dependencies: - arrify "^1.0.0" - buffer-from "^1.1.0" - diff "^3.1.0" - make-error "^1.1.1" - minimist "^1.2.0" - mkdirp "^0.5.1" - source-map-support "^0.5.6" - yn "^2.0.0" - -tsconfig-paths@^3.14.1, tsconfig-paths@^3.5.0: - version "3.14.2" - resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz" - integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.2" - minimist "^1.2.6" - strip-bom "^3.0.0" - -tslib@^1.11.1, tslib@^1.8.1, tslib@^1.9.3: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tslib@^2.1.0: - version "2.5.0" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz" - integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== - -tslib@^2.3.1, tslib@^2.6.2: - version "2.6.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0" - integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ== - -tsort@0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/tsort/-/tsort-0.0.1.tgz" - integrity sha512-Tyrf5mxF8Ofs1tNoxA13lFeZ2Zrbd6cKbuH3V+MQ5sb6DtBj5FjrXVsRWT8YvNAQTqNoz66dz1WsbigI22aEnw== - -tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -tty-table@^4.1.5: - version "4.2.1" - resolved "https://registry.npmjs.org/tty-table/-/tty-table-4.2.1.tgz" - integrity sha512-xz0uKo+KakCQ+Dxj1D/tKn2FSyreSYWzdkL/BYhgN6oMW808g8QRMuh1atAV9fjTPbWBjfbkKQpI/5rEcnAc7g== - dependencies: - chalk "^4.1.2" - csv "^5.5.3" - kleur "^4.1.5" - smartwrap "^2.0.2" - strip-ansi "^6.0.1" - wcwidth "^1.0.1" - yargs "^17.7.1" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz" - integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== - dependencies: - safe-buffer "^5.0.1" - -tweetnacl-util@^0.15.1: - version "0.15.1" - resolved "https://registry.npmjs.org/tweetnacl-util/-/tweetnacl-util-0.15.1.tgz" - integrity sha512-RKJBIj8lySrShN4w6i/BonWp2Z/uxwC3h4y7xsRrpP59ZboCd0GpEVsOnMDYLMmKBpYhb5TgHzZXy7wTfYFBRw== - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz" - integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== - -tweetnacl@^1.0.3: - version "1.0.3" - resolved "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz" - integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw== - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz" - integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== - dependencies: - prelude-ls "~1.1.2" - -type-detect@^4.0.0, type-detect@^4.0.5: - version "4.0.8" - resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.13.1: - version "0.13.1" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz" - integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg== - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -type-fest@^0.6.0: - version "0.6.0" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz" - integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== - -type-fest@^0.7.1: - version "0.7.1" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz" - integrity sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg== - -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - -type-fest@^1.0.1, type-fest@^1.2.1, type-fest@^1.2.2: - version "1.4.0" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz" - integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== - -typechain@^8.0.0, typechain@^8.1.0: - version "8.1.1" - resolved "https://registry.npmjs.org/typechain/-/typechain-8.1.1.tgz" - integrity sha512-uF/sUvnXTOVF2FHKhQYnxHk4su4JjZR8vr4mA2mBaRwHTbwh0jIlqARz9XJr1tA0l7afJGvEa1dTSi4zt039LQ== - dependencies: - "@types/prettier" "^2.1.1" - debug "^4.3.1" - fs-extra "^7.0.0" - glob "7.1.7" - js-sha3 "^0.8.0" - lodash "^4.17.15" - mkdirp "^1.0.4" - prettier "^2.3.1" - ts-command-line-args "^2.2.0" - ts-essentials "^7.0.1" - -typed-array-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz#1867c5d83b20fcb5ccf32649e5e2fc7424474ff3" - integrity sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ== - dependencies: - call-bind "^1.0.7" - es-errors "^1.3.0" - is-typed-array "^1.1.13" - -typed-array-byte-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz#d92972d3cff99a3fa2e765a28fcdc0f1d89dec67" - integrity sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw== - dependencies: - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-proto "^1.0.3" - is-typed-array "^1.1.13" - -typed-array-byte-offset@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz#f9ec1acb9259f395093e4567eb3c28a580d02063" - integrity sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA== - dependencies: - available-typed-arrays "^1.0.7" - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-proto "^1.0.3" - is-typed-array "^1.1.13" - -typed-array-length@^1.0.4: - version "1.0.4" - resolved "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz" - integrity sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng== - dependencies: - call-bind "^1.0.2" - for-each "^0.3.3" - is-typed-array "^1.1.9" - -typed-array-length@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.6.tgz#57155207c76e64a3457482dfdc1c9d1d3c4c73a3" - integrity sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g== - dependencies: - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-proto "^1.0.3" - is-typed-array "^1.1.13" - possible-typed-array-names "^1.0.0" - -typedarray@^0.0.6: - version "0.0.6" - resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz" - integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== - -typescript@^4.6.3: - version "4.9.5" - resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== - -typical@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz" - integrity sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw== - -typical@^5.2.0: - version "5.2.0" - resolved "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz" - integrity sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg== - -uglify-js@^3.1.4: - version "3.17.4" - resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz" - integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== - -unbox-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz" - integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== - dependencies: - call-bind "^1.0.2" - has-bigints "^1.0.2" - has-symbols "^1.0.3" - which-boxed-primitive "^1.0.2" - -undici@^5.14.0: - version "5.21.2" - resolved "https://registry.npmjs.org/undici/-/undici-5.21.2.tgz" - integrity sha512-f6pTQ9RF4DQtwoWSaC42P/NKlUjvezVvd9r155ohqkwFNRyBKM3f3pcty3ouusefNRyM25XhIQEbeQ46sZDJfQ== - dependencies: - busboy "^1.6.0" - -unfetch@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be" - integrity sha512-F9p7yYCn6cIW9El1zi0HI6vqpeIvBsr3dSuRO6Xuppb1u5rXpCPmMvLSyECLhybr9isec8Ohl0hPekMVrEinDA== - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -uniswap-v2-deploy-plugin@^0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/uniswap-v2-deploy-plugin/-/uniswap-v2-deploy-plugin-0.0.4.tgz#9eeb1e48ecd3f02b195210fd1eebbe624ee87ad9" - integrity sha512-4+1tfxul77SedONq1hwQixF2vwH/zy9KLj9XcA3QYPN5SUcp5ZgGYZFxPAmZJOEDAAWBz2oHJT26oLjbyuZrVg== - dependencies: - "@openzeppelin/contracts" "^4.3.2" - "@uniswap/v2-core" "^1.0.1" - "@uniswap/v2-periphery" "1.1.0-beta.0" - -universalify@^0.1.0: - version "0.1.2" - resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - -universalify@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz" - integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== - -unpipe@1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" - integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz" - integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz" - integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== - -url@^0.11.0: - version "0.11.0" - resolved "https://registry.npmjs.org/url/-/url-0.11.0.tgz" - integrity sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ== - dependencies: - punycode "1.3.2" - querystring "0.2.0" - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.npmjs.org/use/-/use-3.1.1.tgz" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -utf-8-validate@5.0.7: - version "5.0.7" - resolved "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.7.tgz" - integrity sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q== - dependencies: - node-gyp-build "^4.3.0" - -utf8@3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz" - integrity sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ== - -util-deprecate@^1.0.1, util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz" - integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== - -uuid@2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz" - integrity sha512-nWg9+Oa3qD2CQzHIP4qKUqwNfzKn8P0LtFhotaCTFchsV7ZfDhAybeip/HZVeMIpZi9JgY1E3nUlwaCmZT1sEg== - -uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - -uuid@^7.0.3: - version "7.0.3" - resolved "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz" - integrity sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg== - -uuid@^8.3.2: - version "8.3.2" - resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - -v8-compile-cache-lib@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz" - integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== - -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz" - integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -wait-on@^7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-7.2.0.tgz#d76b20ed3fc1e2bebc051fae5c1ff93be7892928" - integrity sha512-wCQcHkRazgjG5XoAq9jbTMLpNIjoSlZslrJ2+N9MxDsGEv1HnFoVjOCexL0ESva7Y9cu350j+DWADdk54s4AFQ== - dependencies: - axios "^1.6.1" - joi "^17.11.0" - lodash "^4.17.21" - minimist "^1.2.8" - rxjs "^7.8.1" - -wcwidth@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" - integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== - dependencies: - defaults "^1.0.3" - -web3-utils@^1.3.6: - version "1.10.4" - resolved "https://registry.yarnpkg.com/web3-utils/-/web3-utils-1.10.4.tgz#0daee7d6841641655d8b3726baf33b08eda1cbec" - integrity sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A== - dependencies: - "@ethereumjs/util" "^8.1.0" - bn.js "^5.2.1" - ethereum-bloom-filters "^1.0.6" - ethereum-cryptography "^2.1.2" - ethjs-unit "0.1.6" - number-to-bn "1.7.0" - randombytes "^2.1.0" - utf8 "3.0.0" - -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - -which-boxed-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz" - integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== - dependencies: - is-bigint "^1.0.1" - is-boolean-object "^1.1.0" - is-number-object "^1.0.4" - is-string "^1.0.5" - is-symbol "^1.0.3" - -which-module@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" - integrity sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q== - -which-pm@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/which-pm/-/which-pm-2.0.0.tgz" - integrity sha512-Lhs9Pmyph0p5n5Z3mVnN0yWcbQYUAD7rbQUiMsQxOJ3T57k7RFe35SUwWMf7dsbDZks1uOmw4AecB/JMDj3v/w== - dependencies: - load-yaml-file "^0.2.0" - path-exists "^4.0.0" - -which-typed-array@^1.1.14, which-typed-array@^1.1.15: - version "1.1.15" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.15.tgz#264859e9b11a649b388bfaaf4f767df1f779b38d" - integrity sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA== - dependencies: - available-typed-arrays "^1.0.7" - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-tostringtag "^1.0.2" - -which-typed-array@^1.1.9: - version "1.1.9" - resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz" - integrity sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA== - dependencies: - available-typed-arrays "^1.0.5" - call-bind "^1.0.2" - for-each "^0.3.3" - gopd "^1.0.1" - has-tostringtag "^1.0.0" - is-typed-array "^1.1.10" - -which@1.3.1, which@^1.1.1, which@^1.2.9, which@^1.3.1: - version "1.3.1" - resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wide-align@1.1.3: - version "1.1.3" - resolved "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz" - integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== - dependencies: - string-width "^1.0.2 || 2" - -widest-line@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" - integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== - dependencies: - string-width "^4.0.0" - -word-wrap@^1.2.3, word-wrap@~1.2.3: - version "1.2.3" - resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -wordwrap@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz" - integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== - -wordwrapjs@^4.0.0: - version "4.0.1" - resolved "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-4.0.1.tgz" - integrity sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA== - dependencies: - reduce-flatten "^2.0.0" - typical "^5.2.0" - -workerpool@6.2.1: - version "6.2.1" - resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz" - integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== - -wrap-ansi@^5.1.0: - version "5.1.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz" - integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== - dependencies: - ansi-styles "^3.2.0" - string-width "^3.0.0" - strip-ansi "^5.0.0" - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -ws@7.4.6: - version "7.4.6" - resolved "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz" - integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== - -ws@^7.4.6: - version "7.5.9" - resolved "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz" - integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== - -xmlhttprequest@1.8.0: - version "1.8.0" - resolved "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz" - integrity sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA== - -xtend@^4.0.1, xtend@^4.0.2, xtend@~4.0.0: - version "4.0.2" - resolved "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz" - integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== - -y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz" - integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yallist@^2.1.2: - version "2.1.2" - resolved "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz" - integrity sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A== - -yallist@^3.0.2: - version "3.1.1" - resolved "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" - integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yargs-parser@13.1.2, yargs-parser@^13.1.2: - version "13.1.2" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz" - integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs-parser@20.2.4: - version "20.2.4" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" - integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== - -yargs-parser@^18.1.2, yargs-parser@^18.1.3: - version "18.1.3" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs-parser@^20.2.2, yargs-parser@^20.2.9: - version "20.2.9" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - -yargs-parser@^21.1.1: - version "21.1.1" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" - integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== - -yargs-unparser@1.6.0: - version "1.6.0" - resolved "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz" - integrity sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw== - dependencies: - flat "^4.1.0" - lodash "^4.17.15" - yargs "^13.3.0" - -yargs-unparser@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz" - integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== - dependencies: - camelcase "^6.0.0" - decamelize "^4.0.0" - flat "^5.0.2" - is-plain-obj "^2.1.0" - -yargs@13.3.2, yargs@^13.3.0: - version "13.3.2" - resolved "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz" - integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== - dependencies: - cliui "^5.0.0" - find-up "^3.0.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^3.0.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^13.1.2" - -yargs@16.2.0: - version "16.2.0" - resolved "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yargs@^15.1.0: - version "15.4.1" - resolved "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz" - integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - -yargs@^17.7.1: - version "17.7.1" - resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz" - integrity sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw== - dependencies: - cliui "^8.0.1" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.3" - y18n "^5.0.5" - yargs-parser "^21.1.1" - -yargs@^17.7.2: - version "17.7.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" - integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== - dependencies: - cliui "^8.0.1" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.3" - y18n "^5.0.5" - yargs-parser "^21.1.1" - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz" - integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== - -yn@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz" - integrity sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ== - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== From 8841c22f369cf125f371d545ed770ab1d2b9592e Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 10:25:08 +0100 Subject: [PATCH 2/7] improve readme --- v2/README.md | 71 +++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/v2/README.md b/v2/README.md index 706a7a699..07e0b6e68 100644 --- a/v2/README.md +++ b/v2/README.md @@ -1,68 +1,71 @@ -### ⚠️ Important Notice: V2 in Development +# ZetaChain Protocol Contracts -We are currently developing Version 2 (V2) of our smart contract architecture. This new version will significantly enhance the developer experience for building Universal Apps. +Contracts of official protocol contracts deployed by the core ZetaChain team. -Developers can already begin testing the new interface by referring to [the V2 Localnet guide](https://github.com/zeta-chain/localnet?tab=readme-ov-file#experimenting-with-the-new-architecture). +### Learn more about ZetaChain -### Install dependencies +* Check our [website](https://www.zetachain.com/). +* Read our [docs](https://docs.zetachain.com/). + +### Codebase + +The protocol contracts V2 codebase is separated into two sections: + +- `zevm`: contracts deployed on ZetaChain +- `evm`: contracts deployed on EVM connected chains (Ethereum, Base, etc..) + +**ZEVM Contracts** + +- `GatewayZEVM`: entrypoints for interaction. The users call the gateway contract to initiate cctx. The gateway contract is also the contract calling the target when a smart contract call is initiated on a connected chain +- `ZRC20`: is a ERC20 compliant contract that represents fungible assets from connected chains +- `WZETA`: wrapped ZETA (fork of WETH) + +**EVM Contracts** + +- `GatewayEVM`: similar to GatewayZEVM for connected chains. Entrypoint for users. +- `ERC20Custody`: hold ERC20 assets being sent to ZetaChain +- `ZetaConnector`: manage ZETA for connected chains. There are two version of the contract: + - Native: when the ZETA tokens are native to the chain (ZETA where initially deployed as a ERC20 on Ethereum, not emitted fully on ZetaChain). Use lock/unlock model. + - Non-Native: when ZETA tokens where never native to the chains but withdrawn from ZetaChain. Use mint/burn model. +- TSS (EOA): Threshold-signature-scheme wallet, this address holds the gas token sent to ZetaChain (like Ethers) + +### Usage + +**Install dependencies** ```shell $ yarn $ forge soldeer update ``` -### Build +**Build** ```shell $ forge build ``` -### Test +**Test** ```shell $ forge test ``` -### Format +**Format** ```shell $ forge fmt ``` -### Gas Snapshots - -```shell -$ forge snapshot -``` - -### Anvil - -```shell -$ anvil -``` - -### Deploy +**Deploy** ```shell $ forge script script/.s.sol: --rpc-url --private-key ``` -##### More detailed instructions - To view detailed instructions on how to deploy the contracts, please refer to the [Deployment Guide](./scripts/deploy/readme.md). This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices. -### Cast +### Community -```shell -$ cast -``` - -### Help - -```shell -$ forge --help -$ anvil --help -$ cast --help -``` +[X](https://x.com/zetablockchain) | [Discord](https://discord.com/invite/zetachain) | [Telegram](https://t.me/zetachainofficial) | [Website](https://zetachain.com) \ No newline at end of file From e328a6d106642a60a85759f89cc352c833cd6086 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 10:25:56 +0100 Subject: [PATCH 3/7] improve readme 2 --- v2/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/README.md b/v2/README.md index 07e0b6e68..d3a7d2109 100644 --- a/v2/README.md +++ b/v2/README.md @@ -29,6 +29,8 @@ The protocol contracts V2 codebase is separated into two sections: - Non-Native: when ZETA tokens where never native to the chains but withdrawn from ZetaChain. Use mint/burn model. - TSS (EOA): Threshold-signature-scheme wallet, this address holds the gas token sent to ZetaChain (like Ethers) +[Learn more about the Gateway contracts](https://www.zetachain.com/docs/developers/evm/gateway/) + ### Usage **Install dependencies** From 7bac8de66db0ab7a1f86381fa0e39547e74bfd19 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 10:30:30 +0100 Subject: [PATCH 4/7] move v2 to root --- README.md | 68 ++++++++++++++++- .../1/run-1730753818.json | 0 .../1/run-latest.json | 0 .../137/run-1730752202.json | 0 .../137/run-latest.json | 0 .../56/run-1730753057.json | 0 .../56/run-latest.json | 0 .../8453/run-1730745732.json | 0 .../8453/run-1730751538.json | 0 .../8453/run-latest.json | 0 .../1/run-1733252238.json | 0 .../1/run-latest.json | 0 .../11155111/run-1730496331.json | 0 .../11155111/run-latest.json | 0 .../137/run-1733231885.json | 0 .../137/run-latest.json | 0 .../56/run-1733232160.json | 0 .../56/run-latest.json | 0 .../80002/run-1730495993.json | 0 .../80002/run-latest.json | 0 .../8453/run-1733231319.json | 0 .../8453/run-latest.json | 0 .../84532/run-1730495509.json | 0 .../84532/run-latest.json | 0 .../97/run-1730496209.json | 0 .../97/run-latest.json | 0 .../1/run-1730753500.json | 0 .../DeployGatewayEVM.s.sol/1/run-latest.json | 0 .../137/run-1730752013.json | 0 .../137/run-latest.json | 0 .../56/run-1730752764.json | 0 .../DeployGatewayEVM.s.sol/56/run-latest.json | 0 .../8453/run-1730745320.json | 0 .../8453/run-1730751006.json | 0 .../8453/run-latest.json | 0 .../1/run-1733232295.json | 0 .../1/run-1733250991.json | 0 .../1/run-1733251007.json | 0 .../1/run-1733251017.json | 0 .../1/run-1733252189.json | 0 .../1/run-1733256946.json | 0 .../1/run-1733257136.json | 0 .../1/run-1733257161.json | 0 .../1/run-1733257244.json | 0 .../1/run-1733257433.json | 0 .../1/run-1733257460.json | 0 .../1/run-1733257819.json | 0 .../1/run-latest.json | 0 .../11155111/run-1730496266.json | 0 .../11155111/run-latest.json | 0 .../137/run-1733231464.json | 0 .../137/run-latest.json | 0 .../56/run-1733231996.json | 0 .../56/run-latest.json | 0 .../80002/run-1730495654.json | 0 .../80002/run-latest.json | 0 .../8453/run-1733231079.json | 0 .../8453/run-latest.json | 0 .../84532/run-1730495252.json | 0 .../84532/run-latest.json | 0 .../97/run-1730496146.json | 0 .../97/run-latest.json | 0 .../7000/run-1730755057.json | 0 .../7000/run-latest.json | 0 .../7000/run-1733233245.json | 0 .../7000/run-latest.json | 0 .../7001/run-1730496448.json | 0 .../7001/run-latest.json | 0 .../7000/run-1730815310.json | 0 .../7000/run-1730815503.json | 0 .../7000/run-1730816308.json | 0 .../7000/run-1730816443.json | 0 .../7000/run-1730816898.json | 0 .../7000/run-1730817009.json | 0 .../7000/run-1730817119.json | 0 .../7000/run-1730817223.json | 0 .../7000/run-1730817409.json | 0 .../7000/run-1730817520.json | 0 .../7000/run-1730817621.json | 0 .../7000/run-1730817803.json | 0 .../7000/run-1730817943.json | 0 .../7000/run-1730818153.json | 0 .../7000/run-1730818449.json | 0 .../7000/run-1730818554.json | 0 .../7000/run-1730819617.json | 0 .../DeployZRC20.s.sol/7000/run-latest.json | 0 {v2/contracts => contracts}/Errors.sol | 0 {v2/contracts => contracts}/Revert.sol | 0 .../evm/ERC20Custody.sol | 0 .../evm/GatewayEVM.sol | 0 .../evm/ZetaConnectorBase.sol | 0 .../evm/ZetaConnectorNative.sol | 0 .../evm/ZetaConnectorNonNative.sol | 0 .../evm/interfaces/IERC20Custody.sol | 0 .../evm/interfaces/IGatewayEVM.sol | 0 .../evm/interfaces/IZetaConnector.sol | 0 .../evm/interfaces/IZetaNonEthNew.sol | 0 .../evm/legacy/ConnectorErrors.sol | 0 .../evm/legacy/Zeta.eth.sol | 0 .../evm/legacy/Zeta.non-eth.sol | 0 .../evm/legacy/ZetaConnector.base.sol | 0 .../evm/legacy/ZetaConnector.eth.sol | 0 .../evm/legacy/ZetaConnector.non-eth.sol | 0 .../evm/legacy/ZetaErrors.sol | 0 .../evm/legacy/ZetaInterfaces.sol | 0 .../evm/legacy/ZetaNonEthInterface.sol | 0 .../zevm/GatewayZEVM.sol | 0 .../zevm/SystemContract.sol | 0 {v2/contracts => contracts}/zevm/WZETA.sol | 0 {v2/contracts => contracts}/zevm/ZRC20.sol | 0 .../zevm/interfaces/IGatewayZEVM.sol | 0 .../zevm/interfaces/ISystem.sol | 0 .../zevm/interfaces/IWZETA.sol | 0 .../zevm/interfaces/IZRC20.sol | 0 .../zevm/interfaces/UniversalContract.sol | 0 .../zevm/legacy/ZetaConnectorZEVM.sol | 0 {v2/data => data}/addresses.mainnet.json | 26 +++++++ {v2/data => data}/addresses.testnet.json | 2 +- {v2/data => data}/readme.md | 0 {v2/docs => docs}/.gitignore | 0 {v2/docs => docs}/book.css | 0 {v2/docs => docs}/book.toml | 0 {v2/docs => docs}/solidity.min.js | 0 {v2 => docs/src}/README.md | 0 {v2/docs => docs}/src/SUMMARY.md | 0 .../interface.INotSupportedMethods.md | 0 {v2/docs => docs}/src/contracts/README.md | 0 .../Revert.sol/interface.Revertable.md | 0 .../Revert.sol/struct.RevertContext.md | 0 .../Revert.sol/struct.RevertOptions.md | 0 .../ERC20Custody.sol/contract.ERC20Custody.md | 0 .../evm/GatewayEVM.sol/contract.GatewayEVM.md | 0 {v2/docs => docs}/src/contracts/evm/README.md | 0 .../abstract.ZetaConnectorBase.md | 0 .../contract.ZetaConnectorNative.md | 0 .../contract.ZetaConnectorNonNative.md | 0 .../interface.IERC20Custody.md | 0 .../interface.IERC20CustodyErrors.md | 0 .../interface.IERC20CustodyEvents.md | 0 .../IGatewayEVM.sol/interface.Callable.md | 0 .../IGatewayEVM.sol/interface.IGatewayEVM.md | 0 .../interface.IGatewayEVMErrors.md | 0 .../interface.IGatewayEVMEvents.md | 0 .../IGatewayEVM.sol/struct.MessageContext.md | 0 .../interface.IZetaConnectorEvents.md | 0 .../interface.IZetaNonEthNew.md | 0 .../src/contracts/evm/interfaces/README.md | 0 .../interface.ConnectorErrors.md | 0 .../src/contracts/evm/legacy/README.md | 0 .../legacy/Zeta.eth.sol/contract.ZetaEth.md | 0 .../Zeta.non-eth.sol/contract.ZetaNonEth.md | 0 .../contract.ZetaConnectorBase.md | 0 .../contract.ZetaConnectorEth.md | 0 .../contract.ZetaConnectorNonEth.md | 0 .../ZetaErrors.sol/interface.ZetaErrors.md | 0 .../interface.ZetaCommonErrors.md | 0 .../interface.ZetaConnector.md | 0 .../interface.ZetaInterfaces.md | 0 .../interface.ZetaReceiver.md | 0 .../interface.ZetaTokenConsumer.md | 0 .../interface.ZetaNonEthInterface.md | 0 .../GatewayZEVM.sol/contract.GatewayZEVM.md | 0 .../src/contracts/zevm/README.md | 0 .../contract.SystemContract.md | 0 .../interface.SystemContractErrors.md | 0 .../zevm/WZETA.sol/contract.WETH9.md | 0 .../zevm/ZRC20.sol/contract.ZRC20.md | 0 .../zevm/ZRC20.sol/interface.ZRC20Errors.md | 0 .../interface.IGatewayZEVM.md | 0 .../interface.IGatewayZEVMErrors.md | 0 .../interface.IGatewayZEVMEvents.md | 0 .../IGatewayZEVM.sol/struct.CallOptions.md | 0 .../ISystem.sol/interface.ISystem.md | 0 .../interfaces/IWZETA.sol/interface.IWETH9.md | 0 .../interfaces/IZRC20.sol/enum.CoinType.md | 0 .../interfaces/IZRC20.sol/interface.IZRC20.md | 0 .../IZRC20.sol/interface.IZRC20Metadata.md | 0 .../IZRC20.sol/interface.ZRC20Events.md | 0 .../src/contracts/zevm/interfaces/README.md | 0 .../interface.UniversalContract.md | 0 .../interface.zContract.md | 0 .../struct.MessageContext.md | 0 .../UniversalContract.sol/struct.zContext.md | 0 .../src/contracts/zevm/legacy/README.md | 0 .../contract.ZetaConnectorZEVM.md | 0 .../interface.ZetaInterfaces.md | 0 .../interface.ZetaReceiver.md | 0 {v2/docs => docs}/src/index.md | 74 ++++++++++--------- v2/echidna.yaml => echidna.yaml | 0 v2/eslint.config.js => eslint.config.js | 0 v2/eslint.config.mjs => eslint.config.mjs | 0 v2/foundry.toml => foundry.toml | 0 v2/hardhat.config.ts => hardhat.config.ts | 0 {v2/lib => lib}/addresses.ts | 0 {v2/lib => lib}/index.ts | 0 {v2/lib => lib}/types.ts | 2 +- v2/package.json => package.json | 0 .../accesscontrolupgradeable.go | 0 {v2/pkg => pkg}/address.sol/address.go | 0 {v2/pkg => pkg}/base.sol/commonbase.go | 0 {v2/pkg => pkg}/base.sol/scriptbase.go | 0 {v2/pkg => pkg}/base.sol/testbase.go | 0 .../beaconproxy.sol/beaconproxy.go | 0 .../connectorerrors.sol/connectorerrors.go | 0 {v2/pkg => pkg}/console.sol/console.go | 0 {v2/pkg => pkg}/console2.sol/console2.go | 0 {v2/pkg => pkg}/context.sol/context.go | 0 .../contextupgradeable.go | 0 {v2/pkg => pkg}/core.sol/core.go | 0 {v2/pkg => pkg}/defender.sol/defender.go | 0 .../defenderdeploy.sol/defenderdeploy.go | 0 .../erc165upgradeable.go | 0 .../erc1967proxy.sol/erc1967proxy.go | 0 .../erc1967utils.sol/erc1967utils.go | 0 {v2/pkg => pkg}/erc20.sol/erc20.go | 0 {v2/pkg => pkg}/erc20/ierc20.sol/ierc20.go | 0 .../erc20burnable.sol/erc20burnable.go | 0 .../erc20custody.sol/erc20custody.go | 0 .../erc20custody.t.sol/erc20custodytest.go | 0 .../erc20custodyechidnatest.go | 0 .../erc20custodyupgradetest.go | 0 .../errors.sol/inotsupportedmethods.go | 0 {v2/pkg => pkg}/gatewayevm.sol/gatewayevm.go | 0 .../gatewayevm.t.sol/gatewayevminboundtest.go | 0 .../gatewayevm.t.sol/gatewayevmtest.go | 0 .../gatewayevmechidnatest.go | 0 .../gatewayevmupgradetest.go | 0 .../gatewayevmzevmtest.go | 0 .../gatewayzevm.sol/gatewayzevm.go | 0 .../gatewayzevminboundtest.go | 0 .../gatewayzevmoutboundtest.go | 0 .../gatewayzevmupgradetest.go | 0 .../iaccesscontrol.sol/iaccesscontrol.go | 0 {v2/pkg => pkg}/ibeacon.sol/ibeacon.go | 0 {v2/pkg => pkg}/ierc165.sol/ierc165.go | 0 {v2/pkg => pkg}/ierc1967.sol/ierc1967.go | 0 {v2/pkg => pkg}/ierc20.sol/ierc20.go | 0 .../ierc20custody.sol/ierc20custody.go | 0 .../ierc20custody.sol/ierc20custodyerrors.go | 0 .../ierc20custody.sol/ierc20custodyevents.go | 0 .../ierc20metadata.sol/ierc20metadata.go | 0 .../ierc20permit.sol/ierc20permit.go | 0 {v2/pkg => pkg}/ierc721.sol/ierc721.go | 0 .../ierc721.sol/ierc721enumerable.go | 0 .../ierc721.sol/ierc721metadata.go | 0 .../ierc721.sol/ierc721tokenreceiver.go | 0 {v2/pkg => pkg}/igatewayevm.sol/callable.go | 0 .../igatewayevm.sol/igatewayevm.go | 0 .../igatewayevm.sol/igatewayevmerrors.go | 0 .../igatewayevm.sol/igatewayevmevents.go | 0 .../igatewayzevm.sol/igatewayzevm.go | 0 .../igatewayzevm.sol/igatewayzevmerrors.go | 0 .../igatewayzevm.sol/igatewayzevmevents.go | 0 .../imulticall3.sol/imulticall3.go | 0 .../initializable.sol/initializable.go | 0 .../introspection/ierc165.sol/ierc165.go | 0 .../iproxyadmin.sol/iproxyadmin.go | 0 .../ireceiverevm.sol/ireceiverevmevents.go | 0 {v2/pkg => pkg}/isystem.sol/isystem.go | 0 .../iupgradeablebeacon.go | 0 .../iupgradeableproxy.go | 0 {v2/pkg => pkg}/iwzeta.sol/iweth9.go | 0 .../izetaconnectorevents.go | 0 .../izetanonethnew.sol/izetanonethnew.go | 0 {v2/pkg => pkg}/izrc20.sol/izrc20.go | 0 {v2/pkg => pkg}/izrc20.sol/izrc20metadata.go | 0 {v2/pkg => pkg}/izrc20.sol/zrc20events.go | 0 .../legacy/zeta.non-eth.sol/zetanoneth.go | 0 {v2/pkg => pkg}/math.sol/math.go | 0 {v2/pkg => pkg}/mockerc20.sol/mockerc20.go | 0 {v2/pkg => pkg}/mockerc721.sol/mockerc721.go | 0 {v2/pkg => pkg}/options.sol/options.go | 0 {v2/pkg => pkg}/ownable.sol/ownable.go | 0 {v2/pkg => pkg}/pausable.sol/pausable.go | 0 .../pausableupgradeable.go | 0 {v2/pkg => pkg}/proxy.sol/proxy.go | 0 {v2/pkg => pkg}/proxyadmin.sol/proxyadmin.go | 0 .../receiverevm.sol/receiverevm.go | 0 .../reentrancyguard.sol/reentrancyguard.go | 0 .../reentrancyguardupgradeable.go | 0 {v2/pkg => pkg}/revert.sol/revertable.go | 0 .../safeconsole.sol/safeconsole.go | 0 {v2/pkg => pkg}/safeerc20.sol/safeerc20.go | 0 {v2/pkg => pkg}/senderzevm.sol/senderzevm.go | 0 {v2/pkg => pkg}/signedmath.sol/signedmath.go | 0 {v2/pkg => pkg}/src/strings.sol/strings.go | 0 .../stdassertions.sol/stdassertions.go | 0 {v2/pkg => pkg}/stdchains.sol/stdchains.go | 0 {v2/pkg => pkg}/stdcheats.sol/stdcheats.go | 0 .../stdcheats.sol/stdcheatssafe.go | 0 {v2/pkg => pkg}/stderror.sol/stderror.go | 0 .../stdinvariant.sol/stdinvariant.go | 0 {v2/pkg => pkg}/stdjson.sol/stdjson.go | 0 {v2/pkg => pkg}/stdmath.sol/stdmath.go | 0 {v2/pkg => pkg}/stdstorage.sol/stdstorage.go | 0 .../stdstorage.sol/stdstoragesafe.go | 0 {v2/pkg => pkg}/stdstyle.sol/stdstyle.go | 0 {v2/pkg => pkg}/stdtoml.sol/stdtoml.go | 0 {v2/pkg => pkg}/stdutils.sol/stdutils.go | 0 .../storageslot.sol/storageslot.go | 0 {v2/pkg => pkg}/strings.sol/strings.go | 0 .../systemcontract.sol/systemcontract.go | 0 .../systemcontracterrors.go | 0 .../systemcontracterrors.go | 0 .../systemcontractmock.go | 0 {v2/pkg => pkg}/test.sol/test.go | 0 {v2/pkg => pkg}/testerc20.sol/testerc20.go | 0 .../testuniversalcontract.go | 0 .../itransparentupgradeableproxy.go | 0 .../transparentupgradeableproxy.go | 0 .../universalcontract.go | 0 .../universalcontract.sol/zcontract.go | 0 .../upgradeablebeacon.go | 0 .../upgrades.sol/unsafeupgrades.go | 0 {v2/pkg => pkg}/upgrades.sol/upgrades.go | 0 {v2/pkg => pkg}/utils.sol/utils.go | 0 {v2/pkg => pkg}/utils/wzeta.sol/weth9.go | 0 .../uupsupgradeable.sol/uupsupgradeable.go | 0 {v2/pkg => pkg}/versions.sol/versions.go | 0 {v2/pkg => pkg}/vm.sol/vm.go | 0 {v2/pkg => pkg}/vm.sol/vmsafe.go | 0 {v2/pkg => pkg}/wzeta.sol/weth9.go | 0 {v2/pkg => pkg}/wzeta.t.sol/wzetatest.go | 0 {v2/pkg => pkg}/zeta.eth.sol/zetaeth.go | 0 .../zeta.non-eth.sol/zetaerrors.go | 0 .../zeta.non-eth.sol/zetanoneth.go | 0 .../zeta.non-eth.sol/zetanonethinterface.go | 0 .../zetaconnectorbase.go | 0 .../zetaconnector.eth.sol/zetaconnectoreth.go | 0 .../zetaconnectornoneth.go | 0 .../zetaconnectorbase.go | 0 .../zetaconnectornative.go | 0 .../zetaconnectornativetest.go | 0 .../zetaconnectornativeupgradetest.go | 0 .../zetaconnectornonnative.go | 0 .../zetaconnectornonnativetest.go | 0 .../zetaconnectornonnativeupgradetest.go | 0 .../zetaconnectorzevm.go | 0 .../zetaconnectorzevm.sol/zetainterfaces.go | 0 .../zetaconnectorzevm.sol/zetareceiver.go | 0 {v2/pkg => pkg}/zetaerrors.sol/zetaerrors.go | 0 .../zetainterfaces.sol/zetacommonerrors.go | 0 .../zetainterfaces.sol/zetaconnector.go | 0 .../zetainterfaces.sol/zetainterfaces.go | 0 .../zetainterfaces.sol/zetareceiver.go | 0 .../zetainterfaces.sol/zetatokenconsumer.go | 0 .../zetanonethinterface.go | 0 {v2/pkg => pkg}/zrc20.sol/zrc20.go | 0 {v2/pkg => pkg}/zrc20.sol/zrc20errors.go | 0 {v2/pkg => pkg}/zrc20.t.sol/zrc20test.go | 0 .../deploy/DeployZRC20.s.sol | 0 .../deterministic/DeployERC20Custody.s.sol | 0 .../DeployERC20CustodyImplementation.s.sol | 0 .../deterministic/DeployGatewayEVM.s.sol | 0 .../DeployGatewayEVMImplementation.s.sol | 0 .../deterministic/DeployGatewayZEVM.s.sol | 0 .../DeployGatewayZEVMImplementation.s.sol | 0 .../deterministic/DeployTestERC20.s.sol | 0 .../DeployZetaConnectorNonNative.s.sol | 0 .../deterministic/UpgradeGatewayEVM.s.sol | 0 {v2/scripts => scripts}/deploy/readme.md | 0 {v2/scripts => scripts}/generate_addresses.sh | 0 .../generate_addresses_types.ts | 0 {v2/scripts => scripts}/generate_docs.sh | 0 {v2/scripts => scripts}/generate_go.sh | 0 .../upgrade/SimulateERC20CustodyUpgrade.s.sol | 0 .../upgrade/SimulateGatewayEVMUpgrade.s.sol | 0 .../upgrade/SimulateGatewayZEVMUpgrade.s.sol | 0 .../utils/compare_zrc20_info.sh | 0 .../utils/get_zrc20_info.sh | 0 v2/slither.config.json => slither.config.json | 0 v2/soldeer.lock => soldeer.lock | 0 {v2/src => src}/addresses.ts | 0 {v2/src => src}/index.ts | 0 {v2/src => src}/types.ts | 0 {v2/tasks => tasks}/addresses.mainnet.json | 0 {v2/tasks => tasks}/addresses.testnet.json | 0 {v2/tasks => tasks}/addresses.ts | 0 {v2/tasks => tasks}/readme.md | 0 {v2/test => test}/ERC20Custody.t.sol | 0 {v2/test => test}/GatewayEVM.t.sol | 0 {v2/test => test}/GatewayEVMZEVM.t.sol | 0 {v2/test => test}/GatewayZEVM.t.sol | 0 {v2/test => test}/WZETA.t.sol | 0 {v2/test => test}/ZRC20.t.sol | 0 {v2/test => test}/ZetaConnectorNative.t.sol | 0 .../ZetaConnectorNonNative.t.sol | 0 .../fuzz/ERC20CustodyEchidnaTest.sol | 0 .../fuzz/GatewayEVMEchidnaTest.sol | 0 {v2/test => test}/fuzz/readme.md | 0 {v2/test => test}/utils/IReceiverEVM.sol | 0 {v2/test => test}/utils/ReceiverEVM.sol | 0 {v2/test => test}/utils/SenderZEVM.sol | 0 .../utils/SystemContractMock.sol | 0 {v2/test => test}/utils/TestERC20.sol | 0 .../utils/TestUniversalContract.sol | 0 {v2/test => test}/utils/WZETA.sol | 0 {v2/test => test}/utils/Zeta.non-eth.sol | 0 .../upgrades/ERC20CustodyUpgradeTest.sol | 0 .../utils/upgrades/GatewayEVMUpgradeTest.sol | 0 .../utils/upgrades/GatewayZEVMUpgradeTest.sol | 0 .../ZetaConnectorNativeUpgradeTest.sol | 0 .../ZetaConnectorNonNativeUpgradeTest.sol | 0 v2/tsconfig.json => tsconfig.json | 0 {v2/types => types}/AccessControl.ts | 0 .../AccessControlUpgradeable.ts | 0 {v2/types => types}/Address.ts | 0 {v2/types => types}/BeaconProxy.ts | 0 {v2/types => types}/ConnectorErrors.ts | 0 {v2/types => types}/ContextUpgradeable.ts | 0 {v2/types => types}/ERC165.ts | 0 {v2/types => types}/ERC165Upgradeable.ts | 0 {v2/types => types}/ERC1967Proxy.ts | 0 {v2/types => types}/ERC1967Utils.ts | 0 {v2/types => types}/ERC20.ts | 0 {v2/types => types}/ERC20/IERC20.ts | 0 {v2/types => types}/ERC20/index.ts | 0 {v2/types => types}/ERC20Burnable.ts | 0 {v2/types => types}/ERC20Custody.ts | 0 .../ERC20CustodyEchidnaTest.ts | 0 .../ERC20CustodyUpgradeTest.ts | 0 {v2/types => types}/Errors.sol/Errors.ts | 0 .../Errors.sol/INotSupportedMethods.ts | 0 {v2/types => types}/Errors.sol/index.ts | 0 {v2/types => types}/GatewayEVM.ts | 0 {v2/types => types}/GatewayEVMEchidnaTest.ts | 0 {v2/types => types}/GatewayEVMUpgradeTest.ts | 0 {v2/types => types}/GatewayZEVM.ts | 0 {v2/types => types}/GatewayZEVMUpgradeTest.ts | 0 {v2/types => types}/IAccessControl.ts | 0 {v2/types => types}/IBeacon.ts | 0 {v2/types => types}/IERC1363.ts | 0 {v2/types => types}/IERC165.ts | 0 {v2/types => types}/IERC1967.ts | 0 {v2/types => types}/IERC20.ts | 0 .../IERC20Custody.sol/IERC20Custody.ts | 0 .../IERC20Custody.sol/IERC20CustodyErrors.ts | 0 .../IERC20Custody.sol/IERC20CustodyEvents.ts | 0 .../IERC20Custody.sol/index.ts | 0 {v2/types => types}/IERC20Metadata.ts | 0 {v2/types => types}/IERC20Permit.ts | 0 {v2/types => types}/IERC721.sol/IERC721.ts | 0 .../IERC721.sol/IERC721Enumerable.ts | 0 .../IERC721.sol/IERC721Metadata.ts | 0 .../IERC721.sol/IERC721TokenReceiver.ts | 0 {v2/types => types}/IERC721.sol/index.ts | 0 .../IGatewayEVM.sol/Callable.ts | 0 .../IGatewayEVM.sol/IGatewayEVM.ts | 0 .../IGatewayEVM.sol/IGatewayEVMErrors.ts | 0 .../IGatewayEVM.sol/IGatewayEVMEvents.ts | 0 {v2/types => types}/IGatewayEVM.sol/index.ts | 0 .../IGatewayZEVM.sol/IGatewayZEVM.ts | 0 .../IGatewayZEVM.sol/IGatewayZEVMErrors.ts | 0 .../IGatewayZEVM.sol/IGatewayZEVMEvents.ts | 0 {v2/types => types}/IGatewayZEVM.sol/index.ts | 0 {v2/types => types}/IMulticall3.ts | 0 {v2/types => types}/IProxyAdmin.ts | 0 .../IReceiverEVM.sol/IReceiverEVMEvents.ts | 0 {v2/types => types}/IReceiverEVM.sol/index.ts | 0 {v2/types => types}/ISystem.ts | 0 {v2/types => types}/IUniswapV2Callee.ts | 0 {v2/types => types}/IUniswapV2ERC20.ts | 0 .../IUniswapV2Factory0516.ts | 0 .../IUniswapV2Factory066.ts | 0 .../IUniswapV2Factory.sol/index.ts | 0 .../IUniswapV2Pair.sol/IUniswapV2Pair0516.ts | 0 .../IUniswapV2Pair.sol/IUniswapV2Pair066.ts | 0 .../IUniswapV2Pair.sol/index.ts | 0 {v2/types => types}/IUniswapV2Router01.ts | 0 {v2/types => types}/IUniswapV2Router02.ts | 0 {v2/types => types}/IUpgradeableBeacon.ts | 0 {v2/types => types}/IUpgradeableProxy.ts | 0 {v2/types => types}/IWETH.ts | 0 {v2/types => types}/IWZETA.sol/IWETH9.ts | 0 {v2/types => types}/IWZETA.sol/index.ts | 0 {v2/types => types}/IZRC20.sol/IZRC20.ts | 0 .../IZRC20.sol/IZRC20Metadata.ts | 0 {v2/types => types}/IZRC20.sol/ZRC20Events.ts | 0 {v2/types => types}/IZRC20.sol/index.ts | 0 .../IZetaConnectorEvents.ts | 0 .../IZetaConnector.sol/index.ts | 0 {v2/types => types}/IZetaNonEthNew.ts | 0 {v2/types => types}/Initializable.ts | 0 {v2/types => types}/Math.ts | 0 {v2/types => types}/MockERC20.ts | 0 {v2/types => types}/MockERC721.ts | 0 {v2/types => types}/Ownable.ts | 0 {v2/types => types}/Pausable.ts | 0 {v2/types => types}/PausableUpgradeable.ts | 0 {v2/types => types}/Proxy.ts | 0 {v2/types => types}/ProxyAdmin.ts | 0 {v2/types => types}/ReceiverEVM.ts | 0 {v2/types => types}/ReentrancyGuard.ts | 0 .../ReentrancyGuardUpgradeable.ts | 0 {v2/types => types}/Revert.sol/Revertable.ts | 0 {v2/types => types}/Revert.sol/index.ts | 0 {v2/types => types}/SafeCast.ts | 0 {v2/types => types}/SafeERC20.ts | 0 {v2/types => types}/SenderZEVM.ts | 0 {v2/types => types}/StdAssertions.ts | 0 {v2/types => types}/StdError.sol/StdError.ts | 0 {v2/types => types}/StdError.sol/index.ts | 0 {v2/types => types}/StdInvariant.ts | 0 .../StdStorage.sol/StdStorageSafe.ts | 0 {v2/types => types}/StdStorage.sol/index.ts | 0 {v2/types => types}/Strings.ts | 0 .../SystemContract.sol/SystemContract.ts | 0 .../SystemContractErrors.ts | 0 .../SystemContract.sol/index.ts | 0 .../SystemContractErrors.ts | 0 .../SystemContractMock.ts | 0 .../SystemContractMock.sol/index.ts | 0 {v2/types => types}/Test.ts | 0 {v2/types => types}/TestERC20.ts | 0 {v2/types => types}/TestUniversalContract.ts | 0 .../ITransparentUpgradeableProxy.ts | 0 .../TransparentUpgradeableProxy.ts | 0 .../TransparentUpgradeableProxy.sol/index.ts | 0 {v2/types => types}/UUPSUpgradeable.ts | 0 {v2/types => types}/UniswapV2ERC20.ts | 0 {v2/types => types}/UniswapV2Factory.ts | 0 {v2/types => types}/UniswapV2Pair.ts | 0 {v2/types => types}/UniswapV2Router02.ts | 0 .../UniversalContract.ts | 0 .../UniversalContract.sol/ZContract.ts | 0 .../UniversalContract.sol/index.ts | 0 {v2/types => types}/UpgradeableBeacon.ts | 0 {v2/types => types}/Vm.sol/Vm.ts | 0 {v2/types => types}/Vm.sol/VmSafe.ts | 0 {v2/types => types}/Vm.sol/index.ts | 0 {v2/types => types}/WZETA.sol/WETH9.ts | 0 {v2/types => types}/WZETA.sol/index.ts | 0 {v2/types => types}/ZRC20.sol/ZRC20.ts | 0 {v2/types => types}/ZRC20.sol/ZRC20Errors.ts | 0 {v2/types => types}/ZRC20.sol/index.ts | 0 {v2/types => types}/Zeta.eth.sol/ZetaEth.ts | 0 {v2/types => types}/Zeta.eth.sol/index.ts | 0 .../Zeta.non-eth.sol/ZetaErrors.ts | 0 .../Zeta.non-eth.sol/ZetaNonEth.ts | 0 .../Zeta.non-eth.sol/ZetaNonEthInterface.ts | 0 {v2/types => types}/Zeta.non-eth.sol/index.ts | 0 .../ZetaConnectorBase.ts | 0 .../ZetaConnector.base.sol/index.ts | 0 .../ZetaConnector.eth.sol/ZetaConnectorEth.ts | 0 .../ZetaConnector.eth.sol/index.ts | 0 .../ZetaConnectorNonEth.ts | 0 .../ZetaConnector.non-eth.sol/index.ts | 0 {v2/types => types}/ZetaConnectorBase.ts | 0 {v2/types => types}/ZetaConnectorNative.ts | 0 .../ZetaConnectorNativeUpgradeTest.ts | 0 {v2/types => types}/ZetaConnectorNonNative.ts | 0 .../ZetaConnectorNonNativeUpgradeTest.ts | 0 .../ZetaConnectorZEVM.ts | 0 .../ZetaConnectorZEVM.sol/ZetaReceiver.ts | 0 .../ZetaConnectorZEVM.sol/index.ts | 0 {v2/types => types}/ZetaErrors.ts | 0 .../ZetaInterfaces.sol/ZetaCommonErrors.ts | 0 .../ZetaInterfaces.sol/ZetaConnector.ts | 0 .../ZetaInterfaces.sol/ZetaReceiver.ts | 0 .../ZetaInterfaces.sol/ZetaTokenConsumer.ts | 0 .../ZetaInterfaces.sol/index.ts | 0 {v2/types => types}/ZetaNonEthInterface.ts | 0 {v2/types => types}/common.ts | 0 {v2/types => types}/contracts/index.ts | 0 .../contracts/interfaces/IERC20.ts | 0 .../contracts/interfaces/index.ts | 0 .../draft-IERC1822.sol/IERC1822Proxiable.ts | 0 .../draft-IERC1822.sol/index.ts | 0 .../draft-IERC6093.sol/IERC1155Errors.ts | 0 .../draft-IERC6093.sol/IERC20Errors.ts | 0 .../draft-IERC6093.sol/IERC721Errors.ts | 0 .../draft-IERC6093.sol/index.ts | 0 .../AccessControlUpgradeable__factory.ts | 0 .../factories/AccessControl__factory.ts | 0 .../factories/Address__factory.ts | 0 .../factories/BeaconProxy__factory.ts | 0 .../factories/ConnectorErrors__factory.ts | 0 .../factories/ContextUpgradeable__factory.ts | 0 .../factories/ERC165Upgradeable__factory.ts | 0 .../factories/ERC165__factory.ts | 0 .../factories/ERC1967Proxy__factory.ts | 0 .../factories/ERC1967Utils__factory.ts | 0 .../factories/ERC20/IERC20__factory.ts | 0 {v2/types => types}/factories/ERC20/index.ts | 0 .../factories/ERC20Burnable__factory.ts | 0 .../ERC20CustodyEchidnaTest__factory.ts | 0 .../ERC20CustodyUpgradeTest__factory.ts | 0 .../factories/ERC20Custody__factory.ts | 0 .../factories/ERC20__factory.ts | 0 .../factories/Errors.sol/Errors__factory.ts | 0 .../INotSupportedMethods__factory.ts | 0 .../factories/Errors.sol/index.ts | 0 .../GatewayEVMEchidnaTest__factory.ts | 0 .../GatewayEVMUpgradeTest__factory.ts | 0 .../factories/GatewayEVM__factory.ts | 0 .../GatewayZEVMUpgradeTest__factory.ts | 0 .../factories/GatewayZEVM__factory.ts | 0 .../factories/IAccessControl__factory.ts | 0 .../factories/IBeacon__factory.ts | 0 .../factories/IERC1363__factory.ts | 0 .../factories/IERC165__factory.ts | 0 .../factories/IERC1967__factory.ts | 0 .../IERC20CustodyErrors__factory.ts | 0 .../IERC20CustodyEvents__factory.ts | 0 .../IERC20Custody__factory.ts | 0 .../factories/IERC20Custody.sol/index.ts | 0 .../factories/IERC20Metadata__factory.ts | 0 .../factories/IERC20Permit__factory.ts | 0 .../factories/IERC20__factory.ts | 0 .../IERC721.sol/IERC721Enumerable__factory.ts | 0 .../IERC721.sol/IERC721Metadata__factory.ts | 0 .../IERC721TokenReceiver__factory.ts | 0 .../factories/IERC721.sol/IERC721__factory.ts | 0 .../factories/IERC721.sol/index.ts | 0 .../IGatewayEVM.sol/Callable__factory.ts | 0 .../IGatewayEVMErrors__factory.ts | 0 .../IGatewayEVMEvents__factory.ts | 0 .../IGatewayEVM.sol/IGatewayEVM__factory.ts | 0 .../factories/IGatewayEVM.sol/index.ts | 0 .../IGatewayZEVMErrors__factory.ts | 0 .../IGatewayZEVMEvents__factory.ts | 0 .../IGatewayZEVM.sol/IGatewayZEVM__factory.ts | 0 .../factories/IGatewayZEVM.sol/index.ts | 0 .../factories/IMulticall3__factory.ts | 0 .../factories/IProxyAdmin__factory.ts | 0 .../IReceiverEVMEvents__factory.ts | 0 .../factories/IReceiverEVM.sol/index.ts | 0 .../factories/ISystem__factory.ts | 0 .../factories/IUniswapV2Callee__factory.ts | 0 .../factories/IUniswapV2ERC20__factory.ts | 0 .../IUniswapV2Factory0516__factory.ts | 0 .../IUniswapV2Factory066__factory.ts | 0 .../factories/IUniswapV2Factory.sol/index.ts | 0 .../IUniswapV2Pair0516__factory.ts | 0 .../IUniswapV2Pair066__factory.ts | 0 .../factories/IUniswapV2Pair.sol/index.ts | 0 .../factories/IUniswapV2Router01__factory.ts | 0 .../factories/IUniswapV2Router02__factory.ts | 0 .../factories/IUpgradeableBeacon__factory.ts | 0 .../factories/IUpgradeableProxy__factory.ts | 0 .../factories/IWETH__factory.ts | 0 .../factories/IWZETA.sol/IWETH9__factory.ts | 0 .../factories/IWZETA.sol/index.ts | 0 .../IZRC20.sol/IZRC20Metadata__factory.ts | 0 .../factories/IZRC20.sol/IZRC20__factory.ts | 0 .../IZRC20.sol/ZRC20Events__factory.ts | 0 .../factories/IZRC20.sol/index.ts | 0 .../IZetaConnectorEvents__factory.ts | 0 .../factories/IZetaConnector.sol/index.ts | 0 .../factories/IZetaNonEthNew__factory.ts | 0 .../factories/Initializable__factory.ts | 0 .../factories/Math__factory.ts | 0 .../factories/MockERC20__factory.ts | 0 .../factories/MockERC721__factory.ts | 0 .../factories/Ownable__factory.ts | 0 .../factories/PausableUpgradeable__factory.ts | 0 .../factories/Pausable__factory.ts | 0 .../factories/ProxyAdmin__factory.ts | 0 .../factories/Proxy__factory.ts | 0 .../factories/ReceiverEVM__factory.ts | 0 .../ReentrancyGuardUpgradeable__factory.ts | 0 .../factories/ReentrancyGuard__factory.ts | 0 .../Revert.sol/Revertable__factory.ts | 0 .../factories/Revert.sol/index.ts | 0 .../factories/SafeCast__factory.ts | 0 .../factories/SafeERC20__factory.ts | 0 .../factories/SenderZEVM__factory.ts | 0 .../factories/StdAssertions__factory.ts | 0 .../StdError.sol/StdError__factory.ts | 0 .../factories/StdError.sol/index.ts | 0 .../factories/StdInvariant__factory.ts | 0 .../StdStorage.sol/StdStorageSafe__factory.ts | 0 .../factories/StdStorage.sol/index.ts | 0 .../factories/Strings__factory.ts | 0 .../SystemContractErrors__factory.ts | 0 .../SystemContract__factory.ts | 0 .../factories/SystemContract.sol/index.ts | 0 .../SystemContractErrors__factory.ts | 0 .../SystemContractMock__factory.ts | 0 .../factories/SystemContractMock.sol/index.ts | 0 .../factories/TestERC20__factory.ts | 0 .../TestUniversalContract__factory.ts | 0 .../factories/Test__factory.ts | 0 .../ITransparentUpgradeableProxy__factory.ts | 0 .../TransparentUpgradeableProxy__factory.ts | 0 .../TransparentUpgradeableProxy.sol/index.ts | 0 .../factories/UUPSUpgradeable__factory.ts | 0 .../factories/UniswapV2ERC20__factory.ts | 0 .../factories/UniswapV2Factory__factory.ts | 0 .../factories/UniswapV2Pair__factory.ts | 0 .../factories/UniswapV2Router02__factory.ts | 0 .../UniversalContract__factory.ts | 0 .../ZContract__factory.ts | 0 .../factories/UniversalContract.sol/index.ts | 0 .../factories/UpgradeableBeacon__factory.ts | 0 .../factories/Vm.sol/VmSafe__factory.ts | 0 .../factories/Vm.sol/Vm__factory.ts | 0 {v2/types => types}/factories/Vm.sol/index.ts | 0 .../factories/WZETA.sol/WETH9__factory.ts | 0 .../factories/WZETA.sol/index.ts | 0 .../ZRC20.sol/ZRC20Errors__factory.ts | 0 .../factories/ZRC20.sol/ZRC20__factory.ts | 0 .../factories/ZRC20.sol/index.ts | 0 .../Zeta.eth.sol/ZetaEth__factory.ts | 0 .../factories/Zeta.eth.sol/index.ts | 0 .../Zeta.non-eth.sol/ZetaErrors__factory.ts | 0 .../ZetaNonEthInterface__factory.ts | 0 .../Zeta.non-eth.sol/ZetaNonEth__factory.ts | 0 .../factories/Zeta.non-eth.sol/index.ts | 0 .../ZetaConnectorBase__factory.ts | 0 .../factories/ZetaConnector.base.sol/index.ts | 0 .../ZetaConnectorEth__factory.ts | 0 .../factories/ZetaConnector.eth.sol/index.ts | 0 .../ZetaConnectorNonEth__factory.ts | 0 .../ZetaConnector.non-eth.sol/index.ts | 0 .../factories/ZetaConnectorBase__factory.ts | 0 ...ZetaConnectorNativeUpgradeTest__factory.ts | 0 .../factories/ZetaConnectorNative__factory.ts | 0 ...aConnectorNonNativeUpgradeTest__factory.ts | 0 .../ZetaConnectorNonNative__factory.ts | 0 .../ZetaConnectorZEVM__factory.ts | 0 .../ZetaReceiver__factory.ts | 0 .../factories/ZetaConnectorZEVM.sol/index.ts | 0 .../factories/ZetaErrors__factory.ts | 0 .../ZetaCommonErrors__factory.ts | 0 .../ZetaConnector__factory.ts | 0 .../ZetaReceiver__factory.ts | 0 .../ZetaTokenConsumer__factory.ts | 0 .../factories/ZetaInterfaces.sol/index.ts | 0 .../factories/ZetaNonEthInterface__factory.ts | 0 .../factories/contracts/index.ts | 0 .../contracts/interfaces/IERC20__factory.ts | 0 .../factories/contracts/interfaces/index.ts | 0 .../IERC1822Proxiable__factory.ts | 0 .../factories/draft-IERC1822.sol/index.ts | 0 .../IERC1155Errors__factory.ts | 0 .../IERC20Errors__factory.ts | 0 .../IERC721Errors__factory.ts | 0 .../factories/draft-IERC6093.sol/index.ts | 0 {v2/types => types}/factories/index.ts | 0 .../factories/interfaces/IERC20__factory.ts | 0 .../factories/interfaces/index.ts | 0 .../introspection/IERC165__factory.ts | 0 .../factories/introspection/index.ts | 0 .../Zeta.non-eth.sol/ZetaNonEth__factory.ts | 0 .../legacy/Zeta.non-eth.sol/index.ts | 0 {v2/types => types}/factories/legacy/index.ts | 0 .../factories/utils/Strings__factory.ts | 0 .../utils/WZETA.sol/WETH9__factory.ts | 0 .../factories/utils/WZETA.sol/index.ts | 0 {v2/types => types}/factories/utils/index.ts | 0 {v2/types => types}/index.ts | 0 {v2/types => types}/interfaces/IERC20.ts | 0 {v2/types => types}/interfaces/index.ts | 0 {v2/types => types}/introspection/IERC165.ts | 0 {v2/types => types}/introspection/index.ts | 0 .../legacy/Zeta.non-eth.sol/ZetaNonEth.ts | 0 .../legacy/Zeta.non-eth.sol/index.ts | 0 {v2/types => types}/legacy/index.ts | 0 {v2/types => types}/utils/Strings.ts | 0 {v2/types => types}/utils/WZETA.sol/WETH9.ts | 0 {v2/types => types}/utils/WZETA.sol/index.ts | 0 {v2/types => types}/utils/index.ts | 0 v2/.env.sample | 22 ------ v2/docs/src/README.md | 68 ----------------- v2/yarn.lock => yarn.lock | 0 766 files changed, 131 insertions(+), 131 deletions(-) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/1/run-1730753818.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/1/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/137/run-1730752202.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/137/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/56/run-1730753057.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/56/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/8453/run-1730745732.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/8453/run-1730751538.json (100%) rename {v2/broadcast => broadcast}/DeployERC20Custody.s.sol/8453/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/1/run-1733252238.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/1/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/11155111/run-1730496331.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/11155111/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/137/run-1733231885.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/137/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/56/run-1733232160.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/56/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/80002/run-1730495993.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/80002/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/8453/run-1733231319.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/8453/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/84532/run-1730495509.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/84532/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/97/run-1730496209.json (100%) rename {v2/broadcast => broadcast}/DeployERC20CustodyImplementation.s.sol/97/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/1/run-1730753500.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/1/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/137/run-1730752013.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/137/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/56/run-1730752764.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/56/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/8453/run-1730745320.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/8453/run-1730751006.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVM.s.sol/8453/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733232295.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733250991.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733251007.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733251017.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733252189.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733256946.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733257136.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733257161.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733257244.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733257433.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733257460.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-1733257819.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/1/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/11155111/run-1730496266.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/11155111/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/137/run-1733231464.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/137/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/56/run-1733231996.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/56/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/80002/run-1730495654.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/80002/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/8453/run-1733231079.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/8453/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/84532/run-1730495252.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/84532/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/97/run-1730496146.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayEVMImplementation.s.sol/97/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayZEVM.s.sol/7000/run-1730755057.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayZEVM.s.sol/7000/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayZEVMImplementation.s.sol/7000/run-1733233245.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayZEVMImplementation.s.sol/7000/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayZEVMImplementation.s.sol/7001/run-1730496448.json (100%) rename {v2/broadcast => broadcast}/DeployGatewayZEVMImplementation.s.sol/7001/run-latest.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730815310.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730815503.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730816308.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730816443.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730816898.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817009.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817119.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817223.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817409.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817520.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817621.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817803.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730817943.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730818153.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730818449.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730818554.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-1730819617.json (100%) rename {v2/broadcast => broadcast}/DeployZRC20.s.sol/7000/run-latest.json (100%) rename {v2/contracts => contracts}/Errors.sol (100%) rename {v2/contracts => contracts}/Revert.sol (100%) rename {v2/contracts => contracts}/evm/ERC20Custody.sol (100%) rename {v2/contracts => contracts}/evm/GatewayEVM.sol (100%) rename {v2/contracts => contracts}/evm/ZetaConnectorBase.sol (100%) rename {v2/contracts => contracts}/evm/ZetaConnectorNative.sol (100%) rename {v2/contracts => contracts}/evm/ZetaConnectorNonNative.sol (100%) rename {v2/contracts => contracts}/evm/interfaces/IERC20Custody.sol (100%) rename {v2/contracts => contracts}/evm/interfaces/IGatewayEVM.sol (100%) rename {v2/contracts => contracts}/evm/interfaces/IZetaConnector.sol (100%) rename {v2/contracts => contracts}/evm/interfaces/IZetaNonEthNew.sol (100%) rename {v2/contracts => contracts}/evm/legacy/ConnectorErrors.sol (100%) rename {v2/contracts => contracts}/evm/legacy/Zeta.eth.sol (100%) rename {v2/contracts => contracts}/evm/legacy/Zeta.non-eth.sol (100%) rename {v2/contracts => contracts}/evm/legacy/ZetaConnector.base.sol (100%) rename {v2/contracts => contracts}/evm/legacy/ZetaConnector.eth.sol (100%) rename {v2/contracts => contracts}/evm/legacy/ZetaConnector.non-eth.sol (100%) rename {v2/contracts => contracts}/evm/legacy/ZetaErrors.sol (100%) rename {v2/contracts => contracts}/evm/legacy/ZetaInterfaces.sol (100%) rename {v2/contracts => contracts}/evm/legacy/ZetaNonEthInterface.sol (100%) rename {v2/contracts => contracts}/zevm/GatewayZEVM.sol (100%) rename {v2/contracts => contracts}/zevm/SystemContract.sol (100%) rename {v2/contracts => contracts}/zevm/WZETA.sol (100%) rename {v2/contracts => contracts}/zevm/ZRC20.sol (100%) rename {v2/contracts => contracts}/zevm/interfaces/IGatewayZEVM.sol (100%) rename {v2/contracts => contracts}/zevm/interfaces/ISystem.sol (100%) rename {v2/contracts => contracts}/zevm/interfaces/IWZETA.sol (100%) rename {v2/contracts => contracts}/zevm/interfaces/IZRC20.sol (100%) rename {v2/contracts => contracts}/zevm/interfaces/UniversalContract.sol (100%) rename {v2/contracts => contracts}/zevm/legacy/ZetaConnectorZEVM.sol (100%) rename {v2/data => data}/addresses.mainnet.json (94%) rename {v2/data => data}/addresses.testnet.json (99%) rename {v2/data => data}/readme.md (100%) rename {v2/docs => docs}/.gitignore (100%) rename {v2/docs => docs}/book.css (100%) rename {v2/docs => docs}/book.toml (100%) rename {v2/docs => docs}/solidity.min.js (100%) rename {v2 => docs/src}/README.md (100%) rename {v2/docs => docs}/src/SUMMARY.md (100%) rename {v2/docs => docs}/src/contracts/Errors.sol/interface.INotSupportedMethods.md (100%) rename {v2/docs => docs}/src/contracts/README.md (100%) rename {v2/docs => docs}/src/contracts/Revert.sol/interface.Revertable.md (100%) rename {v2/docs => docs}/src/contracts/Revert.sol/struct.RevertContext.md (100%) rename {v2/docs => docs}/src/contracts/Revert.sol/struct.RevertOptions.md (100%) rename {v2/docs => docs}/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md (100%) rename {v2/docs => docs}/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md (100%) rename {v2/docs => docs}/src/contracts/evm/README.md (100%) rename {v2/docs => docs}/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md (100%) rename {v2/docs => docs}/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md (100%) rename {v2/docs => docs}/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.Callable.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IGatewayEVM.sol/struct.MessageContext.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md (100%) rename {v2/docs => docs}/src/contracts/evm/interfaces/README.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ConnectorErrors.sol/interface.ConnectorErrors.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/README.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/Zeta.eth.sol/contract.ZetaEth.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/Zeta.non-eth.sol/contract.ZetaNonEth.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaConnector.base.sol/contract.ZetaConnectorBase.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaErrors.sol/interface.ZetaErrors.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaCommonErrors.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaConnector.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaInterfaces.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaReceiver.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md (100%) rename {v2/docs => docs}/src/contracts/evm/legacy/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md (100%) rename {v2/docs => docs}/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md (100%) rename {v2/docs => docs}/src/contracts/zevm/README.md (100%) rename {v2/docs => docs}/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md (100%) rename {v2/docs => docs}/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md (100%) rename {v2/docs => docs}/src/contracts/zevm/WZETA.sol/contract.WETH9.md (100%) rename {v2/docs => docs}/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md (100%) rename {v2/docs => docs}/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IGatewayZEVM.sol/struct.CallOptions.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/README.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/UniversalContract.sol/struct.MessageContext.md (100%) rename {v2/docs => docs}/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md (100%) rename {v2/docs => docs}/src/contracts/zevm/legacy/README.md (100%) rename {v2/docs => docs}/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md (100%) rename {v2/docs => docs}/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md (100%) rename {v2/docs => docs}/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md (100%) rename {v2/docs => docs}/src/index.md (77%) rename v2/echidna.yaml => echidna.yaml (100%) rename v2/eslint.config.js => eslint.config.js (100%) rename v2/eslint.config.mjs => eslint.config.mjs (100%) rename v2/foundry.toml => foundry.toml (100%) rename v2/hardhat.config.ts => hardhat.config.ts (100%) rename {v2/lib => lib}/addresses.ts (100%) rename {v2/lib => lib}/index.ts (100%) rename {v2/lib => lib}/types.ts (61%) rename v2/package.json => package.json (100%) rename {v2/pkg => pkg}/accesscontrolupgradeable.sol/accesscontrolupgradeable.go (100%) rename {v2/pkg => pkg}/address.sol/address.go (100%) rename {v2/pkg => pkg}/base.sol/commonbase.go (100%) rename {v2/pkg => pkg}/base.sol/scriptbase.go (100%) rename {v2/pkg => pkg}/base.sol/testbase.go (100%) rename {v2/pkg => pkg}/beaconproxy.sol/beaconproxy.go (100%) rename {v2/pkg => pkg}/connectorerrors.sol/connectorerrors.go (100%) rename {v2/pkg => pkg}/console.sol/console.go (100%) rename {v2/pkg => pkg}/console2.sol/console2.go (100%) rename {v2/pkg => pkg}/context.sol/context.go (100%) rename {v2/pkg => pkg}/contextupgradeable.sol/contextupgradeable.go (100%) rename {v2/pkg => pkg}/core.sol/core.go (100%) rename {v2/pkg => pkg}/defender.sol/defender.go (100%) rename {v2/pkg => pkg}/defenderdeploy.sol/defenderdeploy.go (100%) rename {v2/pkg => pkg}/erc165upgradeable.sol/erc165upgradeable.go (100%) rename {v2/pkg => pkg}/erc1967proxy.sol/erc1967proxy.go (100%) rename {v2/pkg => pkg}/erc1967utils.sol/erc1967utils.go (100%) rename {v2/pkg => pkg}/erc20.sol/erc20.go (100%) rename {v2/pkg => pkg}/erc20/ierc20.sol/ierc20.go (100%) rename {v2/pkg => pkg}/erc20burnable.sol/erc20burnable.go (100%) rename {v2/pkg => pkg}/erc20custody.sol/erc20custody.go (100%) rename {v2/pkg => pkg}/erc20custody.t.sol/erc20custodytest.go (100%) rename {v2/pkg => pkg}/erc20custodyechidnatest.sol/erc20custodyechidnatest.go (100%) rename {v2/pkg => pkg}/erc20custodyupgradetest.sol/erc20custodyupgradetest.go (100%) rename {v2/pkg => pkg}/errors.sol/inotsupportedmethods.go (100%) rename {v2/pkg => pkg}/gatewayevm.sol/gatewayevm.go (100%) rename {v2/pkg => pkg}/gatewayevm.t.sol/gatewayevminboundtest.go (100%) rename {v2/pkg => pkg}/gatewayevm.t.sol/gatewayevmtest.go (100%) rename {v2/pkg => pkg}/gatewayevmechidnatest.sol/gatewayevmechidnatest.go (100%) rename {v2/pkg => pkg}/gatewayevmupgradetest.sol/gatewayevmupgradetest.go (100%) rename {v2/pkg => pkg}/gatewayevmzevm.t.sol/gatewayevmzevmtest.go (100%) rename {v2/pkg => pkg}/gatewayzevm.sol/gatewayzevm.go (100%) rename {v2/pkg => pkg}/gatewayzevm.t.sol/gatewayzevminboundtest.go (100%) rename {v2/pkg => pkg}/gatewayzevm.t.sol/gatewayzevmoutboundtest.go (100%) rename {v2/pkg => pkg}/gatewayzevmupgradetest.sol/gatewayzevmupgradetest.go (100%) rename {v2/pkg => pkg}/iaccesscontrol.sol/iaccesscontrol.go (100%) rename {v2/pkg => pkg}/ibeacon.sol/ibeacon.go (100%) rename {v2/pkg => pkg}/ierc165.sol/ierc165.go (100%) rename {v2/pkg => pkg}/ierc1967.sol/ierc1967.go (100%) rename {v2/pkg => pkg}/ierc20.sol/ierc20.go (100%) rename {v2/pkg => pkg}/ierc20custody.sol/ierc20custody.go (100%) rename {v2/pkg => pkg}/ierc20custody.sol/ierc20custodyerrors.go (100%) rename {v2/pkg => pkg}/ierc20custody.sol/ierc20custodyevents.go (100%) rename {v2/pkg => pkg}/ierc20metadata.sol/ierc20metadata.go (100%) rename {v2/pkg => pkg}/ierc20permit.sol/ierc20permit.go (100%) rename {v2/pkg => pkg}/ierc721.sol/ierc721.go (100%) rename {v2/pkg => pkg}/ierc721.sol/ierc721enumerable.go (100%) rename {v2/pkg => pkg}/ierc721.sol/ierc721metadata.go (100%) rename {v2/pkg => pkg}/ierc721.sol/ierc721tokenreceiver.go (100%) rename {v2/pkg => pkg}/igatewayevm.sol/callable.go (100%) rename {v2/pkg => pkg}/igatewayevm.sol/igatewayevm.go (100%) rename {v2/pkg => pkg}/igatewayevm.sol/igatewayevmerrors.go (100%) rename {v2/pkg => pkg}/igatewayevm.sol/igatewayevmevents.go (100%) rename {v2/pkg => pkg}/igatewayzevm.sol/igatewayzevm.go (100%) rename {v2/pkg => pkg}/igatewayzevm.sol/igatewayzevmerrors.go (100%) rename {v2/pkg => pkg}/igatewayzevm.sol/igatewayzevmevents.go (100%) rename {v2/pkg => pkg}/imulticall3.sol/imulticall3.go (100%) rename {v2/pkg => pkg}/initializable.sol/initializable.go (100%) rename {v2/pkg => pkg}/introspection/ierc165.sol/ierc165.go (100%) rename {v2/pkg => pkg}/iproxyadmin.sol/iproxyadmin.go (100%) rename {v2/pkg => pkg}/ireceiverevm.sol/ireceiverevmevents.go (100%) rename {v2/pkg => pkg}/isystem.sol/isystem.go (100%) rename {v2/pkg => pkg}/iupgradeablebeacon.sol/iupgradeablebeacon.go (100%) rename {v2/pkg => pkg}/iupgradeableproxy.sol/iupgradeableproxy.go (100%) rename {v2/pkg => pkg}/iwzeta.sol/iweth9.go (100%) rename {v2/pkg => pkg}/izetaconnector.sol/izetaconnectorevents.go (100%) rename {v2/pkg => pkg}/izetanonethnew.sol/izetanonethnew.go (100%) rename {v2/pkg => pkg}/izrc20.sol/izrc20.go (100%) rename {v2/pkg => pkg}/izrc20.sol/izrc20metadata.go (100%) rename {v2/pkg => pkg}/izrc20.sol/zrc20events.go (100%) rename {v2/pkg => pkg}/legacy/zeta.non-eth.sol/zetanoneth.go (100%) rename {v2/pkg => pkg}/math.sol/math.go (100%) rename {v2/pkg => pkg}/mockerc20.sol/mockerc20.go (100%) rename {v2/pkg => pkg}/mockerc721.sol/mockerc721.go (100%) rename {v2/pkg => pkg}/options.sol/options.go (100%) rename {v2/pkg => pkg}/ownable.sol/ownable.go (100%) rename {v2/pkg => pkg}/pausable.sol/pausable.go (100%) rename {v2/pkg => pkg}/pausableupgradeable.sol/pausableupgradeable.go (100%) rename {v2/pkg => pkg}/proxy.sol/proxy.go (100%) rename {v2/pkg => pkg}/proxyadmin.sol/proxyadmin.go (100%) rename {v2/pkg => pkg}/receiverevm.sol/receiverevm.go (100%) rename {v2/pkg => pkg}/reentrancyguard.sol/reentrancyguard.go (100%) rename {v2/pkg => pkg}/reentrancyguardupgradeable.sol/reentrancyguardupgradeable.go (100%) rename {v2/pkg => pkg}/revert.sol/revertable.go (100%) rename {v2/pkg => pkg}/safeconsole.sol/safeconsole.go (100%) rename {v2/pkg => pkg}/safeerc20.sol/safeerc20.go (100%) rename {v2/pkg => pkg}/senderzevm.sol/senderzevm.go (100%) rename {v2/pkg => pkg}/signedmath.sol/signedmath.go (100%) rename {v2/pkg => pkg}/src/strings.sol/strings.go (100%) rename {v2/pkg => pkg}/stdassertions.sol/stdassertions.go (100%) rename {v2/pkg => pkg}/stdchains.sol/stdchains.go (100%) rename {v2/pkg => pkg}/stdcheats.sol/stdcheats.go (100%) rename {v2/pkg => pkg}/stdcheats.sol/stdcheatssafe.go (100%) rename {v2/pkg => pkg}/stderror.sol/stderror.go (100%) rename {v2/pkg => pkg}/stdinvariant.sol/stdinvariant.go (100%) rename {v2/pkg => pkg}/stdjson.sol/stdjson.go (100%) rename {v2/pkg => pkg}/stdmath.sol/stdmath.go (100%) rename {v2/pkg => pkg}/stdstorage.sol/stdstorage.go (100%) rename {v2/pkg => pkg}/stdstorage.sol/stdstoragesafe.go (100%) rename {v2/pkg => pkg}/stdstyle.sol/stdstyle.go (100%) rename {v2/pkg => pkg}/stdtoml.sol/stdtoml.go (100%) rename {v2/pkg => pkg}/stdutils.sol/stdutils.go (100%) rename {v2/pkg => pkg}/storageslot.sol/storageslot.go (100%) rename {v2/pkg => pkg}/strings.sol/strings.go (100%) rename {v2/pkg => pkg}/systemcontract.sol/systemcontract.go (100%) rename {v2/pkg => pkg}/systemcontract.sol/systemcontracterrors.go (100%) rename {v2/pkg => pkg}/systemcontractmock.sol/systemcontracterrors.go (100%) rename {v2/pkg => pkg}/systemcontractmock.sol/systemcontractmock.go (100%) rename {v2/pkg => pkg}/test.sol/test.go (100%) rename {v2/pkg => pkg}/testerc20.sol/testerc20.go (100%) rename {v2/pkg => pkg}/testuniversalcontract.sol/testuniversalcontract.go (100%) rename {v2/pkg => pkg}/transparentupgradeableproxy.sol/itransparentupgradeableproxy.go (100%) rename {v2/pkg => pkg}/transparentupgradeableproxy.sol/transparentupgradeableproxy.go (100%) rename {v2/pkg => pkg}/universalcontract.sol/universalcontract.go (100%) rename {v2/pkg => pkg}/universalcontract.sol/zcontract.go (100%) rename {v2/pkg => pkg}/upgradeablebeacon.sol/upgradeablebeacon.go (100%) rename {v2/pkg => pkg}/upgrades.sol/unsafeupgrades.go (100%) rename {v2/pkg => pkg}/upgrades.sol/upgrades.go (100%) rename {v2/pkg => pkg}/utils.sol/utils.go (100%) rename {v2/pkg => pkg}/utils/wzeta.sol/weth9.go (100%) rename {v2/pkg => pkg}/uupsupgradeable.sol/uupsupgradeable.go (100%) rename {v2/pkg => pkg}/versions.sol/versions.go (100%) rename {v2/pkg => pkg}/vm.sol/vm.go (100%) rename {v2/pkg => pkg}/vm.sol/vmsafe.go (100%) rename {v2/pkg => pkg}/wzeta.sol/weth9.go (100%) rename {v2/pkg => pkg}/wzeta.t.sol/wzetatest.go (100%) rename {v2/pkg => pkg}/zeta.eth.sol/zetaeth.go (100%) rename {v2/pkg => pkg}/zeta.non-eth.sol/zetaerrors.go (100%) rename {v2/pkg => pkg}/zeta.non-eth.sol/zetanoneth.go (100%) rename {v2/pkg => pkg}/zeta.non-eth.sol/zetanonethinterface.go (100%) rename {v2/pkg => pkg}/zetaconnector.base.sol/zetaconnectorbase.go (100%) rename {v2/pkg => pkg}/zetaconnector.eth.sol/zetaconnectoreth.go (100%) rename {v2/pkg => pkg}/zetaconnector.non-eth.sol/zetaconnectornoneth.go (100%) rename {v2/pkg => pkg}/zetaconnectorbase.sol/zetaconnectorbase.go (100%) rename {v2/pkg => pkg}/zetaconnectornative.sol/zetaconnectornative.go (100%) rename {v2/pkg => pkg}/zetaconnectornative.t.sol/zetaconnectornativetest.go (100%) rename {v2/pkg => pkg}/zetaconnectornativeupgradetest.sol/zetaconnectornativeupgradetest.go (100%) rename {v2/pkg => pkg}/zetaconnectornonnative.sol/zetaconnectornonnative.go (100%) rename {v2/pkg => pkg}/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go (100%) rename {v2/pkg => pkg}/zetaconnectornonnativeupgradetest.sol/zetaconnectornonnativeupgradetest.go (100%) rename {v2/pkg => pkg}/zetaconnectorzevm.sol/zetaconnectorzevm.go (100%) rename {v2/pkg => pkg}/zetaconnectorzevm.sol/zetainterfaces.go (100%) rename {v2/pkg => pkg}/zetaconnectorzevm.sol/zetareceiver.go (100%) rename {v2/pkg => pkg}/zetaerrors.sol/zetaerrors.go (100%) rename {v2/pkg => pkg}/zetainterfaces.sol/zetacommonerrors.go (100%) rename {v2/pkg => pkg}/zetainterfaces.sol/zetaconnector.go (100%) rename {v2/pkg => pkg}/zetainterfaces.sol/zetainterfaces.go (100%) rename {v2/pkg => pkg}/zetainterfaces.sol/zetareceiver.go (100%) rename {v2/pkg => pkg}/zetainterfaces.sol/zetatokenconsumer.go (100%) rename {v2/pkg => pkg}/zetanonethinterface.sol/zetanonethinterface.go (100%) rename {v2/pkg => pkg}/zrc20.sol/zrc20.go (100%) rename {v2/pkg => pkg}/zrc20.sol/zrc20errors.go (100%) rename {v2/pkg => pkg}/zrc20.t.sol/zrc20test.go (100%) rename {v2/scripts => scripts}/deploy/DeployZRC20.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployERC20Custody.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployERC20CustodyImplementation.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployGatewayEVM.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployGatewayEVMImplementation.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployGatewayZEVM.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployGatewayZEVMImplementation.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployTestERC20.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/DeployZetaConnectorNonNative.s.sol (100%) rename {v2/scripts => scripts}/deploy/deterministic/UpgradeGatewayEVM.s.sol (100%) rename {v2/scripts => scripts}/deploy/readme.md (100%) rename {v2/scripts => scripts}/generate_addresses.sh (100%) rename {v2/scripts => scripts}/generate_addresses_types.ts (100%) rename {v2/scripts => scripts}/generate_docs.sh (100%) rename {v2/scripts => scripts}/generate_go.sh (100%) rename {v2/scripts => scripts}/upgrade/SimulateERC20CustodyUpgrade.s.sol (100%) rename {v2/scripts => scripts}/upgrade/SimulateGatewayEVMUpgrade.s.sol (100%) rename {v2/scripts => scripts}/upgrade/SimulateGatewayZEVMUpgrade.s.sol (100%) rename {v2/scripts => scripts}/utils/compare_zrc20_info.sh (100%) rename {v2/scripts => scripts}/utils/get_zrc20_info.sh (100%) rename v2/slither.config.json => slither.config.json (100%) rename v2/soldeer.lock => soldeer.lock (100%) rename {v2/src => src}/addresses.ts (100%) rename {v2/src => src}/index.ts (100%) rename {v2/src => src}/types.ts (100%) rename {v2/tasks => tasks}/addresses.mainnet.json (100%) rename {v2/tasks => tasks}/addresses.testnet.json (100%) rename {v2/tasks => tasks}/addresses.ts (100%) rename {v2/tasks => tasks}/readme.md (100%) rename {v2/test => test}/ERC20Custody.t.sol (100%) rename {v2/test => test}/GatewayEVM.t.sol (100%) rename {v2/test => test}/GatewayEVMZEVM.t.sol (100%) rename {v2/test => test}/GatewayZEVM.t.sol (100%) rename {v2/test => test}/WZETA.t.sol (100%) rename {v2/test => test}/ZRC20.t.sol (100%) rename {v2/test => test}/ZetaConnectorNative.t.sol (100%) rename {v2/test => test}/ZetaConnectorNonNative.t.sol (100%) rename {v2/test => test}/fuzz/ERC20CustodyEchidnaTest.sol (100%) rename {v2/test => test}/fuzz/GatewayEVMEchidnaTest.sol (100%) rename {v2/test => test}/fuzz/readme.md (100%) rename {v2/test => test}/utils/IReceiverEVM.sol (100%) rename {v2/test => test}/utils/ReceiverEVM.sol (100%) rename {v2/test => test}/utils/SenderZEVM.sol (100%) rename {v2/test => test}/utils/SystemContractMock.sol (100%) rename {v2/test => test}/utils/TestERC20.sol (100%) rename {v2/test => test}/utils/TestUniversalContract.sol (100%) rename {v2/test => test}/utils/WZETA.sol (100%) rename {v2/test => test}/utils/Zeta.non-eth.sol (100%) rename {v2/test => test}/utils/upgrades/ERC20CustodyUpgradeTest.sol (100%) rename {v2/test => test}/utils/upgrades/GatewayEVMUpgradeTest.sol (100%) rename {v2/test => test}/utils/upgrades/GatewayZEVMUpgradeTest.sol (100%) rename {v2/test => test}/utils/upgrades/ZetaConnectorNativeUpgradeTest.sol (100%) rename {v2/test => test}/utils/upgrades/ZetaConnectorNonNativeUpgradeTest.sol (100%) rename v2/tsconfig.json => tsconfig.json (100%) rename {v2/types => types}/AccessControl.ts (100%) rename {v2/types => types}/AccessControlUpgradeable.ts (100%) rename {v2/types => types}/Address.ts (100%) rename {v2/types => types}/BeaconProxy.ts (100%) rename {v2/types => types}/ConnectorErrors.ts (100%) rename {v2/types => types}/ContextUpgradeable.ts (100%) rename {v2/types => types}/ERC165.ts (100%) rename {v2/types => types}/ERC165Upgradeable.ts (100%) rename {v2/types => types}/ERC1967Proxy.ts (100%) rename {v2/types => types}/ERC1967Utils.ts (100%) rename {v2/types => types}/ERC20.ts (100%) rename {v2/types => types}/ERC20/IERC20.ts (100%) rename {v2/types => types}/ERC20/index.ts (100%) rename {v2/types => types}/ERC20Burnable.ts (100%) rename {v2/types => types}/ERC20Custody.ts (100%) rename {v2/types => types}/ERC20CustodyEchidnaTest.ts (100%) rename {v2/types => types}/ERC20CustodyUpgradeTest.ts (100%) rename {v2/types => types}/Errors.sol/Errors.ts (100%) rename {v2/types => types}/Errors.sol/INotSupportedMethods.ts (100%) rename {v2/types => types}/Errors.sol/index.ts (100%) rename {v2/types => types}/GatewayEVM.ts (100%) rename {v2/types => types}/GatewayEVMEchidnaTest.ts (100%) rename {v2/types => types}/GatewayEVMUpgradeTest.ts (100%) rename {v2/types => types}/GatewayZEVM.ts (100%) rename {v2/types => types}/GatewayZEVMUpgradeTest.ts (100%) rename {v2/types => types}/IAccessControl.ts (100%) rename {v2/types => types}/IBeacon.ts (100%) rename {v2/types => types}/IERC1363.ts (100%) rename {v2/types => types}/IERC165.ts (100%) rename {v2/types => types}/IERC1967.ts (100%) rename {v2/types => types}/IERC20.ts (100%) rename {v2/types => types}/IERC20Custody.sol/IERC20Custody.ts (100%) rename {v2/types => types}/IERC20Custody.sol/IERC20CustodyErrors.ts (100%) rename {v2/types => types}/IERC20Custody.sol/IERC20CustodyEvents.ts (100%) rename {v2/types => types}/IERC20Custody.sol/index.ts (100%) rename {v2/types => types}/IERC20Metadata.ts (100%) rename {v2/types => types}/IERC20Permit.ts (100%) rename {v2/types => types}/IERC721.sol/IERC721.ts (100%) rename {v2/types => types}/IERC721.sol/IERC721Enumerable.ts (100%) rename {v2/types => types}/IERC721.sol/IERC721Metadata.ts (100%) rename {v2/types => types}/IERC721.sol/IERC721TokenReceiver.ts (100%) rename {v2/types => types}/IERC721.sol/index.ts (100%) rename {v2/types => types}/IGatewayEVM.sol/Callable.ts (100%) rename {v2/types => types}/IGatewayEVM.sol/IGatewayEVM.ts (100%) rename {v2/types => types}/IGatewayEVM.sol/IGatewayEVMErrors.ts (100%) rename {v2/types => types}/IGatewayEVM.sol/IGatewayEVMEvents.ts (100%) rename {v2/types => types}/IGatewayEVM.sol/index.ts (100%) rename {v2/types => types}/IGatewayZEVM.sol/IGatewayZEVM.ts (100%) rename {v2/types => types}/IGatewayZEVM.sol/IGatewayZEVMErrors.ts (100%) rename {v2/types => types}/IGatewayZEVM.sol/IGatewayZEVMEvents.ts (100%) rename {v2/types => types}/IGatewayZEVM.sol/index.ts (100%) rename {v2/types => types}/IMulticall3.ts (100%) rename {v2/types => types}/IProxyAdmin.ts (100%) rename {v2/types => types}/IReceiverEVM.sol/IReceiverEVMEvents.ts (100%) rename {v2/types => types}/IReceiverEVM.sol/index.ts (100%) rename {v2/types => types}/ISystem.ts (100%) rename {v2/types => types}/IUniswapV2Callee.ts (100%) rename {v2/types => types}/IUniswapV2ERC20.ts (100%) rename {v2/types => types}/IUniswapV2Factory.sol/IUniswapV2Factory0516.ts (100%) rename {v2/types => types}/IUniswapV2Factory.sol/IUniswapV2Factory066.ts (100%) rename {v2/types => types}/IUniswapV2Factory.sol/index.ts (100%) rename {v2/types => types}/IUniswapV2Pair.sol/IUniswapV2Pair0516.ts (100%) rename {v2/types => types}/IUniswapV2Pair.sol/IUniswapV2Pair066.ts (100%) rename {v2/types => types}/IUniswapV2Pair.sol/index.ts (100%) rename {v2/types => types}/IUniswapV2Router01.ts (100%) rename {v2/types => types}/IUniswapV2Router02.ts (100%) rename {v2/types => types}/IUpgradeableBeacon.ts (100%) rename {v2/types => types}/IUpgradeableProxy.ts (100%) rename {v2/types => types}/IWETH.ts (100%) rename {v2/types => types}/IWZETA.sol/IWETH9.ts (100%) rename {v2/types => types}/IWZETA.sol/index.ts (100%) rename {v2/types => types}/IZRC20.sol/IZRC20.ts (100%) rename {v2/types => types}/IZRC20.sol/IZRC20Metadata.ts (100%) rename {v2/types => types}/IZRC20.sol/ZRC20Events.ts (100%) rename {v2/types => types}/IZRC20.sol/index.ts (100%) rename {v2/types => types}/IZetaConnector.sol/IZetaConnectorEvents.ts (100%) rename {v2/types => types}/IZetaConnector.sol/index.ts (100%) rename {v2/types => types}/IZetaNonEthNew.ts (100%) rename {v2/types => types}/Initializable.ts (100%) rename {v2/types => types}/Math.ts (100%) rename {v2/types => types}/MockERC20.ts (100%) rename {v2/types => types}/MockERC721.ts (100%) rename {v2/types => types}/Ownable.ts (100%) rename {v2/types => types}/Pausable.ts (100%) rename {v2/types => types}/PausableUpgradeable.ts (100%) rename {v2/types => types}/Proxy.ts (100%) rename {v2/types => types}/ProxyAdmin.ts (100%) rename {v2/types => types}/ReceiverEVM.ts (100%) rename {v2/types => types}/ReentrancyGuard.ts (100%) rename {v2/types => types}/ReentrancyGuardUpgradeable.ts (100%) rename {v2/types => types}/Revert.sol/Revertable.ts (100%) rename {v2/types => types}/Revert.sol/index.ts (100%) rename {v2/types => types}/SafeCast.ts (100%) rename {v2/types => types}/SafeERC20.ts (100%) rename {v2/types => types}/SenderZEVM.ts (100%) rename {v2/types => types}/StdAssertions.ts (100%) rename {v2/types => types}/StdError.sol/StdError.ts (100%) rename {v2/types => types}/StdError.sol/index.ts (100%) rename {v2/types => types}/StdInvariant.ts (100%) rename {v2/types => types}/StdStorage.sol/StdStorageSafe.ts (100%) rename {v2/types => types}/StdStorage.sol/index.ts (100%) rename {v2/types => types}/Strings.ts (100%) rename {v2/types => types}/SystemContract.sol/SystemContract.ts (100%) rename {v2/types => types}/SystemContract.sol/SystemContractErrors.ts (100%) rename {v2/types => types}/SystemContract.sol/index.ts (100%) rename {v2/types => types}/SystemContractMock.sol/SystemContractErrors.ts (100%) rename {v2/types => types}/SystemContractMock.sol/SystemContractMock.ts (100%) rename {v2/types => types}/SystemContractMock.sol/index.ts (100%) rename {v2/types => types}/Test.ts (100%) rename {v2/types => types}/TestERC20.ts (100%) rename {v2/types => types}/TestUniversalContract.ts (100%) rename {v2/types => types}/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.ts (100%) rename {v2/types => types}/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.ts (100%) rename {v2/types => types}/TransparentUpgradeableProxy.sol/index.ts (100%) rename {v2/types => types}/UUPSUpgradeable.ts (100%) rename {v2/types => types}/UniswapV2ERC20.ts (100%) rename {v2/types => types}/UniswapV2Factory.ts (100%) rename {v2/types => types}/UniswapV2Pair.ts (100%) rename {v2/types => types}/UniswapV2Router02.ts (100%) rename {v2/types => types}/UniversalContract.sol/UniversalContract.ts (100%) rename {v2/types => types}/UniversalContract.sol/ZContract.ts (100%) rename {v2/types => types}/UniversalContract.sol/index.ts (100%) rename {v2/types => types}/UpgradeableBeacon.ts (100%) rename {v2/types => types}/Vm.sol/Vm.ts (100%) rename {v2/types => types}/Vm.sol/VmSafe.ts (100%) rename {v2/types => types}/Vm.sol/index.ts (100%) rename {v2/types => types}/WZETA.sol/WETH9.ts (100%) rename {v2/types => types}/WZETA.sol/index.ts (100%) rename {v2/types => types}/ZRC20.sol/ZRC20.ts (100%) rename {v2/types => types}/ZRC20.sol/ZRC20Errors.ts (100%) rename {v2/types => types}/ZRC20.sol/index.ts (100%) rename {v2/types => types}/Zeta.eth.sol/ZetaEth.ts (100%) rename {v2/types => types}/Zeta.eth.sol/index.ts (100%) rename {v2/types => types}/Zeta.non-eth.sol/ZetaErrors.ts (100%) rename {v2/types => types}/Zeta.non-eth.sol/ZetaNonEth.ts (100%) rename {v2/types => types}/Zeta.non-eth.sol/ZetaNonEthInterface.ts (100%) rename {v2/types => types}/Zeta.non-eth.sol/index.ts (100%) rename {v2/types => types}/ZetaConnector.base.sol/ZetaConnectorBase.ts (100%) rename {v2/types => types}/ZetaConnector.base.sol/index.ts (100%) rename {v2/types => types}/ZetaConnector.eth.sol/ZetaConnectorEth.ts (100%) rename {v2/types => types}/ZetaConnector.eth.sol/index.ts (100%) rename {v2/types => types}/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts (100%) rename {v2/types => types}/ZetaConnector.non-eth.sol/index.ts (100%) rename {v2/types => types}/ZetaConnectorBase.ts (100%) rename {v2/types => types}/ZetaConnectorNative.ts (100%) rename {v2/types => types}/ZetaConnectorNativeUpgradeTest.ts (100%) rename {v2/types => types}/ZetaConnectorNonNative.ts (100%) rename {v2/types => types}/ZetaConnectorNonNativeUpgradeTest.ts (100%) rename {v2/types => types}/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts (100%) rename {v2/types => types}/ZetaConnectorZEVM.sol/ZetaReceiver.ts (100%) rename {v2/types => types}/ZetaConnectorZEVM.sol/index.ts (100%) rename {v2/types => types}/ZetaErrors.ts (100%) rename {v2/types => types}/ZetaInterfaces.sol/ZetaCommonErrors.ts (100%) rename {v2/types => types}/ZetaInterfaces.sol/ZetaConnector.ts (100%) rename {v2/types => types}/ZetaInterfaces.sol/ZetaReceiver.ts (100%) rename {v2/types => types}/ZetaInterfaces.sol/ZetaTokenConsumer.ts (100%) rename {v2/types => types}/ZetaInterfaces.sol/index.ts (100%) rename {v2/types => types}/ZetaNonEthInterface.ts (100%) rename {v2/types => types}/common.ts (100%) rename {v2/types => types}/contracts/index.ts (100%) rename {v2/types => types}/contracts/interfaces/IERC20.ts (100%) rename {v2/types => types}/contracts/interfaces/index.ts (100%) rename {v2/types => types}/draft-IERC1822.sol/IERC1822Proxiable.ts (100%) rename {v2/types => types}/draft-IERC1822.sol/index.ts (100%) rename {v2/types => types}/draft-IERC6093.sol/IERC1155Errors.ts (100%) rename {v2/types => types}/draft-IERC6093.sol/IERC20Errors.ts (100%) rename {v2/types => types}/draft-IERC6093.sol/IERC721Errors.ts (100%) rename {v2/types => types}/draft-IERC6093.sol/index.ts (100%) rename {v2/types => types}/factories/AccessControlUpgradeable__factory.ts (100%) rename {v2/types => types}/factories/AccessControl__factory.ts (100%) rename {v2/types => types}/factories/Address__factory.ts (100%) rename {v2/types => types}/factories/BeaconProxy__factory.ts (100%) rename {v2/types => types}/factories/ConnectorErrors__factory.ts (100%) rename {v2/types => types}/factories/ContextUpgradeable__factory.ts (100%) rename {v2/types => types}/factories/ERC165Upgradeable__factory.ts (100%) rename {v2/types => types}/factories/ERC165__factory.ts (100%) rename {v2/types => types}/factories/ERC1967Proxy__factory.ts (100%) rename {v2/types => types}/factories/ERC1967Utils__factory.ts (100%) rename {v2/types => types}/factories/ERC20/IERC20__factory.ts (100%) rename {v2/types => types}/factories/ERC20/index.ts (100%) rename {v2/types => types}/factories/ERC20Burnable__factory.ts (100%) rename {v2/types => types}/factories/ERC20CustodyEchidnaTest__factory.ts (100%) rename {v2/types => types}/factories/ERC20CustodyUpgradeTest__factory.ts (100%) rename {v2/types => types}/factories/ERC20Custody__factory.ts (100%) rename {v2/types => types}/factories/ERC20__factory.ts (100%) rename {v2/types => types}/factories/Errors.sol/Errors__factory.ts (100%) rename {v2/types => types}/factories/Errors.sol/INotSupportedMethods__factory.ts (100%) rename {v2/types => types}/factories/Errors.sol/index.ts (100%) rename {v2/types => types}/factories/GatewayEVMEchidnaTest__factory.ts (100%) rename {v2/types => types}/factories/GatewayEVMUpgradeTest__factory.ts (100%) rename {v2/types => types}/factories/GatewayEVM__factory.ts (100%) rename {v2/types => types}/factories/GatewayZEVMUpgradeTest__factory.ts (100%) rename {v2/types => types}/factories/GatewayZEVM__factory.ts (100%) rename {v2/types => types}/factories/IAccessControl__factory.ts (100%) rename {v2/types => types}/factories/IBeacon__factory.ts (100%) rename {v2/types => types}/factories/IERC1363__factory.ts (100%) rename {v2/types => types}/factories/IERC165__factory.ts (100%) rename {v2/types => types}/factories/IERC1967__factory.ts (100%) rename {v2/types => types}/factories/IERC20Custody.sol/IERC20CustodyErrors__factory.ts (100%) rename {v2/types => types}/factories/IERC20Custody.sol/IERC20CustodyEvents__factory.ts (100%) rename {v2/types => types}/factories/IERC20Custody.sol/IERC20Custody__factory.ts (100%) rename {v2/types => types}/factories/IERC20Custody.sol/index.ts (100%) rename {v2/types => types}/factories/IERC20Metadata__factory.ts (100%) rename {v2/types => types}/factories/IERC20Permit__factory.ts (100%) rename {v2/types => types}/factories/IERC20__factory.ts (100%) rename {v2/types => types}/factories/IERC721.sol/IERC721Enumerable__factory.ts (100%) rename {v2/types => types}/factories/IERC721.sol/IERC721Metadata__factory.ts (100%) rename {v2/types => types}/factories/IERC721.sol/IERC721TokenReceiver__factory.ts (100%) rename {v2/types => types}/factories/IERC721.sol/IERC721__factory.ts (100%) rename {v2/types => types}/factories/IERC721.sol/index.ts (100%) rename {v2/types => types}/factories/IGatewayEVM.sol/Callable__factory.ts (100%) rename {v2/types => types}/factories/IGatewayEVM.sol/IGatewayEVMErrors__factory.ts (100%) rename {v2/types => types}/factories/IGatewayEVM.sol/IGatewayEVMEvents__factory.ts (100%) rename {v2/types => types}/factories/IGatewayEVM.sol/IGatewayEVM__factory.ts (100%) rename {v2/types => types}/factories/IGatewayEVM.sol/index.ts (100%) rename {v2/types => types}/factories/IGatewayZEVM.sol/IGatewayZEVMErrors__factory.ts (100%) rename {v2/types => types}/factories/IGatewayZEVM.sol/IGatewayZEVMEvents__factory.ts (100%) rename {v2/types => types}/factories/IGatewayZEVM.sol/IGatewayZEVM__factory.ts (100%) rename {v2/types => types}/factories/IGatewayZEVM.sol/index.ts (100%) rename {v2/types => types}/factories/IMulticall3__factory.ts (100%) rename {v2/types => types}/factories/IProxyAdmin__factory.ts (100%) rename {v2/types => types}/factories/IReceiverEVM.sol/IReceiverEVMEvents__factory.ts (100%) rename {v2/types => types}/factories/IReceiverEVM.sol/index.ts (100%) rename {v2/types => types}/factories/ISystem__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2Callee__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2ERC20__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2Factory.sol/IUniswapV2Factory0516__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2Factory.sol/IUniswapV2Factory066__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2Factory.sol/index.ts (100%) rename {v2/types => types}/factories/IUniswapV2Pair.sol/IUniswapV2Pair0516__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2Pair.sol/IUniswapV2Pair066__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2Pair.sol/index.ts (100%) rename {v2/types => types}/factories/IUniswapV2Router01__factory.ts (100%) rename {v2/types => types}/factories/IUniswapV2Router02__factory.ts (100%) rename {v2/types => types}/factories/IUpgradeableBeacon__factory.ts (100%) rename {v2/types => types}/factories/IUpgradeableProxy__factory.ts (100%) rename {v2/types => types}/factories/IWETH__factory.ts (100%) rename {v2/types => types}/factories/IWZETA.sol/IWETH9__factory.ts (100%) rename {v2/types => types}/factories/IWZETA.sol/index.ts (100%) rename {v2/types => types}/factories/IZRC20.sol/IZRC20Metadata__factory.ts (100%) rename {v2/types => types}/factories/IZRC20.sol/IZRC20__factory.ts (100%) rename {v2/types => types}/factories/IZRC20.sol/ZRC20Events__factory.ts (100%) rename {v2/types => types}/factories/IZRC20.sol/index.ts (100%) rename {v2/types => types}/factories/IZetaConnector.sol/IZetaConnectorEvents__factory.ts (100%) rename {v2/types => types}/factories/IZetaConnector.sol/index.ts (100%) rename {v2/types => types}/factories/IZetaNonEthNew__factory.ts (100%) rename {v2/types => types}/factories/Initializable__factory.ts (100%) rename {v2/types => types}/factories/Math__factory.ts (100%) rename {v2/types => types}/factories/MockERC20__factory.ts (100%) rename {v2/types => types}/factories/MockERC721__factory.ts (100%) rename {v2/types => types}/factories/Ownable__factory.ts (100%) rename {v2/types => types}/factories/PausableUpgradeable__factory.ts (100%) rename {v2/types => types}/factories/Pausable__factory.ts (100%) rename {v2/types => types}/factories/ProxyAdmin__factory.ts (100%) rename {v2/types => types}/factories/Proxy__factory.ts (100%) rename {v2/types => types}/factories/ReceiverEVM__factory.ts (100%) rename {v2/types => types}/factories/ReentrancyGuardUpgradeable__factory.ts (100%) rename {v2/types => types}/factories/ReentrancyGuard__factory.ts (100%) rename {v2/types => types}/factories/Revert.sol/Revertable__factory.ts (100%) rename {v2/types => types}/factories/Revert.sol/index.ts (100%) rename {v2/types => types}/factories/SafeCast__factory.ts (100%) rename {v2/types => types}/factories/SafeERC20__factory.ts (100%) rename {v2/types => types}/factories/SenderZEVM__factory.ts (100%) rename {v2/types => types}/factories/StdAssertions__factory.ts (100%) rename {v2/types => types}/factories/StdError.sol/StdError__factory.ts (100%) rename {v2/types => types}/factories/StdError.sol/index.ts (100%) rename {v2/types => types}/factories/StdInvariant__factory.ts (100%) rename {v2/types => types}/factories/StdStorage.sol/StdStorageSafe__factory.ts (100%) rename {v2/types => types}/factories/StdStorage.sol/index.ts (100%) rename {v2/types => types}/factories/Strings__factory.ts (100%) rename {v2/types => types}/factories/SystemContract.sol/SystemContractErrors__factory.ts (100%) rename {v2/types => types}/factories/SystemContract.sol/SystemContract__factory.ts (100%) rename {v2/types => types}/factories/SystemContract.sol/index.ts (100%) rename {v2/types => types}/factories/SystemContractMock.sol/SystemContractErrors__factory.ts (100%) rename {v2/types => types}/factories/SystemContractMock.sol/SystemContractMock__factory.ts (100%) rename {v2/types => types}/factories/SystemContractMock.sol/index.ts (100%) rename {v2/types => types}/factories/TestERC20__factory.ts (100%) rename {v2/types => types}/factories/TestUniversalContract__factory.ts (100%) rename {v2/types => types}/factories/Test__factory.ts (100%) rename {v2/types => types}/factories/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.ts (100%) rename {v2/types => types}/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts (100%) rename {v2/types => types}/factories/TransparentUpgradeableProxy.sol/index.ts (100%) rename {v2/types => types}/factories/UUPSUpgradeable__factory.ts (100%) rename {v2/types => types}/factories/UniswapV2ERC20__factory.ts (100%) rename {v2/types => types}/factories/UniswapV2Factory__factory.ts (100%) rename {v2/types => types}/factories/UniswapV2Pair__factory.ts (100%) rename {v2/types => types}/factories/UniswapV2Router02__factory.ts (100%) rename {v2/types => types}/factories/UniversalContract.sol/UniversalContract__factory.ts (100%) rename {v2/types => types}/factories/UniversalContract.sol/ZContract__factory.ts (100%) rename {v2/types => types}/factories/UniversalContract.sol/index.ts (100%) rename {v2/types => types}/factories/UpgradeableBeacon__factory.ts (100%) rename {v2/types => types}/factories/Vm.sol/VmSafe__factory.ts (100%) rename {v2/types => types}/factories/Vm.sol/Vm__factory.ts (100%) rename {v2/types => types}/factories/Vm.sol/index.ts (100%) rename {v2/types => types}/factories/WZETA.sol/WETH9__factory.ts (100%) rename {v2/types => types}/factories/WZETA.sol/index.ts (100%) rename {v2/types => types}/factories/ZRC20.sol/ZRC20Errors__factory.ts (100%) rename {v2/types => types}/factories/ZRC20.sol/ZRC20__factory.ts (100%) rename {v2/types => types}/factories/ZRC20.sol/index.ts (100%) rename {v2/types => types}/factories/Zeta.eth.sol/ZetaEth__factory.ts (100%) rename {v2/types => types}/factories/Zeta.eth.sol/index.ts (100%) rename {v2/types => types}/factories/Zeta.non-eth.sol/ZetaErrors__factory.ts (100%) rename {v2/types => types}/factories/Zeta.non-eth.sol/ZetaNonEthInterface__factory.ts (100%) rename {v2/types => types}/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts (100%) rename {v2/types => types}/factories/Zeta.non-eth.sol/index.ts (100%) rename {v2/types => types}/factories/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnector.base.sol/index.ts (100%) rename {v2/types => types}/factories/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnector.eth.sol/index.ts (100%) rename {v2/types => types}/factories/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnector.non-eth.sol/index.ts (100%) rename {v2/types => types}/factories/ZetaConnectorBase__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnectorNativeUpgradeTest__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnectorNative__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnectorNonNativeUpgradeTest__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnectorNonNative__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts (100%) rename {v2/types => types}/factories/ZetaConnectorZEVM.sol/index.ts (100%) rename {v2/types => types}/factories/ZetaErrors__factory.ts (100%) rename {v2/types => types}/factories/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts (100%) rename {v2/types => types}/factories/ZetaInterfaces.sol/ZetaConnector__factory.ts (100%) rename {v2/types => types}/factories/ZetaInterfaces.sol/ZetaReceiver__factory.ts (100%) rename {v2/types => types}/factories/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts (100%) rename {v2/types => types}/factories/ZetaInterfaces.sol/index.ts (100%) rename {v2/types => types}/factories/ZetaNonEthInterface__factory.ts (100%) rename {v2/types => types}/factories/contracts/index.ts (100%) rename {v2/types => types}/factories/contracts/interfaces/IERC20__factory.ts (100%) rename {v2/types => types}/factories/contracts/interfaces/index.ts (100%) rename {v2/types => types}/factories/draft-IERC1822.sol/IERC1822Proxiable__factory.ts (100%) rename {v2/types => types}/factories/draft-IERC1822.sol/index.ts (100%) rename {v2/types => types}/factories/draft-IERC6093.sol/IERC1155Errors__factory.ts (100%) rename {v2/types => types}/factories/draft-IERC6093.sol/IERC20Errors__factory.ts (100%) rename {v2/types => types}/factories/draft-IERC6093.sol/IERC721Errors__factory.ts (100%) rename {v2/types => types}/factories/draft-IERC6093.sol/index.ts (100%) rename {v2/types => types}/factories/index.ts (100%) rename {v2/types => types}/factories/interfaces/IERC20__factory.ts (100%) rename {v2/types => types}/factories/interfaces/index.ts (100%) rename {v2/types => types}/factories/introspection/IERC165__factory.ts (100%) rename {v2/types => types}/factories/introspection/index.ts (100%) rename {v2/types => types}/factories/legacy/Zeta.non-eth.sol/ZetaNonEth__factory.ts (100%) rename {v2/types => types}/factories/legacy/Zeta.non-eth.sol/index.ts (100%) rename {v2/types => types}/factories/legacy/index.ts (100%) rename {v2/types => types}/factories/utils/Strings__factory.ts (100%) rename {v2/types => types}/factories/utils/WZETA.sol/WETH9__factory.ts (100%) rename {v2/types => types}/factories/utils/WZETA.sol/index.ts (100%) rename {v2/types => types}/factories/utils/index.ts (100%) rename {v2/types => types}/index.ts (100%) rename {v2/types => types}/interfaces/IERC20.ts (100%) rename {v2/types => types}/interfaces/index.ts (100%) rename {v2/types => types}/introspection/IERC165.ts (100%) rename {v2/types => types}/introspection/index.ts (100%) rename {v2/types => types}/legacy/Zeta.non-eth.sol/ZetaNonEth.ts (100%) rename {v2/types => types}/legacy/Zeta.non-eth.sol/index.ts (100%) rename {v2/types => types}/legacy/index.ts (100%) rename {v2/types => types}/utils/Strings.ts (100%) rename {v2/types => types}/utils/WZETA.sol/WETH9.ts (100%) rename {v2/types => types}/utils/WZETA.sol/index.ts (100%) rename {v2/types => types}/utils/index.ts (100%) delete mode 100644 v2/.env.sample delete mode 100644 v2/docs/src/README.md rename v2/yarn.lock => yarn.lock (100%) diff --git a/README.md b/README.md index f993d82e1..d3a7d2109 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,72 @@ Contracts of official protocol contracts deployed by the core ZetaChain team. -## Learn more about ZetaChain +### Learn more about ZetaChain * Check our [website](https://www.zetachain.com/). * Read our [docs](https://docs.zetachain.com/). -## Packages +### Codebase -* [v1 legacy contracts](v1) -* [v2 new contracts (currently in development)](v2) \ No newline at end of file +The protocol contracts V2 codebase is separated into two sections: + +- `zevm`: contracts deployed on ZetaChain +- `evm`: contracts deployed on EVM connected chains (Ethereum, Base, etc..) + +**ZEVM Contracts** + +- `GatewayZEVM`: entrypoints for interaction. The users call the gateway contract to initiate cctx. The gateway contract is also the contract calling the target when a smart contract call is initiated on a connected chain +- `ZRC20`: is a ERC20 compliant contract that represents fungible assets from connected chains +- `WZETA`: wrapped ZETA (fork of WETH) + +**EVM Contracts** + +- `GatewayEVM`: similar to GatewayZEVM for connected chains. Entrypoint for users. +- `ERC20Custody`: hold ERC20 assets being sent to ZetaChain +- `ZetaConnector`: manage ZETA for connected chains. There are two version of the contract: + - Native: when the ZETA tokens are native to the chain (ZETA where initially deployed as a ERC20 on Ethereum, not emitted fully on ZetaChain). Use lock/unlock model. + - Non-Native: when ZETA tokens where never native to the chains but withdrawn from ZetaChain. Use mint/burn model. +- TSS (EOA): Threshold-signature-scheme wallet, this address holds the gas token sent to ZetaChain (like Ethers) + +[Learn more about the Gateway contracts](https://www.zetachain.com/docs/developers/evm/gateway/) + +### Usage + +**Install dependencies** + +```shell +$ yarn +$ forge soldeer update +``` + +**Build** + +```shell +$ forge build +``` + +**Test** + +```shell +$ forge test +``` + +**Format** + +```shell +$ forge fmt +``` + +**Deploy** + +```shell +$ forge script script/.s.sol: --rpc-url --private-key +``` + +To view detailed instructions on how to deploy the contracts, please refer to the [Deployment Guide](./scripts/deploy/readme.md). + +This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices. + +### Community + +[X](https://x.com/zetablockchain) | [Discord](https://discord.com/invite/zetachain) | [Telegram](https://t.me/zetachainofficial) | [Website](https://zetachain.com) \ No newline at end of file diff --git a/v2/broadcast/DeployERC20Custody.s.sol/1/run-1730753818.json b/broadcast/DeployERC20Custody.s.sol/1/run-1730753818.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/1/run-1730753818.json rename to broadcast/DeployERC20Custody.s.sol/1/run-1730753818.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/1/run-latest.json b/broadcast/DeployERC20Custody.s.sol/1/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/1/run-latest.json rename to broadcast/DeployERC20Custody.s.sol/1/run-latest.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/137/run-1730752202.json b/broadcast/DeployERC20Custody.s.sol/137/run-1730752202.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/137/run-1730752202.json rename to broadcast/DeployERC20Custody.s.sol/137/run-1730752202.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/137/run-latest.json b/broadcast/DeployERC20Custody.s.sol/137/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/137/run-latest.json rename to broadcast/DeployERC20Custody.s.sol/137/run-latest.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/56/run-1730753057.json b/broadcast/DeployERC20Custody.s.sol/56/run-1730753057.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/56/run-1730753057.json rename to broadcast/DeployERC20Custody.s.sol/56/run-1730753057.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/56/run-latest.json b/broadcast/DeployERC20Custody.s.sol/56/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/56/run-latest.json rename to broadcast/DeployERC20Custody.s.sol/56/run-latest.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/8453/run-1730745732.json b/broadcast/DeployERC20Custody.s.sol/8453/run-1730745732.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/8453/run-1730745732.json rename to broadcast/DeployERC20Custody.s.sol/8453/run-1730745732.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/8453/run-1730751538.json b/broadcast/DeployERC20Custody.s.sol/8453/run-1730751538.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/8453/run-1730751538.json rename to broadcast/DeployERC20Custody.s.sol/8453/run-1730751538.json diff --git a/v2/broadcast/DeployERC20Custody.s.sol/8453/run-latest.json b/broadcast/DeployERC20Custody.s.sol/8453/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20Custody.s.sol/8453/run-latest.json rename to broadcast/DeployERC20Custody.s.sol/8453/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/1/run-1733252238.json b/broadcast/DeployERC20CustodyImplementation.s.sol/1/run-1733252238.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/1/run-1733252238.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/1/run-1733252238.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/1/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/1/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/1/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/1/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-1730496331.json b/broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-1730496331.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-1730496331.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-1730496331.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/11155111/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/137/run-1733231885.json b/broadcast/DeployERC20CustodyImplementation.s.sol/137/run-1733231885.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/137/run-1733231885.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/137/run-1733231885.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/137/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/137/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/137/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/137/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/56/run-1733232160.json b/broadcast/DeployERC20CustodyImplementation.s.sol/56/run-1733232160.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/56/run-1733232160.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/56/run-1733232160.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/56/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/56/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/56/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/56/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-1730495993.json b/broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-1730495993.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-1730495993.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-1730495993.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/80002/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-1733231319.json b/broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-1733231319.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-1733231319.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-1733231319.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/8453/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-1730495509.json b/broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-1730495509.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-1730495509.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-1730495509.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/84532/run-latest.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/97/run-1730496209.json b/broadcast/DeployERC20CustodyImplementation.s.sol/97/run-1730496209.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/97/run-1730496209.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/97/run-1730496209.json diff --git a/v2/broadcast/DeployERC20CustodyImplementation.s.sol/97/run-latest.json b/broadcast/DeployERC20CustodyImplementation.s.sol/97/run-latest.json similarity index 100% rename from v2/broadcast/DeployERC20CustodyImplementation.s.sol/97/run-latest.json rename to broadcast/DeployERC20CustodyImplementation.s.sol/97/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/1/run-1730753500.json b/broadcast/DeployGatewayEVM.s.sol/1/run-1730753500.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/1/run-1730753500.json rename to broadcast/DeployGatewayEVM.s.sol/1/run-1730753500.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/1/run-latest.json b/broadcast/DeployGatewayEVM.s.sol/1/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/1/run-latest.json rename to broadcast/DeployGatewayEVM.s.sol/1/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/137/run-1730752013.json b/broadcast/DeployGatewayEVM.s.sol/137/run-1730752013.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/137/run-1730752013.json rename to broadcast/DeployGatewayEVM.s.sol/137/run-1730752013.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/137/run-latest.json b/broadcast/DeployGatewayEVM.s.sol/137/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/137/run-latest.json rename to broadcast/DeployGatewayEVM.s.sol/137/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/56/run-1730752764.json b/broadcast/DeployGatewayEVM.s.sol/56/run-1730752764.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/56/run-1730752764.json rename to broadcast/DeployGatewayEVM.s.sol/56/run-1730752764.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/56/run-latest.json b/broadcast/DeployGatewayEVM.s.sol/56/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/56/run-latest.json rename to broadcast/DeployGatewayEVM.s.sol/56/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/8453/run-1730745320.json b/broadcast/DeployGatewayEVM.s.sol/8453/run-1730745320.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/8453/run-1730745320.json rename to broadcast/DeployGatewayEVM.s.sol/8453/run-1730745320.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/8453/run-1730751006.json b/broadcast/DeployGatewayEVM.s.sol/8453/run-1730751006.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/8453/run-1730751006.json rename to broadcast/DeployGatewayEVM.s.sol/8453/run-1730751006.json diff --git a/v2/broadcast/DeployGatewayEVM.s.sol/8453/run-latest.json b/broadcast/DeployGatewayEVM.s.sol/8453/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVM.s.sol/8453/run-latest.json rename to broadcast/DeployGatewayEVM.s.sol/8453/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733232295.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733232295.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733232295.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733232295.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733250991.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733250991.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733250991.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733250991.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251007.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251007.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251007.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251007.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251017.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251017.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251017.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733251017.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733252189.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733252189.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733252189.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733252189.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733256946.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733256946.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733256946.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733256946.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257136.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257136.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257136.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257136.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257161.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257161.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257161.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257161.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257244.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257244.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257244.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257244.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257433.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257433.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257433.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257433.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257460.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257460.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257460.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257460.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257819.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257819.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257819.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-1733257819.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/1/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/1/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-1730496266.json b/broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-1730496266.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-1730496266.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-1730496266.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/11155111/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/137/run-1733231464.json b/broadcast/DeployGatewayEVMImplementation.s.sol/137/run-1733231464.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/137/run-1733231464.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/137/run-1733231464.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/137/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/137/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/137/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/137/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/56/run-1733231996.json b/broadcast/DeployGatewayEVMImplementation.s.sol/56/run-1733231996.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/56/run-1733231996.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/56/run-1733231996.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/56/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/56/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/56/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/56/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-1730495654.json b/broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-1730495654.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-1730495654.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-1730495654.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/80002/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-1733231079.json b/broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-1733231079.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-1733231079.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-1733231079.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/8453/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-1730495252.json b/broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-1730495252.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-1730495252.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-1730495252.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/84532/run-latest.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/97/run-1730496146.json b/broadcast/DeployGatewayEVMImplementation.s.sol/97/run-1730496146.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/97/run-1730496146.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/97/run-1730496146.json diff --git a/v2/broadcast/DeployGatewayEVMImplementation.s.sol/97/run-latest.json b/broadcast/DeployGatewayEVMImplementation.s.sol/97/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayEVMImplementation.s.sol/97/run-latest.json rename to broadcast/DeployGatewayEVMImplementation.s.sol/97/run-latest.json diff --git a/v2/broadcast/DeployGatewayZEVM.s.sol/7000/run-1730755057.json b/broadcast/DeployGatewayZEVM.s.sol/7000/run-1730755057.json similarity index 100% rename from v2/broadcast/DeployGatewayZEVM.s.sol/7000/run-1730755057.json rename to broadcast/DeployGatewayZEVM.s.sol/7000/run-1730755057.json diff --git a/v2/broadcast/DeployGatewayZEVM.s.sol/7000/run-latest.json b/broadcast/DeployGatewayZEVM.s.sol/7000/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayZEVM.s.sol/7000/run-latest.json rename to broadcast/DeployGatewayZEVM.s.sol/7000/run-latest.json diff --git a/v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-1733233245.json b/broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-1733233245.json similarity index 100% rename from v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-1733233245.json rename to broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-1733233245.json diff --git a/v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-latest.json b/broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-latest.json rename to broadcast/DeployGatewayZEVMImplementation.s.sol/7000/run-latest.json diff --git a/v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-1730496448.json b/broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-1730496448.json similarity index 100% rename from v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-1730496448.json rename to broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-1730496448.json diff --git a/v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-latest.json b/broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-latest.json similarity index 100% rename from v2/broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-latest.json rename to broadcast/DeployGatewayZEVMImplementation.s.sol/7001/run-latest.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730815310.json b/broadcast/DeployZRC20.s.sol/7000/run-1730815310.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730815310.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730815310.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730815503.json b/broadcast/DeployZRC20.s.sol/7000/run-1730815503.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730815503.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730815503.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730816308.json b/broadcast/DeployZRC20.s.sol/7000/run-1730816308.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730816308.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730816308.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730816443.json b/broadcast/DeployZRC20.s.sol/7000/run-1730816443.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730816443.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730816443.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730816898.json b/broadcast/DeployZRC20.s.sol/7000/run-1730816898.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730816898.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730816898.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817009.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817009.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817009.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817009.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817119.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817119.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817119.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817119.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817223.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817223.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817223.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817223.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817409.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817409.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817409.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817409.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817520.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817520.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817520.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817520.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817621.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817621.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817621.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817621.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817803.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817803.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817803.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817803.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730817943.json b/broadcast/DeployZRC20.s.sol/7000/run-1730817943.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730817943.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730817943.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730818153.json b/broadcast/DeployZRC20.s.sol/7000/run-1730818153.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730818153.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730818153.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730818449.json b/broadcast/DeployZRC20.s.sol/7000/run-1730818449.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730818449.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730818449.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730818554.json b/broadcast/DeployZRC20.s.sol/7000/run-1730818554.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730818554.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730818554.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-1730819617.json b/broadcast/DeployZRC20.s.sol/7000/run-1730819617.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-1730819617.json rename to broadcast/DeployZRC20.s.sol/7000/run-1730819617.json diff --git a/v2/broadcast/DeployZRC20.s.sol/7000/run-latest.json b/broadcast/DeployZRC20.s.sol/7000/run-latest.json similarity index 100% rename from v2/broadcast/DeployZRC20.s.sol/7000/run-latest.json rename to broadcast/DeployZRC20.s.sol/7000/run-latest.json diff --git a/v2/contracts/Errors.sol b/contracts/Errors.sol similarity index 100% rename from v2/contracts/Errors.sol rename to contracts/Errors.sol diff --git a/v2/contracts/Revert.sol b/contracts/Revert.sol similarity index 100% rename from v2/contracts/Revert.sol rename to contracts/Revert.sol diff --git a/v2/contracts/evm/ERC20Custody.sol b/contracts/evm/ERC20Custody.sol similarity index 100% rename from v2/contracts/evm/ERC20Custody.sol rename to contracts/evm/ERC20Custody.sol diff --git a/v2/contracts/evm/GatewayEVM.sol b/contracts/evm/GatewayEVM.sol similarity index 100% rename from v2/contracts/evm/GatewayEVM.sol rename to contracts/evm/GatewayEVM.sol diff --git a/v2/contracts/evm/ZetaConnectorBase.sol b/contracts/evm/ZetaConnectorBase.sol similarity index 100% rename from v2/contracts/evm/ZetaConnectorBase.sol rename to contracts/evm/ZetaConnectorBase.sol diff --git a/v2/contracts/evm/ZetaConnectorNative.sol b/contracts/evm/ZetaConnectorNative.sol similarity index 100% rename from v2/contracts/evm/ZetaConnectorNative.sol rename to contracts/evm/ZetaConnectorNative.sol diff --git a/v2/contracts/evm/ZetaConnectorNonNative.sol b/contracts/evm/ZetaConnectorNonNative.sol similarity index 100% rename from v2/contracts/evm/ZetaConnectorNonNative.sol rename to contracts/evm/ZetaConnectorNonNative.sol diff --git a/v2/contracts/evm/interfaces/IERC20Custody.sol b/contracts/evm/interfaces/IERC20Custody.sol similarity index 100% rename from v2/contracts/evm/interfaces/IERC20Custody.sol rename to contracts/evm/interfaces/IERC20Custody.sol diff --git a/v2/contracts/evm/interfaces/IGatewayEVM.sol b/contracts/evm/interfaces/IGatewayEVM.sol similarity index 100% rename from v2/contracts/evm/interfaces/IGatewayEVM.sol rename to contracts/evm/interfaces/IGatewayEVM.sol diff --git a/v2/contracts/evm/interfaces/IZetaConnector.sol b/contracts/evm/interfaces/IZetaConnector.sol similarity index 100% rename from v2/contracts/evm/interfaces/IZetaConnector.sol rename to contracts/evm/interfaces/IZetaConnector.sol diff --git a/v2/contracts/evm/interfaces/IZetaNonEthNew.sol b/contracts/evm/interfaces/IZetaNonEthNew.sol similarity index 100% rename from v2/contracts/evm/interfaces/IZetaNonEthNew.sol rename to contracts/evm/interfaces/IZetaNonEthNew.sol diff --git a/v2/contracts/evm/legacy/ConnectorErrors.sol b/contracts/evm/legacy/ConnectorErrors.sol similarity index 100% rename from v2/contracts/evm/legacy/ConnectorErrors.sol rename to contracts/evm/legacy/ConnectorErrors.sol diff --git a/v2/contracts/evm/legacy/Zeta.eth.sol b/contracts/evm/legacy/Zeta.eth.sol similarity index 100% rename from v2/contracts/evm/legacy/Zeta.eth.sol rename to contracts/evm/legacy/Zeta.eth.sol diff --git a/v2/contracts/evm/legacy/Zeta.non-eth.sol b/contracts/evm/legacy/Zeta.non-eth.sol similarity index 100% rename from v2/contracts/evm/legacy/Zeta.non-eth.sol rename to contracts/evm/legacy/Zeta.non-eth.sol diff --git a/v2/contracts/evm/legacy/ZetaConnector.base.sol b/contracts/evm/legacy/ZetaConnector.base.sol similarity index 100% rename from v2/contracts/evm/legacy/ZetaConnector.base.sol rename to contracts/evm/legacy/ZetaConnector.base.sol diff --git a/v2/contracts/evm/legacy/ZetaConnector.eth.sol b/contracts/evm/legacy/ZetaConnector.eth.sol similarity index 100% rename from v2/contracts/evm/legacy/ZetaConnector.eth.sol rename to contracts/evm/legacy/ZetaConnector.eth.sol diff --git a/v2/contracts/evm/legacy/ZetaConnector.non-eth.sol b/contracts/evm/legacy/ZetaConnector.non-eth.sol similarity index 100% rename from v2/contracts/evm/legacy/ZetaConnector.non-eth.sol rename to contracts/evm/legacy/ZetaConnector.non-eth.sol diff --git a/v2/contracts/evm/legacy/ZetaErrors.sol b/contracts/evm/legacy/ZetaErrors.sol similarity index 100% rename from v2/contracts/evm/legacy/ZetaErrors.sol rename to contracts/evm/legacy/ZetaErrors.sol diff --git a/v2/contracts/evm/legacy/ZetaInterfaces.sol b/contracts/evm/legacy/ZetaInterfaces.sol similarity index 100% rename from v2/contracts/evm/legacy/ZetaInterfaces.sol rename to contracts/evm/legacy/ZetaInterfaces.sol diff --git a/v2/contracts/evm/legacy/ZetaNonEthInterface.sol b/contracts/evm/legacy/ZetaNonEthInterface.sol similarity index 100% rename from v2/contracts/evm/legacy/ZetaNonEthInterface.sol rename to contracts/evm/legacy/ZetaNonEthInterface.sol diff --git a/v2/contracts/zevm/GatewayZEVM.sol b/contracts/zevm/GatewayZEVM.sol similarity index 100% rename from v2/contracts/zevm/GatewayZEVM.sol rename to contracts/zevm/GatewayZEVM.sol diff --git a/v2/contracts/zevm/SystemContract.sol b/contracts/zevm/SystemContract.sol similarity index 100% rename from v2/contracts/zevm/SystemContract.sol rename to contracts/zevm/SystemContract.sol diff --git a/v2/contracts/zevm/WZETA.sol b/contracts/zevm/WZETA.sol similarity index 100% rename from v2/contracts/zevm/WZETA.sol rename to contracts/zevm/WZETA.sol diff --git a/v2/contracts/zevm/ZRC20.sol b/contracts/zevm/ZRC20.sol similarity index 100% rename from v2/contracts/zevm/ZRC20.sol rename to contracts/zevm/ZRC20.sol diff --git a/v2/contracts/zevm/interfaces/IGatewayZEVM.sol b/contracts/zevm/interfaces/IGatewayZEVM.sol similarity index 100% rename from v2/contracts/zevm/interfaces/IGatewayZEVM.sol rename to contracts/zevm/interfaces/IGatewayZEVM.sol diff --git a/v2/contracts/zevm/interfaces/ISystem.sol b/contracts/zevm/interfaces/ISystem.sol similarity index 100% rename from v2/contracts/zevm/interfaces/ISystem.sol rename to contracts/zevm/interfaces/ISystem.sol diff --git a/v2/contracts/zevm/interfaces/IWZETA.sol b/contracts/zevm/interfaces/IWZETA.sol similarity index 100% rename from v2/contracts/zevm/interfaces/IWZETA.sol rename to contracts/zevm/interfaces/IWZETA.sol diff --git a/v2/contracts/zevm/interfaces/IZRC20.sol b/contracts/zevm/interfaces/IZRC20.sol similarity index 100% rename from v2/contracts/zevm/interfaces/IZRC20.sol rename to contracts/zevm/interfaces/IZRC20.sol diff --git a/v2/contracts/zevm/interfaces/UniversalContract.sol b/contracts/zevm/interfaces/UniversalContract.sol similarity index 100% rename from v2/contracts/zevm/interfaces/UniversalContract.sol rename to contracts/zevm/interfaces/UniversalContract.sol diff --git a/v2/contracts/zevm/legacy/ZetaConnectorZEVM.sol b/contracts/zevm/legacy/ZetaConnectorZEVM.sol similarity index 100% rename from v2/contracts/zevm/legacy/ZetaConnectorZEVM.sol rename to contracts/zevm/legacy/ZetaConnectorZEVM.sol diff --git a/v2/data/addresses.mainnet.json b/data/addresses.mainnet.json similarity index 94% rename from v2/data/addresses.mainnet.json rename to data/addresses.mainnet.json index fdb67bd1b..f1518d4e7 100644 --- a/v2/data/addresses.mainnet.json +++ b/data/addresses.mainnet.json @@ -281,6 +281,19 @@ "symbol": "SOL.SOL", "type": "zrc20" }, + { + "address": "0x54Bf2B1E91FCb56853097BD2545750d218E245e1", + "asset": "cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij", + "category": "omnichain", + "chain_id": 7000, + "chain_name": "zeta_mainnet", + "coin_type": "erc20", + "decimals": 8, + "description": "ZetaChain ZRC20 cbBTC on Solana Mainnet", + "foreign_chain_id": "900", + "symbol": "CBBTC.SOL", + "type": "zrc20" + }, { "address": "0x777915D031d1e8144c90D025C594b3b8Bf07a08d", "asset": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", @@ -424,6 +437,19 @@ "symbol": "ULTI.ETH", "type": "zrc20" }, + { + "address": "0xEe9CC614D03e7Dbe994b514079f4914a605B4719", + "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", + "category": "omnichain", + "chain_id": 7000, + "chain_name": "zeta_mainnet", + "coin_type": "erc20", + "decimals": 6, + "description": "ZetaChain ZRC20 USDT on Solana Mainnet", + "foreign_chain_id": "900", + "symbol": "USDT.SOL", + "type": "zrc20" + }, { "address": "0xfC9201f4116aE6b054722E10b98D904829b469c3", "asset": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359", diff --git a/v2/data/addresses.testnet.json b/data/addresses.testnet.json similarity index 99% rename from v2/data/addresses.testnet.json rename to data/addresses.testnet.json index 51dd3a92c..d91d34e1d 100644 --- a/v2/data/addresses.testnet.json +++ b/data/addresses.testnet.json @@ -218,7 +218,7 @@ }, { "address": "0xe573a6e11f8506620F123DBF930222163D46BCB6", - "asset": "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582", + "asset": "0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582", "category": "omnichain", "chain_id": 7001, "chain_name": "zeta_testnet", diff --git a/v2/data/readme.md b/data/readme.md similarity index 100% rename from v2/data/readme.md rename to data/readme.md diff --git a/v2/docs/.gitignore b/docs/.gitignore similarity index 100% rename from v2/docs/.gitignore rename to docs/.gitignore diff --git a/v2/docs/book.css b/docs/book.css similarity index 100% rename from v2/docs/book.css rename to docs/book.css diff --git a/v2/docs/book.toml b/docs/book.toml similarity index 100% rename from v2/docs/book.toml rename to docs/book.toml diff --git a/v2/docs/solidity.min.js b/docs/solidity.min.js similarity index 100% rename from v2/docs/solidity.min.js rename to docs/solidity.min.js diff --git a/v2/README.md b/docs/src/README.md similarity index 100% rename from v2/README.md rename to docs/src/README.md diff --git a/v2/docs/src/SUMMARY.md b/docs/src/SUMMARY.md similarity index 100% rename from v2/docs/src/SUMMARY.md rename to docs/src/SUMMARY.md diff --git a/v2/docs/src/contracts/Errors.sol/interface.INotSupportedMethods.md b/docs/src/contracts/Errors.sol/interface.INotSupportedMethods.md similarity index 100% rename from v2/docs/src/contracts/Errors.sol/interface.INotSupportedMethods.md rename to docs/src/contracts/Errors.sol/interface.INotSupportedMethods.md diff --git a/v2/docs/src/contracts/README.md b/docs/src/contracts/README.md similarity index 100% rename from v2/docs/src/contracts/README.md rename to docs/src/contracts/README.md diff --git a/v2/docs/src/contracts/Revert.sol/interface.Revertable.md b/docs/src/contracts/Revert.sol/interface.Revertable.md similarity index 100% rename from v2/docs/src/contracts/Revert.sol/interface.Revertable.md rename to docs/src/contracts/Revert.sol/interface.Revertable.md diff --git a/v2/docs/src/contracts/Revert.sol/struct.RevertContext.md b/docs/src/contracts/Revert.sol/struct.RevertContext.md similarity index 100% rename from v2/docs/src/contracts/Revert.sol/struct.RevertContext.md rename to docs/src/contracts/Revert.sol/struct.RevertContext.md diff --git a/v2/docs/src/contracts/Revert.sol/struct.RevertOptions.md b/docs/src/contracts/Revert.sol/struct.RevertOptions.md similarity index 100% rename from v2/docs/src/contracts/Revert.sol/struct.RevertOptions.md rename to docs/src/contracts/Revert.sol/struct.RevertOptions.md diff --git a/v2/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md b/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md similarity index 100% rename from v2/docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md rename to docs/src/contracts/evm/ERC20Custody.sol/contract.ERC20Custody.md diff --git a/v2/docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md b/docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md similarity index 100% rename from v2/docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md rename to docs/src/contracts/evm/GatewayEVM.sol/contract.GatewayEVM.md diff --git a/v2/docs/src/contracts/evm/README.md b/docs/src/contracts/evm/README.md similarity index 100% rename from v2/docs/src/contracts/evm/README.md rename to docs/src/contracts/evm/README.md diff --git a/v2/docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md b/docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md similarity index 100% rename from v2/docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md rename to docs/src/contracts/evm/ZetaConnectorBase.sol/abstract.ZetaConnectorBase.md diff --git a/v2/docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md b/docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md similarity index 100% rename from v2/docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md rename to docs/src/contracts/evm/ZetaConnectorNative.sol/contract.ZetaConnectorNative.md diff --git a/v2/docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md b/docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md similarity index 100% rename from v2/docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md rename to docs/src/contracts/evm/ZetaConnectorNonNative.sol/contract.ZetaConnectorNonNative.md diff --git a/v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md b/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md rename to docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md diff --git a/v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md b/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md rename to docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyErrors.md diff --git a/v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md b/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md rename to docs/src/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20CustodyEvents.md diff --git a/v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.Callable.md b/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.Callable.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.Callable.md rename to docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.Callable.md diff --git a/v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md b/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md rename to docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVM.md diff --git a/v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md b/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md rename to docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMErrors.md diff --git a/v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md b/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md rename to docs/src/contracts/evm/interfaces/IGatewayEVM.sol/interface.IGatewayEVMEvents.md diff --git a/v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/struct.MessageContext.md b/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/struct.MessageContext.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IGatewayEVM.sol/struct.MessageContext.md rename to docs/src/contracts/evm/interfaces/IGatewayEVM.sol/struct.MessageContext.md diff --git a/v2/docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md b/docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md rename to docs/src/contracts/evm/interfaces/IZetaConnector.sol/interface.IZetaConnectorEvents.md diff --git a/v2/docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md b/docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md rename to docs/src/contracts/evm/interfaces/IZetaNonEthNew.sol/interface.IZetaNonEthNew.md diff --git a/v2/docs/src/contracts/evm/interfaces/README.md b/docs/src/contracts/evm/interfaces/README.md similarity index 100% rename from v2/docs/src/contracts/evm/interfaces/README.md rename to docs/src/contracts/evm/interfaces/README.md diff --git a/v2/docs/src/contracts/evm/legacy/ConnectorErrors.sol/interface.ConnectorErrors.md b/docs/src/contracts/evm/legacy/ConnectorErrors.sol/interface.ConnectorErrors.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ConnectorErrors.sol/interface.ConnectorErrors.md rename to docs/src/contracts/evm/legacy/ConnectorErrors.sol/interface.ConnectorErrors.md diff --git a/v2/docs/src/contracts/evm/legacy/README.md b/docs/src/contracts/evm/legacy/README.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/README.md rename to docs/src/contracts/evm/legacy/README.md diff --git a/v2/docs/src/contracts/evm/legacy/Zeta.eth.sol/contract.ZetaEth.md b/docs/src/contracts/evm/legacy/Zeta.eth.sol/contract.ZetaEth.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/Zeta.eth.sol/contract.ZetaEth.md rename to docs/src/contracts/evm/legacy/Zeta.eth.sol/contract.ZetaEth.md diff --git a/v2/docs/src/contracts/evm/legacy/Zeta.non-eth.sol/contract.ZetaNonEth.md b/docs/src/contracts/evm/legacy/Zeta.non-eth.sol/contract.ZetaNonEth.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/Zeta.non-eth.sol/contract.ZetaNonEth.md rename to docs/src/contracts/evm/legacy/Zeta.non-eth.sol/contract.ZetaNonEth.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaConnector.base.sol/contract.ZetaConnectorBase.md b/docs/src/contracts/evm/legacy/ZetaConnector.base.sol/contract.ZetaConnectorBase.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaConnector.base.sol/contract.ZetaConnectorBase.md rename to docs/src/contracts/evm/legacy/ZetaConnector.base.sol/contract.ZetaConnectorBase.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md b/docs/src/contracts/evm/legacy/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md rename to docs/src/contracts/evm/legacy/ZetaConnector.eth.sol/contract.ZetaConnectorEth.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md b/docs/src/contracts/evm/legacy/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md rename to docs/src/contracts/evm/legacy/ZetaConnector.non-eth.sol/contract.ZetaConnectorNonEth.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaErrors.sol/interface.ZetaErrors.md b/docs/src/contracts/evm/legacy/ZetaErrors.sol/interface.ZetaErrors.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaErrors.sol/interface.ZetaErrors.md rename to docs/src/contracts/evm/legacy/ZetaErrors.sol/interface.ZetaErrors.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaCommonErrors.md b/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaCommonErrors.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaCommonErrors.md rename to docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaCommonErrors.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaConnector.md b/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaConnector.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaConnector.md rename to docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaConnector.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaInterfaces.md b/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaInterfaces.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaInterfaces.md rename to docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaInterfaces.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaReceiver.md b/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaReceiver.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaReceiver.md rename to docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaReceiver.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md b/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md rename to docs/src/contracts/evm/legacy/ZetaInterfaces.sol/interface.ZetaTokenConsumer.md diff --git a/v2/docs/src/contracts/evm/legacy/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md b/docs/src/contracts/evm/legacy/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md similarity index 100% rename from v2/docs/src/contracts/evm/legacy/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md rename to docs/src/contracts/evm/legacy/ZetaNonEthInterface.sol/interface.ZetaNonEthInterface.md diff --git a/v2/docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md b/docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md similarity index 100% rename from v2/docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md rename to docs/src/contracts/zevm/GatewayZEVM.sol/contract.GatewayZEVM.md diff --git a/v2/docs/src/contracts/zevm/README.md b/docs/src/contracts/zevm/README.md similarity index 100% rename from v2/docs/src/contracts/zevm/README.md rename to docs/src/contracts/zevm/README.md diff --git a/v2/docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md b/docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md similarity index 100% rename from v2/docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md rename to docs/src/contracts/zevm/SystemContract.sol/contract.SystemContract.md diff --git a/v2/docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md b/docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md similarity index 100% rename from v2/docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md rename to docs/src/contracts/zevm/SystemContract.sol/interface.SystemContractErrors.md diff --git a/v2/docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md b/docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md similarity index 100% rename from v2/docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md rename to docs/src/contracts/zevm/WZETA.sol/contract.WETH9.md diff --git a/v2/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md b/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md similarity index 100% rename from v2/docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md rename to docs/src/contracts/zevm/ZRC20.sol/contract.ZRC20.md diff --git a/v2/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md b/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md similarity index 100% rename from v2/docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md rename to docs/src/contracts/zevm/ZRC20.sol/interface.ZRC20Errors.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md b/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md rename to docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVM.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md b/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md rename to docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMErrors.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md b/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md rename to docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/interface.IGatewayZEVMEvents.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/struct.CallOptions.md b/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/struct.CallOptions.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/struct.CallOptions.md rename to docs/src/contracts/zevm/interfaces/IGatewayZEVM.sol/struct.CallOptions.md diff --git a/v2/docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md b/docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md rename to docs/src/contracts/zevm/interfaces/ISystem.sol/interface.ISystem.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md b/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md rename to docs/src/contracts/zevm/interfaces/IWZETA.sol/interface.IWETH9.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md b/docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md rename to docs/src/contracts/zevm/interfaces/IZRC20.sol/enum.CoinType.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md b/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md rename to docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md b/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md rename to docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.IZRC20Metadata.md diff --git a/v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md b/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md rename to docs/src/contracts/zevm/interfaces/IZRC20.sol/interface.ZRC20Events.md diff --git a/v2/docs/src/contracts/zevm/interfaces/README.md b/docs/src/contracts/zevm/interfaces/README.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/README.md rename to docs/src/contracts/zevm/interfaces/README.md diff --git a/v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md b/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md rename to docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.UniversalContract.md diff --git a/v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md b/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md rename to docs/src/contracts/zevm/interfaces/UniversalContract.sol/interface.zContract.md diff --git a/v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.MessageContext.md b/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.MessageContext.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.MessageContext.md rename to docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.MessageContext.md diff --git a/v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md b/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md similarity index 100% rename from v2/docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md rename to docs/src/contracts/zevm/interfaces/UniversalContract.sol/struct.zContext.md diff --git a/v2/docs/src/contracts/zevm/legacy/README.md b/docs/src/contracts/zevm/legacy/README.md similarity index 100% rename from v2/docs/src/contracts/zevm/legacy/README.md rename to docs/src/contracts/zevm/legacy/README.md diff --git a/v2/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md b/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md similarity index 100% rename from v2/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md rename to docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/contract.ZetaConnectorZEVM.md diff --git a/v2/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md b/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md similarity index 100% rename from v2/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md rename to docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaInterfaces.md diff --git a/v2/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md b/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md similarity index 100% rename from v2/docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md rename to docs/src/contracts/zevm/legacy/ZetaConnectorZEVM.sol/interface.ZetaReceiver.md diff --git a/v2/docs/src/index.md b/docs/src/index.md similarity index 77% rename from v2/docs/src/index.md rename to docs/src/index.md index 769b9731e..d0ffa2cc7 100644 --- a/v2/docs/src/index.md +++ b/docs/src/index.md @@ -2,75 +2,79 @@ title: "Protocol contracts" --- -### ⚠️ Important Notice: V2 in Development +# ZetaChain Protocol Contracts -We are currently developing Version 2 (V2) of our smart contract architecture. This new version will significantly enhance the developer experience for building Universal Apps. +Contracts of official protocol contracts deployed by the core ZetaChain team. -Developers can already begin testing the new interface by referring to [the V2 Localnet guide](https://github.com/zeta-chain/localnet?tab=readme-ov-file#experimenting-with-the-new-architecture). +### Learn more about ZetaChain -### Install dependencies +* Check our [website](https://www.zetachain.com/). +* Read our [docs](https://docs.zetachain.com/). + +### Codebase + +The protocol contracts V2 codebase is separated into two sections: + +- `zevm`: contracts deployed on ZetaChain +- `evm`: contracts deployed on EVM connected chains (Ethereum, Base, etc..) + +**ZEVM Contracts** + +- `GatewayZEVM`: entrypoints for interaction. The users call the gateway contract to initiate cctx. The gateway contract is also the contract calling the target when a smart contract call is initiated on a connected chain +- `ZRC20`: is a ERC20 compliant contract that represents fungible assets from connected chains +- `WZETA`: wrapped ZETA (fork of WETH) + +**EVM Contracts** + +- `GatewayEVM`: similar to GatewayZEVM for connected chains. Entrypoint for users. +- `ERC20Custody`: hold ERC20 assets being sent to ZetaChain +- `ZetaConnector`: manage ZETA for connected chains. There are two version of the contract: + - Native: when the ZETA tokens are native to the chain (ZETA where initially deployed as a ERC20 on Ethereum, not emitted fully on ZetaChain). Use lock/unlock model. + - Non-Native: when ZETA tokens where never native to the chains but withdrawn from ZetaChain. Use mint/burn model. +- TSS (EOA): Threshold-signature-scheme wallet, this address holds the gas token sent to ZetaChain (like Ethers) + +[Learn more about the Gateway contracts](https://www.zetachain.com/docs/developers/evm/gateway/) + +### Usage + +**Install dependencies** ```shell $ yarn $ forge soldeer update ``` -### Build +**Build** ```shell $ forge build ``` -### Test +**Test** ```shell $ forge test ``` -### Format +**Format** ```shell $ forge fmt ``` -### Gas Snapshots - -```shell -$ forge snapshot -``` - -### Anvil - -```shell -$ anvil -``` - -### Deploy +**Deploy** ```shell $ forge script script/.s.sol: --rpc-url --private-key ``` -##### More detailed instructions - To view detailed instructions on how to deploy the contracts, please refer to the [Deployment Guide](./scripts/deploy/readme.md). This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices. -### Cast +### Community -```shell -$ cast -``` - -### Help - -```shell -$ forge --help -$ anvil --help -$ cast --help -``` -# Summary +[X](https://x.com/zetablockchain) | [Discord](https://discord.com/invite/zetachain) | [Telegram](https://t.me/zetachainofficial) | [Website](https://zetachain.com)# Summary - [Home](README.md) # contracts - [❱ evm](protocol/contracts/evm/README.md) diff --git a/v2/echidna.yaml b/echidna.yaml similarity index 100% rename from v2/echidna.yaml rename to echidna.yaml diff --git a/v2/eslint.config.js b/eslint.config.js similarity index 100% rename from v2/eslint.config.js rename to eslint.config.js diff --git a/v2/eslint.config.mjs b/eslint.config.mjs similarity index 100% rename from v2/eslint.config.mjs rename to eslint.config.mjs diff --git a/v2/foundry.toml b/foundry.toml similarity index 100% rename from v2/foundry.toml rename to foundry.toml diff --git a/v2/hardhat.config.ts b/hardhat.config.ts similarity index 100% rename from v2/hardhat.config.ts rename to hardhat.config.ts diff --git a/v2/lib/addresses.ts b/lib/addresses.ts similarity index 100% rename from v2/lib/addresses.ts rename to lib/addresses.ts diff --git a/v2/lib/index.ts b/lib/index.ts similarity index 100% rename from v2/lib/index.ts rename to lib/index.ts diff --git a/v2/lib/types.ts b/lib/types.ts similarity index 61% rename from v2/lib/types.ts rename to lib/types.ts index 34f3c56a3..11b642a3f 100644 --- a/v2/lib/types.ts +++ b/lib/types.ts @@ -1,4 +1,4 @@ -export type ParamSymbol = "USDC.BSC" | "USDC.ETH" | "BTC.BTC" | "ETH.BASE" | "PEPE.ETH" | "BNB.BSC" | "SOL.SOL" | "SHIB.ETH" | "USDT.ETH" | "USDC.SOL" | "USDT.BSC" | "USDC.BASE" | "POL.POLYGON" | "DAI.ETH" | "ULTI.BSC" | "ETH.ETH" | "USDT.POL" | "ULTI.ETH" | "USDC.POL" | "sETH.SEPOLIA" | "ETH.BASESEPOLIA" | "MATIC.AMOY" | "USDC" | "SOL.SOLANA" | "USDC.SEPOLIA" | "tBNB" | "sBTC" | "USDC.AMOY" | "tBTC"; +export type ParamSymbol = "USDC.BSC" | "USDC.ETH" | "BTC.BTC" | "ETH.BASE" | "PEPE.ETH" | "BNB.BSC" | "SOL.SOL" | "CBBTC.SOL" | "SHIB.ETH" | "USDT.ETH" | "USDC.SOL" | "USDT.BSC" | "USDC.BASE" | "POL.POLYGON" | "DAI.ETH" | "ULTI.BSC" | "ETH.ETH" | "USDT.POL" | "ULTI.ETH" | "USDT.SOL" | "USDC.POL" | "sETH.SEPOLIA" | "ETH.BASESEPOLIA" | "MATIC.AMOY" | "USDC" | "SOL.SOLANA" | "USDC.SEPOLIA" | "tBNB" | "sBTC" | "USDC.AMOY" | "tBTC"; export type ParamChainName = "eth_mainnet" | "bsc_mainnet" | "polygon_mainnet" | "zeta_mainnet" | "btc_mainnet" | "base_mainnet" | "bsc_testnet" | "solana_devnet" | "zeta_testnet" | "btc_signet_testnet" | "btc_testnet4" | "amoy_testnet" | "base_sepolia" | "sepolia_testnet"; export type ParamType = "connector" | "erc20Custody" | "gateway" | "tss" | "uniswapV2Factory" | "uniswapV2Router02" | "uniswapV3Factory" | "uniswapV3Router" | "weth9" | "zetaToken" | "fungibleModule" | "systemContract" | "zrc20" | "custody"; diff --git a/v2/package.json b/package.json similarity index 100% rename from v2/package.json rename to package.json diff --git a/v2/pkg/accesscontrolupgradeable.sol/accesscontrolupgradeable.go b/pkg/accesscontrolupgradeable.sol/accesscontrolupgradeable.go similarity index 100% rename from v2/pkg/accesscontrolupgradeable.sol/accesscontrolupgradeable.go rename to pkg/accesscontrolupgradeable.sol/accesscontrolupgradeable.go diff --git a/v2/pkg/address.sol/address.go b/pkg/address.sol/address.go similarity index 100% rename from v2/pkg/address.sol/address.go rename to pkg/address.sol/address.go diff --git a/v2/pkg/base.sol/commonbase.go b/pkg/base.sol/commonbase.go similarity index 100% rename from v2/pkg/base.sol/commonbase.go rename to pkg/base.sol/commonbase.go diff --git a/v2/pkg/base.sol/scriptbase.go b/pkg/base.sol/scriptbase.go similarity index 100% rename from v2/pkg/base.sol/scriptbase.go rename to pkg/base.sol/scriptbase.go diff --git a/v2/pkg/base.sol/testbase.go b/pkg/base.sol/testbase.go similarity index 100% rename from v2/pkg/base.sol/testbase.go rename to pkg/base.sol/testbase.go diff --git a/v2/pkg/beaconproxy.sol/beaconproxy.go b/pkg/beaconproxy.sol/beaconproxy.go similarity index 100% rename from v2/pkg/beaconproxy.sol/beaconproxy.go rename to pkg/beaconproxy.sol/beaconproxy.go diff --git a/v2/pkg/connectorerrors.sol/connectorerrors.go b/pkg/connectorerrors.sol/connectorerrors.go similarity index 100% rename from v2/pkg/connectorerrors.sol/connectorerrors.go rename to pkg/connectorerrors.sol/connectorerrors.go diff --git a/v2/pkg/console.sol/console.go b/pkg/console.sol/console.go similarity index 100% rename from v2/pkg/console.sol/console.go rename to pkg/console.sol/console.go diff --git a/v2/pkg/console2.sol/console2.go b/pkg/console2.sol/console2.go similarity index 100% rename from v2/pkg/console2.sol/console2.go rename to pkg/console2.sol/console2.go diff --git a/v2/pkg/context.sol/context.go b/pkg/context.sol/context.go similarity index 100% rename from v2/pkg/context.sol/context.go rename to pkg/context.sol/context.go diff --git a/v2/pkg/contextupgradeable.sol/contextupgradeable.go b/pkg/contextupgradeable.sol/contextupgradeable.go similarity index 100% rename from v2/pkg/contextupgradeable.sol/contextupgradeable.go rename to pkg/contextupgradeable.sol/contextupgradeable.go diff --git a/v2/pkg/core.sol/core.go b/pkg/core.sol/core.go similarity index 100% rename from v2/pkg/core.sol/core.go rename to pkg/core.sol/core.go diff --git a/v2/pkg/defender.sol/defender.go b/pkg/defender.sol/defender.go similarity index 100% rename from v2/pkg/defender.sol/defender.go rename to pkg/defender.sol/defender.go diff --git a/v2/pkg/defenderdeploy.sol/defenderdeploy.go b/pkg/defenderdeploy.sol/defenderdeploy.go similarity index 100% rename from v2/pkg/defenderdeploy.sol/defenderdeploy.go rename to pkg/defenderdeploy.sol/defenderdeploy.go diff --git a/v2/pkg/erc165upgradeable.sol/erc165upgradeable.go b/pkg/erc165upgradeable.sol/erc165upgradeable.go similarity index 100% rename from v2/pkg/erc165upgradeable.sol/erc165upgradeable.go rename to pkg/erc165upgradeable.sol/erc165upgradeable.go diff --git a/v2/pkg/erc1967proxy.sol/erc1967proxy.go b/pkg/erc1967proxy.sol/erc1967proxy.go similarity index 100% rename from v2/pkg/erc1967proxy.sol/erc1967proxy.go rename to pkg/erc1967proxy.sol/erc1967proxy.go diff --git a/v2/pkg/erc1967utils.sol/erc1967utils.go b/pkg/erc1967utils.sol/erc1967utils.go similarity index 100% rename from v2/pkg/erc1967utils.sol/erc1967utils.go rename to pkg/erc1967utils.sol/erc1967utils.go diff --git a/v2/pkg/erc20.sol/erc20.go b/pkg/erc20.sol/erc20.go similarity index 100% rename from v2/pkg/erc20.sol/erc20.go rename to pkg/erc20.sol/erc20.go diff --git a/v2/pkg/erc20/ierc20.sol/ierc20.go b/pkg/erc20/ierc20.sol/ierc20.go similarity index 100% rename from v2/pkg/erc20/ierc20.sol/ierc20.go rename to pkg/erc20/ierc20.sol/ierc20.go diff --git a/v2/pkg/erc20burnable.sol/erc20burnable.go b/pkg/erc20burnable.sol/erc20burnable.go similarity index 100% rename from v2/pkg/erc20burnable.sol/erc20burnable.go rename to pkg/erc20burnable.sol/erc20burnable.go diff --git a/v2/pkg/erc20custody.sol/erc20custody.go b/pkg/erc20custody.sol/erc20custody.go similarity index 100% rename from v2/pkg/erc20custody.sol/erc20custody.go rename to pkg/erc20custody.sol/erc20custody.go diff --git a/v2/pkg/erc20custody.t.sol/erc20custodytest.go b/pkg/erc20custody.t.sol/erc20custodytest.go similarity index 100% rename from v2/pkg/erc20custody.t.sol/erc20custodytest.go rename to pkg/erc20custody.t.sol/erc20custodytest.go diff --git a/v2/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go b/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go similarity index 100% rename from v2/pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go rename to pkg/erc20custodyechidnatest.sol/erc20custodyechidnatest.go diff --git a/v2/pkg/erc20custodyupgradetest.sol/erc20custodyupgradetest.go b/pkg/erc20custodyupgradetest.sol/erc20custodyupgradetest.go similarity index 100% rename from v2/pkg/erc20custodyupgradetest.sol/erc20custodyupgradetest.go rename to pkg/erc20custodyupgradetest.sol/erc20custodyupgradetest.go diff --git a/v2/pkg/errors.sol/inotsupportedmethods.go b/pkg/errors.sol/inotsupportedmethods.go similarity index 100% rename from v2/pkg/errors.sol/inotsupportedmethods.go rename to pkg/errors.sol/inotsupportedmethods.go diff --git a/v2/pkg/gatewayevm.sol/gatewayevm.go b/pkg/gatewayevm.sol/gatewayevm.go similarity index 100% rename from v2/pkg/gatewayevm.sol/gatewayevm.go rename to pkg/gatewayevm.sol/gatewayevm.go diff --git a/v2/pkg/gatewayevm.t.sol/gatewayevminboundtest.go b/pkg/gatewayevm.t.sol/gatewayevminboundtest.go similarity index 100% rename from v2/pkg/gatewayevm.t.sol/gatewayevminboundtest.go rename to pkg/gatewayevm.t.sol/gatewayevminboundtest.go diff --git a/v2/pkg/gatewayevm.t.sol/gatewayevmtest.go b/pkg/gatewayevm.t.sol/gatewayevmtest.go similarity index 100% rename from v2/pkg/gatewayevm.t.sol/gatewayevmtest.go rename to pkg/gatewayevm.t.sol/gatewayevmtest.go diff --git a/v2/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go b/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go similarity index 100% rename from v2/pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go rename to pkg/gatewayevmechidnatest.sol/gatewayevmechidnatest.go diff --git a/v2/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go b/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go similarity index 100% rename from v2/pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go rename to pkg/gatewayevmupgradetest.sol/gatewayevmupgradetest.go diff --git a/v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go b/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go similarity index 100% rename from v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go rename to pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go diff --git a/v2/pkg/gatewayzevm.sol/gatewayzevm.go b/pkg/gatewayzevm.sol/gatewayzevm.go similarity index 100% rename from v2/pkg/gatewayzevm.sol/gatewayzevm.go rename to pkg/gatewayzevm.sol/gatewayzevm.go diff --git a/v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go b/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go similarity index 100% rename from v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go rename to pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go diff --git a/v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go b/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go similarity index 100% rename from v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go rename to pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go diff --git a/v2/pkg/gatewayzevmupgradetest.sol/gatewayzevmupgradetest.go b/pkg/gatewayzevmupgradetest.sol/gatewayzevmupgradetest.go similarity index 100% rename from v2/pkg/gatewayzevmupgradetest.sol/gatewayzevmupgradetest.go rename to pkg/gatewayzevmupgradetest.sol/gatewayzevmupgradetest.go diff --git a/v2/pkg/iaccesscontrol.sol/iaccesscontrol.go b/pkg/iaccesscontrol.sol/iaccesscontrol.go similarity index 100% rename from v2/pkg/iaccesscontrol.sol/iaccesscontrol.go rename to pkg/iaccesscontrol.sol/iaccesscontrol.go diff --git a/v2/pkg/ibeacon.sol/ibeacon.go b/pkg/ibeacon.sol/ibeacon.go similarity index 100% rename from v2/pkg/ibeacon.sol/ibeacon.go rename to pkg/ibeacon.sol/ibeacon.go diff --git a/v2/pkg/ierc165.sol/ierc165.go b/pkg/ierc165.sol/ierc165.go similarity index 100% rename from v2/pkg/ierc165.sol/ierc165.go rename to pkg/ierc165.sol/ierc165.go diff --git a/v2/pkg/ierc1967.sol/ierc1967.go b/pkg/ierc1967.sol/ierc1967.go similarity index 100% rename from v2/pkg/ierc1967.sol/ierc1967.go rename to pkg/ierc1967.sol/ierc1967.go diff --git a/v2/pkg/ierc20.sol/ierc20.go b/pkg/ierc20.sol/ierc20.go similarity index 100% rename from v2/pkg/ierc20.sol/ierc20.go rename to pkg/ierc20.sol/ierc20.go diff --git a/v2/pkg/ierc20custody.sol/ierc20custody.go b/pkg/ierc20custody.sol/ierc20custody.go similarity index 100% rename from v2/pkg/ierc20custody.sol/ierc20custody.go rename to pkg/ierc20custody.sol/ierc20custody.go diff --git a/v2/pkg/ierc20custody.sol/ierc20custodyerrors.go b/pkg/ierc20custody.sol/ierc20custodyerrors.go similarity index 100% rename from v2/pkg/ierc20custody.sol/ierc20custodyerrors.go rename to pkg/ierc20custody.sol/ierc20custodyerrors.go diff --git a/v2/pkg/ierc20custody.sol/ierc20custodyevents.go b/pkg/ierc20custody.sol/ierc20custodyevents.go similarity index 100% rename from v2/pkg/ierc20custody.sol/ierc20custodyevents.go rename to pkg/ierc20custody.sol/ierc20custodyevents.go diff --git a/v2/pkg/ierc20metadata.sol/ierc20metadata.go b/pkg/ierc20metadata.sol/ierc20metadata.go similarity index 100% rename from v2/pkg/ierc20metadata.sol/ierc20metadata.go rename to pkg/ierc20metadata.sol/ierc20metadata.go diff --git a/v2/pkg/ierc20permit.sol/ierc20permit.go b/pkg/ierc20permit.sol/ierc20permit.go similarity index 100% rename from v2/pkg/ierc20permit.sol/ierc20permit.go rename to pkg/ierc20permit.sol/ierc20permit.go diff --git a/v2/pkg/ierc721.sol/ierc721.go b/pkg/ierc721.sol/ierc721.go similarity index 100% rename from v2/pkg/ierc721.sol/ierc721.go rename to pkg/ierc721.sol/ierc721.go diff --git a/v2/pkg/ierc721.sol/ierc721enumerable.go b/pkg/ierc721.sol/ierc721enumerable.go similarity index 100% rename from v2/pkg/ierc721.sol/ierc721enumerable.go rename to pkg/ierc721.sol/ierc721enumerable.go diff --git a/v2/pkg/ierc721.sol/ierc721metadata.go b/pkg/ierc721.sol/ierc721metadata.go similarity index 100% rename from v2/pkg/ierc721.sol/ierc721metadata.go rename to pkg/ierc721.sol/ierc721metadata.go diff --git a/v2/pkg/ierc721.sol/ierc721tokenreceiver.go b/pkg/ierc721.sol/ierc721tokenreceiver.go similarity index 100% rename from v2/pkg/ierc721.sol/ierc721tokenreceiver.go rename to pkg/ierc721.sol/ierc721tokenreceiver.go diff --git a/v2/pkg/igatewayevm.sol/callable.go b/pkg/igatewayevm.sol/callable.go similarity index 100% rename from v2/pkg/igatewayevm.sol/callable.go rename to pkg/igatewayevm.sol/callable.go diff --git a/v2/pkg/igatewayevm.sol/igatewayevm.go b/pkg/igatewayevm.sol/igatewayevm.go similarity index 100% rename from v2/pkg/igatewayevm.sol/igatewayevm.go rename to pkg/igatewayevm.sol/igatewayevm.go diff --git a/v2/pkg/igatewayevm.sol/igatewayevmerrors.go b/pkg/igatewayevm.sol/igatewayevmerrors.go similarity index 100% rename from v2/pkg/igatewayevm.sol/igatewayevmerrors.go rename to pkg/igatewayevm.sol/igatewayevmerrors.go diff --git a/v2/pkg/igatewayevm.sol/igatewayevmevents.go b/pkg/igatewayevm.sol/igatewayevmevents.go similarity index 100% rename from v2/pkg/igatewayevm.sol/igatewayevmevents.go rename to pkg/igatewayevm.sol/igatewayevmevents.go diff --git a/v2/pkg/igatewayzevm.sol/igatewayzevm.go b/pkg/igatewayzevm.sol/igatewayzevm.go similarity index 100% rename from v2/pkg/igatewayzevm.sol/igatewayzevm.go rename to pkg/igatewayzevm.sol/igatewayzevm.go diff --git a/v2/pkg/igatewayzevm.sol/igatewayzevmerrors.go b/pkg/igatewayzevm.sol/igatewayzevmerrors.go similarity index 100% rename from v2/pkg/igatewayzevm.sol/igatewayzevmerrors.go rename to pkg/igatewayzevm.sol/igatewayzevmerrors.go diff --git a/v2/pkg/igatewayzevm.sol/igatewayzevmevents.go b/pkg/igatewayzevm.sol/igatewayzevmevents.go similarity index 100% rename from v2/pkg/igatewayzevm.sol/igatewayzevmevents.go rename to pkg/igatewayzevm.sol/igatewayzevmevents.go diff --git a/v2/pkg/imulticall3.sol/imulticall3.go b/pkg/imulticall3.sol/imulticall3.go similarity index 100% rename from v2/pkg/imulticall3.sol/imulticall3.go rename to pkg/imulticall3.sol/imulticall3.go diff --git a/v2/pkg/initializable.sol/initializable.go b/pkg/initializable.sol/initializable.go similarity index 100% rename from v2/pkg/initializable.sol/initializable.go rename to pkg/initializable.sol/initializable.go diff --git a/v2/pkg/introspection/ierc165.sol/ierc165.go b/pkg/introspection/ierc165.sol/ierc165.go similarity index 100% rename from v2/pkg/introspection/ierc165.sol/ierc165.go rename to pkg/introspection/ierc165.sol/ierc165.go diff --git a/v2/pkg/iproxyadmin.sol/iproxyadmin.go b/pkg/iproxyadmin.sol/iproxyadmin.go similarity index 100% rename from v2/pkg/iproxyadmin.sol/iproxyadmin.go rename to pkg/iproxyadmin.sol/iproxyadmin.go diff --git a/v2/pkg/ireceiverevm.sol/ireceiverevmevents.go b/pkg/ireceiverevm.sol/ireceiverevmevents.go similarity index 100% rename from v2/pkg/ireceiverevm.sol/ireceiverevmevents.go rename to pkg/ireceiverevm.sol/ireceiverevmevents.go diff --git a/v2/pkg/isystem.sol/isystem.go b/pkg/isystem.sol/isystem.go similarity index 100% rename from v2/pkg/isystem.sol/isystem.go rename to pkg/isystem.sol/isystem.go diff --git a/v2/pkg/iupgradeablebeacon.sol/iupgradeablebeacon.go b/pkg/iupgradeablebeacon.sol/iupgradeablebeacon.go similarity index 100% rename from v2/pkg/iupgradeablebeacon.sol/iupgradeablebeacon.go rename to pkg/iupgradeablebeacon.sol/iupgradeablebeacon.go diff --git a/v2/pkg/iupgradeableproxy.sol/iupgradeableproxy.go b/pkg/iupgradeableproxy.sol/iupgradeableproxy.go similarity index 100% rename from v2/pkg/iupgradeableproxy.sol/iupgradeableproxy.go rename to pkg/iupgradeableproxy.sol/iupgradeableproxy.go diff --git a/v2/pkg/iwzeta.sol/iweth9.go b/pkg/iwzeta.sol/iweth9.go similarity index 100% rename from v2/pkg/iwzeta.sol/iweth9.go rename to pkg/iwzeta.sol/iweth9.go diff --git a/v2/pkg/izetaconnector.sol/izetaconnectorevents.go b/pkg/izetaconnector.sol/izetaconnectorevents.go similarity index 100% rename from v2/pkg/izetaconnector.sol/izetaconnectorevents.go rename to pkg/izetaconnector.sol/izetaconnectorevents.go diff --git a/v2/pkg/izetanonethnew.sol/izetanonethnew.go b/pkg/izetanonethnew.sol/izetanonethnew.go similarity index 100% rename from v2/pkg/izetanonethnew.sol/izetanonethnew.go rename to pkg/izetanonethnew.sol/izetanonethnew.go diff --git a/v2/pkg/izrc20.sol/izrc20.go b/pkg/izrc20.sol/izrc20.go similarity index 100% rename from v2/pkg/izrc20.sol/izrc20.go rename to pkg/izrc20.sol/izrc20.go diff --git a/v2/pkg/izrc20.sol/izrc20metadata.go b/pkg/izrc20.sol/izrc20metadata.go similarity index 100% rename from v2/pkg/izrc20.sol/izrc20metadata.go rename to pkg/izrc20.sol/izrc20metadata.go diff --git a/v2/pkg/izrc20.sol/zrc20events.go b/pkg/izrc20.sol/zrc20events.go similarity index 100% rename from v2/pkg/izrc20.sol/zrc20events.go rename to pkg/izrc20.sol/zrc20events.go diff --git a/v2/pkg/legacy/zeta.non-eth.sol/zetanoneth.go b/pkg/legacy/zeta.non-eth.sol/zetanoneth.go similarity index 100% rename from v2/pkg/legacy/zeta.non-eth.sol/zetanoneth.go rename to pkg/legacy/zeta.non-eth.sol/zetanoneth.go diff --git a/v2/pkg/math.sol/math.go b/pkg/math.sol/math.go similarity index 100% rename from v2/pkg/math.sol/math.go rename to pkg/math.sol/math.go diff --git a/v2/pkg/mockerc20.sol/mockerc20.go b/pkg/mockerc20.sol/mockerc20.go similarity index 100% rename from v2/pkg/mockerc20.sol/mockerc20.go rename to pkg/mockerc20.sol/mockerc20.go diff --git a/v2/pkg/mockerc721.sol/mockerc721.go b/pkg/mockerc721.sol/mockerc721.go similarity index 100% rename from v2/pkg/mockerc721.sol/mockerc721.go rename to pkg/mockerc721.sol/mockerc721.go diff --git a/v2/pkg/options.sol/options.go b/pkg/options.sol/options.go similarity index 100% rename from v2/pkg/options.sol/options.go rename to pkg/options.sol/options.go diff --git a/v2/pkg/ownable.sol/ownable.go b/pkg/ownable.sol/ownable.go similarity index 100% rename from v2/pkg/ownable.sol/ownable.go rename to pkg/ownable.sol/ownable.go diff --git a/v2/pkg/pausable.sol/pausable.go b/pkg/pausable.sol/pausable.go similarity index 100% rename from v2/pkg/pausable.sol/pausable.go rename to pkg/pausable.sol/pausable.go diff --git a/v2/pkg/pausableupgradeable.sol/pausableupgradeable.go b/pkg/pausableupgradeable.sol/pausableupgradeable.go similarity index 100% rename from v2/pkg/pausableupgradeable.sol/pausableupgradeable.go rename to pkg/pausableupgradeable.sol/pausableupgradeable.go diff --git a/v2/pkg/proxy.sol/proxy.go b/pkg/proxy.sol/proxy.go similarity index 100% rename from v2/pkg/proxy.sol/proxy.go rename to pkg/proxy.sol/proxy.go diff --git a/v2/pkg/proxyadmin.sol/proxyadmin.go b/pkg/proxyadmin.sol/proxyadmin.go similarity index 100% rename from v2/pkg/proxyadmin.sol/proxyadmin.go rename to pkg/proxyadmin.sol/proxyadmin.go diff --git a/v2/pkg/receiverevm.sol/receiverevm.go b/pkg/receiverevm.sol/receiverevm.go similarity index 100% rename from v2/pkg/receiverevm.sol/receiverevm.go rename to pkg/receiverevm.sol/receiverevm.go diff --git a/v2/pkg/reentrancyguard.sol/reentrancyguard.go b/pkg/reentrancyguard.sol/reentrancyguard.go similarity index 100% rename from v2/pkg/reentrancyguard.sol/reentrancyguard.go rename to pkg/reentrancyguard.sol/reentrancyguard.go diff --git a/v2/pkg/reentrancyguardupgradeable.sol/reentrancyguardupgradeable.go b/pkg/reentrancyguardupgradeable.sol/reentrancyguardupgradeable.go similarity index 100% rename from v2/pkg/reentrancyguardupgradeable.sol/reentrancyguardupgradeable.go rename to pkg/reentrancyguardupgradeable.sol/reentrancyguardupgradeable.go diff --git a/v2/pkg/revert.sol/revertable.go b/pkg/revert.sol/revertable.go similarity index 100% rename from v2/pkg/revert.sol/revertable.go rename to pkg/revert.sol/revertable.go diff --git a/v2/pkg/safeconsole.sol/safeconsole.go b/pkg/safeconsole.sol/safeconsole.go similarity index 100% rename from v2/pkg/safeconsole.sol/safeconsole.go rename to pkg/safeconsole.sol/safeconsole.go diff --git a/v2/pkg/safeerc20.sol/safeerc20.go b/pkg/safeerc20.sol/safeerc20.go similarity index 100% rename from v2/pkg/safeerc20.sol/safeerc20.go rename to pkg/safeerc20.sol/safeerc20.go diff --git a/v2/pkg/senderzevm.sol/senderzevm.go b/pkg/senderzevm.sol/senderzevm.go similarity index 100% rename from v2/pkg/senderzevm.sol/senderzevm.go rename to pkg/senderzevm.sol/senderzevm.go diff --git a/v2/pkg/signedmath.sol/signedmath.go b/pkg/signedmath.sol/signedmath.go similarity index 100% rename from v2/pkg/signedmath.sol/signedmath.go rename to pkg/signedmath.sol/signedmath.go diff --git a/v2/pkg/src/strings.sol/strings.go b/pkg/src/strings.sol/strings.go similarity index 100% rename from v2/pkg/src/strings.sol/strings.go rename to pkg/src/strings.sol/strings.go diff --git a/v2/pkg/stdassertions.sol/stdassertions.go b/pkg/stdassertions.sol/stdassertions.go similarity index 100% rename from v2/pkg/stdassertions.sol/stdassertions.go rename to pkg/stdassertions.sol/stdassertions.go diff --git a/v2/pkg/stdchains.sol/stdchains.go b/pkg/stdchains.sol/stdchains.go similarity index 100% rename from v2/pkg/stdchains.sol/stdchains.go rename to pkg/stdchains.sol/stdchains.go diff --git a/v2/pkg/stdcheats.sol/stdcheats.go b/pkg/stdcheats.sol/stdcheats.go similarity index 100% rename from v2/pkg/stdcheats.sol/stdcheats.go rename to pkg/stdcheats.sol/stdcheats.go diff --git a/v2/pkg/stdcheats.sol/stdcheatssafe.go b/pkg/stdcheats.sol/stdcheatssafe.go similarity index 100% rename from v2/pkg/stdcheats.sol/stdcheatssafe.go rename to pkg/stdcheats.sol/stdcheatssafe.go diff --git a/v2/pkg/stderror.sol/stderror.go b/pkg/stderror.sol/stderror.go similarity index 100% rename from v2/pkg/stderror.sol/stderror.go rename to pkg/stderror.sol/stderror.go diff --git a/v2/pkg/stdinvariant.sol/stdinvariant.go b/pkg/stdinvariant.sol/stdinvariant.go similarity index 100% rename from v2/pkg/stdinvariant.sol/stdinvariant.go rename to pkg/stdinvariant.sol/stdinvariant.go diff --git a/v2/pkg/stdjson.sol/stdjson.go b/pkg/stdjson.sol/stdjson.go similarity index 100% rename from v2/pkg/stdjson.sol/stdjson.go rename to pkg/stdjson.sol/stdjson.go diff --git a/v2/pkg/stdmath.sol/stdmath.go b/pkg/stdmath.sol/stdmath.go similarity index 100% rename from v2/pkg/stdmath.sol/stdmath.go rename to pkg/stdmath.sol/stdmath.go diff --git a/v2/pkg/stdstorage.sol/stdstorage.go b/pkg/stdstorage.sol/stdstorage.go similarity index 100% rename from v2/pkg/stdstorage.sol/stdstorage.go rename to pkg/stdstorage.sol/stdstorage.go diff --git a/v2/pkg/stdstorage.sol/stdstoragesafe.go b/pkg/stdstorage.sol/stdstoragesafe.go similarity index 100% rename from v2/pkg/stdstorage.sol/stdstoragesafe.go rename to pkg/stdstorage.sol/stdstoragesafe.go diff --git a/v2/pkg/stdstyle.sol/stdstyle.go b/pkg/stdstyle.sol/stdstyle.go similarity index 100% rename from v2/pkg/stdstyle.sol/stdstyle.go rename to pkg/stdstyle.sol/stdstyle.go diff --git a/v2/pkg/stdtoml.sol/stdtoml.go b/pkg/stdtoml.sol/stdtoml.go similarity index 100% rename from v2/pkg/stdtoml.sol/stdtoml.go rename to pkg/stdtoml.sol/stdtoml.go diff --git a/v2/pkg/stdutils.sol/stdutils.go b/pkg/stdutils.sol/stdutils.go similarity index 100% rename from v2/pkg/stdutils.sol/stdutils.go rename to pkg/stdutils.sol/stdutils.go diff --git a/v2/pkg/storageslot.sol/storageslot.go b/pkg/storageslot.sol/storageslot.go similarity index 100% rename from v2/pkg/storageslot.sol/storageslot.go rename to pkg/storageslot.sol/storageslot.go diff --git a/v2/pkg/strings.sol/strings.go b/pkg/strings.sol/strings.go similarity index 100% rename from v2/pkg/strings.sol/strings.go rename to pkg/strings.sol/strings.go diff --git a/v2/pkg/systemcontract.sol/systemcontract.go b/pkg/systemcontract.sol/systemcontract.go similarity index 100% rename from v2/pkg/systemcontract.sol/systemcontract.go rename to pkg/systemcontract.sol/systemcontract.go diff --git a/v2/pkg/systemcontract.sol/systemcontracterrors.go b/pkg/systemcontract.sol/systemcontracterrors.go similarity index 100% rename from v2/pkg/systemcontract.sol/systemcontracterrors.go rename to pkg/systemcontract.sol/systemcontracterrors.go diff --git a/v2/pkg/systemcontractmock.sol/systemcontracterrors.go b/pkg/systemcontractmock.sol/systemcontracterrors.go similarity index 100% rename from v2/pkg/systemcontractmock.sol/systemcontracterrors.go rename to pkg/systemcontractmock.sol/systemcontracterrors.go diff --git a/v2/pkg/systemcontractmock.sol/systemcontractmock.go b/pkg/systemcontractmock.sol/systemcontractmock.go similarity index 100% rename from v2/pkg/systemcontractmock.sol/systemcontractmock.go rename to pkg/systemcontractmock.sol/systemcontractmock.go diff --git a/v2/pkg/test.sol/test.go b/pkg/test.sol/test.go similarity index 100% rename from v2/pkg/test.sol/test.go rename to pkg/test.sol/test.go diff --git a/v2/pkg/testerc20.sol/testerc20.go b/pkg/testerc20.sol/testerc20.go similarity index 100% rename from v2/pkg/testerc20.sol/testerc20.go rename to pkg/testerc20.sol/testerc20.go diff --git a/v2/pkg/testuniversalcontract.sol/testuniversalcontract.go b/pkg/testuniversalcontract.sol/testuniversalcontract.go similarity index 100% rename from v2/pkg/testuniversalcontract.sol/testuniversalcontract.go rename to pkg/testuniversalcontract.sol/testuniversalcontract.go diff --git a/v2/pkg/transparentupgradeableproxy.sol/itransparentupgradeableproxy.go b/pkg/transparentupgradeableproxy.sol/itransparentupgradeableproxy.go similarity index 100% rename from v2/pkg/transparentupgradeableproxy.sol/itransparentupgradeableproxy.go rename to pkg/transparentupgradeableproxy.sol/itransparentupgradeableproxy.go diff --git a/v2/pkg/transparentupgradeableproxy.sol/transparentupgradeableproxy.go b/pkg/transparentupgradeableproxy.sol/transparentupgradeableproxy.go similarity index 100% rename from v2/pkg/transparentupgradeableproxy.sol/transparentupgradeableproxy.go rename to pkg/transparentupgradeableproxy.sol/transparentupgradeableproxy.go diff --git a/v2/pkg/universalcontract.sol/universalcontract.go b/pkg/universalcontract.sol/universalcontract.go similarity index 100% rename from v2/pkg/universalcontract.sol/universalcontract.go rename to pkg/universalcontract.sol/universalcontract.go diff --git a/v2/pkg/universalcontract.sol/zcontract.go b/pkg/universalcontract.sol/zcontract.go similarity index 100% rename from v2/pkg/universalcontract.sol/zcontract.go rename to pkg/universalcontract.sol/zcontract.go diff --git a/v2/pkg/upgradeablebeacon.sol/upgradeablebeacon.go b/pkg/upgradeablebeacon.sol/upgradeablebeacon.go similarity index 100% rename from v2/pkg/upgradeablebeacon.sol/upgradeablebeacon.go rename to pkg/upgradeablebeacon.sol/upgradeablebeacon.go diff --git a/v2/pkg/upgrades.sol/unsafeupgrades.go b/pkg/upgrades.sol/unsafeupgrades.go similarity index 100% rename from v2/pkg/upgrades.sol/unsafeupgrades.go rename to pkg/upgrades.sol/unsafeupgrades.go diff --git a/v2/pkg/upgrades.sol/upgrades.go b/pkg/upgrades.sol/upgrades.go similarity index 100% rename from v2/pkg/upgrades.sol/upgrades.go rename to pkg/upgrades.sol/upgrades.go diff --git a/v2/pkg/utils.sol/utils.go b/pkg/utils.sol/utils.go similarity index 100% rename from v2/pkg/utils.sol/utils.go rename to pkg/utils.sol/utils.go diff --git a/v2/pkg/utils/wzeta.sol/weth9.go b/pkg/utils/wzeta.sol/weth9.go similarity index 100% rename from v2/pkg/utils/wzeta.sol/weth9.go rename to pkg/utils/wzeta.sol/weth9.go diff --git a/v2/pkg/uupsupgradeable.sol/uupsupgradeable.go b/pkg/uupsupgradeable.sol/uupsupgradeable.go similarity index 100% rename from v2/pkg/uupsupgradeable.sol/uupsupgradeable.go rename to pkg/uupsupgradeable.sol/uupsupgradeable.go diff --git a/v2/pkg/versions.sol/versions.go b/pkg/versions.sol/versions.go similarity index 100% rename from v2/pkg/versions.sol/versions.go rename to pkg/versions.sol/versions.go diff --git a/v2/pkg/vm.sol/vm.go b/pkg/vm.sol/vm.go similarity index 100% rename from v2/pkg/vm.sol/vm.go rename to pkg/vm.sol/vm.go diff --git a/v2/pkg/vm.sol/vmsafe.go b/pkg/vm.sol/vmsafe.go similarity index 100% rename from v2/pkg/vm.sol/vmsafe.go rename to pkg/vm.sol/vmsafe.go diff --git a/v2/pkg/wzeta.sol/weth9.go b/pkg/wzeta.sol/weth9.go similarity index 100% rename from v2/pkg/wzeta.sol/weth9.go rename to pkg/wzeta.sol/weth9.go diff --git a/v2/pkg/wzeta.t.sol/wzetatest.go b/pkg/wzeta.t.sol/wzetatest.go similarity index 100% rename from v2/pkg/wzeta.t.sol/wzetatest.go rename to pkg/wzeta.t.sol/wzetatest.go diff --git a/v2/pkg/zeta.eth.sol/zetaeth.go b/pkg/zeta.eth.sol/zetaeth.go similarity index 100% rename from v2/pkg/zeta.eth.sol/zetaeth.go rename to pkg/zeta.eth.sol/zetaeth.go diff --git a/v2/pkg/zeta.non-eth.sol/zetaerrors.go b/pkg/zeta.non-eth.sol/zetaerrors.go similarity index 100% rename from v2/pkg/zeta.non-eth.sol/zetaerrors.go rename to pkg/zeta.non-eth.sol/zetaerrors.go diff --git a/v2/pkg/zeta.non-eth.sol/zetanoneth.go b/pkg/zeta.non-eth.sol/zetanoneth.go similarity index 100% rename from v2/pkg/zeta.non-eth.sol/zetanoneth.go rename to pkg/zeta.non-eth.sol/zetanoneth.go diff --git a/v2/pkg/zeta.non-eth.sol/zetanonethinterface.go b/pkg/zeta.non-eth.sol/zetanonethinterface.go similarity index 100% rename from v2/pkg/zeta.non-eth.sol/zetanonethinterface.go rename to pkg/zeta.non-eth.sol/zetanonethinterface.go diff --git a/v2/pkg/zetaconnector.base.sol/zetaconnectorbase.go b/pkg/zetaconnector.base.sol/zetaconnectorbase.go similarity index 100% rename from v2/pkg/zetaconnector.base.sol/zetaconnectorbase.go rename to pkg/zetaconnector.base.sol/zetaconnectorbase.go diff --git a/v2/pkg/zetaconnector.eth.sol/zetaconnectoreth.go b/pkg/zetaconnector.eth.sol/zetaconnectoreth.go similarity index 100% rename from v2/pkg/zetaconnector.eth.sol/zetaconnectoreth.go rename to pkg/zetaconnector.eth.sol/zetaconnectoreth.go diff --git a/v2/pkg/zetaconnector.non-eth.sol/zetaconnectornoneth.go b/pkg/zetaconnector.non-eth.sol/zetaconnectornoneth.go similarity index 100% rename from v2/pkg/zetaconnector.non-eth.sol/zetaconnectornoneth.go rename to pkg/zetaconnector.non-eth.sol/zetaconnectornoneth.go diff --git a/v2/pkg/zetaconnectorbase.sol/zetaconnectorbase.go b/pkg/zetaconnectorbase.sol/zetaconnectorbase.go similarity index 100% rename from v2/pkg/zetaconnectorbase.sol/zetaconnectorbase.go rename to pkg/zetaconnectorbase.sol/zetaconnectorbase.go diff --git a/v2/pkg/zetaconnectornative.sol/zetaconnectornative.go b/pkg/zetaconnectornative.sol/zetaconnectornative.go similarity index 100% rename from v2/pkg/zetaconnectornative.sol/zetaconnectornative.go rename to pkg/zetaconnectornative.sol/zetaconnectornative.go diff --git a/v2/pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go b/pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go similarity index 100% rename from v2/pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go rename to pkg/zetaconnectornative.t.sol/zetaconnectornativetest.go diff --git a/v2/pkg/zetaconnectornativeupgradetest.sol/zetaconnectornativeupgradetest.go b/pkg/zetaconnectornativeupgradetest.sol/zetaconnectornativeupgradetest.go similarity index 100% rename from v2/pkg/zetaconnectornativeupgradetest.sol/zetaconnectornativeupgradetest.go rename to pkg/zetaconnectornativeupgradetest.sol/zetaconnectornativeupgradetest.go diff --git a/v2/pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go b/pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go similarity index 100% rename from v2/pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go rename to pkg/zetaconnectornonnative.sol/zetaconnectornonnative.go diff --git a/v2/pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go b/pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go similarity index 100% rename from v2/pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go rename to pkg/zetaconnectornonnative.t.sol/zetaconnectornonnativetest.go diff --git a/v2/pkg/zetaconnectornonnativeupgradetest.sol/zetaconnectornonnativeupgradetest.go b/pkg/zetaconnectornonnativeupgradetest.sol/zetaconnectornonnativeupgradetest.go similarity index 100% rename from v2/pkg/zetaconnectornonnativeupgradetest.sol/zetaconnectornonnativeupgradetest.go rename to pkg/zetaconnectornonnativeupgradetest.sol/zetaconnectornonnativeupgradetest.go diff --git a/v2/pkg/zetaconnectorzevm.sol/zetaconnectorzevm.go b/pkg/zetaconnectorzevm.sol/zetaconnectorzevm.go similarity index 100% rename from v2/pkg/zetaconnectorzevm.sol/zetaconnectorzevm.go rename to pkg/zetaconnectorzevm.sol/zetaconnectorzevm.go diff --git a/v2/pkg/zetaconnectorzevm.sol/zetainterfaces.go b/pkg/zetaconnectorzevm.sol/zetainterfaces.go similarity index 100% rename from v2/pkg/zetaconnectorzevm.sol/zetainterfaces.go rename to pkg/zetaconnectorzevm.sol/zetainterfaces.go diff --git a/v2/pkg/zetaconnectorzevm.sol/zetareceiver.go b/pkg/zetaconnectorzevm.sol/zetareceiver.go similarity index 100% rename from v2/pkg/zetaconnectorzevm.sol/zetareceiver.go rename to pkg/zetaconnectorzevm.sol/zetareceiver.go diff --git a/v2/pkg/zetaerrors.sol/zetaerrors.go b/pkg/zetaerrors.sol/zetaerrors.go similarity index 100% rename from v2/pkg/zetaerrors.sol/zetaerrors.go rename to pkg/zetaerrors.sol/zetaerrors.go diff --git a/v2/pkg/zetainterfaces.sol/zetacommonerrors.go b/pkg/zetainterfaces.sol/zetacommonerrors.go similarity index 100% rename from v2/pkg/zetainterfaces.sol/zetacommonerrors.go rename to pkg/zetainterfaces.sol/zetacommonerrors.go diff --git a/v2/pkg/zetainterfaces.sol/zetaconnector.go b/pkg/zetainterfaces.sol/zetaconnector.go similarity index 100% rename from v2/pkg/zetainterfaces.sol/zetaconnector.go rename to pkg/zetainterfaces.sol/zetaconnector.go diff --git a/v2/pkg/zetainterfaces.sol/zetainterfaces.go b/pkg/zetainterfaces.sol/zetainterfaces.go similarity index 100% rename from v2/pkg/zetainterfaces.sol/zetainterfaces.go rename to pkg/zetainterfaces.sol/zetainterfaces.go diff --git a/v2/pkg/zetainterfaces.sol/zetareceiver.go b/pkg/zetainterfaces.sol/zetareceiver.go similarity index 100% rename from v2/pkg/zetainterfaces.sol/zetareceiver.go rename to pkg/zetainterfaces.sol/zetareceiver.go diff --git a/v2/pkg/zetainterfaces.sol/zetatokenconsumer.go b/pkg/zetainterfaces.sol/zetatokenconsumer.go similarity index 100% rename from v2/pkg/zetainterfaces.sol/zetatokenconsumer.go rename to pkg/zetainterfaces.sol/zetatokenconsumer.go diff --git a/v2/pkg/zetanonethinterface.sol/zetanonethinterface.go b/pkg/zetanonethinterface.sol/zetanonethinterface.go similarity index 100% rename from v2/pkg/zetanonethinterface.sol/zetanonethinterface.go rename to pkg/zetanonethinterface.sol/zetanonethinterface.go diff --git a/v2/pkg/zrc20.sol/zrc20.go b/pkg/zrc20.sol/zrc20.go similarity index 100% rename from v2/pkg/zrc20.sol/zrc20.go rename to pkg/zrc20.sol/zrc20.go diff --git a/v2/pkg/zrc20.sol/zrc20errors.go b/pkg/zrc20.sol/zrc20errors.go similarity index 100% rename from v2/pkg/zrc20.sol/zrc20errors.go rename to pkg/zrc20.sol/zrc20errors.go diff --git a/v2/pkg/zrc20.t.sol/zrc20test.go b/pkg/zrc20.t.sol/zrc20test.go similarity index 100% rename from v2/pkg/zrc20.t.sol/zrc20test.go rename to pkg/zrc20.t.sol/zrc20test.go diff --git a/v2/scripts/deploy/DeployZRC20.s.sol b/scripts/deploy/DeployZRC20.s.sol similarity index 100% rename from v2/scripts/deploy/DeployZRC20.s.sol rename to scripts/deploy/DeployZRC20.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployERC20Custody.s.sol b/scripts/deploy/deterministic/DeployERC20Custody.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployERC20Custody.s.sol rename to scripts/deploy/deterministic/DeployERC20Custody.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployERC20CustodyImplementation.s.sol b/scripts/deploy/deterministic/DeployERC20CustodyImplementation.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployERC20CustodyImplementation.s.sol rename to scripts/deploy/deterministic/DeployERC20CustodyImplementation.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployGatewayEVM.s.sol b/scripts/deploy/deterministic/DeployGatewayEVM.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployGatewayEVM.s.sol rename to scripts/deploy/deterministic/DeployGatewayEVM.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployGatewayEVMImplementation.s.sol b/scripts/deploy/deterministic/DeployGatewayEVMImplementation.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployGatewayEVMImplementation.s.sol rename to scripts/deploy/deterministic/DeployGatewayEVMImplementation.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployGatewayZEVM.s.sol b/scripts/deploy/deterministic/DeployGatewayZEVM.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployGatewayZEVM.s.sol rename to scripts/deploy/deterministic/DeployGatewayZEVM.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployGatewayZEVMImplementation.s.sol b/scripts/deploy/deterministic/DeployGatewayZEVMImplementation.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployGatewayZEVMImplementation.s.sol rename to scripts/deploy/deterministic/DeployGatewayZEVMImplementation.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployTestERC20.s.sol b/scripts/deploy/deterministic/DeployTestERC20.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployTestERC20.s.sol rename to scripts/deploy/deterministic/DeployTestERC20.s.sol diff --git a/v2/scripts/deploy/deterministic/DeployZetaConnectorNonNative.s.sol b/scripts/deploy/deterministic/DeployZetaConnectorNonNative.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/DeployZetaConnectorNonNative.s.sol rename to scripts/deploy/deterministic/DeployZetaConnectorNonNative.s.sol diff --git a/v2/scripts/deploy/deterministic/UpgradeGatewayEVM.s.sol b/scripts/deploy/deterministic/UpgradeGatewayEVM.s.sol similarity index 100% rename from v2/scripts/deploy/deterministic/UpgradeGatewayEVM.s.sol rename to scripts/deploy/deterministic/UpgradeGatewayEVM.s.sol diff --git a/v2/scripts/deploy/readme.md b/scripts/deploy/readme.md similarity index 100% rename from v2/scripts/deploy/readme.md rename to scripts/deploy/readme.md diff --git a/v2/scripts/generate_addresses.sh b/scripts/generate_addresses.sh similarity index 100% rename from v2/scripts/generate_addresses.sh rename to scripts/generate_addresses.sh diff --git a/v2/scripts/generate_addresses_types.ts b/scripts/generate_addresses_types.ts similarity index 100% rename from v2/scripts/generate_addresses_types.ts rename to scripts/generate_addresses_types.ts diff --git a/v2/scripts/generate_docs.sh b/scripts/generate_docs.sh similarity index 100% rename from v2/scripts/generate_docs.sh rename to scripts/generate_docs.sh diff --git a/v2/scripts/generate_go.sh b/scripts/generate_go.sh similarity index 100% rename from v2/scripts/generate_go.sh rename to scripts/generate_go.sh diff --git a/v2/scripts/upgrade/SimulateERC20CustodyUpgrade.s.sol b/scripts/upgrade/SimulateERC20CustodyUpgrade.s.sol similarity index 100% rename from v2/scripts/upgrade/SimulateERC20CustodyUpgrade.s.sol rename to scripts/upgrade/SimulateERC20CustodyUpgrade.s.sol diff --git a/v2/scripts/upgrade/SimulateGatewayEVMUpgrade.s.sol b/scripts/upgrade/SimulateGatewayEVMUpgrade.s.sol similarity index 100% rename from v2/scripts/upgrade/SimulateGatewayEVMUpgrade.s.sol rename to scripts/upgrade/SimulateGatewayEVMUpgrade.s.sol diff --git a/v2/scripts/upgrade/SimulateGatewayZEVMUpgrade.s.sol b/scripts/upgrade/SimulateGatewayZEVMUpgrade.s.sol similarity index 100% rename from v2/scripts/upgrade/SimulateGatewayZEVMUpgrade.s.sol rename to scripts/upgrade/SimulateGatewayZEVMUpgrade.s.sol diff --git a/v2/scripts/utils/compare_zrc20_info.sh b/scripts/utils/compare_zrc20_info.sh similarity index 100% rename from v2/scripts/utils/compare_zrc20_info.sh rename to scripts/utils/compare_zrc20_info.sh diff --git a/v2/scripts/utils/get_zrc20_info.sh b/scripts/utils/get_zrc20_info.sh similarity index 100% rename from v2/scripts/utils/get_zrc20_info.sh rename to scripts/utils/get_zrc20_info.sh diff --git a/v2/slither.config.json b/slither.config.json similarity index 100% rename from v2/slither.config.json rename to slither.config.json diff --git a/v2/soldeer.lock b/soldeer.lock similarity index 100% rename from v2/soldeer.lock rename to soldeer.lock diff --git a/v2/src/addresses.ts b/src/addresses.ts similarity index 100% rename from v2/src/addresses.ts rename to src/addresses.ts diff --git a/v2/src/index.ts b/src/index.ts similarity index 100% rename from v2/src/index.ts rename to src/index.ts diff --git a/v2/src/types.ts b/src/types.ts similarity index 100% rename from v2/src/types.ts rename to src/types.ts diff --git a/v2/tasks/addresses.mainnet.json b/tasks/addresses.mainnet.json similarity index 100% rename from v2/tasks/addresses.mainnet.json rename to tasks/addresses.mainnet.json diff --git a/v2/tasks/addresses.testnet.json b/tasks/addresses.testnet.json similarity index 100% rename from v2/tasks/addresses.testnet.json rename to tasks/addresses.testnet.json diff --git a/v2/tasks/addresses.ts b/tasks/addresses.ts similarity index 100% rename from v2/tasks/addresses.ts rename to tasks/addresses.ts diff --git a/v2/tasks/readme.md b/tasks/readme.md similarity index 100% rename from v2/tasks/readme.md rename to tasks/readme.md diff --git a/v2/test/ERC20Custody.t.sol b/test/ERC20Custody.t.sol similarity index 100% rename from v2/test/ERC20Custody.t.sol rename to test/ERC20Custody.t.sol diff --git a/v2/test/GatewayEVM.t.sol b/test/GatewayEVM.t.sol similarity index 100% rename from v2/test/GatewayEVM.t.sol rename to test/GatewayEVM.t.sol diff --git a/v2/test/GatewayEVMZEVM.t.sol b/test/GatewayEVMZEVM.t.sol similarity index 100% rename from v2/test/GatewayEVMZEVM.t.sol rename to test/GatewayEVMZEVM.t.sol diff --git a/v2/test/GatewayZEVM.t.sol b/test/GatewayZEVM.t.sol similarity index 100% rename from v2/test/GatewayZEVM.t.sol rename to test/GatewayZEVM.t.sol diff --git a/v2/test/WZETA.t.sol b/test/WZETA.t.sol similarity index 100% rename from v2/test/WZETA.t.sol rename to test/WZETA.t.sol diff --git a/v2/test/ZRC20.t.sol b/test/ZRC20.t.sol similarity index 100% rename from v2/test/ZRC20.t.sol rename to test/ZRC20.t.sol diff --git a/v2/test/ZetaConnectorNative.t.sol b/test/ZetaConnectorNative.t.sol similarity index 100% rename from v2/test/ZetaConnectorNative.t.sol rename to test/ZetaConnectorNative.t.sol diff --git a/v2/test/ZetaConnectorNonNative.t.sol b/test/ZetaConnectorNonNative.t.sol similarity index 100% rename from v2/test/ZetaConnectorNonNative.t.sol rename to test/ZetaConnectorNonNative.t.sol diff --git a/v2/test/fuzz/ERC20CustodyEchidnaTest.sol b/test/fuzz/ERC20CustodyEchidnaTest.sol similarity index 100% rename from v2/test/fuzz/ERC20CustodyEchidnaTest.sol rename to test/fuzz/ERC20CustodyEchidnaTest.sol diff --git a/v2/test/fuzz/GatewayEVMEchidnaTest.sol b/test/fuzz/GatewayEVMEchidnaTest.sol similarity index 100% rename from v2/test/fuzz/GatewayEVMEchidnaTest.sol rename to test/fuzz/GatewayEVMEchidnaTest.sol diff --git a/v2/test/fuzz/readme.md b/test/fuzz/readme.md similarity index 100% rename from v2/test/fuzz/readme.md rename to test/fuzz/readme.md diff --git a/v2/test/utils/IReceiverEVM.sol b/test/utils/IReceiverEVM.sol similarity index 100% rename from v2/test/utils/IReceiverEVM.sol rename to test/utils/IReceiverEVM.sol diff --git a/v2/test/utils/ReceiverEVM.sol b/test/utils/ReceiverEVM.sol similarity index 100% rename from v2/test/utils/ReceiverEVM.sol rename to test/utils/ReceiverEVM.sol diff --git a/v2/test/utils/SenderZEVM.sol b/test/utils/SenderZEVM.sol similarity index 100% rename from v2/test/utils/SenderZEVM.sol rename to test/utils/SenderZEVM.sol diff --git a/v2/test/utils/SystemContractMock.sol b/test/utils/SystemContractMock.sol similarity index 100% rename from v2/test/utils/SystemContractMock.sol rename to test/utils/SystemContractMock.sol diff --git a/v2/test/utils/TestERC20.sol b/test/utils/TestERC20.sol similarity index 100% rename from v2/test/utils/TestERC20.sol rename to test/utils/TestERC20.sol diff --git a/v2/test/utils/TestUniversalContract.sol b/test/utils/TestUniversalContract.sol similarity index 100% rename from v2/test/utils/TestUniversalContract.sol rename to test/utils/TestUniversalContract.sol diff --git a/v2/test/utils/WZETA.sol b/test/utils/WZETA.sol similarity index 100% rename from v2/test/utils/WZETA.sol rename to test/utils/WZETA.sol diff --git a/v2/test/utils/Zeta.non-eth.sol b/test/utils/Zeta.non-eth.sol similarity index 100% rename from v2/test/utils/Zeta.non-eth.sol rename to test/utils/Zeta.non-eth.sol diff --git a/v2/test/utils/upgrades/ERC20CustodyUpgradeTest.sol b/test/utils/upgrades/ERC20CustodyUpgradeTest.sol similarity index 100% rename from v2/test/utils/upgrades/ERC20CustodyUpgradeTest.sol rename to test/utils/upgrades/ERC20CustodyUpgradeTest.sol diff --git a/v2/test/utils/upgrades/GatewayEVMUpgradeTest.sol b/test/utils/upgrades/GatewayEVMUpgradeTest.sol similarity index 100% rename from v2/test/utils/upgrades/GatewayEVMUpgradeTest.sol rename to test/utils/upgrades/GatewayEVMUpgradeTest.sol diff --git a/v2/test/utils/upgrades/GatewayZEVMUpgradeTest.sol b/test/utils/upgrades/GatewayZEVMUpgradeTest.sol similarity index 100% rename from v2/test/utils/upgrades/GatewayZEVMUpgradeTest.sol rename to test/utils/upgrades/GatewayZEVMUpgradeTest.sol diff --git a/v2/test/utils/upgrades/ZetaConnectorNativeUpgradeTest.sol b/test/utils/upgrades/ZetaConnectorNativeUpgradeTest.sol similarity index 100% rename from v2/test/utils/upgrades/ZetaConnectorNativeUpgradeTest.sol rename to test/utils/upgrades/ZetaConnectorNativeUpgradeTest.sol diff --git a/v2/test/utils/upgrades/ZetaConnectorNonNativeUpgradeTest.sol b/test/utils/upgrades/ZetaConnectorNonNativeUpgradeTest.sol similarity index 100% rename from v2/test/utils/upgrades/ZetaConnectorNonNativeUpgradeTest.sol rename to test/utils/upgrades/ZetaConnectorNonNativeUpgradeTest.sol diff --git a/v2/tsconfig.json b/tsconfig.json similarity index 100% rename from v2/tsconfig.json rename to tsconfig.json diff --git a/v2/types/AccessControl.ts b/types/AccessControl.ts similarity index 100% rename from v2/types/AccessControl.ts rename to types/AccessControl.ts diff --git a/v2/types/AccessControlUpgradeable.ts b/types/AccessControlUpgradeable.ts similarity index 100% rename from v2/types/AccessControlUpgradeable.ts rename to types/AccessControlUpgradeable.ts diff --git a/v2/types/Address.ts b/types/Address.ts similarity index 100% rename from v2/types/Address.ts rename to types/Address.ts diff --git a/v2/types/BeaconProxy.ts b/types/BeaconProxy.ts similarity index 100% rename from v2/types/BeaconProxy.ts rename to types/BeaconProxy.ts diff --git a/v2/types/ConnectorErrors.ts b/types/ConnectorErrors.ts similarity index 100% rename from v2/types/ConnectorErrors.ts rename to types/ConnectorErrors.ts diff --git a/v2/types/ContextUpgradeable.ts b/types/ContextUpgradeable.ts similarity index 100% rename from v2/types/ContextUpgradeable.ts rename to types/ContextUpgradeable.ts diff --git a/v2/types/ERC165.ts b/types/ERC165.ts similarity index 100% rename from v2/types/ERC165.ts rename to types/ERC165.ts diff --git a/v2/types/ERC165Upgradeable.ts b/types/ERC165Upgradeable.ts similarity index 100% rename from v2/types/ERC165Upgradeable.ts rename to types/ERC165Upgradeable.ts diff --git a/v2/types/ERC1967Proxy.ts b/types/ERC1967Proxy.ts similarity index 100% rename from v2/types/ERC1967Proxy.ts rename to types/ERC1967Proxy.ts diff --git a/v2/types/ERC1967Utils.ts b/types/ERC1967Utils.ts similarity index 100% rename from v2/types/ERC1967Utils.ts rename to types/ERC1967Utils.ts diff --git a/v2/types/ERC20.ts b/types/ERC20.ts similarity index 100% rename from v2/types/ERC20.ts rename to types/ERC20.ts diff --git a/v2/types/ERC20/IERC20.ts b/types/ERC20/IERC20.ts similarity index 100% rename from v2/types/ERC20/IERC20.ts rename to types/ERC20/IERC20.ts diff --git a/v2/types/ERC20/index.ts b/types/ERC20/index.ts similarity index 100% rename from v2/types/ERC20/index.ts rename to types/ERC20/index.ts diff --git a/v2/types/ERC20Burnable.ts b/types/ERC20Burnable.ts similarity index 100% rename from v2/types/ERC20Burnable.ts rename to types/ERC20Burnable.ts diff --git a/v2/types/ERC20Custody.ts b/types/ERC20Custody.ts similarity index 100% rename from v2/types/ERC20Custody.ts rename to types/ERC20Custody.ts diff --git a/v2/types/ERC20CustodyEchidnaTest.ts b/types/ERC20CustodyEchidnaTest.ts similarity index 100% rename from v2/types/ERC20CustodyEchidnaTest.ts rename to types/ERC20CustodyEchidnaTest.ts diff --git a/v2/types/ERC20CustodyUpgradeTest.ts b/types/ERC20CustodyUpgradeTest.ts similarity index 100% rename from v2/types/ERC20CustodyUpgradeTest.ts rename to types/ERC20CustodyUpgradeTest.ts diff --git a/v2/types/Errors.sol/Errors.ts b/types/Errors.sol/Errors.ts similarity index 100% rename from v2/types/Errors.sol/Errors.ts rename to types/Errors.sol/Errors.ts diff --git a/v2/types/Errors.sol/INotSupportedMethods.ts b/types/Errors.sol/INotSupportedMethods.ts similarity index 100% rename from v2/types/Errors.sol/INotSupportedMethods.ts rename to types/Errors.sol/INotSupportedMethods.ts diff --git a/v2/types/Errors.sol/index.ts b/types/Errors.sol/index.ts similarity index 100% rename from v2/types/Errors.sol/index.ts rename to types/Errors.sol/index.ts diff --git a/v2/types/GatewayEVM.ts b/types/GatewayEVM.ts similarity index 100% rename from v2/types/GatewayEVM.ts rename to types/GatewayEVM.ts diff --git a/v2/types/GatewayEVMEchidnaTest.ts b/types/GatewayEVMEchidnaTest.ts similarity index 100% rename from v2/types/GatewayEVMEchidnaTest.ts rename to types/GatewayEVMEchidnaTest.ts diff --git a/v2/types/GatewayEVMUpgradeTest.ts b/types/GatewayEVMUpgradeTest.ts similarity index 100% rename from v2/types/GatewayEVMUpgradeTest.ts rename to types/GatewayEVMUpgradeTest.ts diff --git a/v2/types/GatewayZEVM.ts b/types/GatewayZEVM.ts similarity index 100% rename from v2/types/GatewayZEVM.ts rename to types/GatewayZEVM.ts diff --git a/v2/types/GatewayZEVMUpgradeTest.ts b/types/GatewayZEVMUpgradeTest.ts similarity index 100% rename from v2/types/GatewayZEVMUpgradeTest.ts rename to types/GatewayZEVMUpgradeTest.ts diff --git a/v2/types/IAccessControl.ts b/types/IAccessControl.ts similarity index 100% rename from v2/types/IAccessControl.ts rename to types/IAccessControl.ts diff --git a/v2/types/IBeacon.ts b/types/IBeacon.ts similarity index 100% rename from v2/types/IBeacon.ts rename to types/IBeacon.ts diff --git a/v2/types/IERC1363.ts b/types/IERC1363.ts similarity index 100% rename from v2/types/IERC1363.ts rename to types/IERC1363.ts diff --git a/v2/types/IERC165.ts b/types/IERC165.ts similarity index 100% rename from v2/types/IERC165.ts rename to types/IERC165.ts diff --git a/v2/types/IERC1967.ts b/types/IERC1967.ts similarity index 100% rename from v2/types/IERC1967.ts rename to types/IERC1967.ts diff --git a/v2/types/IERC20.ts b/types/IERC20.ts similarity index 100% rename from v2/types/IERC20.ts rename to types/IERC20.ts diff --git a/v2/types/IERC20Custody.sol/IERC20Custody.ts b/types/IERC20Custody.sol/IERC20Custody.ts similarity index 100% rename from v2/types/IERC20Custody.sol/IERC20Custody.ts rename to types/IERC20Custody.sol/IERC20Custody.ts diff --git a/v2/types/IERC20Custody.sol/IERC20CustodyErrors.ts b/types/IERC20Custody.sol/IERC20CustodyErrors.ts similarity index 100% rename from v2/types/IERC20Custody.sol/IERC20CustodyErrors.ts rename to types/IERC20Custody.sol/IERC20CustodyErrors.ts diff --git a/v2/types/IERC20Custody.sol/IERC20CustodyEvents.ts b/types/IERC20Custody.sol/IERC20CustodyEvents.ts similarity index 100% rename from v2/types/IERC20Custody.sol/IERC20CustodyEvents.ts rename to types/IERC20Custody.sol/IERC20CustodyEvents.ts diff --git a/v2/types/IERC20Custody.sol/index.ts b/types/IERC20Custody.sol/index.ts similarity index 100% rename from v2/types/IERC20Custody.sol/index.ts rename to types/IERC20Custody.sol/index.ts diff --git a/v2/types/IERC20Metadata.ts b/types/IERC20Metadata.ts similarity index 100% rename from v2/types/IERC20Metadata.ts rename to types/IERC20Metadata.ts diff --git a/v2/types/IERC20Permit.ts b/types/IERC20Permit.ts similarity index 100% rename from v2/types/IERC20Permit.ts rename to types/IERC20Permit.ts diff --git a/v2/types/IERC721.sol/IERC721.ts b/types/IERC721.sol/IERC721.ts similarity index 100% rename from v2/types/IERC721.sol/IERC721.ts rename to types/IERC721.sol/IERC721.ts diff --git a/v2/types/IERC721.sol/IERC721Enumerable.ts b/types/IERC721.sol/IERC721Enumerable.ts similarity index 100% rename from v2/types/IERC721.sol/IERC721Enumerable.ts rename to types/IERC721.sol/IERC721Enumerable.ts diff --git a/v2/types/IERC721.sol/IERC721Metadata.ts b/types/IERC721.sol/IERC721Metadata.ts similarity index 100% rename from v2/types/IERC721.sol/IERC721Metadata.ts rename to types/IERC721.sol/IERC721Metadata.ts diff --git a/v2/types/IERC721.sol/IERC721TokenReceiver.ts b/types/IERC721.sol/IERC721TokenReceiver.ts similarity index 100% rename from v2/types/IERC721.sol/IERC721TokenReceiver.ts rename to types/IERC721.sol/IERC721TokenReceiver.ts diff --git a/v2/types/IERC721.sol/index.ts b/types/IERC721.sol/index.ts similarity index 100% rename from v2/types/IERC721.sol/index.ts rename to types/IERC721.sol/index.ts diff --git a/v2/types/IGatewayEVM.sol/Callable.ts b/types/IGatewayEVM.sol/Callable.ts similarity index 100% rename from v2/types/IGatewayEVM.sol/Callable.ts rename to types/IGatewayEVM.sol/Callable.ts diff --git a/v2/types/IGatewayEVM.sol/IGatewayEVM.ts b/types/IGatewayEVM.sol/IGatewayEVM.ts similarity index 100% rename from v2/types/IGatewayEVM.sol/IGatewayEVM.ts rename to types/IGatewayEVM.sol/IGatewayEVM.ts diff --git a/v2/types/IGatewayEVM.sol/IGatewayEVMErrors.ts b/types/IGatewayEVM.sol/IGatewayEVMErrors.ts similarity index 100% rename from v2/types/IGatewayEVM.sol/IGatewayEVMErrors.ts rename to types/IGatewayEVM.sol/IGatewayEVMErrors.ts diff --git a/v2/types/IGatewayEVM.sol/IGatewayEVMEvents.ts b/types/IGatewayEVM.sol/IGatewayEVMEvents.ts similarity index 100% rename from v2/types/IGatewayEVM.sol/IGatewayEVMEvents.ts rename to types/IGatewayEVM.sol/IGatewayEVMEvents.ts diff --git a/v2/types/IGatewayEVM.sol/index.ts b/types/IGatewayEVM.sol/index.ts similarity index 100% rename from v2/types/IGatewayEVM.sol/index.ts rename to types/IGatewayEVM.sol/index.ts diff --git a/v2/types/IGatewayZEVM.sol/IGatewayZEVM.ts b/types/IGatewayZEVM.sol/IGatewayZEVM.ts similarity index 100% rename from v2/types/IGatewayZEVM.sol/IGatewayZEVM.ts rename to types/IGatewayZEVM.sol/IGatewayZEVM.ts diff --git a/v2/types/IGatewayZEVM.sol/IGatewayZEVMErrors.ts b/types/IGatewayZEVM.sol/IGatewayZEVMErrors.ts similarity index 100% rename from v2/types/IGatewayZEVM.sol/IGatewayZEVMErrors.ts rename to types/IGatewayZEVM.sol/IGatewayZEVMErrors.ts diff --git a/v2/types/IGatewayZEVM.sol/IGatewayZEVMEvents.ts b/types/IGatewayZEVM.sol/IGatewayZEVMEvents.ts similarity index 100% rename from v2/types/IGatewayZEVM.sol/IGatewayZEVMEvents.ts rename to types/IGatewayZEVM.sol/IGatewayZEVMEvents.ts diff --git a/v2/types/IGatewayZEVM.sol/index.ts b/types/IGatewayZEVM.sol/index.ts similarity index 100% rename from v2/types/IGatewayZEVM.sol/index.ts rename to types/IGatewayZEVM.sol/index.ts diff --git a/v2/types/IMulticall3.ts b/types/IMulticall3.ts similarity index 100% rename from v2/types/IMulticall3.ts rename to types/IMulticall3.ts diff --git a/v2/types/IProxyAdmin.ts b/types/IProxyAdmin.ts similarity index 100% rename from v2/types/IProxyAdmin.ts rename to types/IProxyAdmin.ts diff --git a/v2/types/IReceiverEVM.sol/IReceiverEVMEvents.ts b/types/IReceiverEVM.sol/IReceiverEVMEvents.ts similarity index 100% rename from v2/types/IReceiverEVM.sol/IReceiverEVMEvents.ts rename to types/IReceiverEVM.sol/IReceiverEVMEvents.ts diff --git a/v2/types/IReceiverEVM.sol/index.ts b/types/IReceiverEVM.sol/index.ts similarity index 100% rename from v2/types/IReceiverEVM.sol/index.ts rename to types/IReceiverEVM.sol/index.ts diff --git a/v2/types/ISystem.ts b/types/ISystem.ts similarity index 100% rename from v2/types/ISystem.ts rename to types/ISystem.ts diff --git a/v2/types/IUniswapV2Callee.ts b/types/IUniswapV2Callee.ts similarity index 100% rename from v2/types/IUniswapV2Callee.ts rename to types/IUniswapV2Callee.ts diff --git a/v2/types/IUniswapV2ERC20.ts b/types/IUniswapV2ERC20.ts similarity index 100% rename from v2/types/IUniswapV2ERC20.ts rename to types/IUniswapV2ERC20.ts diff --git a/v2/types/IUniswapV2Factory.sol/IUniswapV2Factory0516.ts b/types/IUniswapV2Factory.sol/IUniswapV2Factory0516.ts similarity index 100% rename from v2/types/IUniswapV2Factory.sol/IUniswapV2Factory0516.ts rename to types/IUniswapV2Factory.sol/IUniswapV2Factory0516.ts diff --git a/v2/types/IUniswapV2Factory.sol/IUniswapV2Factory066.ts b/types/IUniswapV2Factory.sol/IUniswapV2Factory066.ts similarity index 100% rename from v2/types/IUniswapV2Factory.sol/IUniswapV2Factory066.ts rename to types/IUniswapV2Factory.sol/IUniswapV2Factory066.ts diff --git a/v2/types/IUniswapV2Factory.sol/index.ts b/types/IUniswapV2Factory.sol/index.ts similarity index 100% rename from v2/types/IUniswapV2Factory.sol/index.ts rename to types/IUniswapV2Factory.sol/index.ts diff --git a/v2/types/IUniswapV2Pair.sol/IUniswapV2Pair0516.ts b/types/IUniswapV2Pair.sol/IUniswapV2Pair0516.ts similarity index 100% rename from v2/types/IUniswapV2Pair.sol/IUniswapV2Pair0516.ts rename to types/IUniswapV2Pair.sol/IUniswapV2Pair0516.ts diff --git a/v2/types/IUniswapV2Pair.sol/IUniswapV2Pair066.ts b/types/IUniswapV2Pair.sol/IUniswapV2Pair066.ts similarity index 100% rename from v2/types/IUniswapV2Pair.sol/IUniswapV2Pair066.ts rename to types/IUniswapV2Pair.sol/IUniswapV2Pair066.ts diff --git a/v2/types/IUniswapV2Pair.sol/index.ts b/types/IUniswapV2Pair.sol/index.ts similarity index 100% rename from v2/types/IUniswapV2Pair.sol/index.ts rename to types/IUniswapV2Pair.sol/index.ts diff --git a/v2/types/IUniswapV2Router01.ts b/types/IUniswapV2Router01.ts similarity index 100% rename from v2/types/IUniswapV2Router01.ts rename to types/IUniswapV2Router01.ts diff --git a/v2/types/IUniswapV2Router02.ts b/types/IUniswapV2Router02.ts similarity index 100% rename from v2/types/IUniswapV2Router02.ts rename to types/IUniswapV2Router02.ts diff --git a/v2/types/IUpgradeableBeacon.ts b/types/IUpgradeableBeacon.ts similarity index 100% rename from v2/types/IUpgradeableBeacon.ts rename to types/IUpgradeableBeacon.ts diff --git a/v2/types/IUpgradeableProxy.ts b/types/IUpgradeableProxy.ts similarity index 100% rename from v2/types/IUpgradeableProxy.ts rename to types/IUpgradeableProxy.ts diff --git a/v2/types/IWETH.ts b/types/IWETH.ts similarity index 100% rename from v2/types/IWETH.ts rename to types/IWETH.ts diff --git a/v2/types/IWZETA.sol/IWETH9.ts b/types/IWZETA.sol/IWETH9.ts similarity index 100% rename from v2/types/IWZETA.sol/IWETH9.ts rename to types/IWZETA.sol/IWETH9.ts diff --git a/v2/types/IWZETA.sol/index.ts b/types/IWZETA.sol/index.ts similarity index 100% rename from v2/types/IWZETA.sol/index.ts rename to types/IWZETA.sol/index.ts diff --git a/v2/types/IZRC20.sol/IZRC20.ts b/types/IZRC20.sol/IZRC20.ts similarity index 100% rename from v2/types/IZRC20.sol/IZRC20.ts rename to types/IZRC20.sol/IZRC20.ts diff --git a/v2/types/IZRC20.sol/IZRC20Metadata.ts b/types/IZRC20.sol/IZRC20Metadata.ts similarity index 100% rename from v2/types/IZRC20.sol/IZRC20Metadata.ts rename to types/IZRC20.sol/IZRC20Metadata.ts diff --git a/v2/types/IZRC20.sol/ZRC20Events.ts b/types/IZRC20.sol/ZRC20Events.ts similarity index 100% rename from v2/types/IZRC20.sol/ZRC20Events.ts rename to types/IZRC20.sol/ZRC20Events.ts diff --git a/v2/types/IZRC20.sol/index.ts b/types/IZRC20.sol/index.ts similarity index 100% rename from v2/types/IZRC20.sol/index.ts rename to types/IZRC20.sol/index.ts diff --git a/v2/types/IZetaConnector.sol/IZetaConnectorEvents.ts b/types/IZetaConnector.sol/IZetaConnectorEvents.ts similarity index 100% rename from v2/types/IZetaConnector.sol/IZetaConnectorEvents.ts rename to types/IZetaConnector.sol/IZetaConnectorEvents.ts diff --git a/v2/types/IZetaConnector.sol/index.ts b/types/IZetaConnector.sol/index.ts similarity index 100% rename from v2/types/IZetaConnector.sol/index.ts rename to types/IZetaConnector.sol/index.ts diff --git a/v2/types/IZetaNonEthNew.ts b/types/IZetaNonEthNew.ts similarity index 100% rename from v2/types/IZetaNonEthNew.ts rename to types/IZetaNonEthNew.ts diff --git a/v2/types/Initializable.ts b/types/Initializable.ts similarity index 100% rename from v2/types/Initializable.ts rename to types/Initializable.ts diff --git a/v2/types/Math.ts b/types/Math.ts similarity index 100% rename from v2/types/Math.ts rename to types/Math.ts diff --git a/v2/types/MockERC20.ts b/types/MockERC20.ts similarity index 100% rename from v2/types/MockERC20.ts rename to types/MockERC20.ts diff --git a/v2/types/MockERC721.ts b/types/MockERC721.ts similarity index 100% rename from v2/types/MockERC721.ts rename to types/MockERC721.ts diff --git a/v2/types/Ownable.ts b/types/Ownable.ts similarity index 100% rename from v2/types/Ownable.ts rename to types/Ownable.ts diff --git a/v2/types/Pausable.ts b/types/Pausable.ts similarity index 100% rename from v2/types/Pausable.ts rename to types/Pausable.ts diff --git a/v2/types/PausableUpgradeable.ts b/types/PausableUpgradeable.ts similarity index 100% rename from v2/types/PausableUpgradeable.ts rename to types/PausableUpgradeable.ts diff --git a/v2/types/Proxy.ts b/types/Proxy.ts similarity index 100% rename from v2/types/Proxy.ts rename to types/Proxy.ts diff --git a/v2/types/ProxyAdmin.ts b/types/ProxyAdmin.ts similarity index 100% rename from v2/types/ProxyAdmin.ts rename to types/ProxyAdmin.ts diff --git a/v2/types/ReceiverEVM.ts b/types/ReceiverEVM.ts similarity index 100% rename from v2/types/ReceiverEVM.ts rename to types/ReceiverEVM.ts diff --git a/v2/types/ReentrancyGuard.ts b/types/ReentrancyGuard.ts similarity index 100% rename from v2/types/ReentrancyGuard.ts rename to types/ReentrancyGuard.ts diff --git a/v2/types/ReentrancyGuardUpgradeable.ts b/types/ReentrancyGuardUpgradeable.ts similarity index 100% rename from v2/types/ReentrancyGuardUpgradeable.ts rename to types/ReentrancyGuardUpgradeable.ts diff --git a/v2/types/Revert.sol/Revertable.ts b/types/Revert.sol/Revertable.ts similarity index 100% rename from v2/types/Revert.sol/Revertable.ts rename to types/Revert.sol/Revertable.ts diff --git a/v2/types/Revert.sol/index.ts b/types/Revert.sol/index.ts similarity index 100% rename from v2/types/Revert.sol/index.ts rename to types/Revert.sol/index.ts diff --git a/v2/types/SafeCast.ts b/types/SafeCast.ts similarity index 100% rename from v2/types/SafeCast.ts rename to types/SafeCast.ts diff --git a/v2/types/SafeERC20.ts b/types/SafeERC20.ts similarity index 100% rename from v2/types/SafeERC20.ts rename to types/SafeERC20.ts diff --git a/v2/types/SenderZEVM.ts b/types/SenderZEVM.ts similarity index 100% rename from v2/types/SenderZEVM.ts rename to types/SenderZEVM.ts diff --git a/v2/types/StdAssertions.ts b/types/StdAssertions.ts similarity index 100% rename from v2/types/StdAssertions.ts rename to types/StdAssertions.ts diff --git a/v2/types/StdError.sol/StdError.ts b/types/StdError.sol/StdError.ts similarity index 100% rename from v2/types/StdError.sol/StdError.ts rename to types/StdError.sol/StdError.ts diff --git a/v2/types/StdError.sol/index.ts b/types/StdError.sol/index.ts similarity index 100% rename from v2/types/StdError.sol/index.ts rename to types/StdError.sol/index.ts diff --git a/v2/types/StdInvariant.ts b/types/StdInvariant.ts similarity index 100% rename from v2/types/StdInvariant.ts rename to types/StdInvariant.ts diff --git a/v2/types/StdStorage.sol/StdStorageSafe.ts b/types/StdStorage.sol/StdStorageSafe.ts similarity index 100% rename from v2/types/StdStorage.sol/StdStorageSafe.ts rename to types/StdStorage.sol/StdStorageSafe.ts diff --git a/v2/types/StdStorage.sol/index.ts b/types/StdStorage.sol/index.ts similarity index 100% rename from v2/types/StdStorage.sol/index.ts rename to types/StdStorage.sol/index.ts diff --git a/v2/types/Strings.ts b/types/Strings.ts similarity index 100% rename from v2/types/Strings.ts rename to types/Strings.ts diff --git a/v2/types/SystemContract.sol/SystemContract.ts b/types/SystemContract.sol/SystemContract.ts similarity index 100% rename from v2/types/SystemContract.sol/SystemContract.ts rename to types/SystemContract.sol/SystemContract.ts diff --git a/v2/types/SystemContract.sol/SystemContractErrors.ts b/types/SystemContract.sol/SystemContractErrors.ts similarity index 100% rename from v2/types/SystemContract.sol/SystemContractErrors.ts rename to types/SystemContract.sol/SystemContractErrors.ts diff --git a/v2/types/SystemContract.sol/index.ts b/types/SystemContract.sol/index.ts similarity index 100% rename from v2/types/SystemContract.sol/index.ts rename to types/SystemContract.sol/index.ts diff --git a/v2/types/SystemContractMock.sol/SystemContractErrors.ts b/types/SystemContractMock.sol/SystemContractErrors.ts similarity index 100% rename from v2/types/SystemContractMock.sol/SystemContractErrors.ts rename to types/SystemContractMock.sol/SystemContractErrors.ts diff --git a/v2/types/SystemContractMock.sol/SystemContractMock.ts b/types/SystemContractMock.sol/SystemContractMock.ts similarity index 100% rename from v2/types/SystemContractMock.sol/SystemContractMock.ts rename to types/SystemContractMock.sol/SystemContractMock.ts diff --git a/v2/types/SystemContractMock.sol/index.ts b/types/SystemContractMock.sol/index.ts similarity index 100% rename from v2/types/SystemContractMock.sol/index.ts rename to types/SystemContractMock.sol/index.ts diff --git a/v2/types/Test.ts b/types/Test.ts similarity index 100% rename from v2/types/Test.ts rename to types/Test.ts diff --git a/v2/types/TestERC20.ts b/types/TestERC20.ts similarity index 100% rename from v2/types/TestERC20.ts rename to types/TestERC20.ts diff --git a/v2/types/TestUniversalContract.ts b/types/TestUniversalContract.ts similarity index 100% rename from v2/types/TestUniversalContract.ts rename to types/TestUniversalContract.ts diff --git a/v2/types/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.ts b/types/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.ts similarity index 100% rename from v2/types/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.ts rename to types/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.ts diff --git a/v2/types/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.ts b/types/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.ts similarity index 100% rename from v2/types/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.ts rename to types/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.ts diff --git a/v2/types/TransparentUpgradeableProxy.sol/index.ts b/types/TransparentUpgradeableProxy.sol/index.ts similarity index 100% rename from v2/types/TransparentUpgradeableProxy.sol/index.ts rename to types/TransparentUpgradeableProxy.sol/index.ts diff --git a/v2/types/UUPSUpgradeable.ts b/types/UUPSUpgradeable.ts similarity index 100% rename from v2/types/UUPSUpgradeable.ts rename to types/UUPSUpgradeable.ts diff --git a/v2/types/UniswapV2ERC20.ts b/types/UniswapV2ERC20.ts similarity index 100% rename from v2/types/UniswapV2ERC20.ts rename to types/UniswapV2ERC20.ts diff --git a/v2/types/UniswapV2Factory.ts b/types/UniswapV2Factory.ts similarity index 100% rename from v2/types/UniswapV2Factory.ts rename to types/UniswapV2Factory.ts diff --git a/v2/types/UniswapV2Pair.ts b/types/UniswapV2Pair.ts similarity index 100% rename from v2/types/UniswapV2Pair.ts rename to types/UniswapV2Pair.ts diff --git a/v2/types/UniswapV2Router02.ts b/types/UniswapV2Router02.ts similarity index 100% rename from v2/types/UniswapV2Router02.ts rename to types/UniswapV2Router02.ts diff --git a/v2/types/UniversalContract.sol/UniversalContract.ts b/types/UniversalContract.sol/UniversalContract.ts similarity index 100% rename from v2/types/UniversalContract.sol/UniversalContract.ts rename to types/UniversalContract.sol/UniversalContract.ts diff --git a/v2/types/UniversalContract.sol/ZContract.ts b/types/UniversalContract.sol/ZContract.ts similarity index 100% rename from v2/types/UniversalContract.sol/ZContract.ts rename to types/UniversalContract.sol/ZContract.ts diff --git a/v2/types/UniversalContract.sol/index.ts b/types/UniversalContract.sol/index.ts similarity index 100% rename from v2/types/UniversalContract.sol/index.ts rename to types/UniversalContract.sol/index.ts diff --git a/v2/types/UpgradeableBeacon.ts b/types/UpgradeableBeacon.ts similarity index 100% rename from v2/types/UpgradeableBeacon.ts rename to types/UpgradeableBeacon.ts diff --git a/v2/types/Vm.sol/Vm.ts b/types/Vm.sol/Vm.ts similarity index 100% rename from v2/types/Vm.sol/Vm.ts rename to types/Vm.sol/Vm.ts diff --git a/v2/types/Vm.sol/VmSafe.ts b/types/Vm.sol/VmSafe.ts similarity index 100% rename from v2/types/Vm.sol/VmSafe.ts rename to types/Vm.sol/VmSafe.ts diff --git a/v2/types/Vm.sol/index.ts b/types/Vm.sol/index.ts similarity index 100% rename from v2/types/Vm.sol/index.ts rename to types/Vm.sol/index.ts diff --git a/v2/types/WZETA.sol/WETH9.ts b/types/WZETA.sol/WETH9.ts similarity index 100% rename from v2/types/WZETA.sol/WETH9.ts rename to types/WZETA.sol/WETH9.ts diff --git a/v2/types/WZETA.sol/index.ts b/types/WZETA.sol/index.ts similarity index 100% rename from v2/types/WZETA.sol/index.ts rename to types/WZETA.sol/index.ts diff --git a/v2/types/ZRC20.sol/ZRC20.ts b/types/ZRC20.sol/ZRC20.ts similarity index 100% rename from v2/types/ZRC20.sol/ZRC20.ts rename to types/ZRC20.sol/ZRC20.ts diff --git a/v2/types/ZRC20.sol/ZRC20Errors.ts b/types/ZRC20.sol/ZRC20Errors.ts similarity index 100% rename from v2/types/ZRC20.sol/ZRC20Errors.ts rename to types/ZRC20.sol/ZRC20Errors.ts diff --git a/v2/types/ZRC20.sol/index.ts b/types/ZRC20.sol/index.ts similarity index 100% rename from v2/types/ZRC20.sol/index.ts rename to types/ZRC20.sol/index.ts diff --git a/v2/types/Zeta.eth.sol/ZetaEth.ts b/types/Zeta.eth.sol/ZetaEth.ts similarity index 100% rename from v2/types/Zeta.eth.sol/ZetaEth.ts rename to types/Zeta.eth.sol/ZetaEth.ts diff --git a/v2/types/Zeta.eth.sol/index.ts b/types/Zeta.eth.sol/index.ts similarity index 100% rename from v2/types/Zeta.eth.sol/index.ts rename to types/Zeta.eth.sol/index.ts diff --git a/v2/types/Zeta.non-eth.sol/ZetaErrors.ts b/types/Zeta.non-eth.sol/ZetaErrors.ts similarity index 100% rename from v2/types/Zeta.non-eth.sol/ZetaErrors.ts rename to types/Zeta.non-eth.sol/ZetaErrors.ts diff --git a/v2/types/Zeta.non-eth.sol/ZetaNonEth.ts b/types/Zeta.non-eth.sol/ZetaNonEth.ts similarity index 100% rename from v2/types/Zeta.non-eth.sol/ZetaNonEth.ts rename to types/Zeta.non-eth.sol/ZetaNonEth.ts diff --git a/v2/types/Zeta.non-eth.sol/ZetaNonEthInterface.ts b/types/Zeta.non-eth.sol/ZetaNonEthInterface.ts similarity index 100% rename from v2/types/Zeta.non-eth.sol/ZetaNonEthInterface.ts rename to types/Zeta.non-eth.sol/ZetaNonEthInterface.ts diff --git a/v2/types/Zeta.non-eth.sol/index.ts b/types/Zeta.non-eth.sol/index.ts similarity index 100% rename from v2/types/Zeta.non-eth.sol/index.ts rename to types/Zeta.non-eth.sol/index.ts diff --git a/v2/types/ZetaConnector.base.sol/ZetaConnectorBase.ts b/types/ZetaConnector.base.sol/ZetaConnectorBase.ts similarity index 100% rename from v2/types/ZetaConnector.base.sol/ZetaConnectorBase.ts rename to types/ZetaConnector.base.sol/ZetaConnectorBase.ts diff --git a/v2/types/ZetaConnector.base.sol/index.ts b/types/ZetaConnector.base.sol/index.ts similarity index 100% rename from v2/types/ZetaConnector.base.sol/index.ts rename to types/ZetaConnector.base.sol/index.ts diff --git a/v2/types/ZetaConnector.eth.sol/ZetaConnectorEth.ts b/types/ZetaConnector.eth.sol/ZetaConnectorEth.ts similarity index 100% rename from v2/types/ZetaConnector.eth.sol/ZetaConnectorEth.ts rename to types/ZetaConnector.eth.sol/ZetaConnectorEth.ts diff --git a/v2/types/ZetaConnector.eth.sol/index.ts b/types/ZetaConnector.eth.sol/index.ts similarity index 100% rename from v2/types/ZetaConnector.eth.sol/index.ts rename to types/ZetaConnector.eth.sol/index.ts diff --git a/v2/types/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts b/types/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts similarity index 100% rename from v2/types/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts rename to types/ZetaConnector.non-eth.sol/ZetaConnectorNonEth.ts diff --git a/v2/types/ZetaConnector.non-eth.sol/index.ts b/types/ZetaConnector.non-eth.sol/index.ts similarity index 100% rename from v2/types/ZetaConnector.non-eth.sol/index.ts rename to types/ZetaConnector.non-eth.sol/index.ts diff --git a/v2/types/ZetaConnectorBase.ts b/types/ZetaConnectorBase.ts similarity index 100% rename from v2/types/ZetaConnectorBase.ts rename to types/ZetaConnectorBase.ts diff --git a/v2/types/ZetaConnectorNative.ts b/types/ZetaConnectorNative.ts similarity index 100% rename from v2/types/ZetaConnectorNative.ts rename to types/ZetaConnectorNative.ts diff --git a/v2/types/ZetaConnectorNativeUpgradeTest.ts b/types/ZetaConnectorNativeUpgradeTest.ts similarity index 100% rename from v2/types/ZetaConnectorNativeUpgradeTest.ts rename to types/ZetaConnectorNativeUpgradeTest.ts diff --git a/v2/types/ZetaConnectorNonNative.ts b/types/ZetaConnectorNonNative.ts similarity index 100% rename from v2/types/ZetaConnectorNonNative.ts rename to types/ZetaConnectorNonNative.ts diff --git a/v2/types/ZetaConnectorNonNativeUpgradeTest.ts b/types/ZetaConnectorNonNativeUpgradeTest.ts similarity index 100% rename from v2/types/ZetaConnectorNonNativeUpgradeTest.ts rename to types/ZetaConnectorNonNativeUpgradeTest.ts diff --git a/v2/types/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts b/types/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts similarity index 100% rename from v2/types/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts rename to types/ZetaConnectorZEVM.sol/ZetaConnectorZEVM.ts diff --git a/v2/types/ZetaConnectorZEVM.sol/ZetaReceiver.ts b/types/ZetaConnectorZEVM.sol/ZetaReceiver.ts similarity index 100% rename from v2/types/ZetaConnectorZEVM.sol/ZetaReceiver.ts rename to types/ZetaConnectorZEVM.sol/ZetaReceiver.ts diff --git a/v2/types/ZetaConnectorZEVM.sol/index.ts b/types/ZetaConnectorZEVM.sol/index.ts similarity index 100% rename from v2/types/ZetaConnectorZEVM.sol/index.ts rename to types/ZetaConnectorZEVM.sol/index.ts diff --git a/v2/types/ZetaErrors.ts b/types/ZetaErrors.ts similarity index 100% rename from v2/types/ZetaErrors.ts rename to types/ZetaErrors.ts diff --git a/v2/types/ZetaInterfaces.sol/ZetaCommonErrors.ts b/types/ZetaInterfaces.sol/ZetaCommonErrors.ts similarity index 100% rename from v2/types/ZetaInterfaces.sol/ZetaCommonErrors.ts rename to types/ZetaInterfaces.sol/ZetaCommonErrors.ts diff --git a/v2/types/ZetaInterfaces.sol/ZetaConnector.ts b/types/ZetaInterfaces.sol/ZetaConnector.ts similarity index 100% rename from v2/types/ZetaInterfaces.sol/ZetaConnector.ts rename to types/ZetaInterfaces.sol/ZetaConnector.ts diff --git a/v2/types/ZetaInterfaces.sol/ZetaReceiver.ts b/types/ZetaInterfaces.sol/ZetaReceiver.ts similarity index 100% rename from v2/types/ZetaInterfaces.sol/ZetaReceiver.ts rename to types/ZetaInterfaces.sol/ZetaReceiver.ts diff --git a/v2/types/ZetaInterfaces.sol/ZetaTokenConsumer.ts b/types/ZetaInterfaces.sol/ZetaTokenConsumer.ts similarity index 100% rename from v2/types/ZetaInterfaces.sol/ZetaTokenConsumer.ts rename to types/ZetaInterfaces.sol/ZetaTokenConsumer.ts diff --git a/v2/types/ZetaInterfaces.sol/index.ts b/types/ZetaInterfaces.sol/index.ts similarity index 100% rename from v2/types/ZetaInterfaces.sol/index.ts rename to types/ZetaInterfaces.sol/index.ts diff --git a/v2/types/ZetaNonEthInterface.ts b/types/ZetaNonEthInterface.ts similarity index 100% rename from v2/types/ZetaNonEthInterface.ts rename to types/ZetaNonEthInterface.ts diff --git a/v2/types/common.ts b/types/common.ts similarity index 100% rename from v2/types/common.ts rename to types/common.ts diff --git a/v2/types/contracts/index.ts b/types/contracts/index.ts similarity index 100% rename from v2/types/contracts/index.ts rename to types/contracts/index.ts diff --git a/v2/types/contracts/interfaces/IERC20.ts b/types/contracts/interfaces/IERC20.ts similarity index 100% rename from v2/types/contracts/interfaces/IERC20.ts rename to types/contracts/interfaces/IERC20.ts diff --git a/v2/types/contracts/interfaces/index.ts b/types/contracts/interfaces/index.ts similarity index 100% rename from v2/types/contracts/interfaces/index.ts rename to types/contracts/interfaces/index.ts diff --git a/v2/types/draft-IERC1822.sol/IERC1822Proxiable.ts b/types/draft-IERC1822.sol/IERC1822Proxiable.ts similarity index 100% rename from v2/types/draft-IERC1822.sol/IERC1822Proxiable.ts rename to types/draft-IERC1822.sol/IERC1822Proxiable.ts diff --git a/v2/types/draft-IERC1822.sol/index.ts b/types/draft-IERC1822.sol/index.ts similarity index 100% rename from v2/types/draft-IERC1822.sol/index.ts rename to types/draft-IERC1822.sol/index.ts diff --git a/v2/types/draft-IERC6093.sol/IERC1155Errors.ts b/types/draft-IERC6093.sol/IERC1155Errors.ts similarity index 100% rename from v2/types/draft-IERC6093.sol/IERC1155Errors.ts rename to types/draft-IERC6093.sol/IERC1155Errors.ts diff --git a/v2/types/draft-IERC6093.sol/IERC20Errors.ts b/types/draft-IERC6093.sol/IERC20Errors.ts similarity index 100% rename from v2/types/draft-IERC6093.sol/IERC20Errors.ts rename to types/draft-IERC6093.sol/IERC20Errors.ts diff --git a/v2/types/draft-IERC6093.sol/IERC721Errors.ts b/types/draft-IERC6093.sol/IERC721Errors.ts similarity index 100% rename from v2/types/draft-IERC6093.sol/IERC721Errors.ts rename to types/draft-IERC6093.sol/IERC721Errors.ts diff --git a/v2/types/draft-IERC6093.sol/index.ts b/types/draft-IERC6093.sol/index.ts similarity index 100% rename from v2/types/draft-IERC6093.sol/index.ts rename to types/draft-IERC6093.sol/index.ts diff --git a/v2/types/factories/AccessControlUpgradeable__factory.ts b/types/factories/AccessControlUpgradeable__factory.ts similarity index 100% rename from v2/types/factories/AccessControlUpgradeable__factory.ts rename to types/factories/AccessControlUpgradeable__factory.ts diff --git a/v2/types/factories/AccessControl__factory.ts b/types/factories/AccessControl__factory.ts similarity index 100% rename from v2/types/factories/AccessControl__factory.ts rename to types/factories/AccessControl__factory.ts diff --git a/v2/types/factories/Address__factory.ts b/types/factories/Address__factory.ts similarity index 100% rename from v2/types/factories/Address__factory.ts rename to types/factories/Address__factory.ts diff --git a/v2/types/factories/BeaconProxy__factory.ts b/types/factories/BeaconProxy__factory.ts similarity index 100% rename from v2/types/factories/BeaconProxy__factory.ts rename to types/factories/BeaconProxy__factory.ts diff --git a/v2/types/factories/ConnectorErrors__factory.ts b/types/factories/ConnectorErrors__factory.ts similarity index 100% rename from v2/types/factories/ConnectorErrors__factory.ts rename to types/factories/ConnectorErrors__factory.ts diff --git a/v2/types/factories/ContextUpgradeable__factory.ts b/types/factories/ContextUpgradeable__factory.ts similarity index 100% rename from v2/types/factories/ContextUpgradeable__factory.ts rename to types/factories/ContextUpgradeable__factory.ts diff --git a/v2/types/factories/ERC165Upgradeable__factory.ts b/types/factories/ERC165Upgradeable__factory.ts similarity index 100% rename from v2/types/factories/ERC165Upgradeable__factory.ts rename to types/factories/ERC165Upgradeable__factory.ts diff --git a/v2/types/factories/ERC165__factory.ts b/types/factories/ERC165__factory.ts similarity index 100% rename from v2/types/factories/ERC165__factory.ts rename to types/factories/ERC165__factory.ts diff --git a/v2/types/factories/ERC1967Proxy__factory.ts b/types/factories/ERC1967Proxy__factory.ts similarity index 100% rename from v2/types/factories/ERC1967Proxy__factory.ts rename to types/factories/ERC1967Proxy__factory.ts diff --git a/v2/types/factories/ERC1967Utils__factory.ts b/types/factories/ERC1967Utils__factory.ts similarity index 100% rename from v2/types/factories/ERC1967Utils__factory.ts rename to types/factories/ERC1967Utils__factory.ts diff --git a/v2/types/factories/ERC20/IERC20__factory.ts b/types/factories/ERC20/IERC20__factory.ts similarity index 100% rename from v2/types/factories/ERC20/IERC20__factory.ts rename to types/factories/ERC20/IERC20__factory.ts diff --git a/v2/types/factories/ERC20/index.ts b/types/factories/ERC20/index.ts similarity index 100% rename from v2/types/factories/ERC20/index.ts rename to types/factories/ERC20/index.ts diff --git a/v2/types/factories/ERC20Burnable__factory.ts b/types/factories/ERC20Burnable__factory.ts similarity index 100% rename from v2/types/factories/ERC20Burnable__factory.ts rename to types/factories/ERC20Burnable__factory.ts diff --git a/v2/types/factories/ERC20CustodyEchidnaTest__factory.ts b/types/factories/ERC20CustodyEchidnaTest__factory.ts similarity index 100% rename from v2/types/factories/ERC20CustodyEchidnaTest__factory.ts rename to types/factories/ERC20CustodyEchidnaTest__factory.ts diff --git a/v2/types/factories/ERC20CustodyUpgradeTest__factory.ts b/types/factories/ERC20CustodyUpgradeTest__factory.ts similarity index 100% rename from v2/types/factories/ERC20CustodyUpgradeTest__factory.ts rename to types/factories/ERC20CustodyUpgradeTest__factory.ts diff --git a/v2/types/factories/ERC20Custody__factory.ts b/types/factories/ERC20Custody__factory.ts similarity index 100% rename from v2/types/factories/ERC20Custody__factory.ts rename to types/factories/ERC20Custody__factory.ts diff --git a/v2/types/factories/ERC20__factory.ts b/types/factories/ERC20__factory.ts similarity index 100% rename from v2/types/factories/ERC20__factory.ts rename to types/factories/ERC20__factory.ts diff --git a/v2/types/factories/Errors.sol/Errors__factory.ts b/types/factories/Errors.sol/Errors__factory.ts similarity index 100% rename from v2/types/factories/Errors.sol/Errors__factory.ts rename to types/factories/Errors.sol/Errors__factory.ts diff --git a/v2/types/factories/Errors.sol/INotSupportedMethods__factory.ts b/types/factories/Errors.sol/INotSupportedMethods__factory.ts similarity index 100% rename from v2/types/factories/Errors.sol/INotSupportedMethods__factory.ts rename to types/factories/Errors.sol/INotSupportedMethods__factory.ts diff --git a/v2/types/factories/Errors.sol/index.ts b/types/factories/Errors.sol/index.ts similarity index 100% rename from v2/types/factories/Errors.sol/index.ts rename to types/factories/Errors.sol/index.ts diff --git a/v2/types/factories/GatewayEVMEchidnaTest__factory.ts b/types/factories/GatewayEVMEchidnaTest__factory.ts similarity index 100% rename from v2/types/factories/GatewayEVMEchidnaTest__factory.ts rename to types/factories/GatewayEVMEchidnaTest__factory.ts diff --git a/v2/types/factories/GatewayEVMUpgradeTest__factory.ts b/types/factories/GatewayEVMUpgradeTest__factory.ts similarity index 100% rename from v2/types/factories/GatewayEVMUpgradeTest__factory.ts rename to types/factories/GatewayEVMUpgradeTest__factory.ts diff --git a/v2/types/factories/GatewayEVM__factory.ts b/types/factories/GatewayEVM__factory.ts similarity index 100% rename from v2/types/factories/GatewayEVM__factory.ts rename to types/factories/GatewayEVM__factory.ts diff --git a/v2/types/factories/GatewayZEVMUpgradeTest__factory.ts b/types/factories/GatewayZEVMUpgradeTest__factory.ts similarity index 100% rename from v2/types/factories/GatewayZEVMUpgradeTest__factory.ts rename to types/factories/GatewayZEVMUpgradeTest__factory.ts diff --git a/v2/types/factories/GatewayZEVM__factory.ts b/types/factories/GatewayZEVM__factory.ts similarity index 100% rename from v2/types/factories/GatewayZEVM__factory.ts rename to types/factories/GatewayZEVM__factory.ts diff --git a/v2/types/factories/IAccessControl__factory.ts b/types/factories/IAccessControl__factory.ts similarity index 100% rename from v2/types/factories/IAccessControl__factory.ts rename to types/factories/IAccessControl__factory.ts diff --git a/v2/types/factories/IBeacon__factory.ts b/types/factories/IBeacon__factory.ts similarity index 100% rename from v2/types/factories/IBeacon__factory.ts rename to types/factories/IBeacon__factory.ts diff --git a/v2/types/factories/IERC1363__factory.ts b/types/factories/IERC1363__factory.ts similarity index 100% rename from v2/types/factories/IERC1363__factory.ts rename to types/factories/IERC1363__factory.ts diff --git a/v2/types/factories/IERC165__factory.ts b/types/factories/IERC165__factory.ts similarity index 100% rename from v2/types/factories/IERC165__factory.ts rename to types/factories/IERC165__factory.ts diff --git a/v2/types/factories/IERC1967__factory.ts b/types/factories/IERC1967__factory.ts similarity index 100% rename from v2/types/factories/IERC1967__factory.ts rename to types/factories/IERC1967__factory.ts diff --git a/v2/types/factories/IERC20Custody.sol/IERC20CustodyErrors__factory.ts b/types/factories/IERC20Custody.sol/IERC20CustodyErrors__factory.ts similarity index 100% rename from v2/types/factories/IERC20Custody.sol/IERC20CustodyErrors__factory.ts rename to types/factories/IERC20Custody.sol/IERC20CustodyErrors__factory.ts diff --git a/v2/types/factories/IERC20Custody.sol/IERC20CustodyEvents__factory.ts b/types/factories/IERC20Custody.sol/IERC20CustodyEvents__factory.ts similarity index 100% rename from v2/types/factories/IERC20Custody.sol/IERC20CustodyEvents__factory.ts rename to types/factories/IERC20Custody.sol/IERC20CustodyEvents__factory.ts diff --git a/v2/types/factories/IERC20Custody.sol/IERC20Custody__factory.ts b/types/factories/IERC20Custody.sol/IERC20Custody__factory.ts similarity index 100% rename from v2/types/factories/IERC20Custody.sol/IERC20Custody__factory.ts rename to types/factories/IERC20Custody.sol/IERC20Custody__factory.ts diff --git a/v2/types/factories/IERC20Custody.sol/index.ts b/types/factories/IERC20Custody.sol/index.ts similarity index 100% rename from v2/types/factories/IERC20Custody.sol/index.ts rename to types/factories/IERC20Custody.sol/index.ts diff --git a/v2/types/factories/IERC20Metadata__factory.ts b/types/factories/IERC20Metadata__factory.ts similarity index 100% rename from v2/types/factories/IERC20Metadata__factory.ts rename to types/factories/IERC20Metadata__factory.ts diff --git a/v2/types/factories/IERC20Permit__factory.ts b/types/factories/IERC20Permit__factory.ts similarity index 100% rename from v2/types/factories/IERC20Permit__factory.ts rename to types/factories/IERC20Permit__factory.ts diff --git a/v2/types/factories/IERC20__factory.ts b/types/factories/IERC20__factory.ts similarity index 100% rename from v2/types/factories/IERC20__factory.ts rename to types/factories/IERC20__factory.ts diff --git a/v2/types/factories/IERC721.sol/IERC721Enumerable__factory.ts b/types/factories/IERC721.sol/IERC721Enumerable__factory.ts similarity index 100% rename from v2/types/factories/IERC721.sol/IERC721Enumerable__factory.ts rename to types/factories/IERC721.sol/IERC721Enumerable__factory.ts diff --git a/v2/types/factories/IERC721.sol/IERC721Metadata__factory.ts b/types/factories/IERC721.sol/IERC721Metadata__factory.ts similarity index 100% rename from v2/types/factories/IERC721.sol/IERC721Metadata__factory.ts rename to types/factories/IERC721.sol/IERC721Metadata__factory.ts diff --git a/v2/types/factories/IERC721.sol/IERC721TokenReceiver__factory.ts b/types/factories/IERC721.sol/IERC721TokenReceiver__factory.ts similarity index 100% rename from v2/types/factories/IERC721.sol/IERC721TokenReceiver__factory.ts rename to types/factories/IERC721.sol/IERC721TokenReceiver__factory.ts diff --git a/v2/types/factories/IERC721.sol/IERC721__factory.ts b/types/factories/IERC721.sol/IERC721__factory.ts similarity index 100% rename from v2/types/factories/IERC721.sol/IERC721__factory.ts rename to types/factories/IERC721.sol/IERC721__factory.ts diff --git a/v2/types/factories/IERC721.sol/index.ts b/types/factories/IERC721.sol/index.ts similarity index 100% rename from v2/types/factories/IERC721.sol/index.ts rename to types/factories/IERC721.sol/index.ts diff --git a/v2/types/factories/IGatewayEVM.sol/Callable__factory.ts b/types/factories/IGatewayEVM.sol/Callable__factory.ts similarity index 100% rename from v2/types/factories/IGatewayEVM.sol/Callable__factory.ts rename to types/factories/IGatewayEVM.sol/Callable__factory.ts diff --git a/v2/types/factories/IGatewayEVM.sol/IGatewayEVMErrors__factory.ts b/types/factories/IGatewayEVM.sol/IGatewayEVMErrors__factory.ts similarity index 100% rename from v2/types/factories/IGatewayEVM.sol/IGatewayEVMErrors__factory.ts rename to types/factories/IGatewayEVM.sol/IGatewayEVMErrors__factory.ts diff --git a/v2/types/factories/IGatewayEVM.sol/IGatewayEVMEvents__factory.ts b/types/factories/IGatewayEVM.sol/IGatewayEVMEvents__factory.ts similarity index 100% rename from v2/types/factories/IGatewayEVM.sol/IGatewayEVMEvents__factory.ts rename to types/factories/IGatewayEVM.sol/IGatewayEVMEvents__factory.ts diff --git a/v2/types/factories/IGatewayEVM.sol/IGatewayEVM__factory.ts b/types/factories/IGatewayEVM.sol/IGatewayEVM__factory.ts similarity index 100% rename from v2/types/factories/IGatewayEVM.sol/IGatewayEVM__factory.ts rename to types/factories/IGatewayEVM.sol/IGatewayEVM__factory.ts diff --git a/v2/types/factories/IGatewayEVM.sol/index.ts b/types/factories/IGatewayEVM.sol/index.ts similarity index 100% rename from v2/types/factories/IGatewayEVM.sol/index.ts rename to types/factories/IGatewayEVM.sol/index.ts diff --git a/v2/types/factories/IGatewayZEVM.sol/IGatewayZEVMErrors__factory.ts b/types/factories/IGatewayZEVM.sol/IGatewayZEVMErrors__factory.ts similarity index 100% rename from v2/types/factories/IGatewayZEVM.sol/IGatewayZEVMErrors__factory.ts rename to types/factories/IGatewayZEVM.sol/IGatewayZEVMErrors__factory.ts diff --git a/v2/types/factories/IGatewayZEVM.sol/IGatewayZEVMEvents__factory.ts b/types/factories/IGatewayZEVM.sol/IGatewayZEVMEvents__factory.ts similarity index 100% rename from v2/types/factories/IGatewayZEVM.sol/IGatewayZEVMEvents__factory.ts rename to types/factories/IGatewayZEVM.sol/IGatewayZEVMEvents__factory.ts diff --git a/v2/types/factories/IGatewayZEVM.sol/IGatewayZEVM__factory.ts b/types/factories/IGatewayZEVM.sol/IGatewayZEVM__factory.ts similarity index 100% rename from v2/types/factories/IGatewayZEVM.sol/IGatewayZEVM__factory.ts rename to types/factories/IGatewayZEVM.sol/IGatewayZEVM__factory.ts diff --git a/v2/types/factories/IGatewayZEVM.sol/index.ts b/types/factories/IGatewayZEVM.sol/index.ts similarity index 100% rename from v2/types/factories/IGatewayZEVM.sol/index.ts rename to types/factories/IGatewayZEVM.sol/index.ts diff --git a/v2/types/factories/IMulticall3__factory.ts b/types/factories/IMulticall3__factory.ts similarity index 100% rename from v2/types/factories/IMulticall3__factory.ts rename to types/factories/IMulticall3__factory.ts diff --git a/v2/types/factories/IProxyAdmin__factory.ts b/types/factories/IProxyAdmin__factory.ts similarity index 100% rename from v2/types/factories/IProxyAdmin__factory.ts rename to types/factories/IProxyAdmin__factory.ts diff --git a/v2/types/factories/IReceiverEVM.sol/IReceiverEVMEvents__factory.ts b/types/factories/IReceiverEVM.sol/IReceiverEVMEvents__factory.ts similarity index 100% rename from v2/types/factories/IReceiverEVM.sol/IReceiverEVMEvents__factory.ts rename to types/factories/IReceiverEVM.sol/IReceiverEVMEvents__factory.ts diff --git a/v2/types/factories/IReceiverEVM.sol/index.ts b/types/factories/IReceiverEVM.sol/index.ts similarity index 100% rename from v2/types/factories/IReceiverEVM.sol/index.ts rename to types/factories/IReceiverEVM.sol/index.ts diff --git a/v2/types/factories/ISystem__factory.ts b/types/factories/ISystem__factory.ts similarity index 100% rename from v2/types/factories/ISystem__factory.ts rename to types/factories/ISystem__factory.ts diff --git a/v2/types/factories/IUniswapV2Callee__factory.ts b/types/factories/IUniswapV2Callee__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2Callee__factory.ts rename to types/factories/IUniswapV2Callee__factory.ts diff --git a/v2/types/factories/IUniswapV2ERC20__factory.ts b/types/factories/IUniswapV2ERC20__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2ERC20__factory.ts rename to types/factories/IUniswapV2ERC20__factory.ts diff --git a/v2/types/factories/IUniswapV2Factory.sol/IUniswapV2Factory0516__factory.ts b/types/factories/IUniswapV2Factory.sol/IUniswapV2Factory0516__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2Factory.sol/IUniswapV2Factory0516__factory.ts rename to types/factories/IUniswapV2Factory.sol/IUniswapV2Factory0516__factory.ts diff --git a/v2/types/factories/IUniswapV2Factory.sol/IUniswapV2Factory066__factory.ts b/types/factories/IUniswapV2Factory.sol/IUniswapV2Factory066__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2Factory.sol/IUniswapV2Factory066__factory.ts rename to types/factories/IUniswapV2Factory.sol/IUniswapV2Factory066__factory.ts diff --git a/v2/types/factories/IUniswapV2Factory.sol/index.ts b/types/factories/IUniswapV2Factory.sol/index.ts similarity index 100% rename from v2/types/factories/IUniswapV2Factory.sol/index.ts rename to types/factories/IUniswapV2Factory.sol/index.ts diff --git a/v2/types/factories/IUniswapV2Pair.sol/IUniswapV2Pair0516__factory.ts b/types/factories/IUniswapV2Pair.sol/IUniswapV2Pair0516__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2Pair.sol/IUniswapV2Pair0516__factory.ts rename to types/factories/IUniswapV2Pair.sol/IUniswapV2Pair0516__factory.ts diff --git a/v2/types/factories/IUniswapV2Pair.sol/IUniswapV2Pair066__factory.ts b/types/factories/IUniswapV2Pair.sol/IUniswapV2Pair066__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2Pair.sol/IUniswapV2Pair066__factory.ts rename to types/factories/IUniswapV2Pair.sol/IUniswapV2Pair066__factory.ts diff --git a/v2/types/factories/IUniswapV2Pair.sol/index.ts b/types/factories/IUniswapV2Pair.sol/index.ts similarity index 100% rename from v2/types/factories/IUniswapV2Pair.sol/index.ts rename to types/factories/IUniswapV2Pair.sol/index.ts diff --git a/v2/types/factories/IUniswapV2Router01__factory.ts b/types/factories/IUniswapV2Router01__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2Router01__factory.ts rename to types/factories/IUniswapV2Router01__factory.ts diff --git a/v2/types/factories/IUniswapV2Router02__factory.ts b/types/factories/IUniswapV2Router02__factory.ts similarity index 100% rename from v2/types/factories/IUniswapV2Router02__factory.ts rename to types/factories/IUniswapV2Router02__factory.ts diff --git a/v2/types/factories/IUpgradeableBeacon__factory.ts b/types/factories/IUpgradeableBeacon__factory.ts similarity index 100% rename from v2/types/factories/IUpgradeableBeacon__factory.ts rename to types/factories/IUpgradeableBeacon__factory.ts diff --git a/v2/types/factories/IUpgradeableProxy__factory.ts b/types/factories/IUpgradeableProxy__factory.ts similarity index 100% rename from v2/types/factories/IUpgradeableProxy__factory.ts rename to types/factories/IUpgradeableProxy__factory.ts diff --git a/v2/types/factories/IWETH__factory.ts b/types/factories/IWETH__factory.ts similarity index 100% rename from v2/types/factories/IWETH__factory.ts rename to types/factories/IWETH__factory.ts diff --git a/v2/types/factories/IWZETA.sol/IWETH9__factory.ts b/types/factories/IWZETA.sol/IWETH9__factory.ts similarity index 100% rename from v2/types/factories/IWZETA.sol/IWETH9__factory.ts rename to types/factories/IWZETA.sol/IWETH9__factory.ts diff --git a/v2/types/factories/IWZETA.sol/index.ts b/types/factories/IWZETA.sol/index.ts similarity index 100% rename from v2/types/factories/IWZETA.sol/index.ts rename to types/factories/IWZETA.sol/index.ts diff --git a/v2/types/factories/IZRC20.sol/IZRC20Metadata__factory.ts b/types/factories/IZRC20.sol/IZRC20Metadata__factory.ts similarity index 100% rename from v2/types/factories/IZRC20.sol/IZRC20Metadata__factory.ts rename to types/factories/IZRC20.sol/IZRC20Metadata__factory.ts diff --git a/v2/types/factories/IZRC20.sol/IZRC20__factory.ts b/types/factories/IZRC20.sol/IZRC20__factory.ts similarity index 100% rename from v2/types/factories/IZRC20.sol/IZRC20__factory.ts rename to types/factories/IZRC20.sol/IZRC20__factory.ts diff --git a/v2/types/factories/IZRC20.sol/ZRC20Events__factory.ts b/types/factories/IZRC20.sol/ZRC20Events__factory.ts similarity index 100% rename from v2/types/factories/IZRC20.sol/ZRC20Events__factory.ts rename to types/factories/IZRC20.sol/ZRC20Events__factory.ts diff --git a/v2/types/factories/IZRC20.sol/index.ts b/types/factories/IZRC20.sol/index.ts similarity index 100% rename from v2/types/factories/IZRC20.sol/index.ts rename to types/factories/IZRC20.sol/index.ts diff --git a/v2/types/factories/IZetaConnector.sol/IZetaConnectorEvents__factory.ts b/types/factories/IZetaConnector.sol/IZetaConnectorEvents__factory.ts similarity index 100% rename from v2/types/factories/IZetaConnector.sol/IZetaConnectorEvents__factory.ts rename to types/factories/IZetaConnector.sol/IZetaConnectorEvents__factory.ts diff --git a/v2/types/factories/IZetaConnector.sol/index.ts b/types/factories/IZetaConnector.sol/index.ts similarity index 100% rename from v2/types/factories/IZetaConnector.sol/index.ts rename to types/factories/IZetaConnector.sol/index.ts diff --git a/v2/types/factories/IZetaNonEthNew__factory.ts b/types/factories/IZetaNonEthNew__factory.ts similarity index 100% rename from v2/types/factories/IZetaNonEthNew__factory.ts rename to types/factories/IZetaNonEthNew__factory.ts diff --git a/v2/types/factories/Initializable__factory.ts b/types/factories/Initializable__factory.ts similarity index 100% rename from v2/types/factories/Initializable__factory.ts rename to types/factories/Initializable__factory.ts diff --git a/v2/types/factories/Math__factory.ts b/types/factories/Math__factory.ts similarity index 100% rename from v2/types/factories/Math__factory.ts rename to types/factories/Math__factory.ts diff --git a/v2/types/factories/MockERC20__factory.ts b/types/factories/MockERC20__factory.ts similarity index 100% rename from v2/types/factories/MockERC20__factory.ts rename to types/factories/MockERC20__factory.ts diff --git a/v2/types/factories/MockERC721__factory.ts b/types/factories/MockERC721__factory.ts similarity index 100% rename from v2/types/factories/MockERC721__factory.ts rename to types/factories/MockERC721__factory.ts diff --git a/v2/types/factories/Ownable__factory.ts b/types/factories/Ownable__factory.ts similarity index 100% rename from v2/types/factories/Ownable__factory.ts rename to types/factories/Ownable__factory.ts diff --git a/v2/types/factories/PausableUpgradeable__factory.ts b/types/factories/PausableUpgradeable__factory.ts similarity index 100% rename from v2/types/factories/PausableUpgradeable__factory.ts rename to types/factories/PausableUpgradeable__factory.ts diff --git a/v2/types/factories/Pausable__factory.ts b/types/factories/Pausable__factory.ts similarity index 100% rename from v2/types/factories/Pausable__factory.ts rename to types/factories/Pausable__factory.ts diff --git a/v2/types/factories/ProxyAdmin__factory.ts b/types/factories/ProxyAdmin__factory.ts similarity index 100% rename from v2/types/factories/ProxyAdmin__factory.ts rename to types/factories/ProxyAdmin__factory.ts diff --git a/v2/types/factories/Proxy__factory.ts b/types/factories/Proxy__factory.ts similarity index 100% rename from v2/types/factories/Proxy__factory.ts rename to types/factories/Proxy__factory.ts diff --git a/v2/types/factories/ReceiverEVM__factory.ts b/types/factories/ReceiverEVM__factory.ts similarity index 100% rename from v2/types/factories/ReceiverEVM__factory.ts rename to types/factories/ReceiverEVM__factory.ts diff --git a/v2/types/factories/ReentrancyGuardUpgradeable__factory.ts b/types/factories/ReentrancyGuardUpgradeable__factory.ts similarity index 100% rename from v2/types/factories/ReentrancyGuardUpgradeable__factory.ts rename to types/factories/ReentrancyGuardUpgradeable__factory.ts diff --git a/v2/types/factories/ReentrancyGuard__factory.ts b/types/factories/ReentrancyGuard__factory.ts similarity index 100% rename from v2/types/factories/ReentrancyGuard__factory.ts rename to types/factories/ReentrancyGuard__factory.ts diff --git a/v2/types/factories/Revert.sol/Revertable__factory.ts b/types/factories/Revert.sol/Revertable__factory.ts similarity index 100% rename from v2/types/factories/Revert.sol/Revertable__factory.ts rename to types/factories/Revert.sol/Revertable__factory.ts diff --git a/v2/types/factories/Revert.sol/index.ts b/types/factories/Revert.sol/index.ts similarity index 100% rename from v2/types/factories/Revert.sol/index.ts rename to types/factories/Revert.sol/index.ts diff --git a/v2/types/factories/SafeCast__factory.ts b/types/factories/SafeCast__factory.ts similarity index 100% rename from v2/types/factories/SafeCast__factory.ts rename to types/factories/SafeCast__factory.ts diff --git a/v2/types/factories/SafeERC20__factory.ts b/types/factories/SafeERC20__factory.ts similarity index 100% rename from v2/types/factories/SafeERC20__factory.ts rename to types/factories/SafeERC20__factory.ts diff --git a/v2/types/factories/SenderZEVM__factory.ts b/types/factories/SenderZEVM__factory.ts similarity index 100% rename from v2/types/factories/SenderZEVM__factory.ts rename to types/factories/SenderZEVM__factory.ts diff --git a/v2/types/factories/StdAssertions__factory.ts b/types/factories/StdAssertions__factory.ts similarity index 100% rename from v2/types/factories/StdAssertions__factory.ts rename to types/factories/StdAssertions__factory.ts diff --git a/v2/types/factories/StdError.sol/StdError__factory.ts b/types/factories/StdError.sol/StdError__factory.ts similarity index 100% rename from v2/types/factories/StdError.sol/StdError__factory.ts rename to types/factories/StdError.sol/StdError__factory.ts diff --git a/v2/types/factories/StdError.sol/index.ts b/types/factories/StdError.sol/index.ts similarity index 100% rename from v2/types/factories/StdError.sol/index.ts rename to types/factories/StdError.sol/index.ts diff --git a/v2/types/factories/StdInvariant__factory.ts b/types/factories/StdInvariant__factory.ts similarity index 100% rename from v2/types/factories/StdInvariant__factory.ts rename to types/factories/StdInvariant__factory.ts diff --git a/v2/types/factories/StdStorage.sol/StdStorageSafe__factory.ts b/types/factories/StdStorage.sol/StdStorageSafe__factory.ts similarity index 100% rename from v2/types/factories/StdStorage.sol/StdStorageSafe__factory.ts rename to types/factories/StdStorage.sol/StdStorageSafe__factory.ts diff --git a/v2/types/factories/StdStorage.sol/index.ts b/types/factories/StdStorage.sol/index.ts similarity index 100% rename from v2/types/factories/StdStorage.sol/index.ts rename to types/factories/StdStorage.sol/index.ts diff --git a/v2/types/factories/Strings__factory.ts b/types/factories/Strings__factory.ts similarity index 100% rename from v2/types/factories/Strings__factory.ts rename to types/factories/Strings__factory.ts diff --git a/v2/types/factories/SystemContract.sol/SystemContractErrors__factory.ts b/types/factories/SystemContract.sol/SystemContractErrors__factory.ts similarity index 100% rename from v2/types/factories/SystemContract.sol/SystemContractErrors__factory.ts rename to types/factories/SystemContract.sol/SystemContractErrors__factory.ts diff --git a/v2/types/factories/SystemContract.sol/SystemContract__factory.ts b/types/factories/SystemContract.sol/SystemContract__factory.ts similarity index 100% rename from v2/types/factories/SystemContract.sol/SystemContract__factory.ts rename to types/factories/SystemContract.sol/SystemContract__factory.ts diff --git a/v2/types/factories/SystemContract.sol/index.ts b/types/factories/SystemContract.sol/index.ts similarity index 100% rename from v2/types/factories/SystemContract.sol/index.ts rename to types/factories/SystemContract.sol/index.ts diff --git a/v2/types/factories/SystemContractMock.sol/SystemContractErrors__factory.ts b/types/factories/SystemContractMock.sol/SystemContractErrors__factory.ts similarity index 100% rename from v2/types/factories/SystemContractMock.sol/SystemContractErrors__factory.ts rename to types/factories/SystemContractMock.sol/SystemContractErrors__factory.ts diff --git a/v2/types/factories/SystemContractMock.sol/SystemContractMock__factory.ts b/types/factories/SystemContractMock.sol/SystemContractMock__factory.ts similarity index 100% rename from v2/types/factories/SystemContractMock.sol/SystemContractMock__factory.ts rename to types/factories/SystemContractMock.sol/SystemContractMock__factory.ts diff --git a/v2/types/factories/SystemContractMock.sol/index.ts b/types/factories/SystemContractMock.sol/index.ts similarity index 100% rename from v2/types/factories/SystemContractMock.sol/index.ts rename to types/factories/SystemContractMock.sol/index.ts diff --git a/v2/types/factories/TestERC20__factory.ts b/types/factories/TestERC20__factory.ts similarity index 100% rename from v2/types/factories/TestERC20__factory.ts rename to types/factories/TestERC20__factory.ts diff --git a/v2/types/factories/TestUniversalContract__factory.ts b/types/factories/TestUniversalContract__factory.ts similarity index 100% rename from v2/types/factories/TestUniversalContract__factory.ts rename to types/factories/TestUniversalContract__factory.ts diff --git a/v2/types/factories/Test__factory.ts b/types/factories/Test__factory.ts similarity index 100% rename from v2/types/factories/Test__factory.ts rename to types/factories/Test__factory.ts diff --git a/v2/types/factories/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.ts b/types/factories/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.ts similarity index 100% rename from v2/types/factories/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.ts rename to types/factories/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy__factory.ts diff --git a/v2/types/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts b/types/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts similarity index 100% rename from v2/types/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts rename to types/factories/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy__factory.ts diff --git a/v2/types/factories/TransparentUpgradeableProxy.sol/index.ts b/types/factories/TransparentUpgradeableProxy.sol/index.ts similarity index 100% rename from v2/types/factories/TransparentUpgradeableProxy.sol/index.ts rename to types/factories/TransparentUpgradeableProxy.sol/index.ts diff --git a/v2/types/factories/UUPSUpgradeable__factory.ts b/types/factories/UUPSUpgradeable__factory.ts similarity index 100% rename from v2/types/factories/UUPSUpgradeable__factory.ts rename to types/factories/UUPSUpgradeable__factory.ts diff --git a/v2/types/factories/UniswapV2ERC20__factory.ts b/types/factories/UniswapV2ERC20__factory.ts similarity index 100% rename from v2/types/factories/UniswapV2ERC20__factory.ts rename to types/factories/UniswapV2ERC20__factory.ts diff --git a/v2/types/factories/UniswapV2Factory__factory.ts b/types/factories/UniswapV2Factory__factory.ts similarity index 100% rename from v2/types/factories/UniswapV2Factory__factory.ts rename to types/factories/UniswapV2Factory__factory.ts diff --git a/v2/types/factories/UniswapV2Pair__factory.ts b/types/factories/UniswapV2Pair__factory.ts similarity index 100% rename from v2/types/factories/UniswapV2Pair__factory.ts rename to types/factories/UniswapV2Pair__factory.ts diff --git a/v2/types/factories/UniswapV2Router02__factory.ts b/types/factories/UniswapV2Router02__factory.ts similarity index 100% rename from v2/types/factories/UniswapV2Router02__factory.ts rename to types/factories/UniswapV2Router02__factory.ts diff --git a/v2/types/factories/UniversalContract.sol/UniversalContract__factory.ts b/types/factories/UniversalContract.sol/UniversalContract__factory.ts similarity index 100% rename from v2/types/factories/UniversalContract.sol/UniversalContract__factory.ts rename to types/factories/UniversalContract.sol/UniversalContract__factory.ts diff --git a/v2/types/factories/UniversalContract.sol/ZContract__factory.ts b/types/factories/UniversalContract.sol/ZContract__factory.ts similarity index 100% rename from v2/types/factories/UniversalContract.sol/ZContract__factory.ts rename to types/factories/UniversalContract.sol/ZContract__factory.ts diff --git a/v2/types/factories/UniversalContract.sol/index.ts b/types/factories/UniversalContract.sol/index.ts similarity index 100% rename from v2/types/factories/UniversalContract.sol/index.ts rename to types/factories/UniversalContract.sol/index.ts diff --git a/v2/types/factories/UpgradeableBeacon__factory.ts b/types/factories/UpgradeableBeacon__factory.ts similarity index 100% rename from v2/types/factories/UpgradeableBeacon__factory.ts rename to types/factories/UpgradeableBeacon__factory.ts diff --git a/v2/types/factories/Vm.sol/VmSafe__factory.ts b/types/factories/Vm.sol/VmSafe__factory.ts similarity index 100% rename from v2/types/factories/Vm.sol/VmSafe__factory.ts rename to types/factories/Vm.sol/VmSafe__factory.ts diff --git a/v2/types/factories/Vm.sol/Vm__factory.ts b/types/factories/Vm.sol/Vm__factory.ts similarity index 100% rename from v2/types/factories/Vm.sol/Vm__factory.ts rename to types/factories/Vm.sol/Vm__factory.ts diff --git a/v2/types/factories/Vm.sol/index.ts b/types/factories/Vm.sol/index.ts similarity index 100% rename from v2/types/factories/Vm.sol/index.ts rename to types/factories/Vm.sol/index.ts diff --git a/v2/types/factories/WZETA.sol/WETH9__factory.ts b/types/factories/WZETA.sol/WETH9__factory.ts similarity index 100% rename from v2/types/factories/WZETA.sol/WETH9__factory.ts rename to types/factories/WZETA.sol/WETH9__factory.ts diff --git a/v2/types/factories/WZETA.sol/index.ts b/types/factories/WZETA.sol/index.ts similarity index 100% rename from v2/types/factories/WZETA.sol/index.ts rename to types/factories/WZETA.sol/index.ts diff --git a/v2/types/factories/ZRC20.sol/ZRC20Errors__factory.ts b/types/factories/ZRC20.sol/ZRC20Errors__factory.ts similarity index 100% rename from v2/types/factories/ZRC20.sol/ZRC20Errors__factory.ts rename to types/factories/ZRC20.sol/ZRC20Errors__factory.ts diff --git a/v2/types/factories/ZRC20.sol/ZRC20__factory.ts b/types/factories/ZRC20.sol/ZRC20__factory.ts similarity index 100% rename from v2/types/factories/ZRC20.sol/ZRC20__factory.ts rename to types/factories/ZRC20.sol/ZRC20__factory.ts diff --git a/v2/types/factories/ZRC20.sol/index.ts b/types/factories/ZRC20.sol/index.ts similarity index 100% rename from v2/types/factories/ZRC20.sol/index.ts rename to types/factories/ZRC20.sol/index.ts diff --git a/v2/types/factories/Zeta.eth.sol/ZetaEth__factory.ts b/types/factories/Zeta.eth.sol/ZetaEth__factory.ts similarity index 100% rename from v2/types/factories/Zeta.eth.sol/ZetaEth__factory.ts rename to types/factories/Zeta.eth.sol/ZetaEth__factory.ts diff --git a/v2/types/factories/Zeta.eth.sol/index.ts b/types/factories/Zeta.eth.sol/index.ts similarity index 100% rename from v2/types/factories/Zeta.eth.sol/index.ts rename to types/factories/Zeta.eth.sol/index.ts diff --git a/v2/types/factories/Zeta.non-eth.sol/ZetaErrors__factory.ts b/types/factories/Zeta.non-eth.sol/ZetaErrors__factory.ts similarity index 100% rename from v2/types/factories/Zeta.non-eth.sol/ZetaErrors__factory.ts rename to types/factories/Zeta.non-eth.sol/ZetaErrors__factory.ts diff --git a/v2/types/factories/Zeta.non-eth.sol/ZetaNonEthInterface__factory.ts b/types/factories/Zeta.non-eth.sol/ZetaNonEthInterface__factory.ts similarity index 100% rename from v2/types/factories/Zeta.non-eth.sol/ZetaNonEthInterface__factory.ts rename to types/factories/Zeta.non-eth.sol/ZetaNonEthInterface__factory.ts diff --git a/v2/types/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts b/types/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts similarity index 100% rename from v2/types/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts rename to types/factories/Zeta.non-eth.sol/ZetaNonEth__factory.ts diff --git a/v2/types/factories/Zeta.non-eth.sol/index.ts b/types/factories/Zeta.non-eth.sol/index.ts similarity index 100% rename from v2/types/factories/Zeta.non-eth.sol/index.ts rename to types/factories/Zeta.non-eth.sol/index.ts diff --git a/v2/types/factories/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts b/types/factories/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts rename to types/factories/ZetaConnector.base.sol/ZetaConnectorBase__factory.ts diff --git a/v2/types/factories/ZetaConnector.base.sol/index.ts b/types/factories/ZetaConnector.base.sol/index.ts similarity index 100% rename from v2/types/factories/ZetaConnector.base.sol/index.ts rename to types/factories/ZetaConnector.base.sol/index.ts diff --git a/v2/types/factories/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts b/types/factories/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts rename to types/factories/ZetaConnector.eth.sol/ZetaConnectorEth__factory.ts diff --git a/v2/types/factories/ZetaConnector.eth.sol/index.ts b/types/factories/ZetaConnector.eth.sol/index.ts similarity index 100% rename from v2/types/factories/ZetaConnector.eth.sol/index.ts rename to types/factories/ZetaConnector.eth.sol/index.ts diff --git a/v2/types/factories/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts b/types/factories/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts rename to types/factories/ZetaConnector.non-eth.sol/ZetaConnectorNonEth__factory.ts diff --git a/v2/types/factories/ZetaConnector.non-eth.sol/index.ts b/types/factories/ZetaConnector.non-eth.sol/index.ts similarity index 100% rename from v2/types/factories/ZetaConnector.non-eth.sol/index.ts rename to types/factories/ZetaConnector.non-eth.sol/index.ts diff --git a/v2/types/factories/ZetaConnectorBase__factory.ts b/types/factories/ZetaConnectorBase__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnectorBase__factory.ts rename to types/factories/ZetaConnectorBase__factory.ts diff --git a/v2/types/factories/ZetaConnectorNativeUpgradeTest__factory.ts b/types/factories/ZetaConnectorNativeUpgradeTest__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnectorNativeUpgradeTest__factory.ts rename to types/factories/ZetaConnectorNativeUpgradeTest__factory.ts diff --git a/v2/types/factories/ZetaConnectorNative__factory.ts b/types/factories/ZetaConnectorNative__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnectorNative__factory.ts rename to types/factories/ZetaConnectorNative__factory.ts diff --git a/v2/types/factories/ZetaConnectorNonNativeUpgradeTest__factory.ts b/types/factories/ZetaConnectorNonNativeUpgradeTest__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnectorNonNativeUpgradeTest__factory.ts rename to types/factories/ZetaConnectorNonNativeUpgradeTest__factory.ts diff --git a/v2/types/factories/ZetaConnectorNonNative__factory.ts b/types/factories/ZetaConnectorNonNative__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnectorNonNative__factory.ts rename to types/factories/ZetaConnectorNonNative__factory.ts diff --git a/v2/types/factories/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts b/types/factories/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts rename to types/factories/ZetaConnectorZEVM.sol/ZetaConnectorZEVM__factory.ts diff --git a/v2/types/factories/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts b/types/factories/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts similarity index 100% rename from v2/types/factories/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts rename to types/factories/ZetaConnectorZEVM.sol/ZetaReceiver__factory.ts diff --git a/v2/types/factories/ZetaConnectorZEVM.sol/index.ts b/types/factories/ZetaConnectorZEVM.sol/index.ts similarity index 100% rename from v2/types/factories/ZetaConnectorZEVM.sol/index.ts rename to types/factories/ZetaConnectorZEVM.sol/index.ts diff --git a/v2/types/factories/ZetaErrors__factory.ts b/types/factories/ZetaErrors__factory.ts similarity index 100% rename from v2/types/factories/ZetaErrors__factory.ts rename to types/factories/ZetaErrors__factory.ts diff --git a/v2/types/factories/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts b/types/factories/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts similarity index 100% rename from v2/types/factories/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts rename to types/factories/ZetaInterfaces.sol/ZetaCommonErrors__factory.ts diff --git a/v2/types/factories/ZetaInterfaces.sol/ZetaConnector__factory.ts b/types/factories/ZetaInterfaces.sol/ZetaConnector__factory.ts similarity index 100% rename from v2/types/factories/ZetaInterfaces.sol/ZetaConnector__factory.ts rename to types/factories/ZetaInterfaces.sol/ZetaConnector__factory.ts diff --git a/v2/types/factories/ZetaInterfaces.sol/ZetaReceiver__factory.ts b/types/factories/ZetaInterfaces.sol/ZetaReceiver__factory.ts similarity index 100% rename from v2/types/factories/ZetaInterfaces.sol/ZetaReceiver__factory.ts rename to types/factories/ZetaInterfaces.sol/ZetaReceiver__factory.ts diff --git a/v2/types/factories/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts b/types/factories/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts similarity index 100% rename from v2/types/factories/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts rename to types/factories/ZetaInterfaces.sol/ZetaTokenConsumer__factory.ts diff --git a/v2/types/factories/ZetaInterfaces.sol/index.ts b/types/factories/ZetaInterfaces.sol/index.ts similarity index 100% rename from v2/types/factories/ZetaInterfaces.sol/index.ts rename to types/factories/ZetaInterfaces.sol/index.ts diff --git a/v2/types/factories/ZetaNonEthInterface__factory.ts b/types/factories/ZetaNonEthInterface__factory.ts similarity index 100% rename from v2/types/factories/ZetaNonEthInterface__factory.ts rename to types/factories/ZetaNonEthInterface__factory.ts diff --git a/v2/types/factories/contracts/index.ts b/types/factories/contracts/index.ts similarity index 100% rename from v2/types/factories/contracts/index.ts rename to types/factories/contracts/index.ts diff --git a/v2/types/factories/contracts/interfaces/IERC20__factory.ts b/types/factories/contracts/interfaces/IERC20__factory.ts similarity index 100% rename from v2/types/factories/contracts/interfaces/IERC20__factory.ts rename to types/factories/contracts/interfaces/IERC20__factory.ts diff --git a/v2/types/factories/contracts/interfaces/index.ts b/types/factories/contracts/interfaces/index.ts similarity index 100% rename from v2/types/factories/contracts/interfaces/index.ts rename to types/factories/contracts/interfaces/index.ts diff --git a/v2/types/factories/draft-IERC1822.sol/IERC1822Proxiable__factory.ts b/types/factories/draft-IERC1822.sol/IERC1822Proxiable__factory.ts similarity index 100% rename from v2/types/factories/draft-IERC1822.sol/IERC1822Proxiable__factory.ts rename to types/factories/draft-IERC1822.sol/IERC1822Proxiable__factory.ts diff --git a/v2/types/factories/draft-IERC1822.sol/index.ts b/types/factories/draft-IERC1822.sol/index.ts similarity index 100% rename from v2/types/factories/draft-IERC1822.sol/index.ts rename to types/factories/draft-IERC1822.sol/index.ts diff --git a/v2/types/factories/draft-IERC6093.sol/IERC1155Errors__factory.ts b/types/factories/draft-IERC6093.sol/IERC1155Errors__factory.ts similarity index 100% rename from v2/types/factories/draft-IERC6093.sol/IERC1155Errors__factory.ts rename to types/factories/draft-IERC6093.sol/IERC1155Errors__factory.ts diff --git a/v2/types/factories/draft-IERC6093.sol/IERC20Errors__factory.ts b/types/factories/draft-IERC6093.sol/IERC20Errors__factory.ts similarity index 100% rename from v2/types/factories/draft-IERC6093.sol/IERC20Errors__factory.ts rename to types/factories/draft-IERC6093.sol/IERC20Errors__factory.ts diff --git a/v2/types/factories/draft-IERC6093.sol/IERC721Errors__factory.ts b/types/factories/draft-IERC6093.sol/IERC721Errors__factory.ts similarity index 100% rename from v2/types/factories/draft-IERC6093.sol/IERC721Errors__factory.ts rename to types/factories/draft-IERC6093.sol/IERC721Errors__factory.ts diff --git a/v2/types/factories/draft-IERC6093.sol/index.ts b/types/factories/draft-IERC6093.sol/index.ts similarity index 100% rename from v2/types/factories/draft-IERC6093.sol/index.ts rename to types/factories/draft-IERC6093.sol/index.ts diff --git a/v2/types/factories/index.ts b/types/factories/index.ts similarity index 100% rename from v2/types/factories/index.ts rename to types/factories/index.ts diff --git a/v2/types/factories/interfaces/IERC20__factory.ts b/types/factories/interfaces/IERC20__factory.ts similarity index 100% rename from v2/types/factories/interfaces/IERC20__factory.ts rename to types/factories/interfaces/IERC20__factory.ts diff --git a/v2/types/factories/interfaces/index.ts b/types/factories/interfaces/index.ts similarity index 100% rename from v2/types/factories/interfaces/index.ts rename to types/factories/interfaces/index.ts diff --git a/v2/types/factories/introspection/IERC165__factory.ts b/types/factories/introspection/IERC165__factory.ts similarity index 100% rename from v2/types/factories/introspection/IERC165__factory.ts rename to types/factories/introspection/IERC165__factory.ts diff --git a/v2/types/factories/introspection/index.ts b/types/factories/introspection/index.ts similarity index 100% rename from v2/types/factories/introspection/index.ts rename to types/factories/introspection/index.ts diff --git a/v2/types/factories/legacy/Zeta.non-eth.sol/ZetaNonEth__factory.ts b/types/factories/legacy/Zeta.non-eth.sol/ZetaNonEth__factory.ts similarity index 100% rename from v2/types/factories/legacy/Zeta.non-eth.sol/ZetaNonEth__factory.ts rename to types/factories/legacy/Zeta.non-eth.sol/ZetaNonEth__factory.ts diff --git a/v2/types/factories/legacy/Zeta.non-eth.sol/index.ts b/types/factories/legacy/Zeta.non-eth.sol/index.ts similarity index 100% rename from v2/types/factories/legacy/Zeta.non-eth.sol/index.ts rename to types/factories/legacy/Zeta.non-eth.sol/index.ts diff --git a/v2/types/factories/legacy/index.ts b/types/factories/legacy/index.ts similarity index 100% rename from v2/types/factories/legacy/index.ts rename to types/factories/legacy/index.ts diff --git a/v2/types/factories/utils/Strings__factory.ts b/types/factories/utils/Strings__factory.ts similarity index 100% rename from v2/types/factories/utils/Strings__factory.ts rename to types/factories/utils/Strings__factory.ts diff --git a/v2/types/factories/utils/WZETA.sol/WETH9__factory.ts b/types/factories/utils/WZETA.sol/WETH9__factory.ts similarity index 100% rename from v2/types/factories/utils/WZETA.sol/WETH9__factory.ts rename to types/factories/utils/WZETA.sol/WETH9__factory.ts diff --git a/v2/types/factories/utils/WZETA.sol/index.ts b/types/factories/utils/WZETA.sol/index.ts similarity index 100% rename from v2/types/factories/utils/WZETA.sol/index.ts rename to types/factories/utils/WZETA.sol/index.ts diff --git a/v2/types/factories/utils/index.ts b/types/factories/utils/index.ts similarity index 100% rename from v2/types/factories/utils/index.ts rename to types/factories/utils/index.ts diff --git a/v2/types/index.ts b/types/index.ts similarity index 100% rename from v2/types/index.ts rename to types/index.ts diff --git a/v2/types/interfaces/IERC20.ts b/types/interfaces/IERC20.ts similarity index 100% rename from v2/types/interfaces/IERC20.ts rename to types/interfaces/IERC20.ts diff --git a/v2/types/interfaces/index.ts b/types/interfaces/index.ts similarity index 100% rename from v2/types/interfaces/index.ts rename to types/interfaces/index.ts diff --git a/v2/types/introspection/IERC165.ts b/types/introspection/IERC165.ts similarity index 100% rename from v2/types/introspection/IERC165.ts rename to types/introspection/IERC165.ts diff --git a/v2/types/introspection/index.ts b/types/introspection/index.ts similarity index 100% rename from v2/types/introspection/index.ts rename to types/introspection/index.ts diff --git a/v2/types/legacy/Zeta.non-eth.sol/ZetaNonEth.ts b/types/legacy/Zeta.non-eth.sol/ZetaNonEth.ts similarity index 100% rename from v2/types/legacy/Zeta.non-eth.sol/ZetaNonEth.ts rename to types/legacy/Zeta.non-eth.sol/ZetaNonEth.ts diff --git a/v2/types/legacy/Zeta.non-eth.sol/index.ts b/types/legacy/Zeta.non-eth.sol/index.ts similarity index 100% rename from v2/types/legacy/Zeta.non-eth.sol/index.ts rename to types/legacy/Zeta.non-eth.sol/index.ts diff --git a/v2/types/legacy/index.ts b/types/legacy/index.ts similarity index 100% rename from v2/types/legacy/index.ts rename to types/legacy/index.ts diff --git a/v2/types/utils/Strings.ts b/types/utils/Strings.ts similarity index 100% rename from v2/types/utils/Strings.ts rename to types/utils/Strings.ts diff --git a/v2/types/utils/WZETA.sol/WETH9.ts b/types/utils/WZETA.sol/WETH9.ts similarity index 100% rename from v2/types/utils/WZETA.sol/WETH9.ts rename to types/utils/WZETA.sol/WETH9.ts diff --git a/v2/types/utils/WZETA.sol/index.ts b/types/utils/WZETA.sol/index.ts similarity index 100% rename from v2/types/utils/WZETA.sol/index.ts rename to types/utils/WZETA.sol/index.ts diff --git a/v2/types/utils/index.ts b/types/utils/index.ts similarity index 100% rename from v2/types/utils/index.ts rename to types/utils/index.ts diff --git a/v2/.env.sample b/v2/.env.sample deleted file mode 100644 index b2b157fdb..000000000 --- a/v2/.env.sample +++ /dev/null @@ -1,22 +0,0 @@ -# This is sample on how .env should look like. Values given here are illustration and are expected if run with anvil locally and first private key. -# evm -TSS_ADDRESS=0x70997970C51812dc3A010C7d01b50e0d17dc79C8 -GATEWAY_ADMIN_ADDRESS_EVM=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -ERC20_CUSTODY_ADMIN_ADDRESS_EVM=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -ZETA_CONNECTOR_ADMIN_ADDRESS_EVM=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -GATEWAY_PROXY_EVM=0x9f21B726FCb84D8e92cdC678772590dce5347D0B -ZETA_ERC20_EVM=0x42928581Ba60cD97B65D873151dc063F3D0619f8 - -# zevm -GATEWAY_PROXY_ZEVM= -SYSTEM_CONTRACT= -GATEWAY_ADMIN_ADDRESS_ZEVM= -WZETA= - -# update for every zrc20 deployment -ZRC20_NAME= -ZRC20_SYMBOL= -ZRC20_DECIMALS= -ZRC20_CHAIN_ID= -ZRC20_COIN_TYPE= -ZRC20_GAS_LIMIT= \ No newline at end of file diff --git a/v2/docs/src/README.md b/v2/docs/src/README.md deleted file mode 100644 index 706a7a699..000000000 --- a/v2/docs/src/README.md +++ /dev/null @@ -1,68 +0,0 @@ -### ⚠️ Important Notice: V2 in Development - -We are currently developing Version 2 (V2) of our smart contract architecture. This new version will significantly enhance the developer experience for building Universal Apps. - -Developers can already begin testing the new interface by referring to [the V2 Localnet guide](https://github.com/zeta-chain/localnet?tab=readme-ov-file#experimenting-with-the-new-architecture). - -### Install dependencies - -```shell -$ yarn -$ forge soldeer update -``` - -### Build - -```shell -$ forge build -``` - -### Test - -```shell -$ forge test -``` - -### Format - -```shell -$ forge fmt -``` - -### Gas Snapshots - -```shell -$ forge snapshot -``` - -### Anvil - -```shell -$ anvil -``` - -### Deploy - -```shell -$ forge script script/.s.sol: --rpc-url --private-key -``` - -##### More detailed instructions - -To view detailed instructions on how to deploy the contracts, please refer to the [Deployment Guide](./scripts/deploy/readme.md). - -This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices. - -### Cast - -```shell -$ cast -``` - -### Help - -```shell -$ forge --help -$ anvil --help -$ cast --help -``` diff --git a/v2/yarn.lock b/yarn.lock similarity index 100% rename from v2/yarn.lock rename to yarn.lock From b4735503926e756cbedf8dc7c45192a61baffecc Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 10:34:05 +0100 Subject: [PATCH 5/7] actions --- ...{generated-files_v2.yaml => generated-files.yaml} | 8 ++++---- .github/workflows/{lint_v2.yaml => lint.yaml} | 8 ++++---- .../{publish-npm_v2.yaml => publish-npm.yaml} | 4 ++-- .github/workflows/{slither_v2.yaml => slither.yaml} | 12 ++++++------ .github/workflows/{test_v2.yaml => test.yaml} | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) rename .github/workflows/{generated-files_v2.yaml => generated-files.yaml} (93%) rename .github/workflows/{lint_v2.yaml => lint.yaml} (90%) rename .github/workflows/{publish-npm_v2.yaml => publish-npm.yaml} (95%) rename .github/workflows/{slither_v2.yaml => slither.yaml} (88%) rename .github/workflows/{test_v2.yaml => test.yaml} (92%) diff --git a/.github/workflows/generated-files_v2.yaml b/.github/workflows/generated-files.yaml similarity index 93% rename from .github/workflows/generated-files_v2.yaml rename to .github/workflows/generated-files.yaml index 078f2241c..efe4976ed 100644 --- a/.github/workflows/generated-files_v2.yaml +++ b/.github/workflows/generated-files.yaml @@ -1,16 +1,16 @@ -name: Generated Files are Updated (V2) +name: Generated Files are Updated on: push: branches: - main paths: - - "v2/**" + - "**" pull_request: branches: - "**" paths: - - "v2/**" + - "**" types: - synchronize - opened @@ -19,7 +19,7 @@ on: defaults: run: - working-directory: ./v2 + working-directory: . jobs: generate: diff --git a/.github/workflows/lint_v2.yaml b/.github/workflows/lint.yaml similarity index 90% rename from .github/workflows/lint_v2.yaml rename to .github/workflows/lint.yaml index 9e63300c3..fe8b894a0 100644 --- a/.github/workflows/lint_v2.yaml +++ b/.github/workflows/lint.yaml @@ -1,16 +1,16 @@ -name: Lint TS/JS/Sol (V2) +name: Lint TS/JS/Sol on: push: branches: - main paths: - - 'v2/**' + - '**' pull_request: branches: - "**" paths: - - 'v2/**' + - '**' types: - synchronize - opened @@ -19,7 +19,7 @@ on: defaults: run: - working-directory: ./v2 + working-directory: . jobs: lint: diff --git a/.github/workflows/publish-npm_v2.yaml b/.github/workflows/publish-npm.yaml similarity index 95% rename from .github/workflows/publish-npm_v2.yaml rename to .github/workflows/publish-npm.yaml index 27c851abf..062aacc47 100644 --- a/.github/workflows/publish-npm_v2.yaml +++ b/.github/workflows/publish-npm.yaml @@ -1,4 +1,4 @@ -name: Publish to NPM (V2) +name: Publish to NPM on: workflow_dispatch: @@ -9,7 +9,7 @@ on: defaults: run: - working-directory: ./v2 + working-directory: . jobs: publish: diff --git a/.github/workflows/slither_v2.yaml b/.github/workflows/slither.yaml similarity index 88% rename from .github/workflows/slither_v2.yaml rename to .github/workflows/slither.yaml index 731d4b666..c8558d467 100644 --- a/.github/workflows/slither_v2.yaml +++ b/.github/workflows/slither.yaml @@ -1,16 +1,16 @@ -name: Slither (V2) +name: Slither on: push: branches: - main paths: - - 'v2/**' + - '**' pull_request: branches: - "**" paths: - - 'v2/**' + - '**' types: - synchronize - opened @@ -19,7 +19,7 @@ on: defaults: run: - working-directory: ./v2 + working-directory: . jobs: slither: @@ -55,10 +55,10 @@ jobs: with: sarif: results.sarif node-version: "21.1.0" - slither-config: "v2/slither.config.json" + slither-config: "slither.config.json" solc-version: "0.8.26" fail-on: medium - target: "v2/" + target: "./" - name: Upload SARIF file uses: github/codeql-action/upload-sarif@v3 diff --git a/.github/workflows/test_v2.yaml b/.github/workflows/test.yaml similarity index 92% rename from .github/workflows/test_v2.yaml rename to .github/workflows/test.yaml index 815a8051f..2f5bdefe1 100644 --- a/.github/workflows/test_v2.yaml +++ b/.github/workflows/test.yaml @@ -1,16 +1,16 @@ -name: Test (V2) +name: Test on: push: branches: - main paths: - - 'v2/**' + - '**' pull_request: branches: - "**" paths: - - 'v2/**' + - '**' types: - synchronize - opened @@ -19,7 +19,7 @@ on: defaults: run: - working-directory: ./v2 + working-directory: . jobs: test: From f9978ec41b71901dc8ea3101a46943d848ae20db Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 10:36:30 +0100 Subject: [PATCH 6/7] remove other references --- .coderabbit.yaml | 12 ++++-------- .gitignore | 2 +- README.md | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.coderabbit.yaml b/.coderabbit.yaml index 89b108d35..bf468c528 100644 --- a/.coderabbit.yaml +++ b/.coderabbit.yaml @@ -1,13 +1,9 @@ reviews: path_filters: - - "!v1/pkg/**" - - "!v2/pkg/**" - - "!v1/typechain-types/**" - - "!v2/types/**" - - "!v1/docs/**" - - "!v2/docs/**" - - "!v1/data/**" - - "!v2/data/**" + - "!pkg/**" + - "!types/**" + - "!docs/**" + - "!data/**" path_instructions: - path: "contracts/**" instructions: >- diff --git a/.gitignore b/.gitignore index 9abb663a6..ad35869d5 100644 --- a/.gitignore +++ b/.gitignore @@ -37,7 +37,7 @@ crytic-export out cache_forge -v2/broadcast/*/31337 +broadcast/*/31337 dependencies/ diff --git a/README.md b/README.md index d3a7d2109..ed7d51b38 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Contracts of official protocol contracts deployed by the core ZetaChain team. ### Codebase -The protocol contracts V2 codebase is separated into two sections: +The protocol contracts codebase is separated into two sections: - `zevm`: contracts deployed on ZetaChain - `evm`: contracts deployed on EVM connected chains (Ethereum, Base, etc..) From 6b33e6fdfb53481fdb2c25ce78534b589c04972f Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 15 Jan 2025 10:47:07 +0100 Subject: [PATCH 7/7] readme format --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ed7d51b38..51ff1ac1f 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,12 @@ Contracts of official protocol contracts deployed by the core ZetaChain team. -### Learn more about ZetaChain +## Learn more about ZetaChain * Check our [website](https://www.zetachain.com/). * Read our [docs](https://docs.zetachain.com/). -### Codebase +## Codebase The protocol contracts codebase is separated into two sections: @@ -31,7 +31,7 @@ The protocol contracts codebase is separated into two sections: [Learn more about the Gateway contracts](https://www.zetachain.com/docs/developers/evm/gateway/) -### Usage +## Usage **Install dependencies** @@ -68,6 +68,6 @@ To view detailed instructions on how to deploy the contracts, please refer to th This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices. -### Community +## Community [X](https://x.com/zetablockchain) | [Discord](https://discord.com/invite/zetachain) | [Telegram](https://t.me/zetachainofficial) | [Website](https://zetachain.com) \ No newline at end of file