From ee9fce4298bfb8ea574dc9f64f5024baf594b036 Mon Sep 17 00:00:00 2001 From: imsk17 Date: Wed, 7 Aug 2024 13:19:54 +0530 Subject: [PATCH 1/6] chore(testnet): disable mx for now --- src/config.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/config.ts b/src/config.ts index ee8abdf..0943400 100644 --- a/src/config.ts +++ b/src/config.ts @@ -61,19 +61,19 @@ export const bridgeTestChains = [ restApiURL: "https://api.ghostnet.tzkt.io", rpcURL: "https://ghostnet.smartpy.io", }, - { - chainType: "multiversX", - chain: "MULTIVERSX", - chainID: "D", - contractAddress: - "erd1qqqqqqqqqqqqqpgqn5vhjcu3mrctgaj85zx2c5lpph32q408lwzqrl4vys", - decimals: 18, - elasticSearchURL: "https://devnet-index.multiversx.com", - gatewayURL: "https://devnet-gateway.multiversx.com", - intialFund: "50000000000000000", - nativeCoinSymbol: "EGLD", - lastBlock: 4757826, - }, + // { + // chainType: "multiversX", + // chain: "MULTIVERSX", + // chainID: "D", + // contractAddress: + // "erd1qqqqqqqqqqqqqpgqn5vhjcu3mrctgaj85zx2c5lpph32q408lwzqrl4vys", + // decimals: 18, + // elasticSearchURL: "https://devnet-index.multiversx.com", + // gatewayURL: "https://devnet-gateway.multiversx.com", + // intialFund: "50000000000000000", + // nativeCoinSymbol: "EGLD", + // lastBlock: 4757826, + // }, ] as const satisfies TChain[]; export const storageTestnetConfig: IEvmChainConfig = { From e427fae235b90673cb0e78d8dd5cb207834852a5 Mon Sep 17 00:00:00 2001 From: imsk17 Date: Wed, 7 Aug 2024 15:03:22 +0530 Subject: [PATCH 2/6] chore(contracts): update types --- package.json | 2 +- src/config.ts | 56 +- src/contractsTypes/evm/abi/bridgeStorage.ts | 714 ---- src/contractsTypes/evm/abi/erc1155Royality.ts | 582 ---- src/contractsTypes/evm/abi/erc20.ts | 333 -- src/contractsTypes/evm/abi/erc721Royality.ts | 621 ---- src/contractsTypes/evm/abi/evmBridgeABI.ts | 768 ----- src/contractsTypes/evm/abi/index.ts | 17 - src/contractsTypes/evm/abi/staking.ts | 121 - src/contractsTypes/evm/abi/tonBridgeABI.ts | 368 -- src/contractsTypes/evm/common.ts | 253 +- src/contractsTypes/evm/contracts/Bridge.ts | 25 +- .../evm/contracts/BridgeStorage.ts | 276 +- .../evm/contracts/ERC1155Royalty.ts | 140 +- .../evm/contracts/ERC20Staking.ts | 70 +- .../evm/contracts/ERC20Token.ts | 62 +- .../evm/contracts/ERC721Royalty.ts | 146 +- .../evm/contracts/NFTCollectionDeployer.ts | 60 +- .../evm/contracts/NFTStorageDeployer.ts | 38 +- .../evm/contracts/NFTStorageERC1155.ts | 68 +- .../evm/contracts/NFTStorageERC721.ts | 46 +- .../evm/contracts/hedera/HederaBridge.ts | 829 +++++ .../HederaNFT.sol/HederaNftDep.ts} | 126 +- .../contracts/hedera/HederaNFT.sol/index.ts | 4 + .../evm/contracts/hedera/HederaNFTClaim.ts | 315 ++ .../evm/contracts/hedera/HederaNFTStorage.ts | 336 ++ .../HederaNFTStorageDeployer.ts | 118 + .../hedera/HederaStorageDeployer.sol/index.ts | 4 + .../hedera/RoyaltyInfo.sol/ContractProxy.ts | 567 +++ .../contracts/hedera/RoyaltyInfo.sol/index.ts | 4 + .../evm/contracts/hedera/index.ts | 14 + .../hedera/interfaces/IERC721Royalty.ts | 142 + .../evm/contracts/hedera/interfaces/IHRC.ts | 94 + .../IHTSCompatibilityLayer.ts | 88 + .../IHTSCompatabilityLayer.sol/index.ts | 4 + .../contracts/hedera/interfaces/INFTClaim.ts | 162 + .../hedera/interfaces/INFTStorageDeployer.ts | 118 + .../hedera/interfaces/INFTStorageERC721.ts | 143 + .../evm/contracts/hedera/interfaces/index.ts | 10 + src/contractsTypes/evm/contracts/index.ts | 24 +- .../contracts/interfaces/IERC1155Royalty.ts | 50 +- .../contracts/interfaces/IERC721Royalty.ts | 46 +- .../interfaces/INFTCollectionDeployer.ts | 50 +- .../interfaces/INFTStorageDeployer.ts | 38 +- .../interfaces/INFTStorageERC1155.ts | 40 +- .../contracts/interfaces/INFTStorageERC721.ts | 40 +- .../evm/contracts/interfaces/index.ts | 12 +- .../@openzeppelin/contracts/access/index.ts | 2 +- .../@openzeppelin/contracts/index.ts | 8 +- .../IERC1155Errors__factory.ts | 2 +- .../IERC20Errors__factory.ts | 2 +- .../IERC721Errors__factory.ts | 2 +- .../interfaces/draft-IERC6093.sol/index.ts | 6 +- .../contracts/interfaces/index.ts | 6 +- .../ERC1155/IERC1155Receiver__factory.ts | 2 +- .../IERC1155MetadataURI__factory.ts | 4 +- .../token/ERC1155/extensions/index.ts | 2 +- .../contracts/token/ERC1155/index.ts | 10 +- .../ERC1155/utils/ERC1155Holder__factory.ts | 2 +- .../contracts/token/ERC1155/utils/index.ts | 2 +- .../extensions/IERC20Metadata__factory.ts | 2 +- .../contracts/token/ERC20/extensions/index.ts | 2 +- .../contracts/token/ERC20/index.ts | 6 +- .../token/ERC721/IERC721Receiver__factory.ts | 2 +- .../extensions/ERC721URIStorage__factory.ts | 2 +- .../extensions/IERC721Metadata__factory.ts | 2 +- .../token/ERC721/extensions/index.ts | 4 +- .../contracts/token/ERC721/index.ts | 10 +- .../ERC721/utils/ERC721Holder__factory.ts | 2 +- .../contracts/token/ERC721/utils/index.ts | 2 +- .../contracts/token/common/index.ts | 2 +- .../@openzeppelin/contracts/token/index.ts | 8 +- .../contracts/utils/Strings__factory.ts | 6 +- .../utils/cryptography/ECDSA__factory.ts | 6 +- .../contracts/utils/cryptography/index.ts | 2 +- .../@openzeppelin/contracts/utils/index.ts | 8 +- .../contracts/utils/introspection/index.ts | 4 +- .../contracts/utils/math/Math__factory.ts | 6 +- .../contracts/utils/math/index.ts | 2 +- .../evm/factories/@openzeppelin/index.ts | 2 +- .../contracts/BridgeStorage__factory.ts | 141 +- .../factories/contracts/Bridge__factory.ts | 319 +- .../contracts/ERC1155Royalty__factory.ts | 23 +- .../contracts/ERC20Staking__factory.ts | 39 +- .../contracts/ERC20Token__factory.ts | 12 +- .../contracts/ERC721Royalty__factory.ts | 23 +- .../factories/contracts/HederaNft__factory.ts | 565 --- .../NFTCollectionDeployer__factory.ts | 30 +- .../contracts/NFTStorageDeployer__factory.ts | 8 +- .../contracts/NFTStorageERC1155__factory.ts | 12 +- .../contracts/NFTStorageERC721__factory.ts | 12 +- .../contracts/hedera/HederaBridge__factory.ts | 882 +++++ .../HederaNFT.sol/HederaNftDep__factory.ts | 571 ++++ .../contracts/hedera/HederaNFT.sol/index.ts | 4 + .../hedera/HederaNFTClaim__factory.ts | 290 ++ .../hedera/HederaNFTStorage__factory.ts | 327 ++ .../HederaNFTStorageDeployer__factory.ts | 123 + .../hedera/HederaStorageDeployer.sol/index.ts | 4 + .../RoyaltyInfo.sol/ContractProxy__factory.ts | 585 ++++ .../contracts/hedera/RoyaltyInfo.sol/index.ts | 4 + .../evm/factories/contracts/hedera/index.ts | 10 + .../interfaces/IERC721Royalty__factory.ts | 106 + .../hedera/interfaces/IHRC__factory.ts | 48 + .../IHTSCompatibilityLayer__factory.ts | 48 + .../IHTSCompatabilityLayer.sol/index.ts | 4 + .../hedera/interfaces/INFTClaim__factory.ts | 116 + .../INFTStorageDeployer__factory.ts | 74 + .../interfaces/INFTStorageERC721__factory.ts | 82 + .../contracts/hedera/interfaces/index.ts | 9 + .../evm/factories/contracts/index.ts | 23 +- .../interfaces/IERC1155Royalty__factory.ts | 2 +- .../interfaces/IERC721Royalty__factory.ts | 6 +- .../INFTCollectionDeployer__factory.ts | 9 +- .../INFTStorageDeployer__factory.ts | 4 +- .../interfaces/INFTStorageERC1155__factory.ts | 2 +- .../interfaces/INFTStorageERC721__factory.ts | 2 +- .../factories/contracts/interfaces/index.ts | 12 +- src/contractsTypes/evm/factories/index.ts | 5 +- .../HederaTokenService__factory.ts | 141 + .../contracts/hts-precompile/IHRC__factory.ts | 48 + .../IHederaTokenService__factory.ts | 3042 +++++++++++++++++ .../hedera/contracts/hts-precompile/index.ts | 6 + .../factories/lib/hedera/contracts/index.ts | 4 + .../evm/factories/lib/hedera/index.ts | 4 + src/contractsTypes/evm/factories/lib/index.ts | 4 + src/contractsTypes/evm/hardhat.d.ts | 1848 +++++----- src/contractsTypes/evm/index.ts | 30 + .../hts-precompile/HederaTokenService.ts | 200 ++ .../hedera/contracts/hts-precompile/IHRC.ts | 94 + .../hts-precompile/IHederaTokenService.ts | 1560 +++++++++ .../hedera/contracts/hts-precompile/index.ts | 6 + .../evm/lib/hedera/contracts/index.ts | 5 + src/contractsTypes/evm/lib/hedera/index.ts | 5 + src/contractsTypes/evm/lib/index.ts | 5 + .../abi/multiversXBridgeABI.ts | 2 +- src/deps.ts | 12 + src/handler/cosmos/types/index.ts | 2 +- src/handler/evm/index.ts | 10 +- src/handler/evm/types/index.ts | 3 +- src/handler/evm/utils/addSelfAsValidator.ts | 18 + src/handler/icp/types/index.ts | 2 +- src/handler/multiversx/index.ts | 2 +- src/handler/multiversx/types/index.ts | 2 +- src/handler/secrets/types/index.ts | 2 +- src/handler/tezos/types/index.ts | 2 +- src/handler/ton/types/index.ts | 2 +- src/utils.ts | 2 +- 147 files changed, 13786 insertions(+), 6087 deletions(-) delete mode 100644 src/contractsTypes/evm/abi/bridgeStorage.ts delete mode 100644 src/contractsTypes/evm/abi/erc1155Royality.ts delete mode 100644 src/contractsTypes/evm/abi/erc20.ts delete mode 100644 src/contractsTypes/evm/abi/erc721Royality.ts delete mode 100644 src/contractsTypes/evm/abi/evmBridgeABI.ts delete mode 100644 src/contractsTypes/evm/abi/index.ts delete mode 100644 src/contractsTypes/evm/abi/staking.ts delete mode 100644 src/contractsTypes/evm/abi/tonBridgeABI.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/HederaBridge.ts rename src/contractsTypes/evm/contracts/{HederaNft.ts => hedera/HederaNFT.sol/HederaNftDep.ts} (86%) create mode 100644 src/contractsTypes/evm/contracts/hedera/HederaNFT.sol/index.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/HederaNFTClaim.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/HederaNFTStorage.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/index.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/ContractProxy.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/index.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/index.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/IERC721Royalty.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/IHRC.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/INFTClaim.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageDeployer.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageERC721.ts create mode 100644 src/contractsTypes/evm/contracts/hedera/interfaces/index.ts delete mode 100644 src/contractsTypes/evm/factories/contracts/HederaNft__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/HederaBridge__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/HederaNftDep__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/index.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/HederaNFTClaim__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/HederaNFTStorage__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/index.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/ContractProxy__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/index.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/index.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/IERC721Royalty__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHRC__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTClaim__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageDeployer__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageERC721__factory.ts create mode 100644 src/contractsTypes/evm/factories/contracts/hedera/interfaces/index.ts create mode 100644 src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/HederaTokenService__factory.ts create mode 100644 src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHRC__factory.ts create mode 100644 src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHederaTokenService__factory.ts create mode 100644 src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/index.ts create mode 100644 src/contractsTypes/evm/factories/lib/hedera/contracts/index.ts create mode 100644 src/contractsTypes/evm/factories/lib/hedera/index.ts create mode 100644 src/contractsTypes/evm/factories/lib/index.ts create mode 100644 src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/HederaTokenService.ts create mode 100644 src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHRC.ts create mode 100644 src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHederaTokenService.ts create mode 100644 src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/index.ts create mode 100644 src/contractsTypes/evm/lib/hedera/contracts/index.ts create mode 100644 src/contractsTypes/evm/lib/hedera/index.ts create mode 100644 src/contractsTypes/evm/lib/index.ts rename src/contractsTypes/{evm => multiversx}/abi/multiversXBridgeABI.ts (99%) diff --git a/package.json b/package.json index f1e607a..aec1757 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "license": "MIT", "scripts": { "build": "tsc", - "format": "npx @biomejs/biome format src/", + "format": "npx @biomejs/biome format src/ --write", "lint": "npx @biomejs/biome lint src/ --write", "postinstall": "lefthook install", "dev": "tsc && node dist/index.js" diff --git a/src/config.ts b/src/config.ts index 0943400..ad0928a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -11,7 +11,7 @@ export const bridgeTestChains = [ rpcURL: "https://bsc-testnet-rpc.publicnode.com", nativeCoinSymbol: "BNB", intialFund: "50000000000000000", - contractAddress: "0xA70D9c05EB97FeDF4EA6CD52Dc426E66C0959968", + contractAddress: "0x88d879721bfF6A8c14e8cFEd20b41508C054e486", chainType: "evm", lastBlock: 42367810, decimals: 18, @@ -22,7 +22,7 @@ export const bridgeTestChains = [ rpcURL: "https://rpc.api.moonbase.moonbeam.network", nativeCoinSymbol: "DEV", intialFund: "50000000000000000", - contractAddress: "0x2b4082b5cBe5958888d68985524939ec1c871007", + contractAddress: "0x6c7C46Ffc4A3560708bfddC14968AaBF5a25752B", chainType: "evm", lastBlock: 7970143, decimals: 18, @@ -33,34 +33,34 @@ export const bridgeTestChains = [ rpcURL: "https://testnet.hashio.io/api", nativeCoinSymbol: "HBAR", intialFund: "50000000000000000", - contractAddress: "0x5AaC11DDCf117A789f339ece3CBC23756985E554", + contractAddress: "0xE9cfB51Ea4DE533b7A2BC9ae8a89FB6debd1eFfF", chainType: "evm", lastBlock: 6959861, decimals: 18, blockChunks: 1000, }, - { - chain: "TON", - rpcURL: "https://testnet.toncenter.com/api/v2/jsonRPC", - chainType: "ton", - contractAddress: "kQCHrjSTU6W7XYUfJgwr_trmG3QL_llPJfPyXPmINYznrkh6", - decimals: 9, - intialFund: "100000000", - lastBlock: 24014875000001, - nativeCoinSymbol: "TON", - }, - { - blockChunks: 1000, - chain: "TEZOS", - chainType: "tezos", - contractAddress: "KT1UGfH2Hk2MVKt8ADqqkRqcGZussRnfpahV", - decimals: 9, - intialFund: "100000000", - lastBlock: 7259145, - nativeCoinSymbol: "TEZOS", - restApiURL: "https://api.ghostnet.tzkt.io", - rpcURL: "https://ghostnet.smartpy.io", - }, + // { + // chain: "TON", + // rpcURL: "https://testnet.toncenter.com/api/v2/jsonRPC", + // chainType: "ton", + // contractAddress: "kQCHrjSTU6W7XYUfJgwr_trmG3QL_llPJfPyXPmINYznrkh6", + // decimals: 9, + // intialFund: "100000000", + // lastBlock: 24014875000001, + // nativeCoinSymbol: "TON", + // }, + // { + // blockChunks: 1000, + // chain: "TEZOS", + // chainType: "tezos", + // contractAddress: "KT1UGfH2Hk2MVKt8ADqqkRqcGZussRnfpahV", + // decimals: 9, + // intialFund: "100000000", + // lastBlock: 7259145, + // nativeCoinSymbol: "TEZOS", + // restApiURL: "https://api.ghostnet.tzkt.io", + // rpcURL: "https://ghostnet.smartpy.io", + // }, // { // chainType: "multiversX", // chain: "MULTIVERSX", @@ -81,7 +81,7 @@ export const storageTestnetConfig: IEvmChainConfig = { rpcURL: "https://testnet.skalenodes.com/v1/juicy-low-small-testnet", nativeCoinSymbol: "sFUEL", intialFund: "0", - contractAddress: "0x04cAEd1763B2C121D92FcaEaB41BFfe3EAB57EFC", + contractAddress: "0xBAA31376C5CA464598d98C15f46d1E6C1b03A2a6", chainType: "evm", lastBlock: 2209753, decimals: 18, @@ -94,8 +94,8 @@ export const stakingTestChain: IStakingConfig = { coinSymbol: "DummyERC20", nativeCoinSymbol: "sFUEL", chainType: "evm", - coinAddress: "0x491f505AbD292372f7D9a8C6B12d3a8d3894C8b6", - contractAddress: "0x2b4082b5cBe5958888d68985524939ec1c871007", + coinAddress: "0x3e522f71ACA5Ec551Fd16f0476C9a35642CaDE5F", + contractAddress: "0x5270E33517c596Be4A3e4CB107a0Db078424BE9D", intialFund: "0", lastBlock: 2209753, decimals: 18, diff --git a/src/contractsTypes/evm/abi/bridgeStorage.ts b/src/contractsTypes/evm/abi/bridgeStorage.ts deleted file mode 100644 index 7903452..0000000 --- a/src/contractsTypes/evm/abi/bridgeStorage.ts +++ /dev/null @@ -1,714 +0,0 @@ -const bridgeStorageABI = [ - { - inputs: [ - { - internalType: 'address', - name: 'bootstrapValidator', - type: 'address', - }, - { - components: [ - { - internalType: 'string', - name: 'chain', - type: 'string', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - internalType: 'struct ChainFee[]', - name: 'bootstrapChainFee', - type: 'tuple[]', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'sourceChain', - type: 'string', - }, - { - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - internalType: 'address', - name: 'destinationUserAddress', - type: 'address', - }, - { - internalType: 'address', - name: 'sourceNftContractAddress', - type: 'address', - }, - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - internalType: 'uint256', - name: 'royalty', - type: 'uint256', - }, - { - internalType: 'address', - name: 'royaltyReceiver', - type: 'address', - }, - { - internalType: 'string', - name: 'metadata', - type: 'string', - }, - { - internalType: 'string', - name: 'transactionHash', - type: 'string', - }, - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - internalType: 'string', - name: 'nftType', - type: 'string', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - internalType: 'struct NftTransferDetails', - name: 'nftTransferDetails', - type: 'tuple', - }, - { - internalType: 'string', - name: 'signature', - type: 'string', - }, - ], - name: 'approveLockNft', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'stakerAddress', - type: 'address', - }, - { - internalType: 'string', - name: 'signature', - type: 'string', - }, - ], - name: 'approveStake', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'chainEpoch', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'chainFee', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'chainFeeVoted', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'chainFeeVotes', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: 'chain', - type: 'string', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - name: 'changeChainFee', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_validatorAddress', - type: 'address', - }, - { - internalType: 'bool', - name: '_status', - type: 'bool', - }, - ], - name: 'changeValidatorStatus', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: 'a', - type: 'string', - }, - { - internalType: 'string', - name: 'b', - type: 'string', - }, - ], - name: 'concatenate', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'pure', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: 'chain', - type: 'string', - }, - { - internalType: 'string', - name: 'txHash', - type: 'string', - }, - ], - name: 'getLockNftSignatures', - outputs: [ - { - components: [ - { - components: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'sourceChain', - type: 'string', - }, - { - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - internalType: 'address', - name: 'destinationUserAddress', - type: 'address', - }, - { - internalType: 'address', - name: 'sourceNftContractAddress', - type: 'address', - }, - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - internalType: 'uint256', - name: 'royalty', - type: 'uint256', - }, - { - internalType: 'address', - name: 'royaltyReceiver', - type: 'address', - }, - { - internalType: 'string', - name: 'metadata', - type: 'string', - }, - { - internalType: 'string', - name: 'transactionHash', - type: 'string', - }, - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - internalType: 'string', - name: 'nftType', - type: 'string', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - internalType: 'struct NftTransferDetails', - name: 'transferDetails', - type: 'tuple', - }, - { - internalType: 'string[]', - name: 'signatures', - type: 'string[]', - }, - ], - internalType: 'struct NftTransferWithSignatures', - name: '', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: 'chain', - type: 'string', - }, - { - internalType: 'string', - name: 'txHash', - type: 'string', - }, - ], - name: 'getLockNftSignaturesCount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'stakerAddress', - type: 'address', - }, - ], - name: 'getStakingSignatures', - outputs: [ - { - internalType: 'string[]', - name: '', - type: 'string[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'stakerAddress', - type: 'address', - }, - ], - name: 'getStakingSignaturesCount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'lockSignatures', - outputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'sourceChain', - type: 'string', - }, - { - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - internalType: 'address', - name: 'destinationUserAddress', - type: 'address', - }, - { - internalType: 'address', - name: 'sourceNftContractAddress', - type: 'address', - }, - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - internalType: 'uint256', - name: 'royalty', - type: 'uint256', - }, - { - internalType: 'address', - name: 'royaltyReceiver', - type: 'address', - }, - { - internalType: 'string', - name: 'metadata', - type: 'string', - }, - { - internalType: 'string', - name: 'transactionHash', - type: 'string', - }, - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - internalType: 'string', - name: 'nftType', - type: 'string', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - internalType: 'struct NftTransferDetails', - name: 'transferDetails', - type: 'tuple', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'stakingSignatures', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'usedSignatures', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'validatorCount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'validatorEpoch', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'bool', - name: '', - type: 'bool', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'validatorStatusChangeVotes', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - name: 'validatorVoted', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'validators', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export default bridgeStorageABI; diff --git a/src/contractsTypes/evm/abi/erc1155Royality.ts b/src/contractsTypes/evm/abi/erc1155Royality.ts deleted file mode 100644 index af9c1be..0000000 --- a/src/contractsTypes/evm/abi/erc1155Royality.ts +++ /dev/null @@ -1,582 +0,0 @@ -const erc1155RoyalityABI = [ - { - inputs: [], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'balance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'needed', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'ERC1155InsufficientBalance', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'approver', - type: 'address', - }, - ], - name: 'ERC1155InvalidApprover', - type: 'error', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'idsLength', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'valuesLength', - type: 'uint256', - }, - ], - name: 'ERC1155InvalidArrayLength', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - ], - name: 'ERC1155InvalidOperator', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'receiver', - type: 'address', - }, - ], - name: 'ERC1155InvalidReceiver', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - ], - name: 'ERC1155InvalidSender', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'ERC1155MissingApprovalForAll', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'OwnableInvalidOwner', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'OwnableUnauthorizedAccount', - type: 'error', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'account', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - indexed: false, - internalType: 'bool', - name: 'approved', - type: 'bool', - }, - ], - name: 'ApprovalForAll', - 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', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256[]', - name: 'ids', - type: 'uint256[]', - }, - { - indexed: false, - internalType: 'uint256[]', - name: 'values', - type: 'uint256[]', - }, - ], - name: 'TransferBatch', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'id', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - ], - name: 'TransferSingle', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'string', - name: 'value', - type: 'string', - }, - { - indexed: true, - internalType: 'uint256', - name: 'id', - type: 'uint256', - }, - ], - name: 'URI', - type: 'event', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256', - name: 'id', - type: 'uint256', - }, - ], - name: 'balanceOf', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address[]', - name: 'accounts', - type: 'address[]', - }, - { - internalType: 'uint256[]', - name: 'ids', - type: 'uint256[]', - }, - ], - name: 'balanceOfBatch', - outputs: [ - { - internalType: 'uint256[]', - name: '', - type: 'uint256[]', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - ], - name: 'isApprovedForAll', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - { - internalType: 'uint256', - name: 'id', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'royalty', - type: 'uint256', - }, - { - internalType: 'address', - name: 'royaltyReceiver', - type: 'address', - }, - { - internalType: 'string', - name: 'tokenURI', - type: 'string', - }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'salePrice', - type: 'uint256', - }, - ], - name: 'royaltyInfo', - outputs: [ - { - internalType: 'address', - name: 'receiver', - type: 'address', - }, - { - internalType: 'uint256', - name: 'royaltyAmount', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'from', - type: 'address', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256[]', - name: 'ids', - type: 'uint256[]', - }, - { - internalType: 'uint256[]', - name: 'values', - type: 'uint256[]', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'safeBatchTransferFrom', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'from', - type: 'address', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'id', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'safeTransferFrom', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - internalType: 'bool', - name: 'approved', - type: 'bool', - }, - ], - name: 'setApprovalForAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'newTokenURI', - type: 'string', - }, - ], - name: 'setTokenURI', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes4', - name: 'interfaceId', - type: 'bytes4', - }, - ], - name: 'supportsInterface', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'uri', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export default erc1155RoyalityABI; diff --git a/src/contractsTypes/evm/abi/erc20.ts b/src/contractsTypes/evm/abi/erc20.ts deleted file mode 100644 index 15bb6b4..0000000 --- a/src/contractsTypes/evm/abi/erc20.ts +++ /dev/null @@ -1,333 +0,0 @@ -const erc20ABI = [ - { - inputs: [ - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - internalType: 'uint256', - name: 'initialSupply', - type: 'uint256', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'allowance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'needed', - type: 'uint256', - }, - ], - name: 'ERC20InsufficientAllowance', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'balance', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'needed', - type: 'uint256', - }, - ], - name: 'ERC20InsufficientBalance', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'approver', - type: 'address', - }, - ], - name: 'ERC20InvalidApprover', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'receiver', - type: 'address', - }, - ], - name: 'ERC20InvalidReceiver', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - ], - name: 'ERC20InvalidSender', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - }, - ], - name: 'ERC20InvalidSpender', - 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: '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: '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: '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', - }, -]; - -export default erc20ABI; diff --git a/src/contractsTypes/evm/abi/erc721Royality.ts b/src/contractsTypes/evm/abi/erc721Royality.ts deleted file mode 100644 index 666ce4a..0000000 --- a/src/contractsTypes/evm/abi/erc721Royality.ts +++ /dev/null @@ -1,621 +0,0 @@ -const erc721RoyalityABI = [ - { - inputs: [ - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'ERC721IncorrectOwner', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'ERC721InsufficientApproval', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'approver', - type: 'address', - }, - ], - name: 'ERC721InvalidApprover', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - ], - name: 'ERC721InvalidOperator', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'ERC721InvalidOwner', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'receiver', - type: 'address', - }, - ], - name: 'ERC721InvalidReceiver', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - }, - ], - name: 'ERC721InvalidSender', - type: 'error', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'ERC721NonexistentToken', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - ], - name: 'OwnableInvalidOwner', - type: 'error', - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - }, - ], - name: 'OwnableUnauthorizedAccount', - type: 'error', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'approved', - type: 'address', - }, - { - indexed: true, - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'Approval', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - indexed: false, - internalType: 'bool', - name: 'approved', - type: 'bool', - }, - ], - name: 'ApprovalForAll', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_fromTokenId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'uint256', - name: '_toTokenId', - type: 'uint256', - }, - ], - name: 'BatchMetadataUpdate', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: '_tokenId', - type: 'uint256', - }, - ], - name: 'MetadataUpdate', - 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', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'address', - name: 'from', - type: 'address', - }, - { - indexed: true, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: true, - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'Transfer', - type: 'event', - }, - { - inputs: [ - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [], - 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: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'getApproved', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - }, - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - ], - name: 'isApprovedForAll', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'royalty', - type: 'uint256', - }, - { - internalType: 'address', - name: 'royalityReciever', - type: 'address', - }, - { - internalType: 'string', - name: 'tokenURI', - type: 'string', - }, - ], - name: 'mint', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'name', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'owner', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'ownerOf', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'renounceOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'uint256', - name: 'salePrice', - type: 'uint256', - }, - ], - name: 'royaltyInfo', - outputs: [ - { - internalType: 'address', - name: 'receiver', - type: 'address', - }, - { - internalType: 'uint256', - name: 'royaltyAmount', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'from', - type: 'address', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'safeTransferFrom', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'from', - type: 'address', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - }, - ], - name: 'safeTransferFrom', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'operator', - type: 'address', - }, - { - internalType: 'bool', - name: 'approved', - type: 'bool', - }, - ], - name: 'setApprovalForAll', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes4', - name: 'interfaceId', - type: 'bytes4', - }, - ], - name: 'supportsInterface', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'symbol', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'tokenURI', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'from', - type: 'address', - }, - { - internalType: 'address', - name: 'to', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, -]; - -export default erc721RoyalityABI; diff --git a/src/contractsTypes/evm/abi/evmBridgeABI.ts b/src/contractsTypes/evm/abi/evmBridgeABI.ts deleted file mode 100644 index 50a8311..0000000 --- a/src/contractsTypes/evm/abi/evmBridgeABI.ts +++ /dev/null @@ -1,768 +0,0 @@ -const evmBridgeABI = [ - { - inputs: [ - { - internalType: 'address[]', - name: '_validators', - type: 'address[]', - }, - { - internalType: 'string', - name: '_chainType', - type: 'string', - }, - { - internalType: 'address', - name: '_collectionDeployer', - type: 'address', - }, - { - internalType: 'address', - name: '_storageDeployer', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - inputs: [], - name: 'ECDSAInvalidSignature', - type: 'error', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'length', - type: 'uint256', - }, - ], - name: 'ECDSAInvalidSignatureLength', - type: 'error', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - }, - ], - name: 'ECDSAInvalidSignatureS', - type: 'error', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_validator', - type: 'address', - }, - ], - name: 'AddNewValidator', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'string', - name: 'sourceChain', - type: 'string', - }, - { - indexed: false, - internalType: 'string', - name: 'transactionHash', - type: 'string', - }, - ], - name: 'Claimed', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - indexed: false, - internalType: 'string', - name: 'destinationUserAddress', - type: 'string', - }, - { - indexed: false, - internalType: 'string', - name: 'sourceNftContractAddress', - type: 'string', - }, - { - indexed: false, - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - indexed: false, - internalType: 'string', - name: 'nftType', - type: 'string', - }, - { - indexed: false, - internalType: 'string', - name: 'sourceChain', - type: 'string', - }, - ], - name: 'Locked', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: 'bytes32', - name: 'hashValue', - type: 'bytes32', - }, - { - indexed: false, - internalType: 'bytes[]', - name: '', - type: 'bytes[]', - }, - ], - name: 'LogHash', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: '_validator', - type: 'address', - }, - ], - name: 'RewardValidator', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'address', - name: 'contractAddr', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - ], - name: 'UnLock1155', - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'address', - name: 'to', - type: 'address', - }, - { - indexed: false, - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - indexed: false, - internalType: 'address', - name: 'contractAddr', - type: 'address', - }, - ], - name: 'UnLock721', - type: 'event', - }, - { - inputs: [ - { - internalType: 'address', - name: '_validator', - type: 'address', - }, - { - components: [ - { - internalType: 'string', - name: 'signerAddress', - type: 'string', - }, - { - internalType: 'bytes', - name: 'signature', - type: 'bytes', - }, - ], - internalType: 'struct SignerAndSignature[]', - name: 'signatures', - type: 'tuple[]', - }, - ], - name: 'addValidator', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'sourceChain', - type: 'string', - }, - { - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - internalType: 'address', - name: 'destinationUserAddress', - type: 'address', - }, - { - internalType: 'string', - name: 'sourceNftContractAddress', - type: 'string', - }, - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - internalType: 'uint256', - name: 'royalty', - type: 'uint256', - }, - { - internalType: 'address', - name: 'royaltyReceiver', - type: 'address', - }, - { - internalType: 'string', - name: 'metadata', - type: 'string', - }, - { - internalType: 'string', - name: 'transactionHash', - type: 'string', - }, - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - internalType: 'string', - name: 'nftType', - type: 'string', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - internalType: 'struct Bridge.ClaimData', - name: 'data', - type: 'tuple', - }, - { - internalType: 'bytes[]', - name: 'signatures', - type: 'bytes[]', - }, - ], - name: 'claimNFT1155', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'sourceChain', - type: 'string', - }, - { - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - internalType: 'address', - name: 'destinationUserAddress', - type: 'address', - }, - { - internalType: 'string', - name: 'sourceNftContractAddress', - type: 'string', - }, - { - internalType: 'string', - name: 'name', - type: 'string', - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - }, - { - internalType: 'uint256', - name: 'royalty', - type: 'uint256', - }, - { - internalType: 'address', - name: 'royaltyReceiver', - type: 'address', - }, - { - internalType: 'string', - name: 'metadata', - type: 'string', - }, - { - internalType: 'string', - name: 'transactionHash', - type: 'string', - }, - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - { - internalType: 'string', - name: 'nftType', - type: 'string', - }, - { - internalType: 'uint256', - name: 'fee', - type: 'uint256', - }, - ], - internalType: 'struct Bridge.ClaimData', - name: 'data', - type: 'tuple', - }, - { - internalType: 'bytes[]', - name: 'signatures', - type: 'bytes[]', - }, - ], - name: 'claimNFT721', - outputs: [], - stateMutability: 'payable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '_validator', - type: 'address', - }, - { - internalType: 'bytes[]', - name: 'signatures', - type: 'bytes[]', - }, - ], - name: 'claimValidatorRewards', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'collectionDeployer', - outputs: [ - { - internalType: 'contract INFTCollectionDeployer', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'duplicateStorageMapping1155', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'duplicateStorageMapping721', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'duplicateToOriginalMapping', - outputs: [ - { - internalType: 'string', - name: 'chain', - type: 'string', - }, - { - internalType: 'string', - name: 'contractAddress', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - internalType: 'string', - name: 'destinationUserAddress', - type: 'string', - }, - { - internalType: 'address', - name: 'sourceNftContractAddress', - type: 'address', - }, - { - internalType: 'uint256', - name: 'tokenAmount', - type: 'uint256', - }, - ], - name: 'lock1155', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - { - internalType: 'string', - name: 'destinationChain', - type: 'string', - }, - { - internalType: 'string', - name: 'destinationUserAddress', - type: 'string', - }, - { - internalType: 'address', - name: 'sourceNftContractAddress', - type: 'address', - }, - ], - name: 'lock721', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'originalStorageMapping1155', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'originalStorageMapping721', - outputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - name: 'originalToDuplicateMapping', - outputs: [ - { - internalType: 'string', - name: 'chain', - type: 'string', - }, - { - internalType: 'address', - name: 'contractAddress', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'selfChain', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'storageDeployer', - outputs: [ - { - internalType: 'contract INFTStorageDeployer', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'bytes32', - name: '', - type: 'bytes32', - }, - ], - name: 'uniqueIdentifier', - outputs: [ - { - internalType: 'bool', - name: '', - type: 'bool', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'validators', - outputs: [ - { - internalType: 'bool', - name: 'added', - type: 'bool', - }, - { - internalType: 'uint256', - name: 'pendingReward', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [], - name: 'validatorsCount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - stateMutability: 'payable', - type: 'receive', - }, -]; - -export default evmBridgeABI; diff --git a/src/contractsTypes/evm/abi/index.ts b/src/contractsTypes/evm/abi/index.ts deleted file mode 100644 index 2024e83..0000000 --- a/src/contractsTypes/evm/abi/index.ts +++ /dev/null @@ -1,17 +0,0 @@ -import erc20ABI from './erc20'; -import stakingABI from './staking'; -import bridgeStorageABI from './bridgeStorage'; -import evmBridgeABI from './evmBridgeABI'; -import erc1155RoyalityABI from './erc1155Royality'; -import erc721RoyalityABI from './erc721Royality'; -import multiversXBridgeABI from './multiversXBridgeABI'; - -export { - erc20ABI, - stakingABI, - bridgeStorageABI, - evmBridgeABI, - erc1155RoyalityABI, - erc721RoyalityABI, - multiversXBridgeABI, -}; diff --git a/src/contractsTypes/evm/abi/staking.ts b/src/contractsTypes/evm/abi/staking.ts deleted file mode 100644 index 0d273de..0000000 --- a/src/contractsTypes/evm/abi/staking.ts +++ /dev/null @@ -1,121 +0,0 @@ -const stakingABI = [ - { - inputs: [ - { - internalType: 'uint256', - name: '_stakingAmount', - type: 'uint256', - }, - { - internalType: 'address', - name: '_ERC20Token', - type: 'address', - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: 'uint256', - name: 'amount', - type: 'uint256', - }, - { - components: [ - { - internalType: 'string', - name: 'validatorAddress', - type: 'string', - }, - { - internalType: 'string', - name: 'chainType', - type: 'string', - }, - ], - indexed: false, - internalType: 'struct ValidatorAddressAndChainType[]', - name: 'validatorAddressAndChainType', - type: 'tuple[]', - }, - ], - name: 'Staked', - type: 'event', - }, - { - inputs: [], - name: 'ERC20Token', - outputs: [ - { - internalType: 'contract IERC20', - name: '', - type: 'address', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - components: [ - { - internalType: 'string', - name: 'validatorAddress', - type: 'string', - }, - { - internalType: 'string', - name: 'chainType', - type: 'string', - }, - ], - internalType: 'struct ValidatorAddressAndChainType[]', - name: '_validatorAddressAndChainType', - type: 'tuple[]', - }, - ], - name: 'stakeERC20', - outputs: [], - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - name: 'stakingAmount', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, - { - inputs: [ - { - internalType: 'address', - name: '', - type: 'address', - }, - ], - name: 'stakingBalances', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - }, - ], - stateMutability: 'view', - type: 'function', - }, -]; - -export default stakingABI; diff --git a/src/contractsTypes/evm/abi/tonBridgeABI.ts b/src/contractsTypes/evm/abi/tonBridgeABI.ts deleted file mode 100644 index 4217b34..0000000 --- a/src/contractsTypes/evm/abi/tonBridgeABI.ts +++ /dev/null @@ -1,368 +0,0 @@ -const tonBridgeABI = { - name: 'Bridge', - types: [ - { - name: 'StateInit', - header: null, - fields: [ - { - name: 'code', - type: { - kind: 'simple', - type: 'cell', - optional: false, - }, - }, - { - name: 'data', - type: { - kind: 'simple', - type: 'cell', - optional: false, - }, - }, - ], - }, - { - name: 'Context', - header: null, - fields: [ - { - name: 'bounced', - type: { - kind: 'simple', - type: 'bool', - optional: false, - }, - }, - { - name: 'sender', - type: { - kind: 'simple', - type: 'address', - optional: false, - }, - }, - { - name: 'value', - type: { - kind: 'simple', - type: 'int', - optional: false, - format: 257, - }, - }, - { - name: 'raw', - type: { - kind: 'simple', - type: 'slice', - optional: false, - }, - }, - ], - }, - { - name: 'SendParameters', - header: null, - fields: [ - { - name: 'bounce', - type: { kind: 'simple', type: 'bool', optional: false }, - }, - { - name: 'to', - type: { - kind: 'simple', - type: 'address', - optional: false, - }, - }, - { - name: 'value', - type: { - kind: 'simple', - type: 'int', - optional: false, - format: 257, - }, - }, - { - name: 'mode', - type: { - kind: 'simple', - type: 'int', - optional: false, - format: 257, - }, - }, - { - name: 'body', - type: { kind: 'simple', type: 'cell', optional: true }, - }, - { - name: 'code', - type: { kind: 'simple', type: 'cell', optional: true }, - }, - { - name: 'data', - type: { kind: 'simple', type: 'cell', optional: true }, - }, - ], - }, - { - name: 'Deploy', - header: 2490013878, - fields: [ - { - name: 'queryId', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 64, - }, - }, - ], - }, - { - name: 'DeployOk', - header: 2952335191, - fields: [ - { - name: 'queryId', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 64, - }, - }, - ], - }, - { - name: 'FactoryDeploy', - header: 1829761339, - fields: [ - { - name: 'queryId', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 64, - }, - }, - { - name: 'cashback', - type: { kind: 'simple', type: 'address', optional: false }, - }, - ], - }, - { - name: 'Validator', - header: null, - fields: [ - { - name: 'added', - type: { kind: 'simple', type: 'bool', optional: false }, - }, - { - name: 'pendingRewards', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 'coins', - }, - }, - ], - }, - { - name: 'Sig', - header: null, - fields: [ - { - name: 'signature', - type: { kind: 'simple', type: 'slice', optional: false }, - }, - { - name: 'key', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 256, - }, - }, - ], - }, - { - name: 'AddValidator', - header: 630696568, - fields: [ - { - name: 'newValidatorPublicKey', - type: { - kind: 'simple', - type: 'int', - optional: false, - format: 257, - }, - }, - { - name: 'sigs', - type: { - kind: 'dict', - key: 'int', - value: 'Sig', - valueFormat: 'ref', - }, - }, - { - name: 'len', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 256, - }, - }, - ], - }, - { - name: 'Transfer', - header: null, - fields: [ - { - name: 'seqno', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 32, - }, - }, - { - name: 'mode', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 8, - }, - }, - { - name: 'to', - type: { kind: 'simple', type: 'address', optional: false }, - }, - { - name: 'amount', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 'coins', - }, - }, - { - name: 'body', - type: { kind: 'simple', type: 'cell', optional: true }, - }, - ], - }, - { - name: 'TransferMessage', - header: 123, - fields: [ - { - name: 'signature', - type: { kind: 'simple', type: 'slice', optional: false }, - }, - { - name: 'transfer', - type: { kind: 'simple', type: 'Transfer', optional: false }, - }, - { - name: 'key', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 256, - }, - }, - ], - }, - { - name: 'StakeEvent', - header: 2917934626, - fields: [ - { - name: 'amount', - type: { - kind: 'simple', - type: 'uint', - optional: false, - format: 'coins', - }, - }, - ], - }, - ], - receivers: [ - { - receiver: 'internal', - message: { - kind: 'text', - text: 'Deploy', - }, - }, - { - receiver: 'internal', - message: { kind: 'typed', type: 'AddValidator' }, - }, - { - receiver: 'internal', - message: { kind: 'typed', type: 'TransferMessage' }, - }, - ], - getters: [], - errors: { - '2': { message: 'Stack undeflow' }, - '3': { message: 'Stack overflow' }, - '4': { message: 'Integer overflow' }, - '5': { message: 'Integer out of expected range' }, - '6': { message: 'Invalid opcode' }, - '7': { message: 'Type check error' }, - '8': { message: 'Cell overflow' }, - '9': { message: 'Cell underflow' }, - '10': { message: 'Dictionary error' }, - '13': { message: 'Out of gas error' }, - '32': { message: 'Method ID not found' }, - '34': { message: 'Action is invalid or not supported' }, - '37': { message: 'Not enough TON' }, - '38': { message: 'Not enough extra-currencies' }, - '128': { message: 'Null reference exception' }, - '129': { message: 'Invalid serialization prefix' }, - '130': { message: 'Invalid incoming message' }, - '131': { message: 'Constraints error' }, - '132': { message: 'Access denied' }, - '133': { message: 'Contract stopped' }, - '134': { message: 'Invalid argument' }, - '135': { message: 'Code of a contract was not found' }, - '136': { message: 'Invalid address' }, - '137': { - message: 'Masterchain support is not enabled for this contract', - }, - '48401': { message: 'Invalid signature' }, - }, - interfaces: [ - 'org.ton.introspection.v0', - 'org.ton.abi.ipfs.v0', - 'org.ton.deploy.lazy.v0', - 'org.ton.chain.workchain.v0', - ], -}; - -export default tonBridgeABI; diff --git a/src/contractsTypes/evm/common.ts b/src/contractsTypes/evm/common.ts index d974f75..56b5f21 100644 --- a/src/contractsTypes/evm/common.ts +++ b/src/contractsTypes/evm/common.ts @@ -2,131 +2,130 @@ /* tslint:disable */ /* eslint-disable */ import type { - FunctionFragment, - Typed, - EventFragment, - ContractTransaction, - ContractTransactionResponse, - DeferredTopicFilter, - EventLog, - TransactionRequest, - LogDescription, - } from "ethers"; - - export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> - extends DeferredTopicFilter {} - - export interface TypedContractEvent< - InputTuple extends Array = any, - OutputTuple extends Array = any, - OutputObject = any - > { - (...args: Partial): TypedDeferredTopicFilter< - TypedContractEvent - >; - name: string; - fragment: EventFragment; - getFragment(...args: Partial): EventFragment; - } - - type __TypechainAOutputTuple = T extends TypedContractEvent< - infer _U, - infer W - > - ? W - : never; - type __TypechainOutputObject = T extends TypedContractEvent< - infer _U, - infer _W, - infer V - > - ? V - : never; - - export interface TypedEventLog - extends Omit { - args: __TypechainAOutputTuple & __TypechainOutputObject; - } - - export interface TypedLogDescription - extends Omit { - args: __TypechainAOutputTuple & __TypechainOutputObject; - } - - export type TypedListener = ( - ...listenerArg: [ - ...__TypechainAOutputTuple, - TypedEventLog, - ...undefined[] - ] - ) => void; - - 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 StateMutability = "nonpayable" | "payable" | "view"; - - export type BaseOverrides = Omit; - export type NonPayableOverrides = Omit< - BaseOverrides, - "value" | "blockTag" | "enableCcipRead" + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription, +} from "ethers"; + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + (...args: Partial): TypedDeferredTopicFilter< + TypedContractEvent >; - export type PayableOverrides = Omit< - BaseOverrides, - "blockTag" | "enableCcipRead" - >; - export type ViewOverrides = Omit; - export type Overrides = S extends "nonpayable" - ? NonPayableOverrides - : S extends "payable" - ? PayableOverrides - : ViewOverrides; - - export type PostfixOverrides, S extends StateMutability> = - | A - | [...A, Overrides]; - export type ContractMethodArgs< - A extends Array, - S extends StateMutability - > = PostfixOverrides<{ [I in keyof A]-?: A[I] | Typed }, S>; - - export type DefaultReturnType = R extends Array ? R[0] : R; - - // export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { - export interface TypedContractMethod< - A extends Array = Array, - R = any, - S extends StateMutability = "payable" - > { - (...args: ContractMethodArgs): S extends "view" - ? Promise> - : Promise; - - name: string; - - fragment: FunctionFragment; - - getFragment(...args: ContractMethodArgs): FunctionFragment; - - populateTransaction( - ...args: ContractMethodArgs - ): Promise; - staticCall( - ...args: ContractMethodArgs - ): Promise>; - send(...args: ContractMethodArgs): Promise; - estimateGas(...args: ContractMethodArgs): Promise; - staticCallResult(...args: ContractMethodArgs): Promise; - } - \ No newline at end of file + name: string; + fragment: EventFragment; + getFragment(...args: Partial): EventFragment; +} + +type __TypechainAOutputTuple = T extends TypedContractEvent< + infer _U, + infer W +> + ? W + : never; +type __TypechainOutputObject = T extends TypedContractEvent< + infer _U, + infer _W, + infer V +> + ? V + : never; + +export interface TypedEventLog + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject; +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject; +} + +export type TypedListener = ( + ...listenerArg: [ + ...__TypechainAOutputTuple, + TypedEventLog, + ...undefined[] + ] +) => void; + +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 StateMutability = "nonpayable" | "payable" | "view"; + +export type BaseOverrides = Omit; +export type NonPayableOverrides = Omit< + BaseOverrides, + "value" | "blockTag" | "enableCcipRead" +>; +export type PayableOverrides = Omit< + BaseOverrides, + "blockTag" | "enableCcipRead" +>; +export type ViewOverrides = Omit; +export type Overrides = S extends "nonpayable" + ? NonPayableOverrides + : S extends "payable" + ? PayableOverrides + : ViewOverrides; + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides]; +export type ContractMethodArgs< + A extends Array, + S extends StateMutability +> = PostfixOverrides<{ [I in keyof A]-?: A[I] | Typed }, S>; + +export type DefaultReturnType = R extends Array ? R[0] : R; + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = "payable" +> { + (...args: ContractMethodArgs): S extends "view" + ? Promise> + : Promise; + + name: string; + + fragment: FunctionFragment; + + getFragment(...args: ContractMethodArgs): FunctionFragment; + + populateTransaction( + ...args: ContractMethodArgs + ): Promise; + staticCall( + ...args: ContractMethodArgs + ): Promise>; + send(...args: ContractMethodArgs): Promise; + estimateGas(...args: ContractMethodArgs): Promise; + staticCallResult(...args: ContractMethodArgs): Promise; +} diff --git a/src/contractsTypes/evm/contracts/Bridge.ts b/src/contractsTypes/evm/contracts/Bridge.ts index e690804..13f1831 100644 --- a/src/contractsTypes/evm/contracts/Bridge.ts +++ b/src/contractsTypes/evm/contracts/Bridge.ts @@ -167,11 +167,11 @@ export interface BridgeInterface extends Interface { ): string; encodeFunctionData( functionFragment: "lock1155", - values: [BigNumberish, string, string, AddressLike, BigNumberish, string] + values: [BigNumberish, string, string, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "lock721", - values: [BigNumberish, string, string, AddressLike, string] + values: [BigNumberish, string, string, AddressLike] ): string; encodeFunctionData( functionFragment: "originalStorageMapping1155", @@ -364,8 +364,7 @@ export namespace LockedEvent { sourceNftContractAddress: string, tokenAmount: BigNumberish, nftType: string, - sourceChain: string, - metaDataUri: string + sourceChain: string ]; export type OutputTuple = [ tokenId: bigint, @@ -374,8 +373,7 @@ export namespace LockedEvent { sourceNftContractAddress: string, tokenAmount: bigint, nftType: string, - sourceChain: string, - metaDataUri: string + sourceChain: string ]; export interface OutputObject { tokenId: bigint; @@ -385,7 +383,6 @@ export namespace LockedEvent { tokenAmount: bigint; nftType: string; sourceChain: string; - metaDataUri: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; @@ -566,8 +563,7 @@ export interface Bridge extends BaseContract { destinationChain: string, destinationUserAddress: string, sourceNftContractAddress: AddressLike, - tokenAmount: BigNumberish, - metaDataUri: string + tokenAmount: BigNumberish ], [void], "nonpayable" @@ -578,8 +574,7 @@ export interface Bridge extends BaseContract { tokenId: BigNumberish, destinationChain: string, destinationUserAddress: string, - sourceNftContractAddress: AddressLike, - metaDataUri: string + sourceNftContractAddress: AddressLike ], [void], "nonpayable" @@ -679,8 +674,7 @@ export interface Bridge extends BaseContract { destinationChain: string, destinationUserAddress: string, sourceNftContractAddress: AddressLike, - tokenAmount: BigNumberish, - metaDataUri: string + tokenAmount: BigNumberish ], [void], "nonpayable" @@ -692,8 +686,7 @@ export interface Bridge extends BaseContract { tokenId: BigNumberish, destinationChain: string, destinationUserAddress: string, - sourceNftContractAddress: AddressLike, - metaDataUri: string + sourceNftContractAddress: AddressLike ], [void], "nonpayable" @@ -840,7 +833,7 @@ export interface Bridge extends BaseContract { Claimed721Event.OutputObject >; - "Locked(uint256,string,string,string,uint256,string,string,string)": TypedContractEvent< + "Locked(uint256,string,string,string,uint256,string,string)": TypedContractEvent< LockedEvent.InputTuple, LockedEvent.OutputTuple, LockedEvent.OutputObject diff --git a/src/contractsTypes/evm/contracts/BridgeStorage.ts b/src/contractsTypes/evm/contracts/BridgeStorage.ts index e05af25..84b2861 100644 --- a/src/contractsTypes/evm/contracts/BridgeStorage.ts +++ b/src/contractsTypes/evm/contracts/BridgeStorage.ts @@ -30,7 +30,7 @@ export type ChainFeeStruct = { export type ChainFeeStructOutput = [ chain: string, fee: bigint, - royaltyReceiver: string, + royaltyReceiver: string ] & { chain: string; fee: bigint; royaltyReceiver: string }; export type SignerAndSignatureStruct = { @@ -40,7 +40,7 @@ export type SignerAndSignatureStruct = { export type SignerAndSignatureStructOutput = [ signerAddress: string, - signature: string, + signature: string ] & { signerAddress: string; signature: string }; export type ValidatorAddressWithSignerAndSignatureStruct = { @@ -50,7 +50,7 @@ export type ValidatorAddressWithSignerAndSignatureStruct = { export type ValidatorAddressWithSignerAndSignatureStructOutput = [ validatorAddress: string, - signerAndSignature: SignerAndSignatureStructOutput, + signerAndSignature: SignerAndSignatureStructOutput ] & { validatorAddress: string; signerAndSignature: SignerAndSignatureStructOutput; @@ -61,6 +61,9 @@ export interface BridgeStorageInterface extends Interface { nameOrSignature: | "approveLockNft" | "approveStake" + | "blackListSignatures" + | "blackListValidator" + | "blackListedValidators" | "chainEpoch" | "chainFee" | "chainFeeVoted" @@ -70,7 +73,6 @@ export interface BridgeStorageInterface extends Interface { | "chainRoyaltyVotes" | "changeChainFee" | "changeChainRoyaltyReceiver" - | "changeValidatorStatus" | "getLockNftSignatures" | "getLockNftSignaturesCount" | "getStakingSignatures" @@ -79,197 +81,222 @@ export interface BridgeStorageInterface extends Interface { | "royaltyEpoch" | "stakingSignatures" | "usedSignatures" + | "usedSignaturesBlackList" | "validatorCount" | "validatorEpoch" | "validatorStatusChangeVotes" | "validatorVoted" - | "validators", + | "validators" ): FunctionFragment; encodeFunctionData( functionFragment: "approveLockNft", - values: [string, string, BytesLike, string], + values: [string, string, BytesLike, string] ): string; encodeFunctionData( functionFragment: "approveStake", - values: [AddressLike, ValidatorAddressWithSignerAndSignatureStruct[]], + values: [AddressLike, ValidatorAddressWithSignerAndSignatureStruct[]] + ): string; + encodeFunctionData( + functionFragment: "blackListSignatures", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "blackListValidator", + values: [AddressLike, ValidatorAddressWithSignerAndSignatureStruct[]] + ): string; + encodeFunctionData( + functionFragment: "blackListedValidators", + values: [AddressLike] ): string; encodeFunctionData(functionFragment: "chainEpoch", values: [string]): string; encodeFunctionData(functionFragment: "chainFee", values: [string]): string; encodeFunctionData( functionFragment: "chainFeeVoted", - values: [string, BigNumberish, AddressLike, BigNumberish], + values: [string, BigNumberish, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "chainFeeVotes", - values: [string, BigNumberish, BigNumberish], + values: [string, BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "chainRoyalty", - values: [string], + values: [string] ): string; encodeFunctionData( functionFragment: "chainRoyaltyVoted", - values: [string, string, AddressLike, BigNumberish], + values: [string, string, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "chainRoyaltyVotes", - values: [string, string, BigNumberish], + values: [string, string, BigNumberish] ): string; encodeFunctionData( functionFragment: "changeChainFee", - values: [string, BigNumberish], + values: [string, BigNumberish] ): string; encodeFunctionData( functionFragment: "changeChainRoyaltyReceiver", - values: [string, string], - ): string; - encodeFunctionData( - functionFragment: "changeValidatorStatus", - values: [AddressLike, boolean], + values: [string, string] ): string; encodeFunctionData( functionFragment: "getLockNftSignatures", - values: [string, string], + values: [string, string] ): string; encodeFunctionData( functionFragment: "getLockNftSignaturesCount", - values: [string, string], + values: [string, string] ): string; encodeFunctionData( functionFragment: "getStakingSignatures", - values: [string], + values: [string] ): string; encodeFunctionData( functionFragment: "getStakingSignaturesCount", - values: [string], + values: [string] ): string; encodeFunctionData( functionFragment: "lockSignatures", - values: [string, string, BigNumberish], + values: [string, string, BigNumberish] ): string; encodeFunctionData( functionFragment: "royaltyEpoch", - values: [string], + values: [string] ): string; encodeFunctionData( functionFragment: "stakingSignatures", - values: [string, BigNumberish], + values: [string, BigNumberish] ): string; encodeFunctionData( functionFragment: "usedSignatures", - values: [BytesLike], + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "usedSignaturesBlackList", + values: [BytesLike] ): string; encodeFunctionData( functionFragment: "validatorCount", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "validatorEpoch", - values: [AddressLike], + values: [AddressLike] ): string; encodeFunctionData( functionFragment: "validatorStatusChangeVotes", - values: [AddressLike, boolean, BigNumberish], + values: [AddressLike, boolean, BigNumberish] ): string; encodeFunctionData( functionFragment: "validatorVoted", - values: [AddressLike, AddressLike, BigNumberish], + values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "validators", - values: [AddressLike], + values: [AddressLike] ): string; decodeFunctionResult( functionFragment: "approveLockNft", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "approveStake", - data: BytesLike, + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "blackListSignatures", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "blackListValidator", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "blackListedValidators", + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "chainEpoch", data: BytesLike): Result; decodeFunctionResult(functionFragment: "chainFee", data: BytesLike): Result; decodeFunctionResult( functionFragment: "chainFeeVoted", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "chainFeeVotes", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "chainRoyalty", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "chainRoyaltyVoted", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "chainRoyaltyVotes", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "changeChainFee", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "changeChainRoyaltyReceiver", - data: BytesLike, - ): Result; - decodeFunctionResult( - functionFragment: "changeValidatorStatus", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getLockNftSignatures", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getLockNftSignaturesCount", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getStakingSignatures", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getStakingSignaturesCount", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "lockSignatures", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "royaltyEpoch", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "stakingSignatures", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "usedSignatures", - data: BytesLike, + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "usedSignaturesBlackList", + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "validatorCount", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "validatorEpoch", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "validatorStatusChangeVotes", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "validatorVoted", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "validators", data: BytesLike): Result; } @@ -283,38 +310,38 @@ export interface BridgeStorage extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; approveLockNft: TypedContractMethod< @@ -322,7 +349,7 @@ export interface BridgeStorage extends BaseContract { _transactionHash: string, _chain: string, _signature: BytesLike, - _signerAddress: string, + _signerAddress: string ], [void], "nonpayable" @@ -331,12 +358,33 @@ export interface BridgeStorage extends BaseContract { approveStake: TypedContractMethod< [ _stakerAddress: AddressLike, - _validatorAddressWithSignerAndSignature: ValidatorAddressWithSignerAndSignatureStruct[], + _validatorAddressWithSignerAndSignature: ValidatorAddressWithSignerAndSignatureStruct[] + ], + [void], + "nonpayable" + >; + + blackListSignatures: TypedContractMethod< + [arg0: string, arg1: BigNumberish], + [[string, string] & { signerAddress: string; signature: string }], + "view" + >; + + blackListValidator: TypedContractMethod< + [ + _validatorAddress: AddressLike, + _validatorAddressWithSignerAndSignature: ValidatorAddressWithSignerAndSignatureStruct[] ], [void], "nonpayable" >; + blackListedValidators: TypedContractMethod< + [arg0: AddressLike], + [boolean], + "view" + >; + chainEpoch: TypedContractMethod<[arg0: string], [bigint], "view">; chainFee: TypedContractMethod<[arg0: string], [bigint], "view">; @@ -379,12 +427,6 @@ export interface BridgeStorage extends BaseContract { "nonpayable" >; - changeValidatorStatus: TypedContractMethod< - [_validatorAddress: AddressLike, _status: boolean], - [void], - "nonpayable" - >; - getLockNftSignatures: TypedContractMethod< [transactionHash: string, chain: string], [SignerAndSignatureStructOutput[]], @@ -425,6 +467,12 @@ export interface BridgeStorage extends BaseContract { usedSignatures: TypedContractMethod<[arg0: BytesLike], [boolean], "view">; + usedSignaturesBlackList: TypedContractMethod< + [arg0: BytesLike], + [boolean], + "view" + >; + validatorCount: TypedContractMethod<[], [bigint], "view">; validatorEpoch: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; @@ -444,155 +492,171 @@ export interface BridgeStorage extends BaseContract { validators: TypedContractMethod<[arg0: AddressLike], [boolean], "view">; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "approveLockNft", + nameOrSignature: "approveLockNft" ): TypedContractMethod< [ _transactionHash: string, _chain: string, _signature: BytesLike, - _signerAddress: string, + _signerAddress: string ], [void], "nonpayable" >; getFunction( - nameOrSignature: "approveStake", + nameOrSignature: "approveStake" ): TypedContractMethod< [ _stakerAddress: AddressLike, - _validatorAddressWithSignerAndSignature: ValidatorAddressWithSignerAndSignatureStruct[], + _validatorAddressWithSignerAndSignature: ValidatorAddressWithSignerAndSignatureStruct[] ], [void], "nonpayable" >; getFunction( - nameOrSignature: "chainEpoch", + nameOrSignature: "blackListSignatures" + ): TypedContractMethod< + [arg0: string, arg1: BigNumberish], + [[string, string] & { signerAddress: string; signature: string }], + "view" + >; + getFunction( + nameOrSignature: "blackListValidator" + ): TypedContractMethod< + [ + _validatorAddress: AddressLike, + _validatorAddressWithSignerAndSignature: ValidatorAddressWithSignerAndSignatureStruct[] + ], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "blackListedValidators" + ): TypedContractMethod<[arg0: AddressLike], [boolean], "view">; + getFunction( + nameOrSignature: "chainEpoch" ): TypedContractMethod<[arg0: string], [bigint], "view">; getFunction( - nameOrSignature: "chainFee", + nameOrSignature: "chainFee" ): TypedContractMethod<[arg0: string], [bigint], "view">; getFunction( - nameOrSignature: "chainFeeVoted", + nameOrSignature: "chainFeeVoted" ): TypedContractMethod< [arg0: string, arg1: BigNumberish, arg2: AddressLike, arg3: BigNumberish], [boolean], "view" >; getFunction( - nameOrSignature: "chainFeeVotes", + nameOrSignature: "chainFeeVotes" ): TypedContractMethod< [arg0: string, arg1: BigNumberish, arg2: BigNumberish], [bigint], "view" >; getFunction( - nameOrSignature: "chainRoyalty", + nameOrSignature: "chainRoyalty" ): TypedContractMethod<[arg0: string], [string], "view">; getFunction( - nameOrSignature: "chainRoyaltyVoted", + nameOrSignature: "chainRoyaltyVoted" ): TypedContractMethod< [arg0: string, arg1: string, arg2: AddressLike, arg3: BigNumberish], [boolean], "view" >; getFunction( - nameOrSignature: "chainRoyaltyVotes", + nameOrSignature: "chainRoyaltyVotes" ): TypedContractMethod< [arg0: string, arg1: string, arg2: BigNumberish], [bigint], "view" >; getFunction( - nameOrSignature: "changeChainFee", + nameOrSignature: "changeChainFee" ): TypedContractMethod< [_chain: string, _fee: BigNumberish], [void], "nonpayable" >; getFunction( - nameOrSignature: "changeChainRoyaltyReceiver", + nameOrSignature: "changeChainRoyaltyReceiver" ): TypedContractMethod< [_chain: string, _royaltyReceiver: string], [void], "nonpayable" >; getFunction( - nameOrSignature: "changeValidatorStatus", - ): TypedContractMethod< - [_validatorAddress: AddressLike, _status: boolean], - [void], - "nonpayable" - >; - getFunction( - nameOrSignature: "getLockNftSignatures", + nameOrSignature: "getLockNftSignatures" ): TypedContractMethod< [transactionHash: string, chain: string], [SignerAndSignatureStructOutput[]], "view" >; getFunction( - nameOrSignature: "getLockNftSignaturesCount", + nameOrSignature: "getLockNftSignaturesCount" ): TypedContractMethod< [transactionHash: string, chain: string], [bigint], "view" >; getFunction( - nameOrSignature: "getStakingSignatures", + nameOrSignature: "getStakingSignatures" ): TypedContractMethod< [stakerAddress: string], [SignerAndSignatureStructOutput[]], "view" >; getFunction( - nameOrSignature: "getStakingSignaturesCount", + nameOrSignature: "getStakingSignaturesCount" ): TypedContractMethod<[stakerAddress: string], [bigint], "view">; getFunction( - nameOrSignature: "lockSignatures", + nameOrSignature: "lockSignatures" ): TypedContractMethod< [arg0: string, arg1: string, arg2: BigNumberish], [[string, string] & { signerAddress: string; signature: string }], "view" >; getFunction( - nameOrSignature: "royaltyEpoch", + nameOrSignature: "royaltyEpoch" ): TypedContractMethod<[arg0: string], [bigint], "view">; getFunction( - nameOrSignature: "stakingSignatures", + nameOrSignature: "stakingSignatures" ): TypedContractMethod< [arg0: string, arg1: BigNumberish], [[string, string] & { signerAddress: string; signature: string }], "view" >; getFunction( - nameOrSignature: "usedSignatures", + nameOrSignature: "usedSignatures" + ): TypedContractMethod<[arg0: BytesLike], [boolean], "view">; + getFunction( + nameOrSignature: "usedSignaturesBlackList" ): TypedContractMethod<[arg0: BytesLike], [boolean], "view">; getFunction( - nameOrSignature: "validatorCount", + nameOrSignature: "validatorCount" ): TypedContractMethod<[], [bigint], "view">; getFunction( - nameOrSignature: "validatorEpoch", + nameOrSignature: "validatorEpoch" ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction( - nameOrSignature: "validatorStatusChangeVotes", + nameOrSignature: "validatorStatusChangeVotes" ): TypedContractMethod< [arg0: AddressLike, arg1: boolean, arg2: BigNumberish], [bigint], "view" >; getFunction( - nameOrSignature: "validatorVoted", + nameOrSignature: "validatorVoted" ): TypedContractMethod< [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish], [boolean], "view" >; getFunction( - nameOrSignature: "validators", + nameOrSignature: "validators" ): TypedContractMethod<[arg0: AddressLike], [boolean], "view">; filters: {}; diff --git a/src/contractsTypes/evm/contracts/ERC1155Royalty.ts b/src/contractsTypes/evm/contracts/ERC1155Royalty.ts index e580441..77d1035 100644 --- a/src/contractsTypes/evm/contracts/ERC1155Royalty.ts +++ b/src/contractsTypes/evm/contracts/ERC1155Royalty.ts @@ -28,6 +28,7 @@ export interface ERC1155RoyaltyInterface extends Interface { nameOrSignature: | "balanceOf" | "balanceOfBatch" + | "bridge" | "isApprovedForAll" | "mint" | "owner" @@ -39,7 +40,7 @@ export interface ERC1155RoyaltyInterface extends Interface { | "setTokenURI" | "supportsInterface" | "transferOwnership" - | "uri", + | "uri" ): FunctionFragment; getEvent( @@ -48,20 +49,21 @@ export interface ERC1155RoyaltyInterface extends Interface { | "OwnershipTransferred" | "TransferBatch" | "TransferSingle" - | "URI", + | "URI" ): EventFragment; encodeFunctionData( functionFragment: "balanceOf", - values: [AddressLike, BigNumberish], + values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOfBatch", - values: [AddressLike[], BigNumberish[]], + values: [AddressLike[], BigNumberish[]] ): string; + encodeFunctionData(functionFragment: "bridge", values?: undefined): string; encodeFunctionData( functionFragment: "isApprovedForAll", - values: [AddressLike, AddressLike], + values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "mint", @@ -71,17 +73,17 @@ export interface ERC1155RoyaltyInterface extends Interface { BigNumberish, BigNumberish, AddressLike, - string, - ], + string + ] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "renounceOwnership", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "royaltyInfo", - values: [BigNumberish, BigNumberish], + values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "safeBatchTransferFrom", @@ -90,73 +92,74 @@ export interface ERC1155RoyaltyInterface extends Interface { AddressLike, BigNumberish[], BigNumberish[], - BytesLike, - ], + BytesLike + ] ): string; encodeFunctionData( functionFragment: "safeTransferFrom", - values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "setApprovalForAll", - values: [AddressLike, boolean], + values: [AddressLike, boolean] ): string; encodeFunctionData( functionFragment: "setTokenURI", - values: [BigNumberish, string], + values: [BigNumberish, string] ): string; encodeFunctionData( functionFragment: "supportsInterface", - values: [BytesLike], + values: [BytesLike] ): string; encodeFunctionData( functionFragment: "transferOwnership", - values: [AddressLike], + values: [AddressLike] ): string; encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "balanceOfBatch", - data: BytesLike, + data: BytesLike ): Result; + decodeFunctionResult(functionFragment: "bridge", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isApprovedForAll", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "renounceOwnership", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "royaltyInfo", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "safeBatchTransferFrom", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "safeTransferFrom", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setApprovalForAll", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setTokenURI", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result; } @@ -165,12 +168,12 @@ export namespace ApprovalForAllEvent { export type InputTuple = [ account: AddressLike, operator: AddressLike, - approved: boolean, + approved: boolean ]; export type OutputTuple = [ account: string, operator: string, - approved: boolean, + approved: boolean ]; export interface OutputObject { account: string; @@ -202,14 +205,14 @@ export namespace TransferBatchEvent { from: AddressLike, to: AddressLike, ids: BigNumberish[], - values: BigNumberish[], + values: BigNumberish[] ]; export type OutputTuple = [ operator: string, from: string, to: string, ids: bigint[], - values: bigint[], + values: bigint[] ]; export interface OutputObject { operator: string; @@ -230,14 +233,14 @@ export namespace TransferSingleEvent { from: AddressLike, to: AddressLike, id: BigNumberish, - value: BigNumberish, + value: BigNumberish ]; export type OutputTuple = [ operator: string, from: string, to: string, id: bigint, - value: bigint, + value: bigint ]; export interface OutputObject { operator: string; @@ -274,38 +277,38 @@ export interface ERC1155Royalty extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; balanceOf: TypedContractMethod< @@ -320,6 +323,8 @@ export interface ERC1155Royalty extends BaseContract { "view" >; + bridge: TypedContractMethod<[], [string], "view">; + isApprovedForAll: TypedContractMethod< [account: AddressLike, operator: AddressLike], [boolean], @@ -333,7 +338,7 @@ export interface ERC1155Royalty extends BaseContract { amount: BigNumberish, royalty: BigNumberish, royaltyReceiver: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" @@ -355,7 +360,7 @@ export interface ERC1155Royalty extends BaseContract { to: AddressLike, ids: BigNumberish[], values: BigNumberish[], - data: BytesLike, + data: BytesLike ], [void], "nonpayable" @@ -367,7 +372,7 @@ export interface ERC1155Royalty extends BaseContract { to: AddressLike, id: BigNumberish, value: BigNumberish, - data: BytesLike, + data: BytesLike ], [void], "nonpayable" @@ -400,32 +405,35 @@ export interface ERC1155Royalty extends BaseContract { uri: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "balanceOf", + nameOrSignature: "balanceOf" ): TypedContractMethod< [account: AddressLike, id: BigNumberish], [bigint], "view" >; getFunction( - nameOrSignature: "balanceOfBatch", + nameOrSignature: "balanceOfBatch" ): TypedContractMethod< [accounts: AddressLike[], ids: BigNumberish[]], [bigint[]], "view" >; getFunction( - nameOrSignature: "isApprovedForAll", + nameOrSignature: "bridge" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "isApprovedForAll" ): TypedContractMethod< [account: AddressLike, operator: AddressLike], [boolean], "view" >; getFunction( - nameOrSignature: "mint", + nameOrSignature: "mint" ): TypedContractMethod< [ account: AddressLike, @@ -433,104 +441,104 @@ export interface ERC1155Royalty extends BaseContract { amount: BigNumberish, royalty: BigNumberish, royaltyReceiver: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "renounceOwnership", + nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( - nameOrSignature: "royaltyInfo", + nameOrSignature: "royaltyInfo" ): TypedContractMethod< [tokenId: BigNumberish, salePrice: BigNumberish], [[string, bigint] & { receiver: string; royaltyAmount: bigint }], "view" >; getFunction( - nameOrSignature: "safeBatchTransferFrom", + nameOrSignature: "safeBatchTransferFrom" ): TypedContractMethod< [ from: AddressLike, to: AddressLike, ids: BigNumberish[], values: BigNumberish[], - data: BytesLike, + data: BytesLike ], [void], "nonpayable" >; getFunction( - nameOrSignature: "safeTransferFrom", + nameOrSignature: "safeTransferFrom" ): TypedContractMethod< [ from: AddressLike, to: AddressLike, id: BigNumberish, value: BigNumberish, - data: BytesLike, + data: BytesLike ], [void], "nonpayable" >; getFunction( - nameOrSignature: "setApprovalForAll", + nameOrSignature: "setApprovalForAll" ): TypedContractMethod< [operator: AddressLike, approved: boolean], [void], "nonpayable" >; getFunction( - nameOrSignature: "setTokenURI", + nameOrSignature: "setTokenURI" ): TypedContractMethod< [tokenId: BigNumberish, newTokenURI: string], [void], "nonpayable" >; getFunction( - nameOrSignature: "supportsInterface", + nameOrSignature: "supportsInterface" ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; getFunction( - nameOrSignature: "transferOwnership", + nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( - nameOrSignature: "uri", + nameOrSignature: "uri" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getEvent( - key: "ApprovalForAll", + key: "ApprovalForAll" ): TypedContractEvent< ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject >; getEvent( - key: "OwnershipTransferred", + key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( - key: "TransferBatch", + key: "TransferBatch" ): TypedContractEvent< TransferBatchEvent.InputTuple, TransferBatchEvent.OutputTuple, TransferBatchEvent.OutputObject >; getEvent( - key: "TransferSingle", + key: "TransferSingle" ): TypedContractEvent< TransferSingleEvent.InputTuple, TransferSingleEvent.OutputTuple, TransferSingleEvent.OutputObject >; getEvent( - key: "URI", + key: "URI" ): TypedContractEvent< URIEvent.InputTuple, URIEvent.OutputTuple, diff --git a/src/contractsTypes/evm/contracts/ERC20Staking.ts b/src/contractsTypes/evm/contracts/ERC20Staking.ts index 4bee5db..f2b7c69 100644 --- a/src/contractsTypes/evm/contracts/ERC20Staking.ts +++ b/src/contractsTypes/evm/contracts/ERC20Staking.ts @@ -30,57 +30,66 @@ export type ValidatorAddressAndChainTypeStruct = { export type ValidatorAddressAndChainTypeStructOutput = [ validatorAddress: string, - chainType: string, + chainType: string ] & { validatorAddress: string; chainType: string }; export interface ERC20StakingInterface extends Interface { getFunction( nameOrSignature: | "ERC20Token" + | "addNewChains" | "stakeERC20" | "stakingAmount" - | "stakingBalances", + | "stakingBalances" ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Staked"): EventFragment; encodeFunctionData( functionFragment: "ERC20Token", - values?: undefined, + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "addNewChains", + values: [ValidatorAddressAndChainTypeStruct[]] ): string; encodeFunctionData( functionFragment: "stakeERC20", - values: [ValidatorAddressAndChainTypeStruct[]], + values: [ValidatorAddressAndChainTypeStruct[]] ): string; encodeFunctionData( functionFragment: "stakingAmount", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "stakingBalances", - values: [AddressLike], + values: [AddressLike] ): string; decodeFunctionResult(functionFragment: "ERC20Token", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "addNewChains", + data: BytesLike + ): Result; decodeFunctionResult(functionFragment: "stakeERC20", data: BytesLike): Result; decodeFunctionResult( functionFragment: "stakingAmount", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "stakingBalances", - data: BytesLike, + data: BytesLike ): Result; } export namespace StakedEvent { export type InputTuple = [ amount: BigNumberish, - validatorAddressAndChainType: ValidatorAddressAndChainTypeStruct[], + validatorAddressAndChainType: ValidatorAddressAndChainTypeStruct[] ]; export type OutputTuple = [ amount: bigint, - validatorAddressAndChainType: ValidatorAddressAndChainTypeStructOutput[], + validatorAddressAndChainType: ValidatorAddressAndChainTypeStructOutput[] ]; export interface OutputObject { amount: bigint; @@ -101,42 +110,48 @@ export interface ERC20Staking extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; ERC20Token: TypedContractMethod<[], [string], "view">; + addNewChains: TypedContractMethod< + [_validatorAddressAndChainType: ValidatorAddressAndChainTypeStruct[]], + [void], + "nonpayable" + >; + stakeERC20: TypedContractMethod< [_validatorAddressAndChainType: ValidatorAddressAndChainTypeStruct[]], [void], @@ -148,28 +163,35 @@ export interface ERC20Staking extends BaseContract { stakingBalances: TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "ERC20Token", + nameOrSignature: "ERC20Token" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "stakeERC20", + nameOrSignature: "addNewChains" + ): TypedContractMethod< + [_validatorAddressAndChainType: ValidatorAddressAndChainTypeStruct[]], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "stakeERC20" ): TypedContractMethod< [_validatorAddressAndChainType: ValidatorAddressAndChainTypeStruct[]], [void], "nonpayable" >; getFunction( - nameOrSignature: "stakingAmount", + nameOrSignature: "stakingAmount" ): TypedContractMethod<[], [bigint], "view">; getFunction( - nameOrSignature: "stakingBalances", + nameOrSignature: "stakingBalances" ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">; getEvent( - key: "Staked", + key: "Staked" ): TypedContractEvent< StakedEvent.InputTuple, StakedEvent.OutputTuple, diff --git a/src/contractsTypes/evm/contracts/ERC20Token.ts b/src/contractsTypes/evm/contracts/ERC20Token.ts index da20733..9b87040 100644 --- a/src/contractsTypes/evm/contracts/ERC20Token.ts +++ b/src/contractsTypes/evm/contracts/ERC20Token.ts @@ -34,37 +34,37 @@ export interface ERC20TokenInterface extends Interface { | "symbol" | "totalSupply" | "transfer" - | "transferFrom", + | "transferFrom" ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment; encodeFunctionData( functionFragment: "allowance", - values: [AddressLike, AddressLike], + values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "approve", - values: [AddressLike, BigNumberish], + values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOf", - values: [AddressLike], + values: [AddressLike] ): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData( functionFragment: "totalSupply", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "transfer", - values: [AddressLike, BigNumberish], + values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFrom", - values: [AddressLike, AddressLike, BigNumberish], + values: [AddressLike, AddressLike, BigNumberish] ): string; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; @@ -75,12 +75,12 @@ export interface ERC20TokenInterface extends Interface { decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalSupply", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", - data: BytesLike, + data: BytesLike ): Result; } @@ -88,7 +88,7 @@ export namespace ApprovalEvent { export type InputTuple = [ owner: AddressLike, spender: AddressLike, - value: BigNumberish, + value: BigNumberish ]; export type OutputTuple = [owner: string, spender: string, value: bigint]; export interface OutputObject { @@ -106,7 +106,7 @@ export namespace TransferEvent { export type InputTuple = [ from: AddressLike, to: AddressLike, - value: BigNumberish, + value: BigNumberish ]; export type OutputTuple = [from: string, to: string, value: bigint]; export interface OutputObject { @@ -129,38 +129,38 @@ export interface ERC20Token extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; allowance: TypedContractMethod< @@ -198,47 +198,47 @@ export interface ERC20Token extends BaseContract { >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "allowance", + nameOrSignature: "allowance" ): TypedContractMethod< [owner: AddressLike, spender: AddressLike], [bigint], "view" >; getFunction( - nameOrSignature: "approve", + nameOrSignature: "approve" ): TypedContractMethod< [spender: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( - nameOrSignature: "balanceOf", + nameOrSignature: "balanceOf" ): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction( - nameOrSignature: "decimals", + nameOrSignature: "decimals" ): TypedContractMethod<[], [bigint], "view">; getFunction( - nameOrSignature: "name", + nameOrSignature: "name" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "symbol", + nameOrSignature: "symbol" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "totalSupply", + nameOrSignature: "totalSupply" ): TypedContractMethod<[], [bigint], "view">; getFunction( - nameOrSignature: "transfer", + nameOrSignature: "transfer" ): TypedContractMethod< [to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( - nameOrSignature: "transferFrom", + nameOrSignature: "transferFrom" ): TypedContractMethod< [from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], @@ -246,14 +246,14 @@ export interface ERC20Token extends BaseContract { >; getEvent( - key: "Approval", + key: "Approval" ): TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; getEvent( - key: "Transfer", + key: "Transfer" ): TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, diff --git a/src/contractsTypes/evm/contracts/ERC721Royalty.ts b/src/contractsTypes/evm/contracts/ERC721Royalty.ts index a2d44d7..14878b4 100644 --- a/src/contractsTypes/evm/contracts/ERC721Royalty.ts +++ b/src/contractsTypes/evm/contracts/ERC721Royalty.ts @@ -28,6 +28,7 @@ export interface ERC721RoyaltyInterface extends Interface { nameOrSignature: | "approve" | "balanceOf" + | "bridge" | "getApproved" | "isApprovedForAll" | "mint" @@ -43,7 +44,7 @@ export interface ERC721RoyaltyInterface extends Interface { | "symbol" | "tokenURI" | "transferFrom" - | "transferOwnership", + | "transferOwnership" ): FunctionFragment; getEvent( @@ -53,82 +54,84 @@ export interface ERC721RoyaltyInterface extends Interface { | "BatchMetadataUpdate" | "MetadataUpdate" | "OwnershipTransferred" - | "Transfer", + | "Transfer" ): EventFragment; encodeFunctionData( functionFragment: "approve", - values: [AddressLike, BigNumberish], + values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOf", - values: [AddressLike], + values: [AddressLike] ): string; + encodeFunctionData(functionFragment: "bridge", values?: undefined): string; encodeFunctionData( functionFragment: "getApproved", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "isApprovedForAll", - values: [AddressLike, AddressLike], + values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "mint", - values: [AddressLike, BigNumberish, BigNumberish, AddressLike, string], + values: [AddressLike, BigNumberish, BigNumberish, AddressLike, string] ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "ownerOf", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "renounceOwnership", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "royaltyInfo", - values: [BigNumberish, BigNumberish], + values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "safeTransferFrom(address,address,uint256)", - values: [AddressLike, AddressLike, BigNumberish], + values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "safeTransferFrom(address,address,uint256,bytes)", - values: [AddressLike, AddressLike, BigNumberish, BytesLike], + values: [AddressLike, AddressLike, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "setApprovalForAll", - values: [AddressLike, boolean], + values: [AddressLike, boolean] ): string; encodeFunctionData( functionFragment: "supportsInterface", - values: [BytesLike], + values: [BytesLike] ): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData( functionFragment: "tokenURI", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFrom", - values: [AddressLike, AddressLike, BigNumberish], + values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferOwnership", - values: [AddressLike], + values: [AddressLike] ): string; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "bridge", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getApproved", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isApprovedForAll", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; @@ -136,37 +139,37 @@ export interface ERC721RoyaltyInterface extends Interface { decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "renounceOwnership", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "royaltyInfo", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "safeTransferFrom(address,address,uint256)", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "safeTransferFrom(address,address,uint256,bytes)", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setApprovalForAll", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", - data: BytesLike, + data: BytesLike ): Result; } @@ -174,7 +177,7 @@ export namespace ApprovalEvent { export type InputTuple = [ owner: AddressLike, approved: AddressLike, - tokenId: BigNumberish, + tokenId: BigNumberish ]; export type OutputTuple = [owner: string, approved: string, tokenId: bigint]; export interface OutputObject { @@ -192,12 +195,12 @@ export namespace ApprovalForAllEvent { export type InputTuple = [ owner: AddressLike, operator: AddressLike, - approved: boolean, + approved: boolean ]; export type OutputTuple = [ owner: string, operator: string, - approved: boolean, + approved: boolean ]; export interface OutputObject { owner: string; @@ -213,7 +216,7 @@ export namespace ApprovalForAllEvent { export namespace BatchMetadataUpdateEvent { export type InputTuple = [ _fromTokenId: BigNumberish, - _toTokenId: BigNumberish, + _toTokenId: BigNumberish ]; export type OutputTuple = [_fromTokenId: bigint, _toTokenId: bigint]; export interface OutputObject { @@ -255,7 +258,7 @@ export namespace TransferEvent { export type InputTuple = [ from: AddressLike, to: AddressLike, - tokenId: BigNumberish, + tokenId: BigNumberish ]; export type OutputTuple = [from: string, to: string, tokenId: bigint]; export interface OutputObject { @@ -278,38 +281,38 @@ export interface ERC721Royalty extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; approve: TypedContractMethod< @@ -320,6 +323,8 @@ export interface ERC721Royalty extends BaseContract { balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">; + bridge: TypedContractMethod<[], [string], "view">; + getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; isApprovedForAll: TypedContractMethod< @@ -334,7 +339,7 @@ export interface ERC721Royalty extends BaseContract { tokenId: BigNumberish, royalty: BigNumberish, royalityReciever: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" @@ -365,7 +370,7 @@ export interface ERC721Royalty extends BaseContract { from: AddressLike, to: AddressLike, tokenId: BigNumberish, - data: BytesLike, + data: BytesLike ], [void], "nonpayable" @@ -400,144 +405,147 @@ export interface ERC721Royalty extends BaseContract { >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "approve", + nameOrSignature: "approve" ): TypedContractMethod< [to: AddressLike, tokenId: BigNumberish], [void], "nonpayable" >; getFunction( - nameOrSignature: "balanceOf", + nameOrSignature: "balanceOf" ): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction( - nameOrSignature: "getApproved", + nameOrSignature: "bridge" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "getApproved" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( - nameOrSignature: "isApprovedForAll", + nameOrSignature: "isApprovedForAll" ): TypedContractMethod< [owner: AddressLike, operator: AddressLike], [boolean], "view" >; getFunction( - nameOrSignature: "mint", + nameOrSignature: "mint" ): TypedContractMethod< [ to: AddressLike, tokenId: BigNumberish, royalty: BigNumberish, royalityReciever: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" >; getFunction( - nameOrSignature: "name", + nameOrSignature: "name" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "ownerOf", + nameOrSignature: "ownerOf" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( - nameOrSignature: "renounceOwnership", + nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( - nameOrSignature: "royaltyInfo", + nameOrSignature: "royaltyInfo" ): TypedContractMethod< [tokenId: BigNumberish, salePrice: BigNumberish], [[string, bigint] & { receiver: string; royaltyAmount: bigint }], "view" >; getFunction( - nameOrSignature: "safeTransferFrom(address,address,uint256)", + nameOrSignature: "safeTransferFrom(address,address,uint256)" ): TypedContractMethod< [from: AddressLike, to: AddressLike, tokenId: BigNumberish], [void], "nonpayable" >; getFunction( - nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)", + nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)" ): TypedContractMethod< [ from: AddressLike, to: AddressLike, tokenId: BigNumberish, - data: BytesLike, + data: BytesLike ], [void], "nonpayable" >; getFunction( - nameOrSignature: "setApprovalForAll", + nameOrSignature: "setApprovalForAll" ): TypedContractMethod< [operator: AddressLike, approved: boolean], [void], "nonpayable" >; getFunction( - nameOrSignature: "supportsInterface", + nameOrSignature: "supportsInterface" ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; getFunction( - nameOrSignature: "symbol", + nameOrSignature: "symbol" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "tokenURI", + nameOrSignature: "tokenURI" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( - nameOrSignature: "transferFrom", + nameOrSignature: "transferFrom" ): TypedContractMethod< [from: AddressLike, to: AddressLike, tokenId: BigNumberish], [void], "nonpayable" >; getFunction( - nameOrSignature: "transferOwnership", + nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent( - key: "Approval", + key: "Approval" ): TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; getEvent( - key: "ApprovalForAll", + key: "ApprovalForAll" ): TypedContractEvent< ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject >; getEvent( - key: "BatchMetadataUpdate", + key: "BatchMetadataUpdate" ): TypedContractEvent< BatchMetadataUpdateEvent.InputTuple, BatchMetadataUpdateEvent.OutputTuple, BatchMetadataUpdateEvent.OutputObject >; getEvent( - key: "MetadataUpdate", + key: "MetadataUpdate" ): TypedContractEvent< MetadataUpdateEvent.InputTuple, MetadataUpdateEvent.OutputTuple, MetadataUpdateEvent.OutputObject >; getEvent( - key: "OwnershipTransferred", + key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( - key: "Transfer", + key: "Transfer" ): TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, diff --git a/src/contractsTypes/evm/contracts/NFTCollectionDeployer.ts b/src/contractsTypes/evm/contracts/NFTCollectionDeployer.ts index 11d22b1..231388a 100644 --- a/src/contractsTypes/evm/contracts/NFTCollectionDeployer.ts +++ b/src/contractsTypes/evm/contracts/NFTCollectionDeployer.ts @@ -25,35 +25,38 @@ import type { export interface NFTCollectionDeployerInterface extends Interface { getFunction( nameOrSignature: + | "bridge" | "deployNFT1155Collection" | "deployNFT721Collection" | "owner" - | "setOwner", + | "setOwner" ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "CreatedCollection"): EventFragment; + encodeFunctionData(functionFragment: "bridge", values?: undefined): string; encodeFunctionData( functionFragment: "deployNFT1155Collection", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "deployNFT721Collection", - values: [string, string], + values: [string, string] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "setOwner", - values: [AddressLike], + values: [AddressLike, AddressLike] ): string; + decodeFunctionResult(functionFragment: "bridge", data: BytesLike): Result; decodeFunctionResult( functionFragment: "deployNFT1155Collection", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "deployNFT721Collection", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result; @@ -80,40 +83,42 @@ export interface NFTCollectionDeployer extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; + bridge: TypedContractMethod<[], [string], "view">; + deployNFT1155Collection: TypedContractMethod<[], [string], "nonpayable">; deployNFT721Collection: TypedContractMethod< @@ -124,31 +129,42 @@ export interface NFTCollectionDeployer extends BaseContract { owner: TypedContractMethod<[], [string], "view">; - setOwner: TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + setOwner: TypedContractMethod< + [_owner: AddressLike, _bridge: AddressLike], + [void], + "nonpayable" + >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "deployNFT1155Collection", + nameOrSignature: "bridge" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "deployNFT1155Collection" ): TypedContractMethod<[], [string], "nonpayable">; getFunction( - nameOrSignature: "deployNFT721Collection", + nameOrSignature: "deployNFT721Collection" ): TypedContractMethod< [name: string, symbol: string], [string], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "setOwner", - ): TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + nameOrSignature: "setOwner" + ): TypedContractMethod< + [_owner: AddressLike, _bridge: AddressLike], + [void], + "nonpayable" + >; getEvent( - key: "CreatedCollection", + key: "CreatedCollection" ): TypedContractEvent< CreatedCollectionEvent.InputTuple, CreatedCollectionEvent.OutputTuple, diff --git a/src/contractsTypes/evm/contracts/NFTStorageDeployer.ts b/src/contractsTypes/evm/contracts/NFTStorageDeployer.ts index 289ce85..9e55626 100644 --- a/src/contractsTypes/evm/contracts/NFTStorageDeployer.ts +++ b/src/contractsTypes/evm/contracts/NFTStorageDeployer.ts @@ -26,30 +26,30 @@ export interface NFTStorageDeployerInterface extends Interface { | "deployNFT1155Storage" | "deployNFT721Storage" | "owner" - | "setOwner", + | "setOwner" ): FunctionFragment; encodeFunctionData( functionFragment: "deployNFT1155Storage", - values: [AddressLike], + values: [AddressLike] ): string; encodeFunctionData( functionFragment: "deployNFT721Storage", - values: [AddressLike], + values: [AddressLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "setOwner", - values: [AddressLike], + values: [AddressLike] ): string; decodeFunctionResult( functionFragment: "deployNFT1155Storage", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "deployNFT721Storage", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result; @@ -64,38 +64,38 @@ export interface NFTStorageDeployer extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; deployNFT1155Storage: TypedContractMethod< @@ -115,28 +115,28 @@ export interface NFTStorageDeployer extends BaseContract { setOwner: TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "deployNFT1155Storage", + nameOrSignature: "deployNFT1155Storage" ): TypedContractMethod< [collectionAddress: AddressLike], [string], "nonpayable" >; getFunction( - nameOrSignature: "deployNFT721Storage", + nameOrSignature: "deployNFT721Storage" ): TypedContractMethod< [collectionAddress: AddressLike], [string], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "setOwner", + nameOrSignature: "setOwner" ): TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; filters: {}; diff --git a/src/contractsTypes/evm/contracts/NFTStorageERC1155.ts b/src/contractsTypes/evm/contracts/NFTStorageERC1155.ts index 8cdd605..5e174df 100644 --- a/src/contractsTypes/evm/contracts/NFTStorageERC1155.ts +++ b/src/contractsTypes/evm/contracts/NFTStorageERC1155.ts @@ -30,16 +30,16 @@ export interface NFTStorageERC1155Interface extends Interface { | "onERC1155Received" | "owner" | "supportsInterface" - | "unlockToken", + | "unlockToken" ): FunctionFragment; encodeFunctionData( functionFragment: "collectionAddress", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "depositToken", - values: [BigNumberish, BigNumberish], + values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "onERC1155BatchReceived", @@ -48,47 +48,47 @@ export interface NFTStorageERC1155Interface extends Interface { AddressLike, BigNumberish[], BigNumberish[], - BytesLike, - ], + BytesLike + ] ): string; encodeFunctionData( functionFragment: "onERC1155Received", - values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "supportsInterface", - values: [BytesLike], + values: [BytesLike] ): string; encodeFunctionData( functionFragment: "unlockToken", - values: [BigNumberish, BigNumberish, AddressLike], + values: [BigNumberish, BigNumberish, AddressLike] ): string; decodeFunctionResult( functionFragment: "collectionAddress", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "depositToken", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onERC1155BatchReceived", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onERC1155Received", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "supportsInterface", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "unlockToken", - data: BytesLike, + data: BytesLike ): Result; } @@ -101,38 +101,38 @@ export interface NFTStorageERC1155 extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; collectionAddress: TypedContractMethod<[], [string], "view">; @@ -149,7 +149,7 @@ export interface NFTStorageERC1155 extends BaseContract { arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], - arg4: BytesLike, + arg4: BytesLike ], [string], "nonpayable" @@ -161,7 +161,7 @@ export interface NFTStorageERC1155 extends BaseContract { arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, - arg4: BytesLike, + arg4: BytesLike ], [string], "nonpayable" @@ -182,53 +182,53 @@ export interface NFTStorageERC1155 extends BaseContract { >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "collectionAddress", + nameOrSignature: "collectionAddress" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "depositToken", + nameOrSignature: "depositToken" ): TypedContractMethod< [tokenId: BigNumberish, amount: BigNumberish], [void], "nonpayable" >; getFunction( - nameOrSignature: "onERC1155BatchReceived", + nameOrSignature: "onERC1155BatchReceived" ): TypedContractMethod< [ arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], - arg4: BytesLike, + arg4: BytesLike ], [string], "nonpayable" >; getFunction( - nameOrSignature: "onERC1155Received", + nameOrSignature: "onERC1155Received" ): TypedContractMethod< [ arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, - arg4: BytesLike, + arg4: BytesLike ], [string], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "supportsInterface", + nameOrSignature: "supportsInterface" ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; getFunction( - nameOrSignature: "unlockToken", + nameOrSignature: "unlockToken" ): TypedContractMethod< [tokenId: BigNumberish, amount: BigNumberish, to: AddressLike], [void], diff --git a/src/contractsTypes/evm/contracts/NFTStorageERC721.ts b/src/contractsTypes/evm/contracts/NFTStorageERC721.ts index ba6293d..1c82e4a 100644 --- a/src/contractsTypes/evm/contracts/NFTStorageERC721.ts +++ b/src/contractsTypes/evm/contracts/NFTStorageERC721.ts @@ -28,43 +28,43 @@ export interface NFTStorageERC721Interface extends Interface { | "depositToken" | "onERC721Received" | "owner" - | "unlockToken", + | "unlockToken" ): FunctionFragment; encodeFunctionData( functionFragment: "collectionAddress", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "depositToken", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "onERC721Received", - values: [AddressLike, AddressLike, BigNumberish, BytesLike], + values: [AddressLike, AddressLike, BigNumberish, BytesLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "unlockToken", - values: [BigNumberish, AddressLike], + values: [BigNumberish, AddressLike] ): string; decodeFunctionResult( functionFragment: "collectionAddress", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "depositToken", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onERC721Received", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "unlockToken", - data: BytesLike, + data: BytesLike ): Result; } @@ -77,38 +77,38 @@ export interface NFTStorageERC721 extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; collectionAddress: TypedContractMethod<[], [string], "view">; @@ -134,27 +134,27 @@ export interface NFTStorageERC721 extends BaseContract { >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "collectionAddress", + nameOrSignature: "collectionAddress" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "depositToken", + nameOrSignature: "depositToken" ): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">; getFunction( - nameOrSignature: "onERC721Received", + nameOrSignature: "onERC721Received" ): TypedContractMethod< [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "unlockToken", + nameOrSignature: "unlockToken" ): TypedContractMethod< [tokenId: BigNumberish, to: AddressLike], [void], diff --git a/src/contractsTypes/evm/contracts/hedera/HederaBridge.ts b/src/contractsTypes/evm/contracts/hedera/HederaBridge.ts new file mode 100644 index 0000000..38a045f --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/HederaBridge.ts @@ -0,0 +1,829 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from "../../common"; + +export type SignerAndSignatureStruct = { + signerAddress: string; + signature: BytesLike; +}; + +export type SignerAndSignatureStructOutput = [ + signerAddress: string, + signature: string +] & { signerAddress: string; signature: string }; + +export declare namespace HederaBridge { + export type ClaimDataStruct = { + tokenId: BigNumberish; + sourceChain: string; + destinationChain: string; + destinationUserAddress: AddressLike; + sourceNftContractAddress: string; + name: string; + symbol: string; + royalty: BigNumberish; + royaltyReceiver: AddressLike; + metadata: string; + transactionHash: string; + tokenAmount: BigNumberish; + nftType: string; + fee: BigNumberish; + lockTxChain: string; + }; + + export type ClaimDataStructOutput = [ + tokenId: bigint, + sourceChain: string, + destinationChain: string, + destinationUserAddress: string, + sourceNftContractAddress: string, + name: string, + symbol: string, + royalty: bigint, + royaltyReceiver: string, + metadata: string, + transactionHash: string, + tokenAmount: bigint, + nftType: string, + fee: bigint, + lockTxChain: string + ] & { + tokenId: bigint; + sourceChain: string; + destinationChain: string; + destinationUserAddress: string; + sourceNftContractAddress: string; + name: string; + symbol: string; + royalty: bigint; + royaltyReceiver: string; + metadata: string; + transactionHash: string; + tokenAmount: bigint; + nftType: string; + fee: bigint; + lockTxChain: string; + }; +} + +export interface HederaBridgeInterface extends Interface { + getFunction( + nameOrSignature: + | "DEFAULT_EXPIRY" + | "MAX_INT" + | "addValidator" + | "claimNFT721" + | "claimValidatorRewards" + | "duplicateStorageMapping721" + | "duplicateToOriginalMapping" + | "keyToValue" + | "lock721" + | "originalStorageMapping721" + | "originalToDuplicateMapping" + | "redirectForToken" + | "selfChain" + | "storageDeployer" + | "transferFrom" + | "transferFromNFT" + | "uniqueIdentifier" + | "validators" + | "validatorsCount" + | "valueToKey" + ): FunctionFragment; + + getEvent( + nameOrSignatureOrTopic: + | "AddNewValidator" + | "CallResponseEvent" + | "Claimed" + | "Locked" + | "LogHash" + | "RewardValidator" + | "UnLock721" + ): EventFragment; + + encodeFunctionData( + functionFragment: "DEFAULT_EXPIRY", + values?: undefined + ): string; + encodeFunctionData(functionFragment: "MAX_INT", values?: undefined): string; + encodeFunctionData( + functionFragment: "addValidator", + values: [AddressLike, SignerAndSignatureStruct[]] + ): string; + encodeFunctionData( + functionFragment: "claimNFT721", + values: [HederaBridge.ClaimDataStruct, BytesLike[]] + ): string; + encodeFunctionData( + functionFragment: "claimValidatorRewards", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "duplicateStorageMapping721", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "duplicateToOriginalMapping", + values: [AddressLike, string] + ): string; + encodeFunctionData( + functionFragment: "keyToValue", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "lock721", + values: [BigNumberish, string, string, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "originalStorageMapping721", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "originalToDuplicateMapping", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "redirectForToken", + values: [AddressLike, BytesLike] + ): string; + encodeFunctionData(functionFragment: "selfChain", values?: undefined): string; + encodeFunctionData( + functionFragment: "storageDeployer", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFromNFT", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "uniqueIdentifier", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "validators", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "validatorsCount", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "valueToKey", + values: [string, string, BigNumberish] + ): string; + + decodeFunctionResult( + functionFragment: "DEFAULT_EXPIRY", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "MAX_INT", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "addValidator", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "claimNFT721", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "claimValidatorRewards", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "duplicateStorageMapping721", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "duplicateToOriginalMapping", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "keyToValue", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "lock721", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "originalStorageMapping721", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "originalToDuplicateMapping", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "redirectForToken", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "selfChain", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "storageDeployer", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFromNFT", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "uniqueIdentifier", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "validators", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "validatorsCount", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "valueToKey", data: BytesLike): Result; +} + +export namespace AddNewValidatorEvent { + export type InputTuple = [_validator: AddressLike]; + export type OutputTuple = [_validator: string]; + export interface OutputObject { + _validator: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace CallResponseEventEvent { + export type InputTuple = [arg0: boolean, arg1: BytesLike]; + export type OutputTuple = [arg0: boolean, arg1: string]; + export interface OutputObject { + arg0: boolean; + arg1: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace ClaimedEvent { + export type InputTuple = [ + lockTxChain: string, + sourceChain: string, + transactionHash: string, + nftContract: AddressLike, + emittedTokenId: BigNumberish + ]; + export type OutputTuple = [ + lockTxChain: string, + sourceChain: string, + transactionHash: string, + nftContract: string, + emittedTokenId: bigint + ]; + export interface OutputObject { + lockTxChain: string; + sourceChain: string; + transactionHash: string; + nftContract: string; + emittedTokenId: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace LockedEvent { + export type InputTuple = [ + tokenId: BigNumberish, + destinationChain: string, + destinationUserAddress: string, + sourceNftContractAddress: string, + tokenAmount: BigNumberish, + nftType: string, + sourceChain: string + ]; + export type OutputTuple = [ + tokenId: bigint, + destinationChain: string, + destinationUserAddress: string, + sourceNftContractAddress: string, + tokenAmount: bigint, + nftType: string, + sourceChain: string + ]; + export interface OutputObject { + tokenId: bigint; + destinationChain: string; + destinationUserAddress: string; + sourceNftContractAddress: string; + tokenAmount: bigint; + nftType: string; + sourceChain: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace LogHashEvent { + export type InputTuple = [hashValue: BytesLike, arg1: BytesLike[]]; + export type OutputTuple = [hashValue: string, arg1: string[]]; + export interface OutputObject { + hashValue: string; + arg1: string[]; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace RewardValidatorEvent { + export type InputTuple = [_validator: AddressLike]; + export type OutputTuple = [_validator: string]; + export interface OutputObject { + _validator: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace UnLock721Event { + export type InputTuple = [ + to: AddressLike, + tokenId: BigNumberish, + contractAddr: AddressLike + ]; + export type OutputTuple = [to: string, tokenId: bigint, contractAddr: string]; + export interface OutputObject { + to: string; + tokenId: bigint; + contractAddr: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface HederaBridge extends BaseContract { + connect(runner?: ContractRunner | null): HederaBridge; + waitForDeployment(): Promise; + + interface: HederaBridgeInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + DEFAULT_EXPIRY: TypedContractMethod<[], [bigint], "view">; + + MAX_INT: TypedContractMethod<[], [bigint], "view">; + + addValidator: TypedContractMethod< + [_validator: AddressLike, signatures: SignerAndSignatureStruct[]], + [void], + "nonpayable" + >; + + claimNFT721: TypedContractMethod< + [data: HederaBridge.ClaimDataStruct, signatures: BytesLike[]], + [void], + "payable" + >; + + claimValidatorRewards: TypedContractMethod< + [_validator: AddressLike], + [void], + "nonpayable" + >; + + duplicateStorageMapping721: TypedContractMethod< + [arg0: string, arg1: string], + [string], + "view" + >; + + duplicateToOriginalMapping: TypedContractMethod< + [arg0: AddressLike, arg1: string], + [[string, string] & { chain: string; contractAddress: string }], + "view" + >; + + keyToValue: TypedContractMethod< + [arg0: string, arg1: string, arg2: BigNumberish], + [ + [bigint, string, string, boolean] & { + tokenId: bigint; + chain: string; + contract_: string; + exists: boolean; + } + ], + "view" + >; + + lock721: TypedContractMethod< + [ + tokenId: BigNumberish, + destinationChain: string, + destinationUserAddress: string, + sourceNftContractAddress: AddressLike + ], + [void], + "nonpayable" + >; + + originalStorageMapping721: TypedContractMethod< + [arg0: string, arg1: string], + [string], + "view" + >; + + originalToDuplicateMapping: TypedContractMethod< + [arg0: string, arg1: string], + [[string, string] & { chain: string; contractAddress: string }], + "view" + >; + + redirectForToken: TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + + selfChain: TypedContractMethod<[], [string], "view">; + + storageDeployer: TypedContractMethod<[], [string], "view">; + + transferFrom: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferFromNFT: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + uniqueIdentifier: TypedContractMethod<[arg0: BytesLike], [boolean], "view">; + + validators: TypedContractMethod< + [arg0: AddressLike], + [[boolean, bigint] & { added: boolean; pendingReward: bigint }], + "view" + >; + + validatorsCount: TypedContractMethod<[], [bigint], "view">; + + valueToKey: TypedContractMethod< + [arg0: string, arg1: string, arg2: BigNumberish], + [ + [bigint, string, string, boolean] & { + tokenId: bigint; + chain: string; + contract_: string; + exists: boolean; + } + ], + "view" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "DEFAULT_EXPIRY" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "MAX_INT" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "addValidator" + ): TypedContractMethod< + [_validator: AddressLike, signatures: SignerAndSignatureStruct[]], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "claimNFT721" + ): TypedContractMethod< + [data: HederaBridge.ClaimDataStruct, signatures: BytesLike[]], + [void], + "payable" + >; + getFunction( + nameOrSignature: "claimValidatorRewards" + ): TypedContractMethod<[_validator: AddressLike], [void], "nonpayable">; + getFunction( + nameOrSignature: "duplicateStorageMapping721" + ): TypedContractMethod<[arg0: string, arg1: string], [string], "view">; + getFunction( + nameOrSignature: "duplicateToOriginalMapping" + ): TypedContractMethod< + [arg0: AddressLike, arg1: string], + [[string, string] & { chain: string; contractAddress: string }], + "view" + >; + getFunction( + nameOrSignature: "keyToValue" + ): TypedContractMethod< + [arg0: string, arg1: string, arg2: BigNumberish], + [ + [bigint, string, string, boolean] & { + tokenId: bigint; + chain: string; + contract_: string; + exists: boolean; + } + ], + "view" + >; + getFunction( + nameOrSignature: "lock721" + ): TypedContractMethod< + [ + tokenId: BigNumberish, + destinationChain: string, + destinationUserAddress: string, + sourceNftContractAddress: AddressLike + ], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "originalStorageMapping721" + ): TypedContractMethod<[arg0: string, arg1: string], [string], "view">; + getFunction( + nameOrSignature: "originalToDuplicateMapping" + ): TypedContractMethod< + [arg0: string, arg1: string], + [[string, string] & { chain: string; contractAddress: string }], + "view" + >; + getFunction( + nameOrSignature: "redirectForToken" + ): TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + getFunction( + nameOrSignature: "selfChain" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "storageDeployer" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "transferFrom" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFromNFT" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "uniqueIdentifier" + ): TypedContractMethod<[arg0: BytesLike], [boolean], "view">; + getFunction( + nameOrSignature: "validators" + ): TypedContractMethod< + [arg0: AddressLike], + [[boolean, bigint] & { added: boolean; pendingReward: bigint }], + "view" + >; + getFunction( + nameOrSignature: "validatorsCount" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "valueToKey" + ): TypedContractMethod< + [arg0: string, arg1: string, arg2: BigNumberish], + [ + [bigint, string, string, boolean] & { + tokenId: bigint; + chain: string; + contract_: string; + exists: boolean; + } + ], + "view" + >; + + getEvent( + key: "AddNewValidator" + ): TypedContractEvent< + AddNewValidatorEvent.InputTuple, + AddNewValidatorEvent.OutputTuple, + AddNewValidatorEvent.OutputObject + >; + getEvent( + key: "CallResponseEvent" + ): TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + getEvent( + key: "Claimed" + ): TypedContractEvent< + ClaimedEvent.InputTuple, + ClaimedEvent.OutputTuple, + ClaimedEvent.OutputObject + >; + getEvent( + key: "Locked" + ): TypedContractEvent< + LockedEvent.InputTuple, + LockedEvent.OutputTuple, + LockedEvent.OutputObject + >; + getEvent( + key: "LogHash" + ): TypedContractEvent< + LogHashEvent.InputTuple, + LogHashEvent.OutputTuple, + LogHashEvent.OutputObject + >; + getEvent( + key: "RewardValidator" + ): TypedContractEvent< + RewardValidatorEvent.InputTuple, + RewardValidatorEvent.OutputTuple, + RewardValidatorEvent.OutputObject + >; + getEvent( + key: "UnLock721" + ): TypedContractEvent< + UnLock721Event.InputTuple, + UnLock721Event.OutputTuple, + UnLock721Event.OutputObject + >; + + filters: { + "AddNewValidator(address)": TypedContractEvent< + AddNewValidatorEvent.InputTuple, + AddNewValidatorEvent.OutputTuple, + AddNewValidatorEvent.OutputObject + >; + AddNewValidator: TypedContractEvent< + AddNewValidatorEvent.InputTuple, + AddNewValidatorEvent.OutputTuple, + AddNewValidatorEvent.OutputObject + >; + + "CallResponseEvent(bool,bytes)": TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + CallResponseEvent: TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + + "Claimed(string,string,string,address,uint256)": TypedContractEvent< + ClaimedEvent.InputTuple, + ClaimedEvent.OutputTuple, + ClaimedEvent.OutputObject + >; + Claimed: TypedContractEvent< + ClaimedEvent.InputTuple, + ClaimedEvent.OutputTuple, + ClaimedEvent.OutputObject + >; + + "Locked(uint256,string,string,string,uint256,string,string)": TypedContractEvent< + LockedEvent.InputTuple, + LockedEvent.OutputTuple, + LockedEvent.OutputObject + >; + Locked: TypedContractEvent< + LockedEvent.InputTuple, + LockedEvent.OutputTuple, + LockedEvent.OutputObject + >; + + "LogHash(bytes32,bytes[])": TypedContractEvent< + LogHashEvent.InputTuple, + LogHashEvent.OutputTuple, + LogHashEvent.OutputObject + >; + LogHash: TypedContractEvent< + LogHashEvent.InputTuple, + LogHashEvent.OutputTuple, + LogHashEvent.OutputObject + >; + + "RewardValidator(address)": TypedContractEvent< + RewardValidatorEvent.InputTuple, + RewardValidatorEvent.OutputTuple, + RewardValidatorEvent.OutputObject + >; + RewardValidator: TypedContractEvent< + RewardValidatorEvent.InputTuple, + RewardValidatorEvent.OutputTuple, + RewardValidatorEvent.OutputObject + >; + + "UnLock721(address,uint256,address)": TypedContractEvent< + UnLock721Event.InputTuple, + UnLock721Event.OutputTuple, + UnLock721Event.OutputObject + >; + UnLock721: TypedContractEvent< + UnLock721Event.InputTuple, + UnLock721Event.OutputTuple, + UnLock721Event.OutputObject + >; + }; +} diff --git a/src/contractsTypes/evm/contracts/HederaNft.ts b/src/contractsTypes/evm/contracts/hedera/HederaNFT.sol/HederaNftDep.ts similarity index 86% rename from src/contractsTypes/evm/contracts/HederaNft.ts rename to src/contractsTypes/evm/contracts/hedera/HederaNFT.sol/HederaNftDep.ts index 36f972a..c8919ac 100644 --- a/src/contractsTypes/evm/contracts/HederaNft.ts +++ b/src/contractsTypes/evm/contracts/hedera/HederaNFT.sol/HederaNftDep.ts @@ -21,9 +21,9 @@ import type { TypedLogDescription, TypedListener, TypedContractMethod, -} from "../common"; +} from "../../../common"; -export interface HederaNftInterface extends Interface { +export interface HederaNftDepInterface extends Interface { getFunction( nameOrSignature: | "DEFAULT_EXPIRY" @@ -41,7 +41,7 @@ export interface HederaNftInterface extends Interface { | "safeTransferFrom" | "transferFrom" | "transferFromNFT" - | "transferOwnership", + | "transferOwnership" ): FunctionFragment; getEvent( @@ -49,65 +49,65 @@ export interface HederaNftInterface extends Interface { | "CallResponseEvent" | "Minted" | "OwnershipTransferred" - | "Transfer", + | "Transfer" ): EventFragment; encodeFunctionData( functionFragment: "DEFAULT_EXPIRY", - values?: undefined, + values?: undefined ): string; encodeFunctionData(functionFragment: "MAX_INT", values?: undefined): string; encodeFunctionData( functionFragment: "claimNft", - values: [BigNumberish, AddressLike], + values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "decodeHts", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "htsToken", values?: undefined): string; encodeFunctionData( functionFragment: "mint", - values: [AddressLike, BigNumberish, BigNumberish, AddressLike, string], + values: [AddressLike, BigNumberish, BigNumberish, AddressLike, string] ): string; encodeFunctionData(functionFragment: "nftClaim", values?: undefined): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "ownerOf", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "redirectForToken", - values: [AddressLike, BytesLike], + values: [AddressLike, BytesLike] ): string; encodeFunctionData( functionFragment: "renounceOwnership", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "royaltyInfo", - values: [BigNumberish, BigNumberish], + values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "safeTransferFrom", - values: [AddressLike, AddressLike, BigNumberish], + values: [AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFrom", - values: [AddressLike, AddressLike, AddressLike, BigNumberish], + values: [AddressLike, AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFromNFT", - values: [AddressLike, AddressLike, AddressLike, BigNumberish], + values: [AddressLike, AddressLike, AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "transferOwnership", - values: [AddressLike], + values: [AddressLike] ): string; decodeFunctionResult( functionFragment: "DEFAULT_EXPIRY", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "MAX_INT", data: BytesLike): Result; decodeFunctionResult(functionFragment: "claimNft", data: BytesLike): Result; @@ -119,31 +119,31 @@ export interface HederaNftInterface extends Interface { decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "redirectForToken", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "royaltyInfo", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "safeTransferFrom", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferFrom", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferFromNFT", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", - data: BytesLike, + data: BytesLike ): Result; } @@ -190,7 +190,7 @@ export namespace TransferEvent { export type InputTuple = [ from: AddressLike, to: AddressLike, - tokenId: BigNumberish, + tokenId: BigNumberish ]; export type OutputTuple = [from: string, to: string, tokenId: bigint]; export interface OutputObject { @@ -204,47 +204,47 @@ export namespace TransferEvent { export type LogDescription = TypedLogDescription; } -export interface HederaNft extends BaseContract { - connect(runner?: ContractRunner | null): HederaNft; +export interface HederaNftDep extends BaseContract { + connect(runner?: ContractRunner | null): HederaNftDep; waitForDeployment(): Promise; - interface: HederaNftInterface; + interface: HederaNftDepInterface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; DEFAULT_EXPIRY: TypedContractMethod<[], [bigint], "view">; @@ -271,7 +271,7 @@ export interface HederaNft extends BaseContract { arg1: BigNumberish, arg2: BigNumberish, arg3: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" @@ -308,7 +308,7 @@ export interface HederaNft extends BaseContract { token: AddressLike, from: AddressLike, to: AddressLike, - amount: BigNumberish, + amount: BigNumberish ], [bigint], "nonpayable" @@ -319,7 +319,7 @@ export interface HederaNft extends BaseContract { token: AddressLike, from: AddressLike, to: AddressLike, - serialNumber: BigNumberish, + serialNumber: BigNumberish ], [bigint], "nonpayable" @@ -332,125 +332,125 @@ export interface HederaNft extends BaseContract { >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "DEFAULT_EXPIRY", + nameOrSignature: "DEFAULT_EXPIRY" ): TypedContractMethod<[], [bigint], "view">; getFunction( - nameOrSignature: "MAX_INT", + nameOrSignature: "MAX_INT" ): TypedContractMethod<[], [bigint], "view">; getFunction( - nameOrSignature: "claimNft", + nameOrSignature: "claimNft" ): TypedContractMethod< [serialNum: BigNumberish, token: AddressLike], [void], "nonpayable" >; getFunction( - nameOrSignature: "decodeHts", + nameOrSignature: "decodeHts" ): TypedContractMethod<[data: BigNumberish], [[string, bigint]], "view">; getFunction( - nameOrSignature: "htsToken", + nameOrSignature: "htsToken" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "mint", + nameOrSignature: "mint" ): TypedContractMethod< [ to: AddressLike, arg1: BigNumberish, arg2: BigNumberish, arg3: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" >; getFunction( - nameOrSignature: "nftClaim", + nameOrSignature: "nftClaim" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "ownerOf", + nameOrSignature: "ownerOf" ): TypedContractMethod<[tokenId: BigNumberish], [string], "nonpayable">; getFunction( - nameOrSignature: "redirectForToken", + nameOrSignature: "redirectForToken" ): TypedContractMethod< [token: AddressLike, encodedFunctionSelector: BytesLike], [[bigint, string] & { responseCode: bigint; response: string }], "nonpayable" >; getFunction( - nameOrSignature: "renounceOwnership", + nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( - nameOrSignature: "royaltyInfo", + nameOrSignature: "royaltyInfo" ): TypedContractMethod< [tokenId: BigNumberish, salePrice: BigNumberish], [[string, bigint] & { receiver: string; royaltyAmount: bigint }], "nonpayable" >; getFunction( - nameOrSignature: "safeTransferFrom", + nameOrSignature: "safeTransferFrom" ): TypedContractMethod< [_from: AddressLike, _to: AddressLike, _serialNum: BigNumberish], [void], "nonpayable" >; getFunction( - nameOrSignature: "transferFrom", + nameOrSignature: "transferFrom" ): TypedContractMethod< [ token: AddressLike, from: AddressLike, to: AddressLike, - amount: BigNumberish, + amount: BigNumberish ], [bigint], "nonpayable" >; getFunction( - nameOrSignature: "transferFromNFT", + nameOrSignature: "transferFromNFT" ): TypedContractMethod< [ token: AddressLike, from: AddressLike, to: AddressLike, - serialNumber: BigNumberish, + serialNumber: BigNumberish ], [bigint], "nonpayable" >; getFunction( - nameOrSignature: "transferOwnership", + nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent( - key: "CallResponseEvent", + key: "CallResponseEvent" ): TypedContractEvent< CallResponseEventEvent.InputTuple, CallResponseEventEvent.OutputTuple, CallResponseEventEvent.OutputObject >; getEvent( - key: "Minted", + key: "Minted" ): TypedContractEvent< MintedEvent.InputTuple, MintedEvent.OutputTuple, MintedEvent.OutputObject >; getEvent( - key: "OwnershipTransferred", + key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( - key: "Transfer", + key: "Transfer" ): TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, diff --git a/src/contractsTypes/evm/contracts/hedera/HederaNFT.sol/index.ts b/src/contractsTypes/evm/contracts/hedera/HederaNFT.sol/index.ts new file mode 100644 index 0000000..f204435 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/HederaNFT.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { HederaNftDep } from "./HederaNftDep"; diff --git a/src/contractsTypes/evm/contracts/hedera/HederaNFTClaim.ts b/src/contractsTypes/evm/contracts/hedera/HederaNFTClaim.ts new file mode 100644 index 0000000..96d3615 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/HederaNFTClaim.ts @@ -0,0 +1,315 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from "../../common"; + +export interface HederaNFTClaimInterface extends Interface { + getFunction( + nameOrSignature: + | "addClaimRecord" + | "decodeHts" + | "getClaimRecord" + | "getClaimableNfts" + | "owner" + | "renounceOwnership" + | "transferOwnership" + ): FunctionFragment; + + getEvent( + nameOrSignatureOrTopic: + | "ClaimCreated" + | "ClaimRemoved" + | "OwnershipTransferred" + ): EventFragment; + + encodeFunctionData( + functionFragment: "addClaimRecord", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "decodeHts", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getClaimRecord", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getClaimableNfts", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData(functionFragment: "owner", values?: undefined): string; + encodeFunctionData( + functionFragment: "renounceOwnership", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "transferOwnership", + values: [AddressLike] + ): string; + + decodeFunctionResult( + functionFragment: "addClaimRecord", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "decodeHts", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getClaimRecord", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getClaimableNfts", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "renounceOwnership", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferOwnership", + data: BytesLike + ): Result; +} + +export namespace ClaimCreatedEvent { + export type InputTuple = [ + to: AddressLike, + token: AddressLike, + serial: BigNumberish + ]; + export type OutputTuple = [to: string, token: string, serial: bigint]; + export interface OutputObject { + to: string; + token: string; + serial: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace ClaimRemovedEvent { + export type InputTuple = [ + to: AddressLike, + token: AddressLike, + serial: BigNumberish + ]; + export type OutputTuple = [to: string, token: string, serial: bigint]; + export interface OutputObject { + to: string; + token: string; + serial: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace OwnershipTransferredEvent { + export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; + export type OutputTuple = [previousOwner: string, newOwner: string]; + export interface OutputObject { + previousOwner: string; + newOwner: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface HederaNFTClaim extends BaseContract { + connect(runner?: ContractRunner | null): HederaNFTClaim; + waitForDeployment(): Promise; + + interface: HederaNFTClaimInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + addClaimRecord: TypedContractMethod< + [to: AddressLike, token: AddressLike, serial: BigNumberish], + [void], + "nonpayable" + >; + + decodeHts: TypedContractMethod< + [data: BigNumberish], + [[string, bigint]], + "view" + >; + + getClaimRecord: TypedContractMethod< + [sender: AddressLike, token: AddressLike, serialNum: BigNumberish], + [void], + "nonpayable" + >; + + getClaimableNfts: TypedContractMethod< + [claimer: AddressLike, token: AddressLike], + [bigint[]], + "view" + >; + + owner: TypedContractMethod<[], [string], "view">; + + renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; + + transferOwnership: TypedContractMethod< + [newOwner: AddressLike], + [void], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "addClaimRecord" + ): TypedContractMethod< + [to: AddressLike, token: AddressLike, serial: BigNumberish], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "decodeHts" + ): TypedContractMethod<[data: BigNumberish], [[string, bigint]], "view">; + getFunction( + nameOrSignature: "getClaimRecord" + ): TypedContractMethod< + [sender: AddressLike, token: AddressLike, serialNum: BigNumberish], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "getClaimableNfts" + ): TypedContractMethod< + [claimer: AddressLike, token: AddressLike], + [bigint[]], + "view" + >; + getFunction( + nameOrSignature: "owner" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "renounceOwnership" + ): TypedContractMethod<[], [void], "nonpayable">; + getFunction( + nameOrSignature: "transferOwnership" + ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; + + getEvent( + key: "ClaimCreated" + ): TypedContractEvent< + ClaimCreatedEvent.InputTuple, + ClaimCreatedEvent.OutputTuple, + ClaimCreatedEvent.OutputObject + >; + getEvent( + key: "ClaimRemoved" + ): TypedContractEvent< + ClaimRemovedEvent.InputTuple, + ClaimRemovedEvent.OutputTuple, + ClaimRemovedEvent.OutputObject + >; + getEvent( + key: "OwnershipTransferred" + ): TypedContractEvent< + OwnershipTransferredEvent.InputTuple, + OwnershipTransferredEvent.OutputTuple, + OwnershipTransferredEvent.OutputObject + >; + + filters: { + "ClaimCreated(address,address,int64)": TypedContractEvent< + ClaimCreatedEvent.InputTuple, + ClaimCreatedEvent.OutputTuple, + ClaimCreatedEvent.OutputObject + >; + ClaimCreated: TypedContractEvent< + ClaimCreatedEvent.InputTuple, + ClaimCreatedEvent.OutputTuple, + ClaimCreatedEvent.OutputObject + >; + + "ClaimRemoved(address,address,int64)": TypedContractEvent< + ClaimRemovedEvent.InputTuple, + ClaimRemovedEvent.OutputTuple, + ClaimRemovedEvent.OutputObject + >; + ClaimRemoved: TypedContractEvent< + ClaimRemovedEvent.InputTuple, + ClaimRemovedEvent.OutputTuple, + ClaimRemovedEvent.OutputObject + >; + + "OwnershipTransferred(address,address)": TypedContractEvent< + OwnershipTransferredEvent.InputTuple, + OwnershipTransferredEvent.OutputTuple, + OwnershipTransferredEvent.OutputObject + >; + OwnershipTransferred: TypedContractEvent< + OwnershipTransferredEvent.InputTuple, + OwnershipTransferredEvent.OutputTuple, + OwnershipTransferredEvent.OutputObject + >; + }; +} diff --git a/src/contractsTypes/evm/contracts/hedera/HederaNFTStorage.ts b/src/contractsTypes/evm/contracts/hedera/HederaNFTStorage.ts new file mode 100644 index 0000000..29bcff0 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/HederaNFTStorage.ts @@ -0,0 +1,336 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from "../../common"; + +export interface HederaNFTStorageInterface extends Interface { + getFunction( + nameOrSignature: + | "claimContract" + | "claimNft" + | "collectionAddress" + | "depositToken" + | "owner" + | "redirectForToken" + | "transferFrom" + | "transferFromNFT" + | "unlockToken" + ): FunctionFragment; + + getEvent( + nameOrSignatureOrTopic: "CallResponseEvent" | "Transfer" + ): EventFragment; + + encodeFunctionData( + functionFragment: "claimContract", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "claimNft", + values: [BigNumberish, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "collectionAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "depositToken", + values: [BigNumberish] + ): string; + encodeFunctionData(functionFragment: "owner", values?: undefined): string; + encodeFunctionData( + functionFragment: "redirectForToken", + values: [AddressLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFromNFT", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "unlockToken", + values: [BigNumberish, AddressLike] + ): string; + + decodeFunctionResult( + functionFragment: "claimContract", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "claimNft", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "collectionAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "depositToken", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "redirectForToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFromNFT", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "unlockToken", + data: BytesLike + ): Result; +} + +export namespace CallResponseEventEvent { + export type InputTuple = [arg0: boolean, arg1: BytesLike]; + export type OutputTuple = [arg0: boolean, arg1: string]; + export interface OutputObject { + arg0: boolean; + arg1: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace TransferEvent { + export type InputTuple = [ + from: AddressLike, + to: AddressLike, + tokenId: BigNumberish + ]; + export type OutputTuple = [from: string, to: string, tokenId: bigint]; + export interface OutputObject { + from: string; + to: string; + tokenId: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface HederaNFTStorage extends BaseContract { + connect(runner?: ContractRunner | null): HederaNFTStorage; + waitForDeployment(): Promise; + + interface: HederaNFTStorageInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + claimContract: TypedContractMethod<[], [string], "view">; + + claimNft: TypedContractMethod< + [serialNum: BigNumberish, token: AddressLike], + [void], + "nonpayable" + >; + + collectionAddress: TypedContractMethod<[], [string], "view">; + + depositToken: TypedContractMethod< + [tokenId: BigNumberish], + [void], + "nonpayable" + >; + + owner: TypedContractMethod<[], [string], "view">; + + redirectForToken: TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + + transferFrom: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferFromNFT: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + unlockToken: TypedContractMethod< + [tokenId: BigNumberish, to: AddressLike], + [void], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "claimContract" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "claimNft" + ): TypedContractMethod< + [serialNum: BigNumberish, token: AddressLike], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "collectionAddress" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "depositToken" + ): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">; + getFunction( + nameOrSignature: "owner" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "redirectForToken" + ): TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFrom" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFromNFT" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "unlockToken" + ): TypedContractMethod< + [tokenId: BigNumberish, to: AddressLike], + [void], + "nonpayable" + >; + + getEvent( + key: "CallResponseEvent" + ): TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + getEvent( + key: "Transfer" + ): TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + + filters: { + "CallResponseEvent(bool,bytes)": TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + CallResponseEvent: TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + + "Transfer(address,address,int64)": TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + Transfer: TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + }; +} diff --git a/src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer.ts b/src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer.ts new file mode 100644 index 0000000..a5f6f33 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer.ts @@ -0,0 +1,118 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../common"; + +export interface HederaNFTStorageDeployerInterface extends Interface { + getFunction( + nameOrSignature: "deployNFT721Storage" | "owner" | "setOwner" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "deployNFT721Storage", + values: [AddressLike] + ): string; + encodeFunctionData(functionFragment: "owner", values?: undefined): string; + encodeFunctionData( + functionFragment: "setOwner", + values: [AddressLike] + ): string; + + decodeFunctionResult( + functionFragment: "deployNFT721Storage", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result; +} + +export interface HederaNFTStorageDeployer extends BaseContract { + connect(runner?: ContractRunner | null): HederaNFTStorageDeployer; + waitForDeployment(): Promise; + + interface: HederaNFTStorageDeployerInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + deployNFT721Storage: TypedContractMethod< + [collectionAddress: AddressLike], + [string], + "nonpayable" + >; + + owner: TypedContractMethod<[], [string], "view">; + + setOwner: TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "deployNFT721Storage" + ): TypedContractMethod< + [collectionAddress: AddressLike], + [string], + "nonpayable" + >; + getFunction( + nameOrSignature: "owner" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "setOwner" + ): TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + + filters: {}; +} diff --git a/src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/index.ts b/src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/index.ts new file mode 100644 index 0000000..3e2398b --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/HederaStorageDeployer.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { HederaNFTStorageDeployer } from "./HederaNFTStorageDeployer"; diff --git a/src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/ContractProxy.ts b/src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/ContractProxy.ts new file mode 100644 index 0000000..b772819 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/ContractProxy.ts @@ -0,0 +1,567 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from "../../../common"; + +export declare namespace IHederaTokenService { + export type KeyValueStruct = { + inheritAccountKey: boolean; + contractId: AddressLike; + ed25519: BytesLike; + ECDSA_secp256k1: BytesLike; + delegatableContractId: AddressLike; + }; + + export type KeyValueStructOutput = [ + inheritAccountKey: boolean, + contractId: string, + ed25519: string, + ECDSA_secp256k1: string, + delegatableContractId: string + ] & { + inheritAccountKey: boolean; + contractId: string; + ed25519: string; + ECDSA_secp256k1: string; + delegatableContractId: string; + }; + + export type TokenKeyStruct = { + keyType: BigNumberish; + key: IHederaTokenService.KeyValueStruct; + }; + + export type TokenKeyStructOutput = [ + keyType: bigint, + key: IHederaTokenService.KeyValueStructOutput + ] & { keyType: bigint; key: IHederaTokenService.KeyValueStructOutput }; + + export type ExpiryStruct = { + second: BigNumberish; + autoRenewAccount: AddressLike; + autoRenewPeriod: BigNumberish; + }; + + export type ExpiryStructOutput = [ + second: bigint, + autoRenewAccount: string, + autoRenewPeriod: bigint + ] & { second: bigint; autoRenewAccount: string; autoRenewPeriod: bigint }; + + export type HederaTokenStruct = { + name: string; + symbol: string; + treasury: AddressLike; + memo: string; + tokenSupplyType: boolean; + maxSupply: BigNumberish; + freezeDefault: boolean; + tokenKeys: IHederaTokenService.TokenKeyStruct[]; + expiry: IHederaTokenService.ExpiryStruct; + }; + + export type HederaTokenStructOutput = [ + name: string, + symbol: string, + treasury: string, + memo: string, + tokenSupplyType: boolean, + maxSupply: bigint, + freezeDefault: boolean, + tokenKeys: IHederaTokenService.TokenKeyStructOutput[], + expiry: IHederaTokenService.ExpiryStructOutput + ] & { + name: string; + symbol: string; + treasury: string; + memo: string; + tokenSupplyType: boolean; + maxSupply: bigint; + freezeDefault: boolean; + tokenKeys: IHederaTokenService.TokenKeyStructOutput[]; + expiry: IHederaTokenService.ExpiryStructOutput; + }; + + export type FixedFeeStruct = { + amount: BigNumberish; + tokenId: AddressLike; + useHbarsForPayment: boolean; + useCurrentTokenForPayment: boolean; + feeCollector: AddressLike; + }; + + export type FixedFeeStructOutput = [ + amount: bigint, + tokenId: string, + useHbarsForPayment: boolean, + useCurrentTokenForPayment: boolean, + feeCollector: string + ] & { + amount: bigint; + tokenId: string; + useHbarsForPayment: boolean; + useCurrentTokenForPayment: boolean; + feeCollector: string; + }; + + export type FractionalFeeStruct = { + numerator: BigNumberish; + denominator: BigNumberish; + minimumAmount: BigNumberish; + maximumAmount: BigNumberish; + netOfTransfers: boolean; + feeCollector: AddressLike; + }; + + export type FractionalFeeStructOutput = [ + numerator: bigint, + denominator: bigint, + minimumAmount: bigint, + maximumAmount: bigint, + netOfTransfers: boolean, + feeCollector: string + ] & { + numerator: bigint; + denominator: bigint; + minimumAmount: bigint; + maximumAmount: bigint; + netOfTransfers: boolean; + feeCollector: string; + }; + + export type RoyaltyFeeStruct = { + numerator: BigNumberish; + denominator: BigNumberish; + amount: BigNumberish; + tokenId: AddressLike; + useHbarsForPayment: boolean; + feeCollector: AddressLike; + }; + + export type RoyaltyFeeStructOutput = [ + numerator: bigint, + denominator: bigint, + amount: bigint, + tokenId: string, + useHbarsForPayment: boolean, + feeCollector: string + ] & { + numerator: bigint; + denominator: bigint; + amount: bigint; + tokenId: string; + useHbarsForPayment: boolean; + feeCollector: string; + }; + + export type TokenInfoStruct = { + token: IHederaTokenService.HederaTokenStruct; + totalSupply: BigNumberish; + deleted: boolean; + defaultKycStatus: boolean; + pauseStatus: boolean; + fixedFees: IHederaTokenService.FixedFeeStruct[]; + fractionalFees: IHederaTokenService.FractionalFeeStruct[]; + royaltyFees: IHederaTokenService.RoyaltyFeeStruct[]; + ledgerId: string; + }; + + export type TokenInfoStructOutput = [ + token: IHederaTokenService.HederaTokenStructOutput, + totalSupply: bigint, + deleted: boolean, + defaultKycStatus: boolean, + pauseStatus: boolean, + fixedFees: IHederaTokenService.FixedFeeStructOutput[], + fractionalFees: IHederaTokenService.FractionalFeeStructOutput[], + royaltyFees: IHederaTokenService.RoyaltyFeeStructOutput[], + ledgerId: string + ] & { + token: IHederaTokenService.HederaTokenStructOutput; + totalSupply: bigint; + deleted: boolean; + defaultKycStatus: boolean; + pauseStatus: boolean; + fixedFees: IHederaTokenService.FixedFeeStructOutput[]; + fractionalFees: IHederaTokenService.FractionalFeeStructOutput[]; + royaltyFees: IHederaTokenService.RoyaltyFeeStructOutput[]; + ledgerId: string; + }; + + export type NonFungibleTokenInfoStruct = { + tokenInfo: IHederaTokenService.TokenInfoStruct; + serialNumber: BigNumberish; + ownerId: AddressLike; + creationTime: BigNumberish; + metadata: BytesLike; + spenderId: AddressLike; + }; + + export type NonFungibleTokenInfoStructOutput = [ + tokenInfo: IHederaTokenService.TokenInfoStructOutput, + serialNumber: bigint, + ownerId: string, + creationTime: bigint, + metadata: string, + spenderId: string + ] & { + tokenInfo: IHederaTokenService.TokenInfoStructOutput; + serialNumber: bigint; + ownerId: string; + creationTime: bigint; + metadata: string; + spenderId: string; + }; +} + +export interface ContractProxyInterface extends Interface { + getFunction( + nameOrSignature: + | "DEFAULT_EXPIRY" + | "MAX_INT" + | "deployNft" + | "mint" + | "redirectForToken" + | "royaltyInfo" + | "transferFrom" + | "transferFromNFT" + ): FunctionFragment; + + getEvent( + nameOrSignatureOrTopic: + | "CallResponseEvent" + | "Mint" + | "NftCollectionCreated" + ): EventFragment; + + encodeFunctionData( + functionFragment: "DEFAULT_EXPIRY", + values?: undefined + ): string; + encodeFunctionData(functionFragment: "MAX_INT", values?: undefined): string; + encodeFunctionData( + functionFragment: "deployNft", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "mint", + values: [AddressLike, string] + ): string; + encodeFunctionData( + functionFragment: "redirectForToken", + values: [AddressLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "royaltyInfo", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFromNFT", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + + decodeFunctionResult( + functionFragment: "DEFAULT_EXPIRY", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "MAX_INT", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "deployNft", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "redirectForToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "royaltyInfo", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFromNFT", + data: BytesLike + ): Result; +} + +export namespace CallResponseEventEvent { + export type InputTuple = [arg0: boolean, arg1: BytesLike]; + export type OutputTuple = [arg0: boolean, arg1: string]; + export interface OutputObject { + arg0: boolean; + arg1: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace MintEvent { + export type InputTuple = [ + token: AddressLike, + owner: AddressLike, + serialNumber: BigNumberish + ]; + export type OutputTuple = [ + token: string, + owner: string, + serialNumber: bigint + ]; + export interface OutputObject { + token: string; + owner: string; + serialNumber: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace NftCollectionCreatedEvent { + export type InputTuple = [token: AddressLike]; + export type OutputTuple = [token: string]; + export interface OutputObject { + token: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface ContractProxy extends BaseContract { + connect(runner?: ContractRunner | null): ContractProxy; + waitForDeployment(): Promise; + + interface: ContractProxyInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + DEFAULT_EXPIRY: TypedContractMethod<[], [bigint], "view">; + + MAX_INT: TypedContractMethod<[], [bigint], "view">; + + deployNft: TypedContractMethod< + [name: string, symbol: string], + [void], + "payable" + >; + + mint: TypedContractMethod< + [token: AddressLike, tokenURI: string], + [void], + "payable" + >; + + redirectForToken: TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + + royaltyInfo: TypedContractMethod< + [token: AddressLike, serialNumber: BigNumberish], + [[bigint, IHederaTokenService.NonFungibleTokenInfoStructOutput]], + "nonpayable" + >; + + transferFrom: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferFromNFT: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "DEFAULT_EXPIRY" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "MAX_INT" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "deployNft" + ): TypedContractMethod<[name: string, symbol: string], [void], "payable">; + getFunction( + nameOrSignature: "mint" + ): TypedContractMethod< + [token: AddressLike, tokenURI: string], + [void], + "payable" + >; + getFunction( + nameOrSignature: "redirectForToken" + ): TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + getFunction( + nameOrSignature: "royaltyInfo" + ): TypedContractMethod< + [token: AddressLike, serialNumber: BigNumberish], + [[bigint, IHederaTokenService.NonFungibleTokenInfoStructOutput]], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFrom" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFromNFT" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + getEvent( + key: "CallResponseEvent" + ): TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + getEvent( + key: "Mint" + ): TypedContractEvent< + MintEvent.InputTuple, + MintEvent.OutputTuple, + MintEvent.OutputObject + >; + getEvent( + key: "NftCollectionCreated" + ): TypedContractEvent< + NftCollectionCreatedEvent.InputTuple, + NftCollectionCreatedEvent.OutputTuple, + NftCollectionCreatedEvent.OutputObject + >; + + filters: { + "CallResponseEvent(bool,bytes)": TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + CallResponseEvent: TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + + "Mint(address,address,int64)": TypedContractEvent< + MintEvent.InputTuple, + MintEvent.OutputTuple, + MintEvent.OutputObject + >; + Mint: TypedContractEvent< + MintEvent.InputTuple, + MintEvent.OutputTuple, + MintEvent.OutputObject + >; + + "NftCollectionCreated(address)": TypedContractEvent< + NftCollectionCreatedEvent.InputTuple, + NftCollectionCreatedEvent.OutputTuple, + NftCollectionCreatedEvent.OutputObject + >; + NftCollectionCreated: TypedContractEvent< + NftCollectionCreatedEvent.InputTuple, + NftCollectionCreatedEvent.OutputTuple, + NftCollectionCreatedEvent.OutputObject + >; + }; +} diff --git a/src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/index.ts b/src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/index.ts new file mode 100644 index 0000000..ed18d9f --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/RoyaltyInfo.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { ContractProxy } from "./ContractProxy"; diff --git a/src/contractsTypes/evm/contracts/hedera/index.ts b/src/contractsTypes/evm/contracts/hedera/index.ts new file mode 100644 index 0000000..7a3675c --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/index.ts @@ -0,0 +1,14 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as hederaNftSol from "./HederaNFT.sol"; +export type { hederaNftSol }; +import type * as hederaStorageDeployerSol from "./HederaStorageDeployer.sol"; +export type { hederaStorageDeployerSol }; +import type * as royaltyInfoSol from "./RoyaltyInfo.sol"; +export type { royaltyInfoSol }; +import type * as interfaces from "./interfaces"; +export type { interfaces }; +export type { HederaBridge } from "./HederaBridge"; +export type { HederaNFTClaim } from "./HederaNFTClaim"; +export type { HederaNFTStorage } from "./HederaNFTStorage"; diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/IERC721Royalty.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/IERC721Royalty.ts new file mode 100644 index 0000000..575ecb4 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/IERC721Royalty.ts @@ -0,0 +1,142 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../common"; + +export interface IERC721RoyaltyInterface extends Interface { + getFunction( + nameOrSignature: "mint" | "ownerOf" | "royaltyInfo" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "mint", + values: [AddressLike, BigNumberish, BigNumberish, AddressLike, string] + ): string; + encodeFunctionData( + functionFragment: "ownerOf", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "royaltyInfo", + values: [BigNumberish, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "royaltyInfo", + data: BytesLike + ): Result; +} + +export interface IERC721Royalty extends BaseContract { + connect(runner?: ContractRunner | null): IERC721Royalty; + waitForDeployment(): Promise; + + interface: IERC721RoyaltyInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + mint: TypedContractMethod< + [ + to: AddressLike, + tokenId: BigNumberish, + royalty: BigNumberish, + royaltyReceiver: AddressLike, + tokenURI: string + ], + [void], + "nonpayable" + >; + + ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "nonpayable">; + + royaltyInfo: TypedContractMethod< + [tokenId: BigNumberish, salePrice: BigNumberish], + [[string, bigint] & { receiver: string; royaltyAmount: bigint }], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "mint" + ): TypedContractMethod< + [ + to: AddressLike, + tokenId: BigNumberish, + royalty: BigNumberish, + royaltyReceiver: AddressLike, + tokenURI: string + ], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "ownerOf" + ): TypedContractMethod<[tokenId: BigNumberish], [string], "nonpayable">; + getFunction( + nameOrSignature: "royaltyInfo" + ): TypedContractMethod< + [tokenId: BigNumberish, salePrice: BigNumberish], + [[string, bigint] & { receiver: string; royaltyAmount: bigint }], + "nonpayable" + >; + + filters: {}; +} diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/IHRC.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/IHRC.ts new file mode 100644 index 0000000..75c2fa0 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/IHRC.ts @@ -0,0 +1,94 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../common"; + +export interface IHRCInterface extends Interface { + getFunction(nameOrSignature: "associate" | "dissociate"): FunctionFragment; + + encodeFunctionData(functionFragment: "associate", values?: undefined): string; + encodeFunctionData( + functionFragment: "dissociate", + values?: undefined + ): string; + + decodeFunctionResult(functionFragment: "associate", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "dissociate", data: BytesLike): Result; +} + +export interface IHRC extends BaseContract { + connect(runner?: ContractRunner | null): IHRC; + waitForDeployment(): Promise; + + interface: IHRCInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + associate: TypedContractMethod<[], [bigint], "nonpayable">; + + dissociate: TypedContractMethod<[], [bigint], "nonpayable">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "associate" + ): TypedContractMethod<[], [bigint], "nonpayable">; + getFunction( + nameOrSignature: "dissociate" + ): TypedContractMethod<[], [bigint], "nonpayable">; + + filters: {}; +} diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer.ts new file mode 100644 index 0000000..f2b5427 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer.ts @@ -0,0 +1,88 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../../common"; + +export interface IHTSCompatibilityLayerInterface extends Interface { + getFunction(nameOrSignature: "ownerOf"): FunctionFragment; + + encodeFunctionData( + functionFragment: "ownerOf", + values: [BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; +} + +export interface IHTSCompatibilityLayer extends BaseContract { + connect(runner?: ContractRunner | null): IHTSCompatibilityLayer; + waitForDeployment(): Promise; + + interface: IHTSCompatibilityLayerInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "ownerOf" + ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + + filters: {}; +} diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts new file mode 100644 index 0000000..9e576b3 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { IHTSCompatibilityLayer } from "./IHTSCompatibilityLayer"; diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/INFTClaim.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/INFTClaim.ts new file mode 100644 index 0000000..b38b7b7 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/INFTClaim.ts @@ -0,0 +1,162 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../common"; + +export interface INFTClaimInterface extends Interface { + getFunction( + nameOrSignature: + | "addClaimRecord" + | "decodeHts" + | "getClaimRecord" + | "getClaimableNfts" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "addClaimRecord", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "decodeHts", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getClaimRecord", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getClaimableNfts", + values: [AddressLike, AddressLike] + ): string; + + decodeFunctionResult( + functionFragment: "addClaimRecord", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "decodeHts", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getClaimRecord", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getClaimableNfts", + data: BytesLike + ): Result; +} + +export interface INFTClaim extends BaseContract { + connect(runner?: ContractRunner | null): INFTClaim; + waitForDeployment(): Promise; + + interface: INFTClaimInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + addClaimRecord: TypedContractMethod< + [to: AddressLike, token: AddressLike, serial: BigNumberish], + [void], + "nonpayable" + >; + + decodeHts: TypedContractMethod< + [data: BigNumberish], + [[string, bigint]], + "view" + >; + + getClaimRecord: TypedContractMethod< + [sender: AddressLike, token: AddressLike, serialNum: BigNumberish], + [void], + "nonpayable" + >; + + getClaimableNfts: TypedContractMethod< + [claimer: AddressLike, token: AddressLike], + [bigint[]], + "view" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "addClaimRecord" + ): TypedContractMethod< + [to: AddressLike, token: AddressLike, serial: BigNumberish], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "decodeHts" + ): TypedContractMethod<[data: BigNumberish], [[string, bigint]], "view">; + getFunction( + nameOrSignature: "getClaimRecord" + ): TypedContractMethod< + [sender: AddressLike, token: AddressLike, serialNum: BigNumberish], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "getClaimableNfts" + ): TypedContractMethod< + [claimer: AddressLike, token: AddressLike], + [bigint[]], + "view" + >; + + filters: {}; +} diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageDeployer.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageDeployer.ts new file mode 100644 index 0000000..be5d239 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageDeployer.ts @@ -0,0 +1,118 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../common"; + +export interface INFTStorageDeployerInterface extends Interface { + getFunction( + nameOrSignature: "deployNFT721Storage" | "owner" | "setOwner" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "deployNFT721Storage", + values: [AddressLike] + ): string; + encodeFunctionData(functionFragment: "owner", values?: undefined): string; + encodeFunctionData( + functionFragment: "setOwner", + values: [AddressLike] + ): string; + + decodeFunctionResult( + functionFragment: "deployNFT721Storage", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result; +} + +export interface INFTStorageDeployer extends BaseContract { + connect(runner?: ContractRunner | null): INFTStorageDeployer; + waitForDeployment(): Promise; + + interface: INFTStorageDeployerInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + deployNFT721Storage: TypedContractMethod< + [collectionAddress: AddressLike], + [string], + "nonpayable" + >; + + owner: TypedContractMethod<[], [string], "view">; + + setOwner: TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "deployNFT721Storage" + ): TypedContractMethod< + [collectionAddress: AddressLike], + [string], + "nonpayable" + >; + getFunction( + nameOrSignature: "owner" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "setOwner" + ): TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + + filters: {}; +} diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageERC721.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageERC721.ts new file mode 100644 index 0000000..6293d89 --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/INFTStorageERC721.ts @@ -0,0 +1,143 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../common"; + +export interface INFTStorageERC721Interface extends Interface { + getFunction( + nameOrSignature: + | "collectionAddress" + | "depositToken" + | "owner" + | "unlockToken" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "collectionAddress", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "depositToken", + values: [BigNumberish] + ): string; + encodeFunctionData(functionFragment: "owner", values?: undefined): string; + encodeFunctionData( + functionFragment: "unlockToken", + values: [BigNumberish, AddressLike] + ): string; + + decodeFunctionResult( + functionFragment: "collectionAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "depositToken", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "unlockToken", + data: BytesLike + ): Result; +} + +export interface INFTStorageERC721 extends BaseContract { + connect(runner?: ContractRunner | null): INFTStorageERC721; + waitForDeployment(): Promise; + + interface: INFTStorageERC721Interface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + collectionAddress: TypedContractMethod<[], [string], "view">; + + depositToken: TypedContractMethod< + [tokenId: BigNumberish], + [void], + "nonpayable" + >; + + owner: TypedContractMethod<[], [string], "view">; + + unlockToken: TypedContractMethod< + [tokenId: BigNumberish, to: AddressLike], + [void], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "collectionAddress" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "depositToken" + ): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">; + getFunction( + nameOrSignature: "owner" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "unlockToken" + ): TypedContractMethod< + [tokenId: BigNumberish, to: AddressLike], + [void], + "nonpayable" + >; + + filters: {}; +} diff --git a/src/contractsTypes/evm/contracts/hedera/interfaces/index.ts b/src/contractsTypes/evm/contracts/hedera/interfaces/index.ts new file mode 100644 index 0000000..85fc0bb --- /dev/null +++ b/src/contractsTypes/evm/contracts/hedera/interfaces/index.ts @@ -0,0 +1,10 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as ihtsCompatabilityLayerSol from "./IHTSCompatabilityLayer.sol"; +export type { ihtsCompatabilityLayerSol }; +export type { IERC721Royalty } from "./IERC721Royalty"; +export type { IHRC } from "./IHRC"; +export type { INFTClaim } from "./INFTClaim"; +export type { INFTStorageDeployer } from "./INFTStorageDeployer"; +export type { INFTStorageERC721 } from "./INFTStorageERC721"; diff --git a/src/contractsTypes/evm/contracts/index.ts b/src/contractsTypes/evm/contracts/index.ts index 08c1f26..1661c46 100644 --- a/src/contractsTypes/evm/contracts/index.ts +++ b/src/contractsTypes/evm/contracts/index.ts @@ -1,15 +1,17 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -import type * as interfaces from './interfaces'; +import type * as hedera from "./hedera"; +export type { hedera }; +import type * as interfaces from "./interfaces"; export type { interfaces }; -export type { Bridge } from './Bridge'; -export type { BridgeStorage } from './BridgeStorage'; -export type { ERC1155Royalty } from './ERC1155Royalty'; -export type { ERC20Staking } from './ERC20Staking'; -export type { ERC20Token } from './ERC20Token'; -export type { ERC721Royalty } from './ERC721Royalty'; -export type { NFTCollectionDeployer } from './NFTCollectionDeployer'; -export type { NFTStorageDeployer } from './NFTStorageDeployer'; -export type { NFTStorageERC1155 } from './NFTStorageERC1155'; -export type { NFTStorageERC721 } from './NFTStorageERC721'; +export type { Bridge } from "./Bridge"; +export type { BridgeStorage } from "./BridgeStorage"; +export type { ERC1155Royalty } from "./ERC1155Royalty"; +export type { ERC20Staking } from "./ERC20Staking"; +export type { ERC20Token } from "./ERC20Token"; +export type { ERC721Royalty } from "./ERC721Royalty"; +export type { NFTCollectionDeployer } from "./NFTCollectionDeployer"; +export type { NFTStorageDeployer } from "./NFTStorageDeployer"; +export type { NFTStorageERC1155 } from "./NFTStorageERC1155"; +export type { NFTStorageERC721 } from "./NFTStorageERC721"; diff --git a/src/contractsTypes/evm/contracts/interfaces/IERC1155Royalty.ts b/src/contractsTypes/evm/contracts/interfaces/IERC1155Royalty.ts index 7b815ee..2cf2dbd 100644 --- a/src/contractsTypes/evm/contracts/interfaces/IERC1155Royalty.ts +++ b/src/contractsTypes/evm/contracts/interfaces/IERC1155Royalty.ts @@ -29,12 +29,12 @@ export interface IERC1155RoyaltyInterface extends Interface { | "owner" | "royaltyInfo" | "setTokenURI" - | "uri", + | "uri" ): FunctionFragment; encodeFunctionData( functionFragment: "balanceOf", - values: [AddressLike, BigNumberish], + values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "mint", @@ -44,17 +44,17 @@ export interface IERC1155RoyaltyInterface extends Interface { BigNumberish, BigNumberish, AddressLike, - string, - ], + string + ] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "royaltyInfo", - values: [BigNumberish, BigNumberish], + values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "setTokenURI", - values: [BigNumberish, string], + values: [BigNumberish, string] ): string; encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string; @@ -63,11 +63,11 @@ export interface IERC1155RoyaltyInterface extends Interface { decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "royaltyInfo", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setTokenURI", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result; } @@ -81,38 +81,38 @@ export interface IERC1155Royalty extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; balanceOf: TypedContractMethod< @@ -128,7 +128,7 @@ export interface IERC1155Royalty extends BaseContract { amount: BigNumberish, royalty: BigNumberish, royaltyReceiver: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" @@ -151,18 +151,18 @@ export interface IERC1155Royalty extends BaseContract { uri: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "balanceOf", + nameOrSignature: "balanceOf" ): TypedContractMethod< [account: AddressLike, id: BigNumberish], [bigint], "view" >; getFunction( - nameOrSignature: "mint", + nameOrSignature: "mint" ): TypedContractMethod< [ account: AddressLike, @@ -170,30 +170,30 @@ export interface IERC1155Royalty extends BaseContract { amount: BigNumberish, royalty: BigNumberish, royaltyReceiver: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "royaltyInfo", + nameOrSignature: "royaltyInfo" ): TypedContractMethod< [tokenId: BigNumberish, salePrice: BigNumberish], [[string, bigint] & { receiver: string; royaltyAmount: bigint }], "view" >; getFunction( - nameOrSignature: "setTokenURI", + nameOrSignature: "setTokenURI" ): TypedContractMethod< [tokenId: BigNumberish, newTokenURI: string], [void], "nonpayable" >; getFunction( - nameOrSignature: "uri", + nameOrSignature: "uri" ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; filters: {}; diff --git a/src/contractsTypes/evm/contracts/interfaces/IERC721Royalty.ts b/src/contractsTypes/evm/contracts/interfaces/IERC721Royalty.ts index b42123e..e375544 100644 --- a/src/contractsTypes/evm/contracts/interfaces/IERC721Royalty.ts +++ b/src/contractsTypes/evm/contracts/interfaces/IERC721Royalty.ts @@ -23,27 +23,27 @@ import type { export interface IERC721RoyaltyInterface extends Interface { getFunction( - nameOrSignature: "mint" | "ownerOf" | "royaltyInfo", + nameOrSignature: "mint" | "ownerOf" | "royaltyInfo" ): FunctionFragment; encodeFunctionData( functionFragment: "mint", - values: [AddressLike, BigNumberish, BigNumberish, AddressLike, string], + values: [AddressLike, BigNumberish, BigNumberish, AddressLike, string] ): string; encodeFunctionData( functionFragment: "ownerOf", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "royaltyInfo", - values: [BigNumberish, BigNumberish], + values: [BigNumberish, BigNumberish] ): string; decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "royaltyInfo", - data: BytesLike, + data: BytesLike ): Result; } @@ -56,38 +56,38 @@ export interface IERC721Royalty extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; mint: TypedContractMethod< @@ -96,46 +96,46 @@ export interface IERC721Royalty extends BaseContract { tokenId: BigNumberish, royalty: BigNumberish, royaltyReceiver: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" >; - ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "nonpayable">; royaltyInfo: TypedContractMethod< [tokenId: BigNumberish, salePrice: BigNumberish], [[string, bigint] & { receiver: string; royaltyAmount: bigint }], - "view" + "nonpayable" >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "mint", + nameOrSignature: "mint" ): TypedContractMethod< [ to: AddressLike, tokenId: BigNumberish, royalty: BigNumberish, royaltyReceiver: AddressLike, - tokenURI: string, + tokenURI: string ], [void], "nonpayable" >; getFunction( - nameOrSignature: "ownerOf", - ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + nameOrSignature: "ownerOf" + ): TypedContractMethod<[tokenId: BigNumberish], [string], "nonpayable">; getFunction( - nameOrSignature: "royaltyInfo", + nameOrSignature: "royaltyInfo" ): TypedContractMethod< [tokenId: BigNumberish, salePrice: BigNumberish], [[string, bigint] & { receiver: string; royaltyAmount: bigint }], - "view" + "nonpayable" >; filters: {}; diff --git a/src/contractsTypes/evm/contracts/interfaces/INFTCollectionDeployer.ts b/src/contractsTypes/evm/contracts/interfaces/INFTCollectionDeployer.ts index 9b3d23d..3f8cdc7 100644 --- a/src/contractsTypes/evm/contracts/interfaces/INFTCollectionDeployer.ts +++ b/src/contractsTypes/evm/contracts/interfaces/INFTCollectionDeployer.ts @@ -26,30 +26,30 @@ export interface INFTCollectionDeployerInterface extends Interface { | "deployNFT1155Collection" | "deployNFT721Collection" | "owner" - | "setOwner", + | "setOwner" ): FunctionFragment; encodeFunctionData( functionFragment: "deployNFT1155Collection", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "deployNFT721Collection", - values: [string, string], + values: [string, string] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "setOwner", - values: [AddressLike], + values: [AddressLike, AddressLike] ): string; decodeFunctionResult( functionFragment: "deployNFT1155Collection", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "deployNFT721Collection", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result; @@ -64,38 +64,38 @@ export interface INFTCollectionDeployer extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; deployNFT1155Collection: TypedContractMethod<[], [string], "nonpayable">; @@ -108,28 +108,36 @@ export interface INFTCollectionDeployer extends BaseContract { owner: TypedContractMethod<[], [string], "view">; - setOwner: TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + setOwner: TypedContractMethod< + [_owner: AddressLike, _bridge: AddressLike], + [void], + "nonpayable" + >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "deployNFT1155Collection", + nameOrSignature: "deployNFT1155Collection" ): TypedContractMethod<[], [string], "nonpayable">; getFunction( - nameOrSignature: "deployNFT721Collection", + nameOrSignature: "deployNFT721Collection" ): TypedContractMethod< [name: string, symbol: string], [string], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "setOwner", - ): TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; + nameOrSignature: "setOwner" + ): TypedContractMethod< + [_owner: AddressLike, _bridge: AddressLike], + [void], + "nonpayable" + >; filters: {}; } diff --git a/src/contractsTypes/evm/contracts/interfaces/INFTStorageDeployer.ts b/src/contractsTypes/evm/contracts/interfaces/INFTStorageDeployer.ts index 6da625c..cb7f3ab 100644 --- a/src/contractsTypes/evm/contracts/interfaces/INFTStorageDeployer.ts +++ b/src/contractsTypes/evm/contracts/interfaces/INFTStorageDeployer.ts @@ -26,30 +26,30 @@ export interface INFTStorageDeployerInterface extends Interface { | "deployNFT1155Storage" | "deployNFT721Storage" | "owner" - | "setOwner", + | "setOwner" ): FunctionFragment; encodeFunctionData( functionFragment: "deployNFT1155Storage", - values: [AddressLike], + values: [AddressLike] ): string; encodeFunctionData( functionFragment: "deployNFT721Storage", - values: [AddressLike], + values: [AddressLike] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "setOwner", - values: [AddressLike], + values: [AddressLike] ): string; decodeFunctionResult( functionFragment: "deployNFT1155Storage", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "deployNFT721Storage", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setOwner", data: BytesLike): Result; @@ -64,38 +64,38 @@ export interface INFTStorageDeployer extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; deployNFT1155Storage: TypedContractMethod< @@ -115,28 +115,28 @@ export interface INFTStorageDeployer extends BaseContract { setOwner: TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "deployNFT1155Storage", + nameOrSignature: "deployNFT1155Storage" ): TypedContractMethod< [collectionAddress: AddressLike], [string], "nonpayable" >; getFunction( - nameOrSignature: "deployNFT721Storage", + nameOrSignature: "deployNFT721Storage" ): TypedContractMethod< [collectionAddress: AddressLike], [string], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "setOwner", + nameOrSignature: "setOwner" ): TypedContractMethod<[_owner: AddressLike], [void], "nonpayable">; filters: {}; diff --git a/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC1155.ts b/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC1155.ts index e61420a..c3ac556 100644 --- a/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC1155.ts +++ b/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC1155.ts @@ -27,35 +27,35 @@ export interface INFTStorageERC1155Interface extends Interface { | "collectionAddress" | "depositToken" | "owner" - | "unlockToken", + | "unlockToken" ): FunctionFragment; encodeFunctionData( functionFragment: "collectionAddress", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "depositToken", - values: [BigNumberish, BigNumberish], + values: [BigNumberish, BigNumberish] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "unlockToken", - values: [BigNumberish, BigNumberish, AddressLike], + values: [BigNumberish, BigNumberish, AddressLike] ): string; decodeFunctionResult( functionFragment: "collectionAddress", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "depositToken", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "unlockToken", - data: BytesLike, + data: BytesLike ): Result; } @@ -68,38 +68,38 @@ export interface INFTStorageERC1155 extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; collectionAddress: TypedContractMethod<[], [string], "view">; @@ -119,24 +119,24 @@ export interface INFTStorageERC1155 extends BaseContract { >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "collectionAddress", + nameOrSignature: "collectionAddress" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "depositToken", + nameOrSignature: "depositToken" ): TypedContractMethod< [tokenId: BigNumberish, amount: BigNumberish], [void], "nonpayable" >; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "unlockToken", + nameOrSignature: "unlockToken" ): TypedContractMethod< [tokenId: BigNumberish, amount: BigNumberish, to: AddressLike], [void], diff --git a/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC721.ts b/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC721.ts index ab516d5..2c3a067 100644 --- a/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC721.ts +++ b/src/contractsTypes/evm/contracts/interfaces/INFTStorageERC721.ts @@ -27,35 +27,35 @@ export interface INFTStorageERC721Interface extends Interface { | "collectionAddress" | "depositToken" | "owner" - | "unlockToken", + | "unlockToken" ): FunctionFragment; encodeFunctionData( functionFragment: "collectionAddress", - values?: undefined, + values?: undefined ): string; encodeFunctionData( functionFragment: "depositToken", - values: [BigNumberish], + values: [BigNumberish] ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "unlockToken", - values: [BigNumberish, AddressLike], + values: [BigNumberish, AddressLike] ): string; decodeFunctionResult( functionFragment: "collectionAddress", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult( functionFragment: "depositToken", - data: BytesLike, + data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "unlockToken", - data: BytesLike, + data: BytesLike ): Result; } @@ -68,38 +68,38 @@ export interface INFTStorageERC721 extends BaseContract { queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, - toBlock?: string | number | undefined, + toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; once( event: TCEvent, - listener: TypedListener, + listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, - listener: TypedListener, + listener: TypedListener ): Promise; listeners( - event: TCEvent, + event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( - event?: TCEvent, + event?: TCEvent ): Promise; collectionAddress: TypedContractMethod<[], [string], "view">; @@ -119,20 +119,20 @@ export interface INFTStorageERC721 extends BaseContract { >; getFunction( - key: string | FunctionFragment, + key: string | FunctionFragment ): T; getFunction( - nameOrSignature: "collectionAddress", + nameOrSignature: "collectionAddress" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "depositToken", + nameOrSignature: "depositToken" ): TypedContractMethod<[tokenId: BigNumberish], [void], "nonpayable">; getFunction( - nameOrSignature: "owner", + nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( - nameOrSignature: "unlockToken", + nameOrSignature: "unlockToken" ): TypedContractMethod< [tokenId: BigNumberish, to: AddressLike], [void], diff --git a/src/contractsTypes/evm/contracts/interfaces/index.ts b/src/contractsTypes/evm/contracts/interfaces/index.ts index 642b277..d315286 100644 --- a/src/contractsTypes/evm/contracts/interfaces/index.ts +++ b/src/contractsTypes/evm/contracts/interfaces/index.ts @@ -1,9 +1,9 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export type { IERC1155Royalty } from './IERC1155Royalty'; -export type { IERC721Royalty } from './IERC721Royalty'; -export type { INFTCollectionDeployer } from './INFTCollectionDeployer'; -export type { INFTStorageDeployer } from './INFTStorageDeployer'; -export type { INFTStorageERC1155 } from './INFTStorageERC1155'; -export type { INFTStorageERC721 } from './INFTStorageERC721'; +export type { IERC1155Royalty } from "./IERC1155Royalty"; +export type { IERC721Royalty } from "./IERC721Royalty"; +export type { INFTCollectionDeployer } from "./INFTCollectionDeployer"; +export type { INFTStorageDeployer } from "./INFTStorageDeployer"; +export type { INFTStorageERC1155 } from "./INFTStorageERC1155"; +export type { INFTStorageERC721 } from "./INFTStorageERC721"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/access/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/access/index.ts index 944d569..e332ae3 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/access/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/access/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { Ownable__factory } from './Ownable__factory'; +export { Ownable__factory } from "./Ownable__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/index.ts index 39bc976..d81ac1a 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/index.ts @@ -1,7 +1,7 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as access from './access'; -export * as interfaces from './interfaces'; -export * as token from './token'; -export * as utils from './utils'; +export * as access from "./access"; +export * as interfaces from "./interfaces"; +export * as token from "./token"; +export * as utils from "./utils"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts index ee1b1ec..0413f8c 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts @@ -120,7 +120,7 @@ export class IERC1155Errors__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC1155Errors { return new Contract(address, _abi, runner) as unknown as IERC1155Errors; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts index 0d09033..695f3f0 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts @@ -104,7 +104,7 @@ export class IERC20Errors__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC20Errors { return new Contract(address, _abi, runner) as unknown as IERC20Errors; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts index 23ef9cc..8615d4d 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts @@ -121,7 +121,7 @@ export class IERC721Errors__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC721Errors { return new Contract(address, _abi, runner) as unknown as IERC721Errors; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts index 39eadd8..571330e 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts @@ -1,6 +1,6 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { IERC1155Errors__factory } from './IERC1155Errors__factory'; -export { IERC20Errors__factory } from './IERC20Errors__factory'; -export { IERC721Errors__factory } from './IERC721Errors__factory'; +export { IERC1155Errors__factory } from "./IERC1155Errors__factory"; +export { IERC20Errors__factory } from "./IERC20Errors__factory"; +export { IERC721Errors__factory } from "./IERC721Errors__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/index.ts index 4207261..128dea1 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/interfaces/index.ts @@ -1,6 +1,6 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as draftIerc6093Sol from './draft-IERC6093.sol'; -export { IERC2981__factory } from './IERC2981__factory'; -export { IERC4906__factory } from './IERC4906__factory'; +export * as draftIerc6093Sol from "./draft-IERC6093.sol"; +export { IERC2981__factory } from "./IERC2981__factory"; +export { IERC4906__factory } from "./IERC4906__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver__factory.ts index f209028..3c541ca 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver__factory.ts @@ -115,7 +115,7 @@ export class IERC1155Receiver__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC1155Receiver { return new Contract(address, _abi, runner) as unknown as IERC1155Receiver; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI__factory.ts index c18a68d..11fd45f 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI__factory.ts @@ -330,12 +330,12 @@ export class IERC1155MetadataURI__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC1155MetadataURI { return new Contract( address, _abi, - runner, + runner ) as unknown as IERC1155MetadataURI; } } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/index.ts index 63248d4..9e3f50a 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/extensions/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { IERC1155MetadataURI__factory } from './IERC1155MetadataURI__factory'; +export { IERC1155MetadataURI__factory } from "./IERC1155MetadataURI__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/index.ts index f3c800f..82080b4 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/index.ts @@ -1,8 +1,8 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as extensions from './extensions'; -export * as utils from './utils'; -export { ERC1155__factory } from './ERC1155__factory'; -export { IERC1155__factory } from './IERC1155__factory'; -export { IERC1155Receiver__factory } from './IERC1155Receiver__factory'; +export * as extensions from "./extensions"; +export * as utils from "./utils"; +export { ERC1155__factory } from "./ERC1155__factory"; +export { IERC1155__factory } from "./IERC1155__factory"; +export { IERC1155Receiver__factory } from "./IERC1155Receiver__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder__factory.ts index 77719ce..980c8cf 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder__factory.ts @@ -115,7 +115,7 @@ export class ERC1155Holder__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): ERC1155Holder { return new Contract(address, _abi, runner) as unknown as ERC1155Holder; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/index.ts index ecc3c97..b8b3d8c 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC1155/utils/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { ERC1155Holder__factory } from './ERC1155Holder__factory'; +export { ERC1155Holder__factory } from "./ERC1155Holder__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts index f3e72f7..80abf96 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts @@ -240,7 +240,7 @@ export class IERC20Metadata__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC20Metadata { return new Contract(address, _abi, runner) as unknown as IERC20Metadata; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts index a770a0f..b9477f8 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { IERC20Metadata__factory } from './IERC20Metadata__factory'; +export { IERC20Metadata__factory } from "./IERC20Metadata__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/index.ts index 37e1a6a..3523dc7 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC20/index.ts @@ -1,6 +1,6 @@ /* 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'; +export * as extensions from "./extensions"; +export { ERC20__factory } from "./ERC20__factory"; +export { IERC20__factory } from "./IERC20__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.ts index 648a886..b65d280 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/IERC721Receiver__factory.ts @@ -52,7 +52,7 @@ export class IERC721Receiver__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC721Receiver { return new Contract(address, _abi, runner) as unknown as IERC721Receiver; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage__factory.ts index 888185d..c1c18a3 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage__factory.ts @@ -483,7 +483,7 @@ export class ERC721URIStorage__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): ERC721URIStorage { return new Contract(address, _abi, runner) as unknown as ERC721URIStorage; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts index 0b8efb5..591c20a 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts @@ -348,7 +348,7 @@ export class IERC721Metadata__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC721Metadata { return new Contract(address, _abi, runner) as unknown as IERC721Metadata; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts index ce0b880..f375688 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts @@ -1,5 +1,5 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { ERC721URIStorage__factory } from './ERC721URIStorage__factory'; -export { IERC721Metadata__factory } from './IERC721Metadata__factory'; +export { ERC721URIStorage__factory } from "./ERC721URIStorage__factory"; +export { IERC721Metadata__factory } from "./IERC721Metadata__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/index.ts index 06196de..8797a4a 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/index.ts @@ -1,8 +1,8 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as extensions from './extensions'; -export * as utils from './utils'; -export { ERC721__factory } from './ERC721__factory'; -export { IERC721__factory } from './IERC721__factory'; -export { IERC721Receiver__factory } from './IERC721Receiver__factory'; +export * as extensions from "./extensions"; +export * as utils from "./utils"; +export { ERC721__factory } from "./ERC721__factory"; +export { IERC721__factory } from "./IERC721__factory"; +export { IERC721Receiver__factory } from "./IERC721Receiver__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder__factory.ts index 7f355b1..d6475c2 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/ERC721Holder__factory.ts @@ -52,7 +52,7 @@ export class ERC721Holder__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): ERC721Holder { return new Contract(address, _abi, runner) as unknown as ERC721Holder; } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/index.ts index c67e5d0..fd4572e 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/ERC721/utils/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { ERC721Holder__factory } from './ERC721Holder__factory'; +export { ERC721Holder__factory } from "./ERC721Holder__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/common/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/common/index.ts index c1a004b..f491dec 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/common/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/common/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { ERC2981__factory } from './ERC2981__factory'; +export { ERC2981__factory } from "./ERC2981__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/index.ts index 6e97309..a3dcdde 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/token/index.ts @@ -1,7 +1,7 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as erc1155 from './ERC1155'; -export * as erc20 from './ERC20'; -export * as erc721 from './ERC721'; -export * as common from './common'; +export * as erc1155 from "./ERC1155"; +export * as erc20 from "./ERC20"; +export * as erc721 from "./ERC721"; +export * as common from "./common"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/Strings__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/Strings__factory.ts index 0fcb5d6..c9517f3 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/Strings__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/Strings__factory.ts @@ -34,14 +34,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea2646970667358221220ebf559ecd869b22266b23fd850e8444de99e34bdb6fda0e725bd9ae986ba4b1264736f6c63430008150033"; + "0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea264697066735822122005c04bde5227f1f0e386d3c544466a6281a2492f41baba29bfadea38996bdbb464736f6c63430008150033"; type StringsConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: StringsConstructorParams, + xs: StringsConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class Strings__factory extends ContractFactory { @@ -54,7 +54,7 @@ export class Strings__factory extends ContractFactory { } override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction(overrides || {}); } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.ts index 762602a..983c903 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.ts @@ -45,14 +45,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea26469706673582212209d5ad6ed2f22143259927943c3c9e35e12a3ee62df229dda0d8ffa9cad2a950264736f6c63430008150033"; + "0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea26469706673582212203d5e680e787b31787504be6b1431692bfe122f68a55af1a0738d809d4b6f5f6b64736f6c63430008150033"; type ECDSAConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: ECDSAConstructorParams, + xs: ECDSAConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class ECDSA__factory extends ContractFactory { @@ -65,7 +65,7 @@ export class ECDSA__factory extends ContractFactory { } override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction(overrides || {}); } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/index.ts index aa9eb53..cac1a83 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/cryptography/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { ECDSA__factory } from './ECDSA__factory'; +export { ECDSA__factory } from "./ECDSA__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/index.ts index ed793a2..f7afef4 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/index.ts @@ -1,7 +1,7 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as cryptography from './cryptography'; -export * as introspection from './introspection'; -export * as math from './math'; -export { Strings__factory } from './Strings__factory'; +export * as cryptography from "./cryptography"; +export * as introspection from "./introspection"; +export * as math from "./math"; +export { Strings__factory } from "./Strings__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/introspection/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/introspection/index.ts index 3856056..8523e0a 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/introspection/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/introspection/index.ts @@ -1,5 +1,5 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { ERC165__factory } from './ERC165__factory'; -export { IERC165__factory } from './IERC165__factory'; +export { ERC165__factory } from "./ERC165__factory"; +export { IERC165__factory } from "./IERC165__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/Math__factory.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/Math__factory.ts index 6aee3d4..55e2ea7 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/Math__factory.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/Math__factory.ts @@ -23,14 +23,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea264697066735822122047aa2cc6204c3d1cfcab94664806ca09318c45bc568dd3986c5387020d2bcf9064736f6c63430008150033"; + "0x60808060405234601757603a9081601d823930815050f35b600080fdfe600080fdfea2646970667358221220c2b4102621ba49da049aae8b30d669226ec9deb34e61340c6eeaa723040d40bd64736f6c63430008150033"; type MathConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: MathConstructorParams, + xs: MathConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class Math__factory extends ContractFactory { @@ -43,7 +43,7 @@ export class Math__factory extends ContractFactory { } override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction(overrides || {}); } diff --git a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/index.ts index 0e84110..a249c74 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/contracts/utils/math/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { Math__factory } from './Math__factory'; +export { Math__factory } from "./Math__factory"; diff --git a/src/contractsTypes/evm/factories/@openzeppelin/index.ts b/src/contractsTypes/evm/factories/@openzeppelin/index.ts index 0fb1c50..6397da0 100644 --- a/src/contractsTypes/evm/factories/@openzeppelin/index.ts +++ b/src/contractsTypes/evm/factories/@openzeppelin/index.ts @@ -1,4 +1,4 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as contracts from './contracts'; +export * as contracts from "./contracts"; diff --git a/src/contractsTypes/evm/factories/contracts/BridgeStorage__factory.ts b/src/contractsTypes/evm/factories/contracts/BridgeStorage__factory.ts index fe864c2..0a34903 100644 --- a/src/contractsTypes/evm/factories/contracts/BridgeStorage__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/BridgeStorage__factory.ts @@ -124,6 +124,96 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "blackListSignatures", + outputs: [ + { + internalType: "string", + name: "signerAddress", + type: "string", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_validatorAddress", + type: "address", + }, + { + components: [ + { + internalType: "string", + name: "validatorAddress", + type: "string", + }, + { + components: [ + { + internalType: "string", + name: "signerAddress", + type: "string", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct SignerAndSignature", + name: "signerAndSignature", + type: "tuple", + }, + ], + internalType: "struct ValidatorAddressWithSignerAndSignature[]", + name: "_validatorAddressWithSignerAndSignature", + type: "tuple[]", + }, + ], + name: "blackListValidator", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "blackListedValidators", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -343,24 +433,6 @@ const _abi = [ stateMutability: "nonpayable", type: "function", }, - { - inputs: [ - { - internalType: "address", - name: "_validatorAddress", - type: "address", - }, - { - internalType: "bool", - name: "_status", - type: "bool", - }, - ], - name: "changeValidatorStatus", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { @@ -572,6 +644,25 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [ + { + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + name: "usedSignaturesBlackList", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [], name: "validatorCount", @@ -684,14 +775,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60406080815234620003655762002238803803806200001e8162000395565b9283398101908281830312620003655780516001600160a01b0381169290839003620003655760208281015190926001600160401b039190828211620003655701601f9083828201121562000365578051908382116200037f5760059482861b9087806200008e81850162000395565b80968152019284010192818411620003655788819b9a9b01925b848410620002d857505050505060009687526004968786528681209560019889978860ff19825416179055620000e0600b5462000437565b600b5582995b620000fb575b8851611daf9081620004898239f35b83518a1015620002d25781620001128b866200045d565b5101516200013b83620001268d886200045d565b5151818d5193828580945193849201620003bb565b8101600e8152030190205588620001538b866200045d565b5101516200016783620001268d886200045d565b8101600f81520301902090805190888211620002bf5782548b81811c91168015620002b4575b86821014620002a1578881116200025b575b508490888311600114620001ee579180620001da94928d9e9f948992620001e2575b5050600019600383901b1c1916908c1b17905562000437565b9998620000e6565b015190503880620001c1565b8387528587209190601f198416885b818110620002455750928d9e9f9491928e9383620001da9896106200022b575b505050811b01905562000437565b015160001960f88460031b161c191690553880806200021d565b828401518555938e0193928801928801620001fd565b838752858720898085018d1c82019288861062000297575b018c1c01908c905b8281106200028b5750506200019f565b888155018c906200027b565b9250819262000273565b634e487b7160e01b875260228552602487fd5b90607f16906200018d565b634e487b7160e01b865260418452602486fd5b620000ec565b839b9a9b518881116200036557820160609182601f19838703011262000365578d51928084018481108c8211176200036a578f528c8301518b811162000365578f90878f6200032a92870101620003e0565b85528301518d850152820151928a841162000365578e62000352878f809781970101620003e0565b908201528152019301929a999a620000a8565b600080fd5b60246000634e487b7160e01b81526041600452fd5b634e487b7160e01b600052604160045260246000fd5b6040519190601f01601f191682016001600160401b038111838210176200037f57604052565b60005b838110620003cf5750506000910152565b8181015183820152602001620003be565b81601f82011215620003655780516001600160401b0381116200037f5762000412601f8201601f191660200162000395565b92818452602082840101116200036557620004349160208085019101620003bb565b90565b6000198114620004475760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015620004725760209160051b010190565b634e487b7160e01b600052603260045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c8063045cda8d146117915780630a12e645146116c25780630f43a677146116a457806316f487241461163c5780631bd1b2f1146115de578063383bf6931461158d5780634d01fc2d146115445780635cb853121461129c578063631494d61461123157806368012b6d146111e857806372ff685714610f125780638b57e25214610e625780639027f6cd14610db857806394e9e97e14610d49578063a1b3f4a914610b37578063bf7dac4f14610aee578063c4a9bd75146105b7578063c7baba0314610588578063e3417c051461054b578063e419d425146104b1578063e4c205c5146102b4578063e949580e14610242578063e97b4167146101ad578063ee7de838146101735763fa52c7d81461012f57600080fd5b3461016e57602036600319011261016e576001600160a01b03610150611988565b166000526004602052602060ff604060002054166040519015158152f35b600080fd5b3461016e57602036600319011261016e576001600160a01b03610194611988565b1660005260026020526020604060002054604051908152f35b3461016e57608036600319011261016e576004356001600160401b03811161016e576101dd903690600401611879565b6101e561199e565b60405182818094516101fd8160209788809601611897565b81016008815203019020602435600052825260406000209060018060a01b031660005281526040600020606435600052815260ff604060002054166040519015158152f35b3461016e57602036600319011261016e576004356001600160401b03811161016e573660238201121561016e5760ff61029e602061028b81943690602481600401359101611833565b8160405193828580945193849201611897565b8101600d81520301902054166040519015158152f35b3461016e57604036600319011261016e576004356001600160401b03811161016e576102e49036906004016119c3565b9060243590336000526020916004835261030560ff60406000205416611baa565b604051848382378381868101600881520301902081600052835260406000203360005283526040600020604051858482378481878101600081520301902054600052835261035b60ff6040600020541615611c37565b60405184838237838186810160088152030190208160005283526040600020336000528352604060002060405185848237848187810160008152030190205460005283526040600020600160ff1982541617905560405184838237838186810160078152030190208160005283526040600020604051858482378481878101600081520301902054600052835260406000206103f78154611c73565b9055600b546001600160ff1b038116810361049b5760039060011b046040518584823784818781016007815203019020826000528452604060002060405186858237858188810160008152030190205460005284526040600020546001820180921161049b57101561046557005b604051848382378381868101600e81520301902055826040519384928337810160008152030190206104978154611c73565b9055005b634e487b7160e01b600052601160045260246000fd5b3461016e576104df6104ef60206104c736611b60565b94918360409492945193828580945193849201611897565b8101600c815203019020906118ba565b805482101561016e57600191610504916119f0565b50610538604051916105218361051a8184611a5c565b0384611812565b6105316040518095819301611a5c565b0383611812565b61054760405192839283611af1565b0390f35b3461016e5761056161057160206104c736611b60565b8101600a815203019020906118ba565b906000526020526020604060002054604051908152f35b3461016e5760206105ae6105a861059e36611b16565b9293919093611c05565b91611c1e565b54604051908152f35b3461016e57604036600319011261016e576105d0611988565b6024356001600160401b03811161016e573660238201121561016e576001600160401b0381600401351161016e57366024826004013560051b8301011161016e579033600052600460205261062c60ff60406000205416611baa565b6000915b806004013583106107ec575033600052600460205261065660ff60406000205416611baa565b60018060a01b0316806000526002602052604060002054600660205260406000203360005260205260406000208160005260205260ff604060002054166107a85781600052600660205260406000203360005260205260406000208160005260205260406000209160019160ff1993838582541617905581600052600560205260406000208360005260205260406000208160005260205260406000206106fd8154611c73565b9055600b54906001600160ff1b038216820361049b57600382851b049083600052600560205260406000208560005260205260406000209060005260205260406000205484820180921161049b57101561075357005b81600052600460205260ff60406000205416156000146107a25761077690611c73565b600b555b6000526004602052604060002091825416179055600260205260406000206104978154611c73565b5061077a565b606460405162461bcd60e51b815260206004820152602060248201527f416c726561647920766f74656420666f7220746869732076616c696461746f726044820152fd5b60ff61083e61081d61081361080987866004013560248801611ceb565b6020810190611cd6565b6020810190611d02565b604051939181908537830192602081600d9586815203019020541615611d34565b602061086a61086161085887866004013560248801611ceb565b83810190611cd6565b82810190611d02565b92836040519485938437820190815203019020805460ff1916600117905560206108a561089f85600485013560248601611ceb565b80611d02565b919082604051938492833781016003815203019020926108d061080982846004013560248601611ceb565b938054600160401b811015610a54576108ee916001820181556119f0565b949094610ad8576108ff8180611d02565b906001600160401b038211610a54576109228261091c8954611a22565b89611c82565b600090601f8311600114610a6a5791806109589261096495946000926109d5575b50508160011b916000199060031b1c19161790565b86556020810190611d02565b94906001600160401b038611610a545761098e866109856001850154611a22565b60018501611c82565b600090601f87116001146109e057866109ce9596976001936109c6936000926109d55750508160011b916000199060031b1c19161790565b910155611c73565b9190610630565b013590508980610943565b6001830160005260206000209160005b601f1989168110610a3c57509660019283926109ce97989983601f19811610610a22575b505050811b01910155611c73565b0135600019600384901b60f8161c19169055888080610a14565b909260206001819286860135815501940191016109f0565b634e487b7160e01b600052604160045260246000fd5b8760005260206000209160005b601f1985168110610ac057509183916001936109649695601f19811610610aa6575b505050811b018655610813565b0135600019600384901b60f8161c19169055888080610a99565b90926020600181928686013581550194019101610a77565b634e487b7160e01b600052600060045260246000fd5b3461016e57602036600319011261016e576004356001600160401b03811161016e57610b24602061028b81933690600401611879565b8101600081520301902054604051908152f35b3461016e57604036600319011261016e57610b50611988565b610b586119b4565b903360005260209060048252610b7560ff60406000205416611baa565b6001600160a01b0316600081815260028352604080822054600685528183203384528552818320818452855291205490939060ff16610d065781600052600683526040600020336000528352604060002084600052835260406000209160ff1992600184825416179055806000526005845260406000209180159081159384600052865260406000208760005286526040600020610c138154611c73565b9055600b54966001600160ff1b038816880361049b5760038860011b04908460005260058852604060002086600052885260406000209060005287526040600020546001820180921161049b571015610c6857005b80610cee575b15610cae575060029450610c83600b54611c73565b600b555b6000526004835260ff60406000209283541691161790555260406000206104978154611c73565b80610cd7575b610cc2575b60029450610c87565b841561049b5760029460001901600b55610cb9565b50806000526004845260ff60406000205416610cb4565b50816000526004855260ff6040600020541615610c6e565b6064836040519062461bcd60e51b825280600483015260248201527f416c726561647920766f74656420666f7220746869732076616c696461746f726044820152fd5b3461016e57602036600319011261016e576004356001600160401b03811161016e57610d9d610da4610d87602061028b610547953690600401611879565b8101600f81520301902060405192838092611a5c565b0382611812565b6040519182916020835260208301906118e0565b3461016e57610dcc6105a861059e36611b16565b80546001600160401b038111610a54579060209160405191610df3848360051b0184611812565b8183526000908152838120938084015b838310610e1857604051806105478782611905565b600282600192604051610e2a816117f7565b604051610e3b81610d9d818e611a5c565b8152604051610e5081610d9d818e8a01611a5c565b83820152815201960192019194610e03565b3461016e57608036600319011261016e576001600160401b0360043581811161016e57610e93903690600401611879565b9060243590811161016e57610eaf610ee0913690600401611879565b610ed06020610ebc61199e565b948160405193828580945193849201611897565b81016009815203019020906118ba565b9060018060a01b03166000526020526040600020606435600052602052602060ff604060002054166040519015158152f35b3461016e57608036600319011261016e576001600160401b0360043581811161016e57610f439036906004016119c3565b9160243581811161016e57610f5c9036906004016119c3565b909360443583811161016e57610f769036906004016119c3565b9590926064359285841161016e5761101d97606097611026610f9f6110419736906004016119c3565b9890933360005260209c8d9560048752610fc060ff60406000205416611baa565b610fe160ff604051858782378981878101600d815203019020541615611d34565b604051838582378781858101600d815203019020600160ff198254161790556040519b61100d8d6117f7565b8e8d52878d019e8f523691611833565b8a523691611833565b89528260405193849283378101600c81520301902091611c1e565b8054600160401b811015610a545761105e916001820181556119f0565b919091610ad85751805190838211610a54576110848261107e8554611a22565b85611c82565b8590601f831160011461117e5791806110b792600195946000926111735750508160011b916000199060031b1c19161790565b81555b019151928351918211610a54576110d58261107e8554611a22565b80601f83116001146111105750819061049793946000926111055750508160011b916000199060031b1c19161790565b015190508480610943565b90601f198316948460005282600020926000905b87821061115b575050836001959610611142575b505050811b019055005b015160001960f88460031b161c19169055838080611138565b80600185968294968601518155019501930190611124565b015190508880610943565b90601f1983169184600052876000209260005b898282106111d25750509160019594929183879593106111b9575b505050811b0181556110ba565b015160001960f88460031b161c191690558780806111ac565b6001859682939686015181550195019301611191565b3461016e57602036600319011261016e576004356001600160401b03811161016e5761121e602061028b81933690600401611879565b8101600181520301902054604051908152f35b3461016e57604036600319011261016e576004356001600160401b03811161016e57611261903690600401611879565b61127d6020602435928160405193828580945193849201611897565b81016003815203019020805482101561016e57600191610504916119f0565b3461016e57604036600319011261016e576001600160401b0360043581811161016e576112cd9036906004016119c3565b909160243581811161016e576112e7903690600401611879565b92336000526020916004835261130460ff60406000205416611baa565b6113216040518584823784818781016009815203019020866118ba565b33600052835260406000209060405191858484378583019285816001958681520301902054600052845261135d60ff6040600020541615611c37565b61137a6040518685823785818881016009815203019020876118ba565b33600052845260406000206040518685823785818881018681520301902054600052845260406000208260ff198254161790556113ca604051868582378581888101600a815203019020876118ba565b6040518685823785818881018681520301902054600052845260406000206113f28154611c73565b9055600b546001600160ff1b038116810361049b57600390831b0461142a604051878682378681898101600a815203019020886118ba565b6040518786823786818981018781520301902054600052855260406000205483820180921161049b57101561145b57005b604051858482378481878101600f815203019020908651908111610a545761148d816114878454611a22565b84611c82565b84601f82116001146114df5781906114c09394959697986000926111735750508160011b916000199060031b1c19161790565b90555b8360405194859384378201908152030190206104978154611c73565b601f1982169083600052866000209160005b81811061152f57509883869798999a96959610611516575b505050811b0190556114c3565b015160001960f88460031b161c19169055878080611509565b8a8301518455928601929188019188016114f1565b3461016e57602036600319011261016e576004356001600160401b03811161016e5761157a602061028b81933690600401611879565b8101600e81520301902054604051908152f35b3461016e57602036600319011261016e576004356001600160401b03811161016e5760206115c0819236906004016119c3565b91908260405193849283378101600381520301902054604051908152f35b3461016e57606036600319011261016e576115f7611988565b6115ff6119b4565b9060018060a01b03166000526005602052604060002090151560005260205260406000206044356000526020526020604060002054604051908152f35b3461016e57606036600319011261016e57611655611988565b6001600160a01b03602435818116929083900361016e571660005260066020526040600020906000526020526040600020604435600052602052602060ff604060002054166040519015158152f35b3461016e57600036600319011261016e576020600b54604051908152f35b3461016e5760208060031936011261016e576001600160401b039060043582811161016e578161028b6116f9923690600401611879565b81016003815203019020918254908111610a5457829060405191611722848360051b0184611812565b8183526000908152838120938084015b83831061174757604051806105478782611905565b600282600192604051611759816117f7565b60405161176a81610d9d818e611a5c565b815260405161177f81610d9d818e8a01611a5c565b83820152815201960192019194611732565b3461016e57606036600319011261016e576004356001600160401b03811161016e57602061028b6117c6923690600401611879565b8101600781520301902060243560005260205260406000206044356000526020526020604060002054604051908152f35b604081019081106001600160401b03821117610a5457604052565b90601f801991011681019081106001600160401b03821117610a5457604052565b9291926001600160401b038211610a54576040519161185c601f8201601f191660200184611812565b82948184528183011161016e578281602093846000960137010152565b9080601f8301121561016e5781602061189493359101611833565b90565b60005b8381106118aa5750506000910152565b818101518382015260200161189a565b6020906118d4928260405194838680955193849201611897565b82019081520301902090565b906020916118f981518092818552858086019101611897565b601f01601f1916010190565b602080820190808352835180925260409283810182858560051b8401019601946000925b85841061193a575050505050505090565b909192939495968580611977600193603f198682030188528b51908361196783518a84528a8401906118e0565b92015190848184039101526118e0565b990194019401929594939190611929565b600435906001600160a01b038216820361016e57565b604435906001600160a01b038216820361016e57565b60243590811515820361016e57565b9181601f8401121561016e578235916001600160401b03831161016e576020838186019501011161016e57565b8054821015611a0c5760005260206000209060011b0190600090565b634e487b7160e01b600052603260045260246000fd5b90600182811c92168015611a52575b6020831014611a3c57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611a31565b805460009392611a6b82611a22565b918282526020936001918281169081600014611ad25750600114611a91575b5050505050565b90939495506000929192528360002092846000945b838610611abe57505050500101903880808080611a8a565b805485870183015294019385908201611aa6565b60ff19168685015250505090151560051b010191503880808080611a8a565b9091611b08611894936040845260408401906118e0565b9160208184039101526118e0565b604060031982011261016e576001600160401b039160043583811161016e5782611b42916004016119c3565b9390939260243591821161016e57611b5c916004016119c3565b9091565b90606060031983011261016e576001600160401b0360043581811161016e5783611b8c91600401611879565b9260243591821161016e57611ba391600401611879565b9060443590565b15611bb157565b60405162461bcd60e51b815260206004820152602660248201527f4f6e6c792076616c696461746f72732063616e2063616c6c20746869732066756044820152653731ba34b7b760d11b6064820152608490fd5b6020908260405193849283378101600c81520301902090565b6020919283604051948593843782019081520301902090565b15611c3e57565b60405162461bcd60e51b815260206004820152600d60248201526c105b1c9958591e481d9bdd1959609a1b6044820152606490fd5b600019811461049b5760010190565b90601f8111611c9057505050565b600091825260208220906020601f850160051c83019410611ccc575b601f0160051c01915b828110611cc157505050565b818155600101611cb5565b9092508290611cac565b903590603e198136030182121561016e570190565b90821015611a0c576118949160051b810190611cd6565b903590601e198136030182121561016e57018035906001600160401b03821161016e5760200191813603831361016e57565b15611d3b57565b60405162461bcd60e51b815260206004820152601660248201527514da59db985d1d5c9948185b1c9958591e481d5cd95960521b6044820152606490fdfea2646970667358221220e39da5fa75e11a20f0c19c895940c704f4e31fd3768caab4c12a37a071b44f6b64736f6c63430008150033"; + "0x60406080815234620003675762002329803803806200001e8162000397565b92833981018282820312620003675781516001600160a01b0381169190829003620003675760208381015190936001600160401b039190828211620003675701601f908382820112156200036757805190838211620003815760059482861b9088806200008d81850162000397565b80968152019284010192818411620003675789819b9a9b01925b848410620002d857505050505060009485528387528585209460019788968760ff19825416179055620000dc600d5462000439565b600d5581985b620000f7575b8751611e9e90816200048b8239f35b8251891015620002d257806200010e8a856200045f565b5101516200013782620001228c876200045f565b5151818c5193828580945193849201620003bd565b8101601181520301902055876200014f8a856200045f565b5101519862000164826200012283876200045f565b810160128152030190208a51878111620002be5781548a81811c91168015620002b3575b858210146200029f5787811162000259575b50839b878211600114620001e95790808b9c9d620001d59594938892620001dd575b5050600019600383901b1c1916908b1b17905562000439565b9897620000e2565b015190503880620001bc565b8286528486209c90601f198316875b8181106200024057509d8c9d9e928492620001d59796958f951062000226575b505050811b01905562000439565b015160001960f88460031b161c1916905538808062000218565b9e878e81928686015181550194019f019e929e620001f8565b828652848620888084018c1c82019287851062000295575b018b1c01908b905b828110620002895750506200019a565b878155018b9062000279565b9250819262000271565b634e487b7160e01b86526022600452602486fd5b90607f169062000188565b634e487b7160e01b85526041600452602485fd5b620000e8565b839b9a9b518881116200036757820160609182601f19838703011262000367578d51928084018481108c8211176200036c578f528d8301518b811162000367578f8f9188836200032b92880101620003e2565b865284015190850152820151928a841162000367578e620003548f9586899181970101620003e2565b908201528152019301929a999a620000a7565b600080fd5b60246000634e487b7160e01b81526041600452fd5b634e487b7160e01b600052604160045260246000fd5b6040519190601f01601f191682016001600160401b038111838210176200038157604052565b60005b838110620003d15750506000910152565b8181015183820152602001620003c0565b81601f82011215620003675780516001600160401b038111620003815762000414601f8201601f191660200162000397565b92818452602082840101116200036757620004369160208085019101620003bd565b90565b6000198114620004495760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015620004745760209160051b010190565b634e487b7160e01b600052603260045260246000fdfe6040608081526004908136101561001557600080fd5b600091823560e01c908163045cda8d146116125781630a12e645146115235781630f43a6771461150457816316f48724146114a4578163197ac5a4146114595781631bd1b2f1146113ff578163383bf693146113ae5781633e682afd146113805781634d01fc2d14611336578163538e0a13146112f85781635cb8531214611024578163631494d614610fd657816368012b6d14610f7a57816372ff685714610c2a5781638314eb7e14610a155781638b57e252146109695781639027f6cd146108a857816394e9e97e1461083a578163bf7dac4f146107df578163c4a9bd75146105ac578163c7baba031461057b578163e3417c051461052b578163e419d4251461048d578163e4c205c5146102a5578163e949580e14610265578163e97b4167146101ce57508063ee7de838146101975763fa52c7d81461015757600080fd5b346101935760203660031901126101935760209160ff9082906001600160a01b0361018061181a565b1681526005855220541690519015158152f35b5080fd5b50346101935760203660031901126101935760209181906001600160a01b036101be61181a565b1681526002845220549051908152f35b905034610261576080366003190112610261578035906001600160401b03821161025d57610202839160ff9336910161170b565b9361020b611830565b825186818098516102228160209b8c809601611729565b600a90820190815203019020602435835286528282206001600160a01b03909116825285528181206064358252855220549151911615158152f35b8380fd5b8280fd5b5050346101935760209060ff6102908361027e366119ca565b81855193828580945193849201611729565b8101600f815203019020541690519015158152f35b90503461026157816003193601126102615780356001600160401b03811161025d576102d4903690830161199d565b9260243590338652602093600585526102f260ff8389205416611af8565b8151868582378581888101600a8152030190208388528552818720338852855281872082518786823786818981018b815203019020548852855261033c60ff838920541615611b85565b8151868582378581888101600a8152030190208388528552818720338852855281872082518786823786818981018b8152030190205488528552818720600160ff1982541617905581518685823785818881016009815203019020838852855281872082518786823786818981018b81520301902054885285528187206103c38154611bc1565b9055600d546001600160ff1b038116810361047a5760039060011b049082518786823786818981016009815203019020848952865282882083518887823787818a81018c81520301902054895286528288205490600183018093116104675750101561042d578580f35b8491815183858237858185810160118152030190205551938492833781018481520301902061045c8154611bc1565b905538808080808580f35b634e487b7160e01b895260119052602488fd5b634e487b7160e01b885260118252602488fd5b505034610193576104bd916104cd60206104a636611aae565b969183879492945193828580945193849201611729565b8101600e8152030190209061174c565b90815484101561052857506104e760019361052492611877565b509161051a815193610504856104fd81846118e3565b038661169f565b610513835180978193016118e3565b038561169f565b5192839283611978565b0390f35b80fd5b505034610193578060209261055d61056d8561054636611aae565b949183889492945193828580945193849201611729565b8101600c8152030190209061174c565b908252845220549051908152f35b505034610193576020906105a461059e61059436611a64565b9293919093611b53565b91611b6c565b549051908152f35b905034610261576105bc36611a05565b9290913386526020926005845260ff946105da86888a205416611af8565b875b8181106107095750505060018060a01b031680865260028352848620549060088452858720338852845285872082885284528587209260019260ff1994848682541617905582895260078652878920848a528652878920818a5286528789206106458154611bc1565b9055600d54916001600160ff1b03831683036106f657600383861b0491848b5260078852898b20868c528852898b20908b528752888a2054908583018093116106e357501015610693578780f35b8188526005855286882054600296166106dd576106af90611bc1565b600d555b865260058352848620918254161790555281206106d08154611bc1565b9055388080808080808780f35b506106b3565b634e487b7160e01b8b526011905260248afd5b634e487b7160e01b8a5260119052602489fd5b808761073161072861071f6107d4958789611c4f565b8a810190611c3a565b89810190611c66565b8b519291819084378201918981600f948581520301902054166107d9578761077261076961076085888a611c4f565b83810190611c3a565b82810190611c66565b92838d519485938437820190815203019020805460ff191660011790556107cf876107a76107a1848789611c4f565b80611c66565b9190828d519384928337810160038152030190206107c961071f848789611c4f565b90611c98565b611bc1565b6105dc565b50611bc1565b9050346102615760203660031901126102615780356001600160401b03811161025d5760209361081661082993869336910161170b565b9082855194838680955193849201611729565b820190815203019020549051908152f35b90508234610528576020366003190112610528578135906001600160401b0382116105285761052461088f8561089661087a602061027e36898b0161170b565b810160128152030190208251938480926118e3565b038361169f565b51918291602083526020830190611772565b83915034610193576108bf61059e61059436611a64565b918254916001600160401b03831161095657509160208451936108e7828560051b018661169f565b8385529182528082208185015b848410610908578651806105248882611797565b60028360019289516109198161166e565b8a5161093081610929818a6118e3565b038261169f565b81528a516109448161092981898b016118e3565b838201528152019201930192906108f4565b634e487b7160e01b825260419052602490fd5b905034610261576080366003190112610261576001600160401b03908035828111610a115761099b903690830161170b565b91602435908111610a11579360ff926109ec6109bd869460209836910161170b565b6109dc886109c9611830565b9481885193828580945193849201611729565b8101600b8152030190209061174c565b6001600160a01b03909116825285528181206064358252855220549151911615158152f35b8480fd5b83833461019357610a2536611a05565b913385526020926005845260ff92610a41848789205416611af8565b865b828110610b8f575050506001600160a01b031680855260028352838520546008845284862033875284528486208187528452848620805460ff1990811660011790915582875260078552858720878052855285872082885285528587208054919491610aae90611bc1565b9055600d54916001600160ff1b0383168303610b7c5760038360011b049084895260078752878920898052875287892090895286528688205460018201809211610b69571015610afc578680f35b828752600585528587205416610b3d575b50846002949596505260058252838520908154169055528120610b308154611bc1565b9055808280808080808680f35b8015610b565760001901600d5593945084936002610b0d565b634e487b7160e01b865260118752602486fd5b634e487b7160e01b895260118a52602489fd5b634e487b7160e01b885260118952602488fd5b8085610ba561072861071f610c25958888611c4f565b8a5192918190843782019189816010948581520301902054166107d95787610bd4610769610760858989611c4f565b92838c519485938437820190815203019020805460ff191660011790556107cf87610c036107a1848888611c4f565b91908d838d5194859384378201908152030190206107c961071f848888611c4f565b610a43565b90508234610528576080366003190112610528576001600160401b03823581811161026157610c5c903690850161199d565b602492919235828111610a1157610c76903690870161199d565b604435848111610f7657610c8d903690890161199d565b93909560643599868b11610f7257610cae899a9b9997989936908d0161199d565b999096338952610cc960ff8460209b60058d52205416611af8565b60ff8351828482378a81848101600f8152030190205416610f36579184918994938251818382378681838101600f81520301902060ff198154166001179055825199610d148b61166e565b60608b52868b019d60608f523690610d2b926116c0565b8a523690610d38926116c0565b8b525193849283378101600e81520301902090610d5492611b6c565b805490600160401b821015610f115790610d7391600182018155611877565b919091610f245751805190848211610f1157610d9982610d9385546118a9565b85611be6565b8390601f8311600114610eab579180610dcc92600195948a92610ea0575b50508160011b916000199060031b1c19161790565b81555b019251948551928311610e8d5750610deb82610d9385546118a9565b80601f8311600114610e2b575081908495610e1b949592610e205750508160011b916000199060031b1c19161790565b905580f35b015190508580610db7565b90601f198316958486528286209286905b888210610e7557505083600195969710610e5c575b505050811b01905580f35b015160001960f88460031b161c19169055848080610e51565b80600185968294968601518155019501930190610e3c565b634e487b7160e01b855260419052602484fd5b015190508a80610db7565b8388528488209190601f198416895b87828210610efb575050916001959492918387959310610ee2575b505050811b018155610dcf565b015160001960f88460031b161c19169055898080610ed5565b6001859682939686015181550195019301610eba565b634e487b7160e01b875260418852602487fd5b634e487b7160e01b8652858752602486fd5b825162461bcd60e51b8152808e018a9052601660248201527514da59db985d1d5c9948185b1c9958591e481d5cd95960521b6044820152606490fd5b8880fd5b8680fd5b828434610528576020366003190112610528578235906001600160401b03821161052857506020610fb28194610fc49336910161170b565b81845193828580945193849201611729565b81016001815203019020549051908152f35b50503461019357602091611000610fec36611846565b949081855193828580945193849201611729565b8101600381520301902090815484101561052857506104e760019361052492611877565b919050346102615780600319360112610261576001600160401b03908235828111610a1157611056903690850161199d565b939091602435848111610f7657611070903690840161170b565b913387526020946005865261108a60ff848a205416611af8565b6110a683518887823787818a8101600b8152030190208561174c565b3389528652828820938351948887873788860195888160019889815203019020548a5287526110db60ff858b20541615611b85565b6110f784518988823788818b8101600b8152030190208261174c565b338a52875283892084518988823788818b810189815203019020548a5287528389208560ff1982541617905561113f84518988823788818b8101600c8152030190208261174c565b84518988823788818b810189815203019020548a5287528389206111638154611bc1565b9055600d546001600160ff1b03811681036112e557600390861b0461119a85518a89823789818c8101600c8152030190208361174c565b85518a89823789818c81018a815203019020548b528852848a20548682018092116112d25710156111c9578880f35b83518887823787818a810160128152030190209281519283116112bf57509082916111fa82610d938b9796546118a9565b8790601f831160011461125d5761122892918b91836112525750508160011b916000199060031b1c19161790565b90555b5194859384378201908152030190206112448154611bc1565b905538808080808080808880f35b015190503880610db7565b838b52888b208793929091601f1984168d5b8c8282106112a6575050841161128d575b505050811b01905561122b565b015160001960f88460031b161c19169055388080611280565b8484015186558e9a508b9790950194938401930161126f565b634e487b7160e01b8a5260419052602489fd5b634e487b7160e01b8b526011855260248bfd5b634e487b7160e01b8a526011845260248afd5b5050346101935760203660031901126101935760209160ff9082906001600160a01b0361132361181a565b1681526006855220541690519015158152f35b828434610528576020366003190112610528578235906001600160401b03821161052857506020610fb2819461136e9336910161170b565b81016011815203019020549051908152f35b5050346101935760209060ff6113998361027e366119ca565b81016010815203019020541690519015158152f35b828434610528576020366003190112610528578235906001600160401b03821161052857506113e3602093849236910161199d565b9190828451938492833781016003815203019020549051908152f35b5050346101935760603660031901126101935761141a61181a565b6024359081151580920361025d576001600160a01b03168352600760209081528284209184529081528183206044358452815291819020549051908152f35b82843461052857611481602061146e36611846565b9582865194838680955193849201611729565b82019081520301902090815484101561052857506104e760019361052492611877565b505034610193576060366003190112610193576114bf61181a565b6001600160a01b036024358181169290839003610a11579360ff9284926020961682526008865282822090825285528181206044358252855220541690519015158152f35b505034610193578160031936011261019357602090600d549051908152f35b905082346105285760209081600319360112610528576001600160401b03918335838111610261578161155c61156e923690880161170b565b81885193828580945193849201611729565b810160038152030190209384549384116115ff575084519391611597600585901b83018661169f565b8385529182528082208185015b8484106115b8578651806105248882611797565b60028360019289516115c98161166e565b8a516115d981610929818a6118e3565b81528a516115ed8161092981898b016118e3565b838201528152019201930192906115a4565b634e487b7160e01b835260419052602482fd5b9050346102615760603660031901126102615780356001600160401b03811161025d579261164a602061027e8594829736910161170b565b81016009815203019020602435825284528181206044358252845220549051908152f35b604081019081106001600160401b0382111761168957604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761168957604052565b9291926001600160401b03821161168957604051916116e9601f8201601f19166020018461169f565b829481845281830111611706578281602093846000960137010152565b600080fd5b9080601f8301121561170657816020611726933591016116c0565b90565b60005b83811061173c5750506000910152565b818101518382015260200161172c565b602090611766928260405194838680955193849201611729565b82019081520301902090565b9060209161178b81518092818552858086019101611729565b601f01601f1916010190565b602080820190808352835180925260409283810182858560051b8401019601946000925b8584106117cc575050505050505090565b909192939495968580611809600193603f198682030188528b5190836117f983518a84528a840190611772565b9201519084818403910152611772565b9901940194019295949391906117bb565b600435906001600160a01b038216820361170657565b604435906001600160a01b038216820361170657565b604060031982011261170657600435906001600160401b038211611706576118709160040161170b565b9060243590565b80548210156118935760005260206000209060011b0190600090565b634e487b7160e01b600052603260045260246000fd5b90600182811c921680156118d9575b60208310146118c357565b634e487b7160e01b600052602260045260246000fd5b91607f16916118b8565b8054600093926118f2826118a9565b9182825260209360019182811690816000146119595750600114611918575b5050505050565b90939495506000929192528360002092846000945b83861061194557505050500101903880808080611911565b80548587018301529401938590820161192d565b60ff19168685015250505090151560051b010191503880808080611911565b909161198f61172693604084526040840190611772565b916020818403910152611772565b9181601f84011215611706578235916001600160401b038311611706576020838186019501011161170657565b602060031982011261170657600435906001600160401b038211611706578060238301121561170657816024611726936004013591016116c0565b6040600319820112611706576004356001600160a01b038116810361170657916024356001600160401b039283821161170657806023830112156117065781600401359384116117065760248460051b83010111611706576024019190565b6040600319820112611706576001600160401b03916004358381116117065782611a909160040161199d565b9390939260243591821161170657611aaa9160040161199d565b9091565b906060600319830112611706576001600160401b036004358181116117065783611ada9160040161170b565b9260243591821161170657611af19160040161170b565b9060443590565b15611aff57565b60405162461bcd60e51b815260206004820152602660248201527f4f6e6c792076616c696461746f72732063616e2063616c6c20746869732066756044820152653731ba34b7b760d11b6064820152608490fd5b6020908260405193849283378101600e81520301902090565b6020919283604051948593843782019081520301902090565b15611b8c57565b60405162461bcd60e51b815260206004820152600d60248201526c105b1c9958591e481d9bdd1959609a1b6044820152606490fd5b6000198114611bd05760010190565b634e487b7160e01b600052601160045260246000fd5b90601f8111611bf457505050565b600091825260208220906020601f850160051c83019410611c30575b601f0160051c01915b828110611c2557505050565b818155600101611c19565b9092508290611c10565b903590603e1981360301821215611706570190565b90821015611893576117269160051b810190611c3a565b903590601e198136030182121561170657018035906001600160401b0382116117065760200191813603831361170657565b8054600160401b81101561168957611cb7906001928382018155611877565b611e5257611cc58380611c66565b916001600160401b0392838111611689578492611ce682610d9385546118a9565b600090601f8311600114611de657611d16929160009183611d7b5750508160011b916000199060031b1c19161790565b81555b0192611d2a60209182810190611c66565b92831161168957611d4583611d3f87546118a9565b87611be6565b600091601f8411600114611d865750611d7793506000919083611d7b5750508160011b916000199060031b1c19161790565b9055565b013590503880610db7565b9183601f1981168783528483209483905b88838310611dcc5750505010611db2575b505050811b019055565b0135600019600384901b60f8161c19169055388080611da8565b868601358855909601959384019387935090810190611d97565b8382526020808320601f1985169695949390929181905b888210611e3957505083869796959610611e1f575b505050811b018155611d19565b0135600019600384901b60f8161c19169055388080611e12565b8383013585558a97909401939182019190810190611dfd565b634e487b7160e01b600052600060045260246000fdfea26469706673582212203c5a7212e35b7ca883f0c6fb32663ba012b1e76f4fd073f6b4ec010b320ee0e364736f6c63430008150033"; type BridgeStorageConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: BridgeStorageConstructorParams, + xs: BridgeStorageConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class BridgeStorage__factory extends ContractFactory { @@ -706,23 +797,23 @@ export class BridgeStorage__factory extends ContractFactory { override getDeployTransaction( _bootstrapValidator: AddressLike, _bootstrapChainFee: ChainFeeStruct[], - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction( _bootstrapValidator, _bootstrapChainFee, - overrides || {}, + overrides || {} ); } override deploy( _bootstrapValidator: AddressLike, _bootstrapChainFee: ChainFeeStruct[], - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy( _bootstrapValidator, _bootstrapChainFee, - overrides || {}, + overrides || {} ) as Promise< BridgeStorage & { deploymentTransaction(): ContractTransactionResponse; @@ -740,7 +831,7 @@ export class BridgeStorage__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): BridgeStorage { return new Contract(address, _abi, runner) as unknown as BridgeStorage; } diff --git a/src/contractsTypes/evm/factories/contracts/Bridge__factory.ts b/src/contractsTypes/evm/factories/contracts/Bridge__factory.ts index d368334..6dc8f8c 100644 --- a/src/contractsTypes/evm/factories/contracts/Bridge__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/Bridge__factory.ts @@ -7,26 +7,46 @@ import { ContractTransactionResponse, Interface, } from "ethers"; -import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { + Signer, + AddressLike, + ContractDeployTransaction, + ContractRunner, +} from "ethers"; import type { NonPayableOverrides } from "../../common"; import type { Bridge, BridgeInterface } from "../../contracts/Bridge"; const _abi = [ - { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", - }, { inputs: [ + { + internalType: "address[]", + name: "_validators", + type: "address[]", + }, + { + internalType: "string", + name: "_chainType", + type: "string", + }, { internalType: "address", - name: "target", + name: "_collectionDeployer", + type: "address", + }, + { + internalType: "address", + name: "_storageDeployer", + type: "address", + }, + { + internalType: "address", + name: "_collectionOwner", type: "address", }, ], - name: "AddressEmptyCode", - type: "error", + stateMutability: "nonpayable", + type: "constructor", }, { inputs: [], @@ -55,53 +75,6 @@ const _abi = [ name: "ECDSAInvalidSignatureS", type: "error", }, - { - inputs: [ - { - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "ERC1967InvalidImplementation", - type: "error", - }, - { - inputs: [], - name: "ERC1967NonPayable", - type: "error", - }, - { - inputs: [], - name: "FailedInnerCall", - type: "error", - }, - { - inputs: [], - name: "InvalidInitialization", - type: "error", - }, - { - inputs: [], - name: "NotInitializing", - type: "error", - }, - { - inputs: [], - name: "UUPSUnauthorizedCallContext", - type: "error", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "slot", - type: "bytes32", - }, - ], - name: "UUPSUnsupportedProxiableUUID", - type: "error", - }, { anonymous: false, inputs: [ @@ -208,19 +181,6 @@ const _abi = [ name: "Claimed721", type: "event", }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint64", - name: "version", - type: "uint64", - }, - ], - name: "Initialized", - type: "event", - }, { anonymous: false, inputs: [ @@ -266,12 +226,6 @@ const _abi = [ name: "sourceChain", type: "string", }, - { - indexed: false, - internalType: "string", - name: "metaDataUri", - type: "string", - }, ], name: "Locked", type: "event", @@ -364,45 +318,6 @@ const _abi = [ name: "UnLock721", type: "event", }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "implementation", - type: "address", - }, - ], - name: "Upgraded", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "address", - name: "_contractAddress", - type: "address", - }, - ], - name: "UpgradedContract", - type: "event", - }, - { - inputs: [], - name: "UPGRADE_INTERFACE_VERSION", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -775,39 +690,6 @@ const _abi = [ stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "address[]", - name: "_validators", - type: "address[]", - }, - { - internalType: "string", - name: "_chainType", - type: "string", - }, - { - internalType: "address", - name: "_collectionDeployer", - type: "address", - }, - { - internalType: "address", - name: "_storageDeployer", - type: "address", - }, - { - internalType: "address", - name: "_collectionOwner", - type: "address", - }, - ], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { @@ -835,11 +717,6 @@ const _abi = [ name: "tokenAmount", type: "uint256", }, - { - internalType: "string", - name: "metaDataUri", - type: "string", - }, ], name: "lock1155", outputs: [], @@ -868,11 +745,6 @@ const _abi = [ name: "sourceNftContractAddress", type: "address", }, - { - internalType: "string", - name: "metaDataUri", - type: "string", - }, ], name: "lock721", outputs: [], @@ -956,19 +828,6 @@ const _abi = [ stateMutability: "view", type: "function", }, - { - inputs: [], - name: "proxiableUUID", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [], name: "selfChain", @@ -1014,92 +873,6 @@ const _abi = [ stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "uniqueImplementations", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newImplementation", - type: "address", - }, - { - components: [ - { - internalType: "string", - name: "signerAddress", - type: "string", - }, - { - internalType: "bytes", - name: "signature", - type: "bytes", - }, - ], - internalType: "struct SignerAndSignature[]", - name: "signatures", - type: "tuple[]", - }, - ], - name: "upgrade", - 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", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "upgradeables", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -1144,7 +917,7 @@ const _abi = [ ] as const; const _bytecode = - "0x60a08060405234620000d157306080527ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009081549060ff8260401c16620000c257506001600160401b036002600160401b0319828216016200007c575b6040516142b09081620000d782396080518181816111d401526114220152f35b6001600160401b031990911681179091556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a13880806200005c565b63f92ee8a960e01b8152600490fd5b600080fdfe60406080815260049081361015610020575b5050361561001e57600080fd5b005b60009160e0908335821c9182630526ddb114612794578263064f21fa1461275757826306e265491461230f5782631f78b5b9146122c45782633a7dc8061461212e5782633d73a08d146120e35782633f45a726146120675782634167e34614611b5957826349184d60146116cc5782634f1ef286146113e157826350d16d981461123b57826352d1902d146111be578263538e0a13146111805782635dbdf50c146111355782636a98ea611461110b57826376b28f56146110cc5782637fa5a3501461109e57826385fbfcbe14610fa85782638e4f2f3814610edd578263a543de4014610e89578263ad3cb1cc14610e3f578263c744080214610874578263ca5d62b11461084a578263ca6e55da146101f85750508063ea9c7cbc146101bb578063ed612f8c1461019d5763fa52c7d8036100115734610199576020366003190112610199579081906001600160a01b03610179612b61565b1681528060205220600160ff825416910154825191151582526020820152f35b5080fd5b50346101995781600319360112610199576020906007549051908152f35b50346101995760203660031901126101995760209160ff9082906001600160a01b036101e5612b61565b1681526003855220541690519015158152f35b9092915061020536612c9e565b6103146101a08395930161021c815134101561330a565b61030d848701519361028086519560209661025388828161024681830196878151938492016129ea565b810103808452018261287a565b5190208751878101906102778161026984613135565b03601f19810183528261287a565b51902014613356565b6102d361018089015187516102a488828161024681830196878151938492016129ea565b5190206102af6132e6565b88516102ca89828161024681830196878151938492016129ea565b519020146133a2565b6102dc88613e49565b808b52600186526102f360ff888d20541615612fea565b808b5260018652868b20600160ff19825416179055613c6f565b9051613b7b565b608084016103228151612ada565b93878361033b610336828a01988951612b00565b6131b2565b0191610356835187519061034e82612844565b84825261329e565b15928315948460001461080e5761037b878351818b51938285809451938492016129ea565b8101600d815203019020885161039081613135565b9182529081900388019020546001600160a01b0316955b6001600160a01b0395878716158015918080610807575b156105a15750505050506103d38491516136f0565b89518851627eeac760e11b81526001600160a01b0388168d8201908152602081019290925291909216969182908290819060400103818a5afa918215610597578492610561575b505061016089018051909a908083106104935750505050509161046f7f1f41d1ce828f44485207c043996fe063a199a478cf432ffaeb1425af87feb7fe979261048d9594606089015116908851855192613af0565b6101c086015194519561014081015190519251935196879687613a0d565b0390a180f35b956104bb6104a88488979998949596986130c4565b9460608d01928d85855116905190613af0565b5116918951948a0151936101008b0151166101208b015190883b1561055d5787956104f8938b519889978897632a1b1ec960e21b895288016139d3565b038183875af1801561055357610537575b5050907f1f41d1ce828f44485207c043996fe063a199a478cf432ffaeb1425af87feb7fe9461048d9261046f565b61054390939293612800565b61054f57908538610509565b8580fd5b84513d84823e3d90fd5b8780fd5b8194508092503d8311610590575b610579818361287a565b8101031261058b57899151388061041a565b600080fd5b503d61056f565b88513d86823e3d90fd5b809e989a969e999495979990610800575b15610684575050505050506105c88491516136f0565b1692806060880151168751926101608901998a51908a0151936101008b0151166101208b015190883b1561055d578795610614938b519889978897632a1b1ec960e21b895288016139d3565b038183875af180156105535761066c575b5050907f1f41d1ce828f44485207c043996fe063a199a478cf432ffaeb1425af87feb7fe9461048d926101c086015194519561014081015190519251935196879687613a0d565b61067890939293612800565b61054f57908538610625565b82809495969a97509192916107f8575b50156107c95750505083858360055416858951809481936379d9a0f760e11b83525af19081156107bf57610748929184918791610792575b50169561070e6106db8861410f565b8951906106e782612829565b6106ef61289b565b8252838201526107096107028551612ada565b8c51612b00565b6134c0565b8851915188519261071e84612829565b83528183015286865260098152878620908851809261073c82613135565b908152030190206134c0565b806060880151168751926101608901998a51908a0151936101008b0151166101208b015190883b1561055d578795610614938b519889978897632a1b1ec960e21b895288016139d3565b6107b29150883d8a116107b8575b6107aa818361287a565b81019061341e565b386106cc565b503d6107a0565b87513d87823e3d90fd5b90809296509a9293949a916107f0575b50156107eb57826103d38b93516136f0565b6133e2565b9050386107d9565b905038610694565b50806105b2565b50826103be565b8051610842886108268b5193848151938492016129ea565b820191600b8352898160018060a01b0394030190208b51612b00565b5416956103a7565b5050503461019957816003193601126101995760055490516001600160a01b039091168152602090f35b915061087f36612c9e565b92819361095c6101a08401610897815134101561330a565b61030d88860151936108d78a51956020966108c188828161024681830196878151938492016129ea565b5190208b51878101906102778161026984613135565b6109216101808801518b516108fb88828161024681830196878151938492016129ea565b5190206109066131de565b8c516102ca89828161024681830196878151938492016129ea565b8a61094260ff8c6109318b613e49565b9384815260018a5220541615612fea565b808c52600186528a8c20600160ff19825416179055613c6f565b86608084019261096c8451612ada565b958361097f610336828901998a51612b00565b019361099a85518b519061099282612844565b86825261329e565b15908a82159683600014610e03576109c0838251818551938285809451938492016129ea565b8101600c81520301902082516109d581613135565b9182529081900384019020546001600160a01b0316985b6001600160a01b03988a8a169586158015918080610dfc575b15610b5e57505050505082889360249b9385610a228b95516136f0565b169c8d91859651905195869384926331a9108f60e11b84528c8401525af19182918993610b3f575b5050610b37575b501603610a9e5750505091610a8260008051602061423b833981519152969261048d94606088015116875190613a5f565b6101c0850151935194610140810151905192519586958661346f565b90928092945060608801511690875193880151926101008901511692610120890151873b15610b33578694610ae5928c519788968796634bd297fd60e01b8852870161343d565b038183875af18015610b2957610b11575b505060008051602061423b8339815191529361048d91610a82565b610b1a90612800565b610b25578438610af6565b8480fd5b86513d84823e3d90fd5b8680fd5b905038610a51565b610b56929350803d106107b8576107aa818361287a565b903880610a4a565b91939795509193989a999b95979c5080610df5575b15610c255750505050505050610b8a8291516136f0565b16938160608801511690875193880151926101008901511692610120890151873b15610b33578694610bce928c519788968796634bd297fd60e01b8852870161343d565b038183875af18015610b2957610c11575b505060008051602061423b8339815191529361048d916101c0850151935194610140810151905192519586958661346f565b610c1a90612800565b610b25578438610bdf565b8280949596979c9850919291610ded575b5015610d3b5750505050610c7190868a85600554168b8960c060a0830151920151935180978195829463179e23fb60e31b84528b8401612b26565b03925af1918215610d3157610cd29285918891610d14575b501696610ca4610c988961410f565b8c51906106e782612829565b885191518b5192610cb484612829565b835281830152878752600981528a8720908b51809261073c82613135565b8160608801511690875193880151926101008901511692610120890151873b15610b33578694610bce928c519788968796634bd297fd60e01b8852870161343d565b610d2b9150893d8b116107b8576107aa818361287a565b38610c89565b8a513d88823e3d90fd5b908092939850969493959691610de5575b50156107eb5784610d5e8c95516136f0565b169689518b51906331a9108f60e11b8252848201528181602481898d5af1908115610ddb5787928792610dbe575b50501603610a9e5750505091610a8260008051602061423b833981519152969261048d94606088015116875190613a5f565b610dd49250803d106107b8576107aa818361287a565b3880610d8c565b8c513d88823e3d90fd5b905038610d4c565b905038610c36565b5080610b73565b5082610a05565b8851610e3784610e1b855193848151938492016129ea565b820191600a8352858160018060a01b0394030190208d51612b00565b5416986109ec565b505050346101995781600319360112610199578051610e8591610e6182612829565b60058252640352e302e360dc1b602083015251918291602083526020830190612a0d565b0390f35b5050503461019957602090610ed4610ea036612a94565b84610eb6859493945194858151938492016129ea565b600c90840190815283900385019092206001600160a01b0392612b00565b54169051908152f35b5050503461019957610eee36612ba2565b919060018060a01b03169182845260209360028552610f1360ff848320541615612fea565b610f1d8251613036565b92815b8351811015610f5b578087610f38610f569387612fc0565b510151610f458288612fc0565b52610f508187612fc0565b50612f9b565b610f20565b506001869186610f8287835186810190848252878152610f7a81612829565b519020613c6f565b5084526002835260038185209360ff199484868254161790555283209182541617905580f35b5090503461109a57602036600319011261109a576001600160a01b03610fcc612b61565b1690610fd9821515612f4f565b81845283602052600160ff8486205416151503611057575082808080937fc4b044d89af9405903f78d1ff2a194cc7f65b0d821544faddfc65f7800aa9a9e60208751838152a18082528160205260018683200190828254925582821561104e575bf115611044575080f35b51903d90823e3d90fd5b506108fc61103a565b606490602084519162461bcd60e51b8352820152601960248201527f56616c696461746f7220646f6573206e6f7420657869737421000000000000006044820152fd5b8280fd5b5090503461109a57602036600319011261109a578160209360ff923581526001855220541690519015158152f35b505050346101995760203660031901126101995760209160ff9082906001600160a01b036110f8612b61565b1681526002855220541690519015158152f35b5050503461019957816003193601126101995760065490516001600160a01b039091168152602090f35b5050503461019957602090610ed461114c36612a94565b84611162859493945194858151938492016129ea565b600d90840190815283900385019092206001600160a01b0392612b00565b5090503461109a57602036600319011261109a5760209260ff918391906001600160a01b036111ad612b61565b168252855220541690519015158152f35b50828434611238578060031936011261123857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316300361122b57602090517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b5163703e46dd60e11b8152fd5b80fd5b508284346112385761124c36612ba2565b906001600160a01b0316611261811515612f4f565b61126d82511515613080565b80835260209280845260ff8582205416156113a55761128c8351613036565b94815b84518110156112c45780866112a76112bf9388612fc0565b5101516112b4828a612fc0565b52610f508189612fc0565b61128f565b508490878782518481019087825284808201526009606082015268189b1858dad31a5cdd60ba1b60808201526080815260a081018181106001600160401b038211176113905785525190206113199190613c6f565b507fdd8d4caef6bb86c181d1a6588c934686c698499ed5def3a14d4411ae3359f8f6838351878152a18484528383528184209260ff199384815416905560075495600019870196871161137d57600194959660075586525283209182541617905580f35b634e487b7160e01b865260118352602486fd5b604185634e487b7160e01b6000525260246000fd5b845162461bcd60e51b8152808701859052601660248201527515985b1a59185d1bdc881a5cc81b9bdd08185919195960521b6044820152606490fd5b8482858060031936011261109a576113f7612b61565b9060249384356001600160401b038111610199576114189036908601612a4d565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811630811490811561169e575b5061168e578416938483526020906002825260ff85852054161561165a578584526003825260ff858520541615611624577fbb0e7ec411133f2e650f59a5c752be1a0f548c2140421e80171b2f9b1ff833a9828651888152a185845260038252848420805460ff1916905584516352d1902d60e01b8152828189818a5afa8591816115f5575b506114ef5750505050505191634c9c8ce360e01b8352820152fd5b90878787938b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc918281036115e05750843b156115cc575080546001600160a01b0319168217905583518792917fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8480a28651156115af5750508085856115a197519101845af4913d156115a5573d61159361158a82612a32565b9251928361287a565b81528581943d92013e612eec565b5080f35b5060609250612eec565b94509450505050346115c057505080f35b63b398979f60e01b8152fd5b8551634c9c8ce360e01b8152808501849052fd5b8651632a87526960e21b815280860191909152fd5b9091508381813d831161161d575b61160d818361287a565b8101031261054f5751908a6114d4565b503d611603565b845162461bcd60e51b81528088018390526011818a015270416c72656164792075706772616465642160781b6044820152606490fd5b845162461bcd60e51b8152808801839052600f818a01526e43616e6e6f7420757067726164652160881b6044820152606490fd5b835163703e46dd60e11b81528690fd5b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc541614158861144e565b8482853461109a5760a036600319011261109a578135906001600160401b0390818311610b255736602384011215610b2557828401359260249261170f85612b8b565b9161171c8451938461287a565b858352602095858785019160051b83010191368311611b3d5786889101915b838310611b415750505050833581811161055d5761175c9036908801612a4d565b936044356001600160a01b038181169491859003611b3d5761177c612b4b565b9360843597828916809903611ac9577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009687549960ff8b8b1c161597848c169b8c1580611b36575b6001809e149081611b2c575b159081611b23575b50611b135767ffffffffffffffff1981168d178b558f929187918b611af4575b50611804851515612f4f565b16611810811515612f4f565b6001600160601b0360a01b848160055416176005556006541617600655823b156101995760448e838d519586948593630a669ef360e21b8552840152308c8401525af18015611aea57611ad7575b508b8360065416803b156101995789516313af403560e01b815230818f015290829082908990829084905af18015611acd57611ab5575b50508051918211611aa35790889392916118b0600f546127c6565b601f8111611a42575b508a908d601f84116001146119cd579190836119c2575b5050600019600383901b1c1916931b92909217600f55905b60078a8155918a885b61195e575b505050505081549560ff87851c16156119505750611912578580f35b7fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29468ff00000000000000001916905551908152a181808080808580f35b8351631afcd79f60e31b8152fd5b81518110156119bd57826119728284612fc0565b51168c528b8a52878c208960ff1982541617905583548981018091116119ab57849392916119a2918b9655612f9b565b909192936118f1565b634e487b7160e01b8d5260118c52858dfd5b6118f6565b015190508d806118d0565b600f815260008051602061425b833981519152929190601f198516908e5b828210611a2b5750509084889594939210611a12575b505050811b01600f559091506118e8565b015160001960f88460031b161c191690558d8080611a01565b8385015186558e999095019493840193018e6119eb565b909192939450600f8d5260008051602061425b833981519152601f840160051c8101918c8510611a99575b8b9695949392918f91601f0160051c0191905b828210611a8e5750506118b9565b81558b96018e611a80565b9091508190611a6d565b634e487b7160e01b8c5260418b52848cfd5b611abe90612800565b611ac9578b8d611895565b8b80fd5b8a513d84823e3d90fd5b611ae3909c919c612800565b9a8c61185e565b89513d8f823e3d90fd5b68ffffffffffffffffff191668010000000000000001178c55386117f8565b8b5163f92ee8a960e01b81528f90fd5b905015386117d8565b303b1591506117d0565b50896117c4565b8980fd5b8190611b4c84612b77565b815201910190879061173b565b91509134611d9e5760c0366003190112611d9e578235916001600160401b03602435818111610b3357611b8f9036908701612a4d565b9060443581811161055d57611ba79036908801612a4d565b93611bb0612b4b565b946084359260a435908111611b3d57611bcc9036908a01612a4d565b6001600160a01b0380881699919791611be68b15156130d1565b8515612024578b908b825260209b60098d52611c198d8885209089518092611c0d82613135565b908152030190206131b2565b8d611c35818301518a5190611c2d82612844565b87825261329e565b15611e5057859150611c5c81611c4a8961410f565b818c51938285809451938492016129ea565b8101600b8152030190209089518092611c7482613135565b908152030190205416918215611da2575b813b15611d9e578360c4928e8a519788968795637921219560e11b8752339087015216602485015260448401528a606484015260a060848401528160a48401525af18015611d945790611cde9291611d85575b5061410f565b91611ce76132e6565b948151998a996101009182918c528b01528901611d0391612a0d565b9088820390890152611d1491612a0d565b8681036060880152611d2591612a0d565b90608086015284810360a0860152611d3c91612a0d565b83810360c0850152611d4d90613202565b9083820390840152611d5e91612a0d565b037fb68a7c16716c3a52fbadced40d7c6341930469cf9b90e19b0b444848a222c41b91a180f35b611d8e90612800565b38611cd8565b84513d8d823e3d90fd5b8380fd5b909150828d856006541660248a51809481936399a7ce6d60e01b835288888401525af190811561059757908e9392918591611e33575b50858194611dfc818c81611deb8d61410f565b9151938285809451938492016129ea565b8101600b815203019020908b518092611e1482613135565b9081520301902091166001600160601b0360a01b825416179055611c85565b611e4a9150843d86116107b8576107aa818361287a565b38611dd8565b9290989796958486611e7786611e658561410f565b818d51938285809451938492016129ea565b8101600d815203019020868b518092611e8f82613135565b908152030190205416948515611f7f575b505050813b15611d9e578360c4928e89519788968795637921219560e11b87523390870152166024850152604484015289606484015260a060848401528160a48401525af18015611f7557611f66575b508884015191611efe6132e6565b94519581519a8b9a6101009182918d528c01528a01611f1c91612a0d565b90898203908a0152611f2d91612a0d565b8781036060890152611f3e91612a0d565b90608087015285810360a0870152611f5591612a0d565b84810360c0860152611d4d91612a0d565b611f6f90612800565b38611ef0565b83513d8d823e3d90fd5b90919450866006541660248a51809481936399a7ce6d60e01b835288888401525af190811561201a578f87918793611ffb575b50611fc181611e65859861410f565b8101600d815203019020908a518092611fd982613135565b9081520301902091166001600160601b0360a01b82541617905538848f611ea0565b816120139294503d85116107b8576107aa818361287a565b9138611fb2565b88513d87823e3d90fd5b606490602086519162461bcd60e51b8352820152602060248201527f746f6b656e20616d6f756e74206d757374206265203e207468616e207a65726f6044820152fd5b83828634611238578260031936011261123857612082612b61565b916024356001600160401b03811161109a57916120a785926120c09594369101612a4d565b6001600160a01b03909316815260096020522090612b00565b610e856120d860016120d184612948565b9301612948565b925192839283612b26565b5050503461019957602090610ed46120fa36612a94565b84612110859493945194858151938492016129ea565b600a90840190815283900385019092206001600160a01b0392612b00565b838583346101995761213f36612ba2565b9060018060a01b03169283815260209280845260ff868320541661228957612168851515612f4f565b61217483511515613080565b84825281845260ff86832054166122465761218f8351613036565b95825b84518110156121c75780866121aa6121c29388612fc0565b5101516121b7828b612fc0565b52610f50818a612fc0565b612192565b508285876121e48a855184810190848252858152610f7a81612829565b507ff910fa450d85dbabdd71a7d3256547d80a4a2f84c8b7f6d088cae55c8ffdccb3828551838152a18252528220600160ff198254161790556007549060018201809211612233575060075580f35b634e487b7160e01b835260119052602482fd5b855162461bcd60e51b8152908101849052601760248201527f56616c696461746f7220616c72656164792061646465640000000000000000006044820152606490fd5b855162461bcd60e51b815290810184905260156024820152741d985b1a59185d1bdc88189b1858dadb1a5cdd1959605a1b6044820152606490fd5b5050503461019957602090610ed46122db36612a94565b846122f1859493945194858151938492016129ea565b600b90840190815283900385019092206001600160a01b0392612b00565b90915034611d9e5760a0366003190112611d9e578135906001600160401b03602435818111610b33576123459036908601612a4d565b60443582811161055d5761235c9036908701612a4d565b612364612b4b565b926084359081116127535761237c9036908801612a4d565b6001600160a01b03808516979194918a906123988a15156130d1565b89825260209960098b526123b78c8c81862091518092611c0d82613135565b808c0180518e516123cb91611c2d82612844565b156125b5575050838c8c6123f4816123e28a61410f565b818551938285809451938492016129ea565b8101600a8152030190209151809261240b82613135565b908152030190205416918c8315612512575b50813b15611d9e57836064928e519687958694632142170760e11b865233908601521660248401528c60448401525af18015612508576124fb936124cb7fb68a7c16716c3a52fbadced40d7c6341930469cf9b90e19b0b444848a222c41b9b6124986124ee9661048d9b9a99966124d996611d85575061410f565b926124be6124a46131de565b9683519e8f9e8f9061010092839183528201520190612a0d565b918c8303908d0152612a0d565b9089820360608b0152612a0d565b906001608089015287820360a0890152612a0d565b85810360c0870152613202565b9184830390850152612a0d565b89513d8c823e3d90fd5b9250838c866006541660248651809481936223abb760e71b835288888401525af19081156125ab578d948791879361258c575b508295612555816123e28c61410f565b8101600a8152030190209151809261256c82613135565b9081520301902091166001600160601b0360a01b8254161790558c61241d565b6125a4919350863d88116107b8576107aa818361287a565b9138612545565b84513d87823e3d90fd5b94939286848e9f99988f95949b9c9e9f808c6125d592611deb8c9561410f565b8101600c815203019020868c5180926125ed82613135565b9081520301902054169485156126ad575b505050813b15611d9e57836064928e8a519788968795632142170760e11b8752339087015216602485015260448401525af18015611d945761269e575b5051916126466131de565b9351948151998a996101009182918c528b0152890161266491612a0d565b908882039089015261267591612a0d565b868103606088015261268691612a0d565b6001608087015285810360a0870152611f5591612a0d565b6126a790612800565b3861263b565b90919450866006541660248b51809481936223abb760e71b835288888401525af1908115612749578f8791879361272a575b506126f0818c81611deb879a61410f565b8101600c815203019020908b51809261270882613135565b9081520301902091166001600160601b0360a01b82541617905538848f6125fe565b816127429294503d85116107b8576107aa818361287a565b91386126df565b89513d87823e3d90fd5b8880fd5b83853461123857506120c0602061278461277036612a94565b9290818651938285809451938492016129ea565b8101600881520301902090612b00565b50505034610199578160031936011261019957610e85906127b361289b565b9051918291602083526020830190612a0d565b90600182811c921680156127f6575b60208310146127e057565b634e487b7160e01b600052602260045260246000fd5b91607f16916127d5565b6001600160401b03811161281357604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761281357604052565b602081019081106001600160401b0382111761281357604052565b606081019081106001600160401b0382111761281357604052565b90601f801991011681019081106001600160401b0382111761281357604052565b60405190600082600f54916128af836127c6565b80835260209360019081811690811561292857506001146128db575b50506128d99250038361287a565b565b90939150600f60005260008051602061425b833981519152936000915b8183106129105750506128d9935082010138806128cb565b855488840185015294850194879450918301916128f8565b9150506128d994925060ff191682840152151560051b82010138806128cb565b9060405191826000825461295b816127c6565b9081845260209460019182811690816000146129c85750600114612989575b5050506128d99250038361287a565b600090815285812095935091905b8183106129b05750506128d9935082010138808061297a565b85548884018501529485019487945091830191612997565b925050506128d994925060ff191682840152151560051b82010138808061297a565b60005b8381106129fd5750506000910152565b81810151838201526020016129ed565b90602091612a26815180928185528580860191016129ea565b601f01601f1916010190565b6001600160401b03811161281357601f01601f191660200190565b81601f8201121561058b57803590612a6482612a32565b92612a72604051948561287a565b8284526020838301011161058b57816000926020809301838601378301015290565b90604060031983011261058b576001600160401b0360043581811161058b5783612ac091600401612a4d565b9260243591821161058b57612ad791600401612a4d565b90565b6020612af39181604051938285809451938492016129ea565b8101600881520301902090565b602090612b1a9282604051948386809551938492016129ea565b82019081520301902090565b9091612b3d612ad793604084526040840190612a0d565b916020818403910152612a0d565b606435906001600160a01b038216820361058b57565b600435906001600160a01b038216820361058b57565b35906001600160a01b038216820361058b57565b6001600160401b0381116128135760051b60200190565b9060408060031984011261058b576004356001600160a01b038116810361058b579260248035906001600160401b039081831161058b578360238401121561058b57826004013590612bf382612b8b565b95612c008151978861287a565b828752602095828789019460051b8701019581871161058b57838101945b878610612c315750505050505050505090565b853587811161058b5782019084602319838603011261058b57845190612c5682612829565b8683013589811161058b578588612c6f92860101612a4d565b825260448301359189831161058b57612c8f86898e969587960101612a4d565b83820152815201950194612c1e565b600319919060408382011261058b576004928335906001600160401b0380831161058b576101e08092848603011261058b5760405191820182811082821117612ed7576040528286013582526024918284013582811161058b578588612d0692870101612a4d565b9360209485830152604481013583811161058b578689612d2892840101612a4d565b6040830152612d3960648201612b77565b6060830152608481013583811161058b578689612d5892840101612a4d565b608083015260a481013583811161058b578689612d7792840101612a4d565b60a083015260c481013583811161058b578689612d9692840101612a4d565b60c083015260e481013560e0830152612db26101048201612b77565b61010083015261012481013583811161058b578689612dd392840101612a4d565b61012083015261014481013583811161058b578689612df492840101612a4d565b61014083015261016481013561016083015261018481013583811161058b578689612e2192840101612a4d565b6101808301526101a48101356101a08301526101c481013583811161058b57888791612e4e930101612a4d565b6101c08201529582359082821161058b578560238301121561058b5781013590612e7782612b8b565b95612e85604051978861287a565b828752848688019360051b8301019481861161058b57808301935b868510612eb257505050505050505090565b843586811161058b578891612ecc85858594890101612a4d565b815201940193612ea0565b604187634e487b7160e01b6000525260246000fd5b90612f135750805115612f0157805190602001fd5b604051630a12f52160e11b8152600490fd5b81511580612f46575b612f24575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b15612f1c565b15612f5657565b60405162461bcd60e51b815260206004820152601f60248201527f416464726573732063616e6e6f74206265207a65726f206164647265737321006044820152606490fd5b6000198114612faa5760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015612fd45760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b15612ff157565b60405162461bcd60e51b815260206004820152601760248201527f4461746120616c72656164792070726f636573736564210000000000000000006044820152606490fd5b9061304082612b8b565b61304d604051918261287a565b828152809261305e601f1991612b8b565b019060005b82811061306f57505050565b806060602080938501015201613063565b1561308757565b60405162461bcd60e51b81526020600482015260156024820152744d7573742068617665207369676e6174757265732160581b6044820152606490fd5b91908203918211612faa57565b156130d857565b60405162461bcd60e51b815260206004820152602f60248201527f736f757263654e6674436f6e7472616374416464726573732063616e6e6f742060448201526e6265207a65726f206164647265737360881b6064820152608490fd5b600f5460009291613145826127c6565b9160019081811690811561319f575060011461316057505050565b9091929350600f60005260008051602061425b833981519152906000915b84831061318c575050500190565b818160209254858701520192019161317e565b60ff191683525050811515909102019150565b906040516131bf81612829565b60206131d9600183956131d181612948565b855201612948565b910152565b604051906131eb82612829565b600882526739b4b733bab630b960c11b6020830152565b600f5460009291613212826127c6565b9081815260209260019081811690816000146132815750600114613237575b50505050565b9293945090600f60005260008051602061425b83398151915292846000945b83861061326d575050505001019038808080613231565b805485870183015294019385908201613256565b60ff191685840152505090151560051b0101915038808080613231565b90604051916020926132bf84828161024681830196878151938492016129ea565b519020916132df60405191828161024681830196878151938492016129ea565b5190201490565b604051906132f382612829565b60088252676d756c7469706c6560c01b6020830152565b1561331157565b60405162461bcd60e51b815260206004820152601f60248201527f646174612e666565204c455353205448414e2073656e7420616d6f756e7421006044820152606490fd5b1561335d57565b60405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642064657374696e6174696f6e20636861696e210000000000006044820152606490fd5b156133a957565b60405162461bcd60e51b8152602060048201526011602482015270496e76616c6964204e465420747970652160781b6044820152606490fd5b60405162461bcd60e51b8152602060048201526014602482015273496e76616c69642062726964676520737461746560601b6044820152606490fd5b9081602091031261058b57516001600160a01b038116810361058b5790565b919360a093612ad79695600180871b038094168552602085015260408401521660608201528160808201520190612a0d565b919261349e6080946134906134ac949998979960a0875260a0870190612a0d565b908582036020870152612a0d565b908382036040850152612a0d565b6001600160a01b0390951660608201520152565b81518051906001600160401b039182811161281357806134e085546127c6565b92601f9384811161368d575b506020908483116001146136285760009261361d575b50508160011b916000199060031b1c19161783555b6020600180940194015180519283116128135761353485546127c6565b8281116135d5575b5060209183116001146135755792829391839260009461356a575b50501b916000199060031b1c1916179055565b015192503880613557565b90601f198316918560005283826000209360005b878282106135bc575050106135a3575b505050811b019055565b015160001960f88460031b161c19169055388080613599565b8486015187559095019460209485019487935001613589565b8560005260206000208380860160051c82019260208710613614575b0160051c019085905b82811061360857505061353c565b600081550185906135fa565b925081926135f1565b015190503880613502565b60008781528281209350601f198516905b818110613675575090846001959493921061365c575b505050811b018355613517565b015160001960f88460031b161c1916905538808061364f565b92936020600181928786015181550195019301613639565b9091506000868152602081208580860160051c820193602087106136d6575b908695949392910160051c01915b8281106136c85750506134ec565b8181558594506001016136ba565b935081936136ac565b908151811015612fd4570160200190565b90818051602a908181149081156139c8575b501561398a57815181811461388b575b505050600091825b815184101561387d5761372d84836136df565b5160f81c603081101580613872575b156137c35760ff908116602f1901908111612faa57905b6001600160a01b039160049180831b6010600160a01b031691908416801590830460101417156137ae5760ff160191821161379957506137939093612f9b565b9261371a565b601190634e487b7160e01b6000525260246000fd5b601183634e487b7160e01b6000525260246000fd5b606181101580613867575b156137e95760ff90811660561901908111612faa5790613753565b60418110158061385c575b1561380b576036190160ff8111612faa5790613753565b60405162461bcd60e51b815260206004820152602360248201527f496e76616c69642063686172616374657220696e206164647265737320737472604482015262696e6760e81b6064820152608490fd5b5060468111156137f4565b5060668111156137ce565b50603981111561373c565b6001600160a01b0316925050565b909192935015612fd45760208201516001600160f81b0319908116600360fc1b148061396d575b1561393257604051926138c48461285f565b60288452604036602086013760025b8381106138e7575050505090388080613712565b826138f282846136df565b511690600119810181811161391d576139126139189360001a91886136df565b53612f9b565b6138d3565b60246000634e487b7160e01b81526011600452fd5b60405162461bcd60e51b815260206004820152601360248201527209ad2e6e6d2dcce404e60f04e40e0e4caccd2f606b1b6044820152606490fd5b50825160011015612fd45760218301518116600f60fb1b146138b2565b60405162461bcd60e51b8152602060048201526016602482015275092dcecc2d8d2c840c2c8c8e4cae6e640d8cadccee8d60531b6044820152606490fd5b602891501438613702565b929360c094612ad79796929360018060a01b0380951686526020860152604085015260608401521660808201528160a08201520190612a0d565b92613a3b60a09598979693613a2d613a499460c0885260c0880190612a0d565b908682036020880152612a0d565b908482036040860152612a0d565b95600180851b0316606083015260808201520152565b7f26b5f43c1b8acf29c34ba80744bb118ae1dbff66554aa409f44f466bb41327bd606060018060a01b0380951694604051931692838152846020820152856040820152a1823b1561058b576044600092836040519586948593630399357f60e51b8552600485015260248401525af18015613ae457613adb5750565b6128d990612800565b6040513d6000823e3d90fd5b9290917f39500e873c2a8011e5ba210d6fc004842250154c0004132ee4f379a947698caf608060018060a01b0380931692604051961695868152856020820152836040820152846060820152a1803b1561058b5760009283606492604051968795869463fead481760e01b86526004860152602485015260448401525af18015613ae457613adb5750565b9190918015613c3b5747908110613bff578251908115613be957049160005b8151811015613be3576001600160a01b03613bb58284612fc0565b511660005260006020526001604060002001908154858101809111612faa57613bde9255612f9b565b613b9a565b50509050565b634e487b7160e01b600052601260045260246000fd5b60405162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320617661696c61626c6560601b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b496e76616c6964206665657360a01b6044820152606490fd5b81516000939291613c7f82612b8b565b90613c9a604093613c928551948561287a565b808452612b8b565b60209490601f19013684870137865b8151811015613d9257613d0f613d06613cc28385612fc0565b518751898101907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008252603c88818301528152613cfe8161285f565b519020613fbe565b9092919261408a565b6001600160a01b031660008181528088528690205460ff9081169081613d7f575b50613d45575b50613d4090612f9b565b613ca9565b97906001808301809311612faa57613d40929980613d638489612fc0565b52600052600e8852866000209060ff1982541617905590613d36565b9050600e88528660002054161538613d30565b50505090939260005b8251811015613dd957613dd4906001600160a01b03613dba8286612fc0565b5116600052600e85528660002060ff198154169055612f9b565b613d9b565b509390926007548060011b9080820460021490151715612faa57600390049060018201809211612faa5710613e0d57505090565b60649250519062461bcd60e51b8252600482015260166024820152755468726573686f6c64206e6f7420726561636865642160501b6044820152fd5b8051602082015190604083015192600160a01b6001900391826060830151169260808301519060a08401519060c08501519060e086015190610100870151166101208701519261014088015194610160890151966101808a0151986101a08b01519a6101c001519b6040519e8f9e8f936020850152604084016101e090526102008401613ed591612a0d565b838103601f19016060850152613eea91612a0d565b6080909201528c8103601f190160a08e0152613f0591612a0d565b8b8103601f190160c08d0152613f1a91612a0d565b8a8103601f190160e08c0152613f2f91612a0d565b916101008a0152610120890152601f1988820301610140890152613f5291612a0d565b868103601f1901610160880152613f6891612a0d565b90610180860152601f19858203016101a0860152613f8591612a0d565b906101c0840152601f19838203016101e0840152613fa291612a0d565b03601f1981018252613fb4908261287a565b8051906020012090565b8151919060418303613fef57613fe892506020820151906060604084015193015160001a90613ffa565b9192909190565b505060009160029190565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841161407e57926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa156140725780516001600160a01b0381161561406957918190565b50809160019190565b604051903d90823e3d90fd5b50505060009160039190565b60048110156140f9578061409c575050565b600181036140b65760405163f645eedf60e01b8152600490fd5b600281036140d75760405163fce698f760e01b815260048101839052602490fd5b6003146140e15750565b602490604051906335e2f38360e21b82526004820152fd5b634e487b7160e01b600052602160045260246000fd5b604051906001600160a01b031661412582612829565b6010825260206f181899199a1a9b1b9c1cb0b131b232b360811b81840152604051926141508461285f565b602a84528184016040368237845115612fd45760309053835192600193841015612fd4576078602186015360005b6014811061418e57505050505090565b600c8101808211612faa5784811015612fd45782901a60046001600160f81b0319600f816141c085851c8316896136df565b511693858a1b9460029087870482148815171561422557868201809211614225576141f56141fd9493928e9260001a926136df565b5316876136df565b5116906003928301809311613799575090613912614220939260001a91896136df565b61417e565b601186634e487b7160e01b6000525260246000fdfecff7195d53dc523a0632d4b78ccedc8dea0e74bb445f72f1ba8accaee64b5f598d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802a26469706673582212205622f8e22fbc43c4c4835ac837cb24af26744ac493f8e48e461c0a599b1e6d9064736f6c63430008150033"; + "0x6080604090808252346200046f57600090620041df80380380916200002582856200049e565b833981019260a0828503126200046b5781516001600160401b0391908281116200046757830191601f9580878501121562000463578351966020928089116200044f5760059589871b86519a6200007f8783018d6200049e565b8b5285808c019183010191858311620003b85786809101915b8383106200043457509150508701518181116200043057870191838184011215620004305782518281116200041c57601f1993875195620000e088878686011601886200049e565b828752878383010111620003b8578a918791835b82811062000404575050860101526200010f868901620004c2565b936200012c60806200012460608c01620004c2565b9a01620004c2565b938a8955600d948b620001408754620004d7565b858a818311620003e4575b50506000885550506001600160a01b039687169a87906200016e8d15156200052d565b169a6200017d8c15156200052d565b60018060a01b03199b818d600354161760035560049c8d5416178c55803b15620003e0578951630a669ef360e21b8152918816828d01523060248301528c908290604490829084905af18015620003bc57620003ca575b50858a5416803b15620003c65788516313af403560e01b815230818d0152908c908290602490829084905af18015620003bc57908c91620003a0575b505081519384116200038d57908392916200022c8654620004d7565b83811162000351575b5087928411600114620002ee57508a92620002e2575b50508160011b916000199060031b1c19161790555b855b8751811015620002d357818382871b8a0101511687528683528387206001908160ff198254161790558554908101809111620002c05785556000198114620002ad5760010162000262565b634e487b7160e01b875260118652602487fd5b634e487b7160e01b885260118752602488fd5b8351613c6490816200057b8239f35b0151905038806200024b565b858c52878c2093168b5b888282106200033a57505090846001959493921062000320575b505050811b01905562000260565b015160001960f88460031b161c1916905538808062000312565b6001859682939686015181550195019301620002f8565b6200037c908760005289600020858d818901901c8201928c891062000383575b018d1c019062000514565b3862000235565b9250819262000371565b634e487b7160e01b8b5260418a5260248bfd5b620003ab9062000474565b620003b8578a3862000210565b8a80fd5b89513d8e823e3d90fd5b8b80fd5b620003d8909b919b62000474565b9938620001d4565b8c80fd5b838a620003fa95522091018c1c81019062000514565b8b38858a6200014b565b8181018401518982018501528d9450899301620000f4565b634e487b7160e01b8a52604160045260248afd5b8880fd5b81906200044184620004c2565b815201910190869062000098565b634e487b7160e01b88526041600452602488fd5b8580fd5b8480fd5b8280fd5b600080fd5b6001600160401b0381116200048857604052565b634e487b7160e01b600052604160045260246000fd5b601f909101601f19168101906001600160401b038211908210176200048857604052565b51906001600160a01b03821682036200046f57565b90600182811c9216801562000509575b6020831014620004f357565b634e487b7160e01b600052602260045260246000fd5b91607f1691620004e7565b81811062000520575050565b6000815560010162000514565b156200053557565b60405162461bcd60e51b815260206004820152601f60248201527f416464726573732063616e6e6f74206265207a65726f206164647265737321006044820152606490fdfe6080604052600436101561001b575b361561001957600080fd5b005b600060e08135811c9081630526ddb1146123c1578163064f21fa146123855781631f78b5b91461233c5781633a7dc806146121955781633d73a08d1461214c5781633f45a726146120cb57816350d16d9814611f16578163538e0a1314611ed75781635dbdf50c14611e8e578163697937be14611ad45781636a98ea6114611aab5781637fa5a35014611a7c57816385fbfcbe14611988578163a543de4014611935578163a813761f14611486578163c744080214610b17578163ca5d62b114610aee578163ca6e55da1461016d57508063ed612f8c1461014f5763fa52c7d814610106575061000e565b3461014c57602036600319011261014c5760409081906001600160a01b0361012c612798565b1681528060205220600160ff825416910154825191151582526020820152f35b80fd5b503461014c578060031936011261014c576020600554604051908152f35b90506003196040368201126107b7576001600160401b03600435116107b7576101e090600435360301126107b7576040516101a78161246f565b600435600401358152602460043501356001600160401b0381116107b7576101d690600436918135010161268b565b6020820152604460043501356001600160401b0381116107b75761020190600436918135010161268b565b60408201526102146064600435016127c4565b6060820152608460043501356001600160401b0381116107b75761023f90600436918135010161268b565b608082015260a460043501356001600160401b0381116107b75761026a90600436918135010161268b565b60a082015260c460043501356001600160401b0381116107b75761029590600436918135010161268b565b60c082015260e46004350135828201526102b4610104600435016127c4565b61010082015261012460043501356001600160401b0381116107b7576102e190600436918135010161268b565b61012082015261014460043501356001600160401b0381116107b75761030e90600436918135010161268b565b61014082015261016460043501356101608201526001600160401b036101846004350135116107b75761034c3660048035610184810135010161268b565b6101808201526004356101a48101356101a08301526101c401356001600160401b0381116107b75761038590600436918135010161268b565b6101c08201526001600160401b03602435116107b7573660236024350112156107b757602435600401356103b8816127d8565b906103c660405192836124c1565b80825260208201903660248260051b81350101116107b7576024803501915b60248260051b813501018310610aba57505050610506610511916104106101a0850151341015612c7e565b6104716040850151604051610442602082816104358183019687815193849201612643565b81010380845201826124c1565b51902060405160208101906104688161045a84612a85565b03601f1981018352826124c1565b51902014612cca565b6104c8610180850151604051610497602082816104358183019687815193849201612643565b5190206104a2612c5a565b6040516104bf602082816104358183019687815193849201612643565b51902014612d16565b6104d184613809565b80875260016020526104ea60ff60408920541615612d56565b808752600160205260408720600160ff1982541617905561362f565b6101a083015161353b565b602061053461052f6105266080850151612727565b8385015161274d565b612b14565b01916105508351604051906105488261248b565b868252612c12565b1584811580610a7557610573602087518160405193828580945193849201612643565b8101600b81520301902060405161058981612a85565b918252908190036020019020546001600160a01b0316925b6001600160a01b038416158015918080610a6e575b156107c4575050955161060f96506001600160a01b0391506105d7906130b0565b8551604051627eeac760e11b81526001600160a01b038616600482015260248101919091529691169390602090879081906044820190565b0381875afa958615610779578296610788575b50610160850151958681106106ad57505050606083015183516101608501517f1f41d1ce828f44485207c043996fe063a199a478cf432ffaeb1425af87feb7fe965061067b9390929091906001600160a01b03166134b0565b6106a76101c08301519160208401519361014081015191610160825192015192604051968796876133cd565b0390a180f35b6106bd816106d693949698612a14565b60608701518751919591906001600160a01b03166134b0565b60608401518451918501516101008601516101208701516001600160a01b0391821694939091169190883b15610784578694610727926040519788968796632a1b1ec960e21b885260048801613393565b038183885af1801561077957610761575b50507f1f41d1ce828f44485207c043996fe063a199a478cf432ffaeb1425af87feb7fe9161067b565b61076a9061242b565b610775578238610738565b8280fd5b6040513d84823e3d90fd5b8680fd5b915094506020813d6020116107bc575b816107a5602093836124c1565b810103126107b7578590519438610622565b600080fd5b3d9150610798565b80989594969890610a67575b156108bb57505091516001600160a01b0392506107ed91506130b0565b169260018060a01b036060840151168351610160850151928501519160018060a01b036101008701511692610120870151883b15610784578694610846926040519788968796632a1b1ec960e21b885260048801613393565b038183885af18015610779576108a7575b50507f1f41d1ce828f44485207c043996fe063a199a478cf432ffaeb1425af87feb7fe916106a76101c08301519160208401519361014081015191610160825192015192604051968796876133cd565b6108b09061242b565b610775578238610857565b909294508180945091610a5f575b5015610a2a5750506003546040516379d9a0f760e11b8152859250906020908290600490829086906001600160a01b03165af19081156107795782916109fb575b506001600160a01b03169261095c61092185613ac3565b6040519061092e82612454565b6109366124e2565b8252602082015261095761094d6080870151612727565b602087015161274d565b612e80565b6109a5602084015160808501516040519161097683612454565b825260208201528584526007602052604084206020604051809261099982612a85565b90815203019020612e80565b60608301518351610160850151928501516101008601516101208701516001600160a01b03918216949091169190883b15610784578694610846926040519788968796632a1b1ec960e21b885260048801613393565b610a1d915060203d602011610a23575b610a1581836124c1565b810190612dde565b3861090a565b503d610a0b565b91939181610a57575b5015610a525761060f928460018060a01b036105d760808601516130b0565b612da2565b905038610a33565b9050386108c9565b50806107d0565b50826105b6565b6080850151610ab26020610a926040519384815193849201612643565b8201916009835260208160018060a01b039403019020602088015161274d565b5416926105a1565b8235906001600160401b0382116107b75760208091610ae16024948536918135010161268b565b81520193019290506103e5565b823461014c578060031936011261014c576003546040516001600160a01b039091168152602090f35b9050600319604036820112610775576001600160401b0360043511610775576101e090600435360301126114825760405190610b528261246f565b600435600401358252602460043501356001600160401b03811161147e57610b8190600436918135010161268b565b6020830152604460043501356001600160401b03811161147e57610bac90600436918135010161268b565b6040830152610bbf6064600435016127c4565b6060830152608460043501356001600160401b03811161147e57610bea90600436918135010161268b565b608083015260a460043501356001600160401b03811161147e57610c1590600436918135010161268b565b60a083015260c460043501356001600160401b03811161147e57610c4090600436918135010161268b565b60c083015260e4600435013581830152610c5f610104600435016127c4565b61010083015261012460043501356001600160401b03811161147e57610c8c90600436918135010161268b565b6101208301526001600160401b0361014460043501351161077557610cbc3660048035610144810135010161268b565b61014083015261016460043501356101608301526001600160401b0361018460043501351161077557610cfa3660048035610184810135010161268b565b6101808301526101a460043501356101a08301526001600160401b036101c460043501351161077557610d3836600480356101c4810135010161268b565b6101c08301526001600160401b0360243511610775573660236024350112156107755760243560040135610d6b816127d8565b90610d7960405192836124c1565b80825260208201903660248260051b8135010111610ffe576024803501915b60248260051b81350101831061144c57505050610e22610e2d91610dc36101a0860151341015612c7e565b610de86040860151604051610442602082816104358183019687815193849201612643565b610e19610180860151604051610e0e602082816104358183019687815193849201612643565b5190206104a2612b40565b6104d185613809565b6101a084015161353b565b6020610e4b61052f610e426080860151612727565b8386015161274d565b0183610e67825160405190610e5f8261248b565b838252612c12565b1591821561140757610e89602082518160405193828580945193849201612643565b8101600a815203019020604051610e9f81612a85565b918252908190036020019020546001600160a01b0316925b80806113f5575b1561102b5750516001600160a01b0390610ed7906130b0565b1692818551604051906331a9108f60e11b82526004820152602081602481878a5af184918161100a575b50611002575b506001600160a01b0390811690841603610f6f57505060608301518351600080516020613bef8339815191529492610f4a929091906001600160a01b031661341f565b6106a76101c08201519160208101519361014082015191519160405195869586612e2f565b6060850151855191860151610100870151610120880151949550909392916001600160a01b039081169116863b15610ffe578593610fc2916040519687958695634bd297fd60e01b875260048701612dfd565b038183875af1801561077957610fea575b5050600080516020613bef83398151915291610f4a565b610ff39061242b565b610775578238610fd3565b8580fd5b905038610f07565b61102491925060203d602011610a2357610a1581836124c1565b9038610f01565b9192909180806113e4575b15611101575050516001600160a01b0390611050906130b0565b60608501518551948601516101008701516101208801519390941695909390916001600160a01b039081169116863b15610ffe5785936110a5916040519687958695634bd297fd60e01b875260048701612dfd565b038183875af18015610779576110ed575b5050816106a76101c0600080516020613bef8339815191529401519160208101519361014082015191519160405195869586612e2f565b6110f69061242b565b6107755782386110b6565b91509150801581156113d3575b1561126057505060035460a083015160c084015160405163179e23fb60e31b81528693909260209284926001600160a01b0316918391879183916111559160048401612773565b03925af1908115610779578291611241575b506001600160a01b0316916111b461117e84613ac3565b6040519061118b82612454565b6111936124e2565b825260208201526109576111aa6080880151612727565b602088015161274d565b6111f160208501516080860151604051916111ce83612454565b825260208201528484526007602052604084206020604051809261099982612a85565b6060840151845191850151610100860151610120870151919391926001600160a01b039081169116863b15610ffe5785936110a5916040519687958695634bd297fd60e01b875260048701612dfd565b61125a915060203d602011610a2357610a1581836124c1565b38611167565b92939215806113c1575b15610a525760808401516001600160a01b0390611286906130b0565b16918451604051906331a9108f60e11b8252600482015260208160248188885af19081156113b6578591611397575b506001600160a01b03908116908316036112f4575092610f4a600080516020613bef833981519152939460018060a01b0360608401511683519061341f565b60608501518551918601516101008701516101208801519194506001600160a01b039283169216853b156107845786939291611345916040519687958695634bd297fd60e01b875260048701612dfd565b038183865af1801561138c5761136d575b50600080516020613bef8339815191529192610f4a565b91611386600080516020613bef8339815191529361242b565b91611356565b6040513d85823e3d90fd5b6113b0915060203d602011610a2357610a1581836124c1565b386112b5565b6040513d87823e3d90fd5b506001600160a01b038116151561126a565b506001600160a01b0382161561110e565b506001600160a01b03821615611036565b506001600160a01b0384161515610ebe565b608085015161144460206114246040519384815193849201612643565b8201916008835260208160018060a01b039403019020602088015161274d565b541692610eb7565b6001600160401b0383351161078457602080602492611471368588358135010161268b565b8152019301929050610d98565b8380fd5b5080fd5b9050346114825760a0366003190112611482576001600160401b0390600435602435838111611931576114bd90369060040161268b565b92604435908111611931576114d690369060040161268b565b6114de6127ae565b936001600160a01b03938486169160843591906114fc841515612a21565b82156118ed57838952886020976007895261152f604083208a604051809261152382612a85565b90815203019020612b14565b8981016115448151604051906105488261248b565b1561171b5750508061156c8a6115598d613ac3565b8160405193828580945193849201612643565b810160098152030190208a604051809261158582612a85565b9081520301902054168015611684575b863b156107755760c490836040519889948593637921219560e11b85523360048601521660248401528b604484015288606484015260a060848401528160a48401525af19081156116795761163c6106a79661162e611610600080516020613c0f8339815191529c61165d9961164a9761166a575b50613ac3565b93611619612c5a565b96806040519d8e9d8e528d01528b0190612666565b9089820360408b0152612666565b908782036060890152612666565b91608086015284820360a0860152612666565b82810360c0840152612b64565b6116739061242b565b3861160a565b6040513d8b823e3d90fd5b50818982600454166024604051809481936399a7ce6d60e01b83528c60048401525af1801561138c578b9184916116fe575b50826116c68c6115598495613ac3565b810160098152030190208c60405180926116df82612a85565b9081520301902091166001600160601b0360a01b825416179055611595565b61171591508b3d8d11610a2357610a1581836124c1565b386116b6565b929190939594969a816117318c61155984613ac3565b8101600b8152030190208c604051809261174a82612a85565b908152030190205416908115611848575b508b3b156107755760c490836040519d8e948593637921219560e11b85523360048601521660248401528c604484015288606484015260a060848401528160a48401525af193841561183d576117ff6106a7976117f161180d94600080516020613c0f8339815191529d6118209961182e575b5051936117d9612c5a565b965199806040519e8f9e8f90815201528c0190612666565b908a820360408c0152612666565b9088820360608a0152612666565b91608087015285820360a0870152612666565b9083820360c0850152612666565b6118379061242b565b386117ce565b6040513d8c823e3d90fd5b9050828b8d602485600454169160405194859384926399a7ce6d60e01b845260048401525af19081156118e25784916118c5575b508261188c8d6115598495613ac3565b8101600b8152030190208d60405180926118a582612a85565b9081520301902091166001600160601b0360a01b8254161790553861175b565b6118dc91508c8d3d10610a2357610a1581836124c1565b3861187c565b6040513d86823e3d90fd5b606460405162461bcd60e51b815260206004820152602060248201527f746f6b656e20616d6f756e74206d757374206265203e207468616e207a65726f6044820152fd5b8480fd5b823461014c57602061197e611949366126e1565b836119606040949394519485815193849201612643565b600a90840190815283900384019092206001600160a01b039261274d565b5416604051908152f35b823461014c57602036600319011261014c576001600160a01b036119aa612798565b166119b68115156128eb565b80825281602052600160ff604084205416151503611a375781808080937fc4b044d89af9405903f78d1ff2a194cc7f65b0d821544faddfc65f7800aa9a9e6020604051838152a18082528160205260016040832001908282549255828215611a2e575bf115611a225780f35b604051903d90823e3d90fd5b506108fc611a19565b60405162461bcd60e51b815260206004820152601960248201527f56616c696461746f7220646f6573206e6f7420657869737421000000000000006044820152606490fd5b823461014c57602036600319011261014c5760ff60406020926004358152600184522054166040519015158152f35b823461014c578060031936011261014c576004546040516001600160a01b039091168152602090f35b905034611482576080366003190112611482576001600160401b039060043560243583811161193157611b0b90369060040161268b565b9260443590811161193157611b2490369060040161268b565b611b2c6127ae565b936001600160a01b039384861691611b45831515612a21565b8288528760209660078852611b666040832089604051809261152382612a85565b888101611b7b8151604051906105488261248b565b15611d1057505080611b90896115598c613ac3565b81016008815203019020896040518092611ba982612a85565b9081520301902054168015611c7a575b853b1561077557606490836040519788948593632142170760e11b85523360048601521660248401528a60448401525af1908115611c6f57611c4c6106a795611c3e611c20600080516020613c0f8339815191529b61165d98611c5a9761166a5750613ac3565b93611c29612b40565b96806040519c8d9c8d528c01528a0190612666565b9088820360408a0152612666565b908682036060880152612666565b906001608086015284820360a0860152612666565b6040513d8a823e3d90fd5b50818882600454166024604051809481936223abb760e71b83528b60048401525af1801561138c578a918491611cf3575b5082611cbb8b6115598495613ac3565b810160088152030190208b6040518092611cd482612a85565b9081520301902091166001600160601b0360a01b825416179055611bb9565b611d0a91508a3d8c11610a2357610a1581836124c1565b38611cab565b9291909394959981611d258b61155984613ac3565b8101600a8152030190208b6040518092611d3e82612a85565b908152030190205416908115611df5575b508a3b1561077557606490836040519c8d948593632142170760e11b85523360048601521660248401528b60448401525af19283156116795761163c6106a79661162e611dd194600080516020613c0f8339815191529c61182098611de6575b505193611dba612b40565b965198806040519d8e9d8e528d01528b0190612666565b906001608087015285820360a0870152612666565b611def9061242b565b38611daf565b9050828a8c602485600454169160405194859384926223abb760e71b845260048401525af19081156118e2578491611e71575b5082611e388c6115598495613ac3565b8101600a8152030190208c6040518092611e5182612a85565b9081520301902091166001600160601b0360a01b82541617905538611d4f565b611e8891508b3d8d11610a2357610a1581836124c1565b38611e28565b823461014c57602061197e611ea2366126e1565b83611eb96040949394519485815193849201612643565b600b90840190815283900384019092206001600160a01b039261274d565b823461014c57602036600319011261014c5760209060ff906040906001600160a01b03611f02612798565b168152600284522054166040519015158152f35b823461014c57611f25366127ef565b6001600160a01b0390911690611f3c8215156128eb565b611f4881511515612937565b81835260209083825260ff6040852054161561208d57611f68815161297b565b93805b8251811015611fa6578084611f83611fa193866129ea565b510151611f9082896129ea565b52611f9b81886129ea565b506129c5565b611f6b565b50939050604051828101908482526040808201526009606082015268189b1858dad31a5cdd60ba1b60808201526080815260a081018181106001600160401b0382111761207957604052519020611ffd919061362f565b507fdd8d4caef6bb86c181d1a6588c934686c698499ed5def3a14d4411ae3359f8f681604051848152a1818352828152604083209160ff1992838154169055600554600019810190811161206557600555835260029052604082208054909116600117905580f35b634e487b7160e01b85526011600452602485fd5b634e487b7160e01b87526041600452602487fd5b60405162461bcd60e51b815260048101839052601660248201527515985b1a59185d1bdc881a5cc81b9bdd08185919195960521b6044820152606490fd5b823461014c57604036600319011261014c576120e5612798565b6024356001600160401b038111610775576121239261210a604092369060040161268b565b6001600160a01b0390931681526007602052209061274d565b6121386001612131836125a1565b92016125a1565b9061214860405192839283612773565b0390f35b823461014c57602061197e612160366126e1565b836121776040949394519485815193849201612643565b600890840190815283900384019092206001600160a01b039261274d565b823461014c576121a4366127ef565b919060018060a01b0316918282526020906002825260ff6040842054166122ff576121d08415156128eb565b6121dc81511515612937565b83835282825260ff6040842054166122ba576121f8815161297b565b92805b825181101561223057808461221361222b93866129ea565b51015161222082886129ea565b52611f9b81876129ea565b6121fb565b50808386612256876040518481019084825285815261224e81612454565b51902061362f565b507ff910fa450d85dbabdd71a7d3256547d80a4a2f84c8b7f6d088cae55c8ffdccb382604051838152a182525260408120600160ff19825416179055600554600181018091116122a65760055580f35b634e487b7160e01b82526011600452602482fd5b60405162461bcd60e51b815260048101839052601760248201527f56616c696461746f7220616c72656164792061646465640000000000000000006044820152606490fd5b60405162461bcd60e51b81526004810183905260156024820152741d985b1a59185d1bdc88189b1858dadb1a5cdd1959605a1b6044820152606490fd5b823461014c57602061197e612350366126e1565b836123676040949394519485815193849201612643565b600990840190815283900384019092206001600160a01b039261274d565b823461014c5761212360206123b161239c366126e1565b92908160405193828580945193849201612643565b810160068152030190209061274d565b823461014c578060031936011261014c576121486123dd6124e2565b604051918291602083526020830190612666565b90600182811c92168015612421575b602083101461240b57565b634e487b7160e01b600052602260045260246000fd5b91607f1691612400565b6001600160401b03811161243e57604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761243e57604052565b6101e081019081106001600160401b0382111761243e57604052565b602081019081106001600160401b0382111761243e57604052565b606081019081106001600160401b0382111761243e57604052565b90601f801991011681019081106001600160401b0382111761243e57604052565b60405190600082600d54916124f6836123f1565b8083526020936001908181169081156125815750600114612522575b5050612520925003836124c1565b565b90939150600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5936000915b81831061256957505061252093508201013880612512565b85548884018501529485019487945091830191612551565b91505061252094925060ff191682840152151560051b8201013880612512565b906040519182600082546125b4816123f1565b90818452602094600191828116908160001461262157506001146125e2575b505050612520925003836124c1565b600090815285812095935091905b81831061260957505061252093508201013880806125d3565b855488840185015294850194879450918301916125f0565b9250505061252094925060ff191682840152151560051b8201013880806125d3565b60005b8381106126565750506000910152565b8181015183820152602001612646565b9060209161267f81518092818552858086019101612643565b601f01601f1916010190565b81601f820112156107b7578035906001600160401b03821161243e57604051926126bf601f8401601f1916602001856124c1565b828452602083830101116107b757816000926020809301838601378301015290565b9060406003198301126107b7576001600160401b036004358181116107b7578361270d9160040161268b565b926024359182116107b7576127249160040161268b565b90565b6020612740918160405193828580945193849201612643565b8101600681520301902090565b602090612767928260405194838680955193849201612643565b82019081520301902090565b909161278a61272493604084526040840190612666565b916020818403910152612666565b600435906001600160a01b03821682036107b757565b606435906001600160a01b03821682036107b757565b35906001600160a01b03821682036107b757565b6001600160401b03811161243e5760051b60200190565b906040806003198401126107b7576004356001600160a01b03811681036107b7579260248035906001600160401b03908183116107b757836023840112156107b757826004013590612840826127d8565b9561284d815197886124c1565b828752602095828789019460051b870101958187116107b757838101945b87861061287e5750505050505050505090565b85358781116107b7578201908460231983860301126107b7578451906128a382612454565b868301358981116107b75785886128bc9286010161268b565b82526044830135918983116107b7576128dc86898e96958796010161268b565b8382015281520195019461286b565b156128f257565b60405162461bcd60e51b815260206004820152601f60248201527f416464726573732063616e6e6f74206265207a65726f206164647265737321006044820152606490fd5b1561293e57565b60405162461bcd60e51b81526020600482015260156024820152744d7573742068617665207369676e6174757265732160581b6044820152606490fd5b90612985826127d8565b61299260405191826124c1565b82815280926129a3601f19916127d8565b019060005b8281106129b457505050565b8060606020809385010152016129a8565b60001981146129d45760010190565b634e487b7160e01b600052601160045260246000fd5b80518210156129fe5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b919082039182116129d457565b15612a2857565b60405162461bcd60e51b815260206004820152602f60248201527f736f757263654e6674436f6e7472616374416464726573732063616e6e6f742060448201526e6265207a65726f206164647265737360881b6064820152608490fd5b600d5460009291612a95826123f1565b91600190818116908115612b015750600114612ab057505050565b9091929350600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5906000915b848310612aee575050500190565b8181602092548587015201920191612ae0565b60ff191683525050811515909102019150565b90604051612b2181612454565b6020612b3b60018395612b33816125a1565b8552016125a1565b910152565b60405190612b4d82612454565b600882526739b4b733bab630b960c11b6020830152565b600d5460009291612b74826123f1565b908181526020926001908181169081600014612bf55750600114612b99575b50505050565b9293945090600d6000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb592846000945b838610612be1575050505001019038808080612b93565b805485870183015294019385908201612bca565b60ff191685840152505090151560051b0101915038808080612b93565b9060405191602092612c338482816104358183019687815193849201612643565b51902091612c536040519182816104358183019687815193849201612643565b5190201490565b60405190612c6782612454565b60088252676d756c7469706c6560c01b6020830152565b15612c8557565b60405162461bcd60e51b815260206004820152601f60248201527f646174612e666565204c455353205448414e2073656e7420616d6f756e7421006044820152606490fd5b15612cd157565b60405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642064657374696e6174696f6e20636861696e210000000000006044820152606490fd5b15612d1d57565b60405162461bcd60e51b8152602060048201526011602482015270496e76616c6964204e465420747970652160781b6044820152606490fd5b15612d5d57565b60405162461bcd60e51b815260206004820152601760248201527f4461746120616c72656164792070726f636573736564210000000000000000006044820152606490fd5b60405162461bcd60e51b8152602060048201526014602482015273496e76616c69642062726964676520737461746560601b6044820152606490fd5b908160209103126107b757516001600160a01b03811681036107b75790565b919360a0936127249695600180871b038094168552602085015260408401521660608201528160808201520190612666565b9192612e5e608094612e50612e6c949998979960a0875260a0870190612666565b908582036020870152612666565b908382036040850152612666565b6001600160a01b0390951660608201520152565b81518051906001600160401b039182811161243e5780612ea085546123f1565b92601f9384811161304d575b50602090848311600114612fe857600092612fdd575b50508160011b916000199060031b1c19161783555b60206001809401940151805192831161243e57612ef485546123f1565b828111612f95575b506020918311600114612f3557928293918392600094612f2a575b50501b916000199060031b1c1916179055565b015192503880612f17565b90601f198316918560005283826000209360005b87828210612f7c57505010612f63575b505050811b019055565b015160001960f88460031b161c19169055388080612f59565b8486015187559095019460209485019487935001612f49565b8560005260206000208380860160051c82019260208710612fd4575b0160051c019085905b828110612fc8575050612efc565b60008155018590612fba565b92508192612fb1565b015190503880612ec2565b60008781528281209350601f198516905b818110613035575090846001959493921061301c575b505050811b018355612ed7565b015160001960f88460031b161c1916905538808061300f565b92936020600181928786015181550195019301612ff9565b9091506000868152602081208580860160051c82019360208710613096575b908695949392910160051c01915b828110613088575050612eac565b81815585945060010161307a565b9350819361306c565b9081518110156129fe570160200190565b90818051602a90818114908115613388575b501561334a57815181811461324b575b505050600091825b815184101561323d576130ed848361309f565b5160f81c603081101580613232575b156131835760ff908116602f19019081116129d457905b6001600160a01b039160049180831b6010600160a01b0316919084168015908304601014171561316e5760ff1601918211613159575061315390936129c5565b926130da565b601190634e487b7160e01b6000525260246000fd5b601183634e487b7160e01b6000525260246000fd5b606181101580613227575b156131a95760ff908116605619019081116129d45790613113565b60418110158061321c575b156131cb576036190160ff81116129d45790613113565b60405162461bcd60e51b815260206004820152602360248201527f496e76616c69642063686172616374657220696e206164647265737320737472604482015262696e6760e81b6064820152608490fd5b5060468111156131b4565b50606681111561318e565b5060398111156130fc565b6001600160a01b0316925050565b9091929350156129fe5760208201516001600160f81b0319908116600360fc1b148061332d575b156132f25760405192613284846124a6565b60288452604036602086013760025b8381106132a75750505050903880806130d2565b826132b2828461309f565b51169060011981018181116132dd576132d26132d89360001a918861309f565b536129c5565b613293565b60246000634e487b7160e01b81526011600452fd5b60405162461bcd60e51b815260206004820152601360248201527209ad2e6e6d2dcce404e60f04e40e0e4caccd2f606b1b6044820152606490fd5b508251600110156129fe5760218301518116600f60fb1b14613272565b60405162461bcd60e51b8152602060048201526016602482015275092dcecc2d8d2c840c2c8c8e4cae6e640d8cadccee8d60531b6044820152606490fd5b6028915014386130c2565b929360c0946127249796929360018060a01b0380951686526020860152604085015260608401521660808201528160a08201520190612666565b926133fb60a095989796936133ed6134099460c0885260c0880190612666565b908682036020880152612666565b908482036040860152612666565b95600180851b0316606083015260808201520152565b7f26b5f43c1b8acf29c34ba80744bb118ae1dbff66554aa409f44f466bb41327bd606060018060a01b0380951694604051931692838152846020820152856040820152a1823b156107b7576044600092836040519586948593630399357f60e51b8552600485015260248401525af180156134a45761349b5750565b6125209061242b565b6040513d6000823e3d90fd5b9290917f39500e873c2a8011e5ba210d6fc004842250154c0004132ee4f379a947698caf608060018060a01b0380931692604051961695868152856020820152836040820152846060820152a1803b156107b75760009283606492604051968795869463fead481760e01b86526004860152602485015260448401525af180156134a45761349b5750565b91909180156135fb57479081106135bf5782519081156135a957049160005b81518110156135a3576001600160a01b0361357582846129ea565b5116600052600060205260016040600020019081548581018091116129d45761359e92556129c5565b61355a565b50509050565b634e487b7160e01b600052601260045260246000fd5b60405162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320617661696c61626c6560601b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b496e76616c6964206665657360a01b6044820152606490fd5b8151600093929161363f826127d8565b9061365a604093613652855194856124c1565b8084526127d8565b60209490601f19013684870137865b8151811015613752576136cf6136c661368283856129ea565b518751898101907f19457468657265756d205369676e6564204d6573736167653a0a3332000000008252603c888183015281526136be816124a6565b51902061397e565b90929192613a3e565b6001600160a01b031660008181528088528690205460ff908116908161373f575b50613705575b50613700906129c5565b613669565b979060018083018093116129d45761370092998061372384896129ea565b52600052600c8852866000209060ff19825416179055906136f6565b9050600c885286600020541615386136f0565b50505090939260005b825181101561379957613794906001600160a01b0361377a82866129ea565b5116600052600c85528660002060ff1981541690556129c5565b61375b565b509390926005548060011b90808204600214901517156129d4576003900490600182018092116129d457106137cd57505090565b60649250519062461bcd60e51b8252600482015260166024820152755468726573686f6c64206e6f7420726561636865642160501b6044820152fd5b8051602082015190604083015192600160a01b6001900391826060830151169260808301519060a08401519060c08501519060e086015190610100870151166101208701519261014088015194610160890151966101808a0151986101a08b01519a6101c001519b6040519e8f9e8f936020850152604084016101e09052610200840161389591612666565b838103601f190160608501526138aa91612666565b6080909201528c8103601f190160a08e01526138c591612666565b8b8103601f190160c08d01526138da91612666565b8a8103601f190160e08c01526138ef91612666565b916101008a0152610120890152601f198882030161014089015261391291612666565b868103601f190161016088015261392891612666565b90610180860152601f19858203016101a086015261394591612666565b906101c0840152601f19838203016101e084015261396291612666565b03601f198101825261397490826124c1565b8051906020012090565b81519190604183036139af576139a892506020820151906060604084015193015160001a906139ba565b9192909190565b505060009160029190565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411613a3257926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa15611a225780516001600160a01b03811615613a2957918190565b50809160019190565b50505060009160039190565b6004811015613aad5780613a50575050565b60018103613a6a5760405163f645eedf60e01b8152600490fd5b60028103613a8b5760405163fce698f760e01b815260048101839052602490fd5b600314613a955750565b602490604051906335e2f38360e21b82526004820152fd5b634e487b7160e01b600052602160045260246000fd5b604051906001600160a01b0316613ad982612454565b6010825260206f181899199a1a9b1b9c1cb0b131b232b360811b8184015260405192613b04846124a6565b602a845281840160403682378451156129fe57603090538351926001938410156129fe576078602186015360005b60148110613b4257505050505090565b600c81018082116129d457848110156129fe5782901a60046001600160f81b0319600f81613b7485851c83168961309f565b511693858a1b94600290878704821488151715613bd957868201809211613bd957613ba9613bb19493928e9260001a9261309f565b53168761309f565b51169060039283018093116131595750906132d2613bd4939260001a918961309f565b613b32565b601186634e487b7160e01b6000525260246000fdfecff7195d53dc523a0632d4b78ccedc8dea0e74bb445f72f1ba8accaee64b5f59d50d6b7e8a31963b83afcdbc240518dba3a293d249f0e191001a92b587ba5fb1a26469706673582212200f09e77e233973ac0baef4c28fe94d9a8fae0ea5772791b414ee7e17aca09d9764736f6c63430008150033"; type BridgeConstructorParams = | [signer?: Signer] @@ -1164,12 +937,38 @@ export class Bridge__factory extends ContractFactory { } override getDeployTransaction( + _validators: AddressLike[], + _chainType: string, + _collectionDeployer: AddressLike, + _storageDeployer: AddressLike, + _collectionOwner: AddressLike, overrides?: NonPayableOverrides & { from?: string } ): Promise { - return super.getDeployTransaction(overrides || {}); + return super.getDeployTransaction( + _validators, + _chainType, + _collectionDeployer, + _storageDeployer, + _collectionOwner, + overrides || {} + ); } - override deploy(overrides?: NonPayableOverrides & { from?: string }) { - return super.deploy(overrides || {}) as Promise< + override deploy( + _validators: AddressLike[], + _chainType: string, + _collectionDeployer: AddressLike, + _storageDeployer: AddressLike, + _collectionOwner: AddressLike, + overrides?: NonPayableOverrides & { from?: string } + ) { + return super.deploy( + _validators, + _chainType, + _collectionDeployer, + _storageDeployer, + _collectionOwner, + overrides || {} + ) as Promise< Bridge & { deploymentTransaction(): ContractTransactionResponse; } diff --git a/src/contractsTypes/evm/factories/contracts/ERC1155Royalty__factory.ts b/src/contractsTypes/evm/factories/contracts/ERC1155Royalty__factory.ts index a4e5ac1..719070e 100644 --- a/src/contractsTypes/evm/factories/contracts/ERC1155Royalty__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/ERC1155Royalty__factory.ts @@ -340,6 +340,19 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [], + name: "bridge", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -607,14 +620,14 @@ const _abi = [ ] as const; const _bytecode = - "0x6080346200018d576001600160401b0390601f6200178a38819003918201601f19168301918483118484101762000177578084926020946040528339810103126200018d57516001600160a01b0391828216918290036200018d57604051906020820190811182821017620001775760405260008091526002546001908181811c911680156200016c575b60208210146200015857601f81116200010e575b5050806002558115620000f657600380546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36115f79081620001938239f35b60249060405190631e4fbdf760e01b82526004820152fd5b60028352601f0160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace908101905b8181106200014d57506200009e565b83815582016200013e565b634e487b7160e01b83526022600452602483fd5b90607f16906200008a565b634e487b7160e01b600052604160045260246000fd5b600080fdfe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e146100f657806301ffc9a7146100f15780630e89341c146100ec578063162094c4146100e75780632a55205a146100e25780632eb2c2d6146100dd5780634e1273f4146100d8578063715018a6146100d35780638da5cb5b146100ce578063a22cb465146100c9578063a86c7b24146100c4578063e985e9c5146100bf578063f242432a146100ba5763f2fde38b146100b557600080fd5b610baa565b610ac8565b610a77565b61092e565b61087d565b610854565b6107e0565b610727565b6105b8565b610502565b6103eb565b610265565b6101a3565b610156565b600435906001600160a01b038216820361011157565b600080fd5b602435906001600160a01b038216820361011157565b608435906001600160a01b038216820361011157565b35906001600160a01b038216820361011157565b346101115760403660031901126101115760206101886101746100fb565b602435600052600083526040600020610c5e565b54604051908152f35b6001600160e01b031981160361011157565b346101115760203660031901126101115760206004356101c281610191565b63ffffffff60e01b16636cdb3d1360e11b8114908115610200575b81156101ef575b506040519015158152f35b6301ffc9a760e01b149050386101e4565b6303a24d0760e21b811491506101dd565b919082519283825260005b84811061023d575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161021c565b906020610262928181520190610211565b90565b346101115760208060031936011261011157600090600435825260068152604082209060405191838154906102998261146a565b8086529260019280841690811561030e57506001146102d3575b6102cf866102c3818a0382610368565b60405191829182610251565b0390f35b9080949650528483205b8284106102fb57505050816102cf936102c3928201019338806102b3565b80548585018701529285019281016102dd565b60ff19168787015250505050151560051b82010191506102c3816102cf38806102b3565b634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b0382111761036357604052565b610332565b90601f801991011681019081106001600160401b0382111761036357604052565b6001600160401b03811161036357601f01601f191660200190565b81601f82011215610111578035906103bb82610389565b926103c96040519485610368565b8284526020838301011161011157816000926020809301838601378301015290565b34610111576040366003190112610111576001600160401b036024358181116101115761041c9036906004016103a4565b90610425610c32565b600090600435825260209060068252604083209184519182116103635761045682610450855461146a565b856114a4565b80601f831160011461049757508190849561048794959261048c575b50508160011b916000199060031b1c19161790565b905580f35b015190503880610472565b90601f198316956104ad85600052602060002090565b9286905b8882106104ea575050836001959697106104d1575b505050811b01905580f35b015160001960f88460031b161c191690553880806104c6565b806001859682949686015181550195019301906104b1565b34610111576040366003190112610111576004356000526004602052604060018060a01b038160002054166005602052816000205482519182526020820152f35b6001600160401b0381116103635760051b60200190565b9080601f8301121561011157602090823561057481610543565b936105826040519586610368565b818552838086019260051b820101928311610111578301905b8282106105a9575050505090565b8135815290830190830161059b565b346101115760a0366003190112610111576105d16100fb565b6105d9610116565b90604435916001600160401b0390818411610111576105fd6004943690860161055a565b9060643583811161011157610615903690870161055a565b926084359081116101115761062d90369087016103a4565b936001600160a01b038082169033821415806106c0575b61068f5783161561067757156106605761065e9550610efb565b005b604051626a0d4560e21b8152600081880152602490fd5b604051632bfa23e760e11b8152600081890152602490fd5b6040805163711bec9160e11b815233818b019081526001600160a01b038616602082015290918291010390fd5b0390fd5b5081600052600160205260ff6106da336040600020610c5e565b541615610644565b90815180825260208080930193019160005b828110610702575050505090565b8351855293810193928101926001016106f4565b9060206102629281815201906106e2565b34610111576040366003190112610111576004356001600160401b03808211610111573660238301121561011157816004013561076381610543565b926107716040519485610368565b81845260209160248386019160051b8301019136831161011157602401905b8282106107c95785602435868111610111576102cf916107b76107bd92369060040161055a565b90610ce3565b60405191829182610716565b8380916107d584610142565b815201910190610790565b346101115760008060031936011261083e576107fa610c32565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b6001600160a01b03909116815260200190565b34610111576000366003190112610111576003546040516001600160a01b039091168152602090f35b34610111576040366003190112610111576108966100fb565b602435801515808203610111576001600160a01b038316928315610916576108cb903360005260016020526040600020610c5e565b9060ff801983541691161790557f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160405180610911339482919091602081019215159052565b0390a3005b60405162ced3e160e81b815260006004820152602490fd5b346101115760c0366003190112610111576109476100fb565b602435906064359061095761012c565b9260a4356001600160401b038111610111576109779036906004016103a4565b92610980610c32565b6127108111610a3f5760405161099581610348565b600081526001600160a01b03841615610a265761065e956109c96109fc92610a21966109c360443588611445565b91610d8d565b6109dd846000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b610a10826000526005602052604060002090565b556000526006602052604060002090565b6114f8565b604051632bfa23e760e11b815260006004820152602490fd5b60405162461bcd60e51b815260206004820152601060248201526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b3461011157604036600319011261011157602060ff610abc610a976100fb565b610a9f610116565b6001600160a01b0390911660009081526001855260409020610c5e565b54166040519015158152f35b346101115760a036600319011261011157610ae16100fb565b610ae9610116565b6084356001600160401b03811161011157610b089036906004016103a4565b906001600160a01b03838116903382141580610b88575b610b6157821615610a265715610b495761065e92610b41606435604435611445565b929091610efb565b604051626a0d4560e21b815260006004820152602490fd5b60405163711bec9160e11b81523360048201526001600160a01b0386166024820152604490fd5b5081600052600160205260ff610ba2336040600020610c5e565b541615610b1f565b3461011157602036600319011261011157610bc36100fb565b610bcb610c32565b6001600160a01b03908116908115610c1957600380546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b604051631e4fbdf760e01b815260006004820152602490fd5b6003546001600160a01b03163303610c4657565b60405163118cdaa760e01b8152336004820152602490fd5b9060018060a01b0316600052602052604060002090565b610c8b9160005260006020526040600020610c5e565b5490565b634e487b7160e01b600052601160045260246000fd5b6000198114610cb45760010190565b610c8f565b8051821015610ccd5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91909180518351808203610d6b575050805190610d18610d0283610543565b92610d106040519485610368565b808452610543565b60209190601f1901368484013760005b8151811015610d635780610d4e610d5e9260051b85808287010151918a01015190610c75565b610d588287610cb9565b52610ca5565b610d28565b509193505050565b604051635b05999160e01b815260048101919091526024810191909152604490fd5b908051835190818103610d6b57505060005b8151811015610e1057600581901b8281016020908101519186010151610dd9929185906001600160a01b038216610dde575b505050610ca5565b610d9f565b610e0691610df9610dfe926000526000602052604060002090565b610c5e565b9182546110f9565b9055388481610dd1565b50805191939291600103610eb2576020818101518382015160408051928352928201526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038416610e7c575b50505050565b8051600103610ea35790602080610e9a9593015191015191336111d4565b38808080610e76565b610ead93336113d9565b610e9a565b6040516001600160a01b0385169060009033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb9080610ef3888883611106565b0390a4610e67565b949190918151845190818103610d6b57505060005b825181101561100357600581901b83810160209081015191870101516001600160a01b03929186908a8516610f7c575b610f52948216610f5757505050610ca5565b610f10565b610f7291610df9610dfe926000526000602052604060002090565b9055388581610dd1565b9192939050610f998a610df9846000526000602052604060002090565b54838110610fcc5791879184610f5296959403610fc48d610df9856000526000602052604060002090565b559450610f40565b6040516303dee4c560e01b81526001600160a01b038c16600482015260248101919091526044810184905260648101839052608490fd5b5094919392909360018551146000146110ae576020858101518382015160408051928352928201526001600160a01b03838116929086169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038116611077575b5050505050565b845160010361109d5760208061109396015192015192336112c2565b3880808080611070565b6110a99491923361140e565b611093565b6040516001600160a01b03828116919085169033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb90806110f1888c83611106565b0390a4611061565b91908201809211610cb457565b909161111d610262936040845260408401906106e2565b9160208184039101526106e2565b90816020910312610111575161026281610191565b909260a0926102629594600180861b0316835260006020840152604083015260608201528160808201520190610211565b919261026295949160a094600180871b038092168552166020840152604083015260608201528160808201520190610211565b3d156111cf573d906111b582610389565b916111c36040519384610368565b82523d6000602084013e565b606090565b9293919093843b6111e6575050505050565b602091611209604051948593849363f23a6e6160e01b9889865260048601611140565b038160006001600160a01b0388165af160009181611292575b5061125b57826112306111a4565b805191908261125457604051632bfa23e760e11b8152806106bc8460048301610841565b9050602001fd5b6001600160e01b0319160361127557503880808080611070565b604051632bfa23e760e11b81529081906106bc9060048301610841565b6112b491925060203d81116112bb575b6112ac8183610368565b81019061112b565b9038611222565b503d6112a2565b939290949194853b6112d7575b505050505050565b6112fa602093604051958694859463f23a6e6160e01b998a875260048701611171565b038160006001600160a01b0388165af16000918161133c575b5061132157826112306111a4565b6001600160e01b0319160361127557503880808080806112cf565b61135591925060203d81116112bb576112ac8183610368565b9038611313565b9261138b61026295936113999360018060a01b031686526000602087015260a0604087015260a08601906106e2565b9084820360608601526106e2565b916080818403910152610211565b9390610262959361138b916113999460018060a01b03809216885216602087015260a0604087015260a08601906106e2565b9293919093843b6113eb575050505050565b602091611209604051948593849363bc197c8160e01b988986526004860161135c565b939290949194853b61142257505050505050565b6112fa602093604051958694859463bc197c8160e01b998a8752600487016113a7565b9160405192600184526020840152604083019160018352606084015260808301604052565b90600182811c9216801561149a575b602083101461148457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611479565b90601f81116114b257505050565b600091825260208220906020601f850160051c830194106114ee575b601f0160051c01915b8281106114e357505050565b8181556001016114d7565b90925082906114ce565b91909182516001600160401b0381116103635761151f81611519845461146a565b846114a4565b602080601f83116001146115565750819061155293949560009261048c5750508160011b916000199060031b1c19161790565b9055565b90601f1983169561156c85600052602060002090565b926000905b8882106115a957505083600195969710611590575b505050811b019055565b015160001960f88460031b161c19169055388080611586565b8060018596829496860151815501950193019061157156fea2646970667358221220b2a59d66ee151aa06006a35cd502bbc0801d2ba4b2e0a37045ad13967c7205e664736f6c63430008150033"; + "0x6080346200018d576001600160401b0390601f6200184638819003918201601f19168301918483118484101762000177578084926020946040528339810103126200018d57516001600160a01b0391828216918290036200018d57604051906020820190811182821017620001775760405260008091526002546001908181811c911680156200016c575b60208210146200015857601f81116200010e575b5050806002558115620000f657600380546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36116b39081620001938239f35b60249060405190631e4fbdf760e01b82526004820152fd5b60028352601f0160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace908101905b8181106200014d57506200009e565b83815582016200013e565b634e487b7160e01b83526022600452602483fd5b90607f16906200008a565b634e487b7160e01b600052604160045260246000fd5b600080fdfe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461010657806301ffc9a7146101015780630e89341c146100fc578063162094c4146100f75780632a55205a146100f25780632eb2c2d6146100ed5780634e1273f4146100e8578063715018a6146100e35780638da5cb5b146100de578063a22cb465146100d9578063a86c7b24146100d4578063e78cea92146100cf578063e985e9c5146100ca578063f242432a146100c55763f2fde38b146100c057600080fd5b610c7d565b610b78565b610b1b565b610af2565b61094e565b610891565b610868565b610807565b61074d565b6105df565b610528565b610410565b610287565b6101c5565b610166565b600435906001600160a01b038216820361012157565b600080fd5b602435906001600160a01b038216820361012157565b608435906001600160a01b038216820361012157565b35906001600160a01b038216820361012157565b346101215760403660031901126101215760206101aa61018461010b565b6024356000526000835260406000209060018060a01b0316600052602052604060002090565b54604051908152f35b6001600160e01b031981160361012157565b346101215760203660031901126101215760206004356101e4816101b3565b63ffffffff60e01b16636cdb3d1360e11b8114908115610222575b8115610211575b506040519015158152f35b6301ffc9a760e01b14905038610206565b6303a24d0760e21b811491506101ff565b919082519283825260005b84811061025f575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161023e565b906020610284928181520190610233565b90565b346101215760208060031936011261012157600090600435825260068152604082209060405191838154906102bb82611525565b8086529260019280841690811561033057506001146102f5575b6102f1866102e5818a038261038b565b60405191829182610273565b0390f35b9080949650528483205b82841061031d57505050816102f1936102e5928201019338806102d5565b80548585018701529285019281016102ff565b60ff19168787015250505050151560051b82010191506102e5816102f138806102d5565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761038657604052565b610354565b90601f8019910116810190811067ffffffffffffffff82111761038657604052565b67ffffffffffffffff811161038657601f01601f191660200190565b81601f82011215610121578035906103e0826103ad565b926103ee604051948561038b565b8284526020838301011161012157816000926020809301838601378301015290565b346101215760403660031901126101215767ffffffffffffffff602435818111610121576104429036906004016103c9565b9061044b610d0b565b600090600435825260209060068252604083209184519182116103865761047c826104768554611525565b8561155f565b80601f83116001146104bd5750819084956104ad9495926104b2575b50508160011b916000199060031b1c19161790565b905580f35b015190503880610498565b90601f198316956104d385600052602060002090565b9286905b888210610510575050836001959697106104f7575b505050811b01905580f35b015160001960f88460031b161c191690553880806104ec565b806001859682949686015181550195019301906104d7565b34610121576040366003190112610121576004356000526004602052604060018060a01b038160002054166005602052816000205482519182526020820152f35b67ffffffffffffffff81116103865760051b60200190565b9080601f8301121561012157602090823561059b81610569565b936105a9604051958661038b565b818552838086019260051b820101928311610121578301905b8282106105d0575050505090565b813581529083019083016105c2565b346101215760a0366003190112610121576105f861010b565b610600610126565b906044359167ffffffffffffffff908184116101215761062560049436908601610581565b906064358381116101215761063d9036908701610581565b926084359081116101215761065590369087016103c9565b936001600160a01b038082169033821415806106e4575b6106b75783161561069f5715610688576106869550610fcf565b005b604051626a0d4560e21b8152600081880152602490fd5b604051632bfa23e760e11b8152600081890152602490fd5b6040805163711bec9160e11b815233818b019081526001600160a01b038616602082015290918291010390fd5b50600082815260016020908152604080832033845290915290205460ff161561066c565b90815180825260208080930193019160005b828110610728575050505090565b83518552938101939281019260010161071a565b906020610284928181520190610708565b346101215760403660031901126101215760043567ffffffffffffffff808211610121573660238301121561012157816004013561078a81610569565b92610798604051948561038b565b81845260209160248386019160051b8301019136831161012157602401905b8282106107f05785602435868111610121576102f1916107de6107e4923690600401610581565b90610d8b565b6040519182918261073c565b8380916107fc84610152565b8152019101906107b7565b346101215760008060031936011261086557610821610d0b565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b34610121576000366003190112610121576003546040516001600160a01b039091168152602090f35b34610121576040366003190112610121576108aa61010b565b602435801515808203610121576001600160a01b038316928315610936573360009081526001602090815260408083206001600160a01b039094168352929052209060ff801983541691161790557f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160405180610931339482919091602081019215159052565b0390a3005b60405162ced3e160e81b815260006004820152602490fd5b346101215760c03660031901126101215761096761010b565b602435906064359061097761013c565b9260a43567ffffffffffffffff8111610121576109989036906004016103c9565b6007549093906001600160a01b039081163303610abf576127108211610a8757604051906109c58261036a565b60008252841615610a6e5761068695610a11610a4492610a6996610a0b604435889160405192600184526020840152604083019160018352606084015260808301604052565b91610e4f565b610a25846000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b610a58826000526005602052604060002090565b556000526006602052604060002090565b6115b3565b604051632bfa23e760e11b815260006004820152602490fd5b60405162461bcd60e51b815260206004820152601060248201526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b60405162461bcd60e51b815260206004820152600b60248201526a4e6f74206272696467652160a81b6044820152606490fd5b34610121576000366003190112610121576007546040516001600160a01b039091168152602090f35b3461012157604036600319011261012157602060ff610b6c610b3b61010b565b610b43610126565b6001600160a01b0391821660009081526001865260408082209290931681526020919091522090565b54166040519015158152f35b346101215760a036600319011261012157610b9161010b565b610b99610126565b60843567ffffffffffffffff811161012157610bb99036906004016103c9565b906001600160a01b03838116903382141580610c59575b610c3257821615610a6e5715610c1a5761068692610c126064356044359160405192600184526020840152604083019160018352606084015260808301604052565b929091610fcf565b604051626a0d4560e21b815260006004820152602490fd5b60405163711bec9160e11b81523360048201526001600160a01b0386166024820152604490fd5b50600082815260016020908152604080832033845290915290205460ff1615610bd0565b3461012157602036600319011261012157610c9661010b565b610c9e610d0b565b6001600160a01b03908116908115610cf257600354826bffffffffffffffffffffffff60a01b821617600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b604051631e4fbdf760e01b815260006004820152602490fd5b6003546001600160a01b03163303610d1f57565b60405163118cdaa760e01b8152336004820152602490fd5b634e487b7160e01b600052601160045260246000fd5b6000198114610d5c5760010190565b610d37565b8051821015610d755760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91909180518351808203610e2d575050805190610dc0610daa83610569565b92610db8604051948561038b565b808452610569565b60209190601f1901368484013760005b8151811015610e2557600581901b8281018401519087018401516000908152602081815260408083206001600160a01b0390941683529290522054610e209190610e1a8287610d61565b52610d4d565b610dd0565b509193505050565b604051635b05999160e01b815260048101919091526024810191909152604490fd5b908051835190818103610e2d57505060005b8151811015610ee457600581901b8281016020908101519186010151610e9b929185906001600160a01b038216610ea0575b505050610d4d565b610e61565b610eda91610ebb610ed2926000526000602052604060002090565b9060018060a01b0316600052602052604060002090565b9182546111cd565b9055388481610e93565b50805191939291600103610f86576020818101518382015160408051928352928201526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038416610f50575b50505050565b8051600103610f775790602080610f6e9593015191015191336112a8565b38808080610f4a565b610f8193336114b9565b610f6e565b6040516001600160a01b0385169060009033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb9080610fc78888836111da565b0390a4610f3b565b949190918151845190818103610e2d57505060005b82518110156110d757600581901b83810160209081015191870101516001600160a01b03929186908a8516611050575b61102694821661102b57505050610d4d565b610fe4565b61104691610ebb610ed2926000526000602052604060002090565b9055388581610e93565b919293905061106d8a610ebb846000526000602052604060002090565b548381106110a05791879184611026969594036110988d610ebb856000526000602052604060002090565b559450611014565b6040516303dee4c560e01b81526001600160a01b038c16600482015260248101919091526044810184905260648101839052608490fd5b509491939290936001855114600014611182576020858101518382015160408051928352928201526001600160a01b03838116929086169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b03811661114b575b5050505050565b84516001036111715760208061116796015192015192336113a2565b3880808080611144565b61117d949192336114ee565b611167565b6040516001600160a01b03828116919085169033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb90806111c5888c836111da565b0390a4611135565b91908201809211610d5c57565b90916111f161028493604084526040840190610708565b916020818403910152610708565b908160209103126101215751610284816101b3565b909260a0926102849594600180861b0316835260006020840152604083015260608201528160808201520190610233565b919261028495949160a094600180871b038092168552166020840152604083015260608201528160808201520190610233565b3d156112a3573d90611289826103ad565b91611297604051938461038b565b82523d6000602084013e565b606090565b9293919093843b6112ba575050505050565b6020916112dd604051948593849363f23a6e6160e01b9889865260048601611214565b038160006001600160a01b0388165af160009181611372575b506113355782611304611278565b805191908261132e57604051632bfa23e760e11b81526001600160a01b0383166004820152602490fd5b9050602001fd5b6001600160e01b0319160361134f57503880808080611144565b604051632bfa23e760e11b81526001600160a01b03919091166004820152602490fd5b61139491925060203d811161139b575b61138c818361038b565b8101906111ff565b90386112f6565b503d611382565b939290949194853b6113b7575b505050505050565b6113da602093604051958694859463f23a6e6160e01b998a875260048701611245565b038160006001600160a01b0388165af16000918161141c575b506114015782611304611278565b6001600160e01b0319160361134f57503880808080806113af565b61143591925060203d811161139b5761138c818361038b565b90386113f3565b9261146b61028495936114799360018060a01b031686526000602087015260a0604087015260a0860190610708565b908482036060860152610708565b916080818403910152610233565b9390610284959361146b916114799460018060a01b03809216885216602087015260a0604087015260a0860190610708565b9293919093843b6114cb575050505050565b6020916112dd604051948593849363bc197c8160e01b988986526004860161143c565b939290949194853b61150257505050505050565b6113da602093604051958694859463bc197c8160e01b998a875260048701611487565b90600182811c92168015611555575b602083101461153f57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611534565b90601f811161156d57505050565b600091825260208220906020601f850160051c830194106115a9575b601f0160051c01915b82811061159e57505050565b818155600101611592565b9092508290611589565b919091825167ffffffffffffffff8111610386576115db816115d58454611525565b8461155f565b602080601f83116001146116125750819061160e9394956000926104b25750508160011b916000199060031b1c19161790565b9055565b90601f1983169561162885600052602060002090565b926000905b8882106116655750508360019596971061164c575b505050811b019055565b015160001960f88460031b161c19169055388080611642565b8060018596829496860151815501950193019061162d56fea26469706673582212203a7479ead71388733da02632e2d3b26712d5d7ee37431f1aa281c5368b9af3aa64736f6c63430008150033"; type ERC1155RoyaltyConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: ERC1155RoyaltyConstructorParams, + xs: ERC1155RoyaltyConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class ERC1155Royalty__factory extends ContractFactory { @@ -628,13 +641,13 @@ export class ERC1155Royalty__factory extends ContractFactory { override getDeployTransaction( owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction(owner, overrides || {}); } override deploy( owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy(owner, overrides || {}) as Promise< ERC1155Royalty & { @@ -653,7 +666,7 @@ export class ERC1155Royalty__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): ERC1155Royalty { return new Contract(address, _abi, runner) as unknown as ERC1155Royalty; } diff --git a/src/contractsTypes/evm/factories/contracts/ERC20Staking__factory.ts b/src/contractsTypes/evm/factories/contracts/ERC20Staking__factory.ts index 39d4ef7..cbfc34e 100644 --- a/src/contractsTypes/evm/factories/contracts/ERC20Staking__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/ERC20Staking__factory.ts @@ -81,6 +81,31 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [ + { + components: [ + { + internalType: "string", + name: "validatorAddress", + type: "string", + }, + { + internalType: "string", + name: "chainType", + type: "string", + }, + ], + internalType: "struct ValidatorAddressAndChainType[]", + name: "_validatorAddressAndChainType", + type: "tuple[]", + }, + ], + name: "addNewChains", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { @@ -141,14 +166,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60803461007e57601f61054538819003918201601f19168301916001600160401b0383118484101761008357808492604094855283398101031261007e5780516020909101516001600160a01b038116919082900361007e57600055600180546001600160a01b0319169190911790556040516104ab908161009a8239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604081815260048036101561001557600080fd5b600092833560e01c90816361b8b5dc1461036957508063739a3e021461034c5780637a80760e1461031f57637ca41e371461004f57600080fd5b3461031b57602090816003193601126103175780359267ffffffffffffffff928385116103135736602386011215610313578483013594602490858711610301578660051b958451976100a48589018a6103a1565b885283880190838298840101923684116102fd57848101925b84841061026e575050505050338752600282528287205461023457600193878360018060a01b0387541660648354885194859384926323b872dd60e01b84523389850152308a85015260448401525af1801561022a576101ef575b50875491338952600284528489209182549384018094116101de57505093929355855490835195848701928752848288015251809252606086019360608360051b880101959488915b84831061019257897ff6f745aefa7fce6b76ac5309c1cf0d4c5c42a9107f80667e6cc03d1f5a854bed8a8a038ba180f35b909192939484806101cd83999a605f198d82030187528b5190836101bd835189845289840190610435565b9201519084818403910152610435565b990193019301919594939290610161565b634e487b7160e01b8a526011905288fd5b8381813d8311610223575b61020481836103a1565b8101031261021f57518015150361021b5738610118565b8780fd5b8880fd5b503d6101fa565b85513d8b823e3d90fd5b915162461bcd60e51b81529283015260179082015276596f752063616e206f6e6c79207374616b65206f6e636560481b6044820152606490fd5b83358381116102f95782018860231982360301126102f957885191898301838110868211176102e7578a52878201358581116102e3576102b3908936918501016103d9565b83526044820135928584116102e3576102d48a94938a8695369201016103d9565b838201528152019301926100bd565b8e80fd5b634e487b7160e01b8f5260418c52888ffd5b8c80fd5b8a80fd5b50634e487b7160e01b87526041845286fd5b8580fd5b8380fd5b8280fd5b50503461034857816003193601126103485760015490516001600160a01b039091168152602090f35b5080fd5b505034610348578160031936011261034857602091549051908152f35b929190503461031757602036600319011261031757356001600160a01b03811690819003610317579260209381526002845220548152f35b90601f8019910116810190811067ffffffffffffffff8211176103c357604052565b634e487b7160e01b600052604160045260246000fd5b81601f820112156104305780359067ffffffffffffffff82116103c3576040519261040e601f8401601f1916602001856103a1565b8284526020838301011161043057816000926020809301838601378301015290565b600080fd5b919082519283825260005b848110610461575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161044056fea2646970667358221220f10466242afa3c5c91c18c742b1ec9138bd56f955d5f935992488d00df848c7d64736f6c63430008150033"; + "0x60803461007e57601f61060738819003918201601f19168301916001600160401b0383118484101761008357808492604094855283398101031261007e5780516020909101516001600160a01b038116919082900361007e57600055600180546001600160a01b03191691909117905560405161056d908161009a8239f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060409080825260048036101561001657600080fd5b600091823560e01c90816361b8b5dc1461028457508063739a3e02146102675780637a80760e1461023e5780637ca41e37146100f55763f6215e091461005b57600080fd5b346100f15761006936610350565b90338352600260205283832054156100b5575081926100af7ff6f745aefa7fce6b76ac5309c1cf0d4c5c42a9107f80667e6cc03d1f5a854bed93549151928392836104ac565b0390a180f35b606490602085519162461bcd60e51b83528201526016602482015275596f75206861766520746f207374616b65206f6e636560501b6044820152fd5b5080fd5b5091346100f15761010536610350565b90338352602060028152818420546101fc57838160018060a01b036001541660648354865194859384926323b872dd60e01b8452338d85015230602485015260448401525af180156101f2576101b7575b5060028454913386525281842080549182018092116101a4577ff6f745aefa7fce6b76ac5309c1cf0d4c5c42a9107f80667e6cc03d1f5a854bed949550556100af84549151928392836104ac565b634e487b7160e01b855260118652602485fd5b8181813d83116101eb575b6101cc81836102bc565b810103126101e75751801515036101e35738610156565b8380fd5b8480fd5b503d6101c2565b83513d87823e3d90fd5b8490606492519162461bcd60e51b8352820152601760248201527f596f752063616e206f6e6c79207374616b65206f6e63650000000000000000006044820152fd5b8284346100f157816003193601126100f15760015490516001600160a01b039091168152602090f35b8284346100f157816003193601126100f157602091549051908152f35b91849150346101e35760203660031901126101e357356001600160a01b038116908190036101e3579260209381526002845220548152f35b90601f8019910116810190811067ffffffffffffffff8211176102de57604052565b634e487b7160e01b600052604160045260246000fd5b81601f8201121561034b5780359067ffffffffffffffff82116102de5760405192610329601f8401601f1916602001856102bc565b8284526020838301011161034b57816000926020809301838601378301015290565b600080fd5b60208060031983011261034b5760049182359067ffffffffffffffff9081831161034b578060238401121561034b578285013594602490838711610459578660051b926040928351986103a58987018b6102bc565b895280888a01958801019682881161034b57818101955b8887106103d0575050505050505050505090565b863588811161034b5782019086602319838703011261034b578651908782018281108b821117610444578852848301358a811161034b578686610415928601016102f4565b82526044830135918a831161034b5761043587878f9695879601016102f4565b838201528152019601956103bc565b634e487b7160e01b6000908152604189528690fd5b604190634e487b7160e01b600052526000fd5b919082519283825260005b848110610498575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610477565b9060409182810191815260209083828201528451809352606081018260608560051b8401019601946000925b8584106104e9575050505050505090565b909192939495968580610526600193605f198682030188528b51908361051683518a84528a84019061046c565b920151908481840391015261046c565b9901940194019295949391906104d856fea264697066735822122087fd3f7862d6426bc1dbfbc32a81c16fbcc1fce15f695445f710afaaf50409b664736f6c63430008150033"; type ERC20StakingConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: ERC20StakingConstructorParams, + xs: ERC20StakingConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class ERC20Staking__factory extends ContractFactory { @@ -163,23 +188,23 @@ export class ERC20Staking__factory extends ContractFactory { override getDeployTransaction( _stakingAmount: BigNumberish, _ERC20Token: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction( _stakingAmount, _ERC20Token, - overrides || {}, + overrides || {} ); } override deploy( _stakingAmount: BigNumberish, _ERC20Token: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy( _stakingAmount, _ERC20Token, - overrides || {}, + overrides || {} ) as Promise< ERC20Staking & { deploymentTransaction(): ContractTransactionResponse; @@ -197,7 +222,7 @@ export class ERC20Staking__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): ERC20Staking { return new Contract(address, _abi, runner) as unknown as ERC20Staking; } diff --git a/src/contractsTypes/evm/factories/contracts/ERC20Token__factory.ts b/src/contractsTypes/evm/factories/contracts/ERC20Token__factory.ts index 74246eb..8de99be 100644 --- a/src/contractsTypes/evm/factories/contracts/ERC20Token__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/ERC20Token__factory.ts @@ -352,14 +352,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60406080815234620003a05762000aa3803803806200001e81620003a5565b9283398101606082820312620003a05781516001600160401b039290838111620003a0578262000050918301620003cb565b60209283830151858111620003a05786916200006e918501620003cb565b920151938151818111620002a0576003908154906001948583811c9316801562000395575b888410146200037f578190601f9384811162000329575b508890848311600114620002c257600092620002b6575b505060001982851b1c191690851b1782555b8451928311620002a05760049485548581811c9116801562000295575b88821014620002805782811162000235575b5086918411600114620001ca57938394918492600095620001be575b50501b92600019911b1c19161781555b3315620001a757600254908382018092116200019257506000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9160025533835282815284832084815401905584519384523393a35161066590816200043e8239f35b601190634e487b7160e01b6000525260246000fd5b602490600085519163ec442f0560e01b8352820152fd5b0151935038806200011e565b9190601f198416928660005284886000209460005b8a898383106200021d575050501062000202575b50505050811b0181556200012e565b01519060f884600019921b161c1916905538808080620001f3565b868601518955909701969485019488935001620001df565b86600052876000208380870160051c8201928a881062000276575b0160051c019086905b8281106200026957505062000102565b6000815501869062000259565b9250819262000250565b602287634e487b7160e01b6000525260246000fd5b90607f1690620000f0565b634e487b7160e01b600052604160045260246000fd5b015190503880620000c1565b90879350601f19831691866000528a6000209260005b8c828210620003125750508411620002f9575b505050811b018255620000d3565b015160001983871b60f8161c19169055388080620002eb565b8385015186558b97909501949384019301620002d8565b90915084600052886000208480850160051c8201928b861062000375575b918991869594930160051c01915b82811062000365575050620000aa565b6000815585945089910162000355565b9250819262000347565b634e487b7160e01b600052602260045260246000fd5b92607f169262000093565b600080fd5b6040519190601f01601f191682016001600160401b03811183821017620002a057604052565b919080601f84011215620003a05782516001600160401b038111620002a05760209062000401601f8201601f19168301620003a5565b92818452828287010111620003a05760005b8181106200042957508260009394955001015290565b85810183015184820184015282016200041356fe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde031461041c57508163095ea7b31461036e57816318160ddd1461034f57816323b872dd14610258578163313ce5671461023c57816370a082311461020557816395d89b411461010357508063a9059cbb146100d35763dd62ed3e1461008857600080fd5b346100cf57806003193601126100cf57806020926100a4610520565b6100ac61053b565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b5080fd5b50346100cf57806003193601126100cf576020906100fc6100f2610520565b6024359033610551565b5160018152f35b8383346100cf57816003193601126100cf57805190828454600181811c908083169283156101fb575b60209384841081146101e8578388529081156101cc5750600114610194575b505050829003601f01601f191682019267ffffffffffffffff841183851017610181575082918261017d9252826104d7565b0390f35b634e487b7160e01b815260418552602490fd5b919250868652828620918387935b8385106101b8575050505083010185808061014b565b8054888601830152930192849082016101a2565b60ff1916878501525050151560051b840101905085808061014b565b634e487b7160e01b895260228a52602489fd5b91607f169161012c565b5050346100cf5760203660031901126100cf5760209181906001600160a01b0361022d610520565b16815280845220549051908152f35b5050346100cf57816003193601126100cf576020905160128152f35b9050823461034c57606036600319011261034c57610274610520565b61027c61053b565b916044359360018060a01b0383168083526001602052868320338452602052868320549160001983036102b8575b6020886100fc898989610551565b8683106103205781156103095733156102f2575082526001602090815286832033845281529186902090859003905582906100fc876102aa565b8751634a1406b160e11b8152908101849052602490fd5b875163e602df0560e01b8152908101849052602490fd5b8751637dc7a0d960e11b8152339181019182526020820193909352604081018790528291506060010390fd5b80fd5b5050346100cf57816003193601126100cf576020906002549051908152f35b905034610418578160031936011261041857610388610520565b602435903315610401576001600160a01b03169182156103ea57508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8351634a1406b160e11b8152908101859052602490fd5b835163e602df0560e01b8152808401869052602490fd5b8280fd5b8490843461041857826003193601126104185782600354600181811c908083169283156104cd575b60209384841081146101e8578388529081156101cc575060011461049457505050829003601f01601f191682019267ffffffffffffffff841183851017610181575082918261017d9252826104d7565b91925060038652828620918387935b8385106104b9575050505083010185808061014b565b8054888601830152930192849082016104a3565b91607f1691610444565b6020808252825181830181905290939260005b82811061050c57505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016104ea565b600435906001600160a01b038216820361053657565b600080fd5b602435906001600160a01b038216820361053657565b916001600160a01b0380841692831561061657169283156105fd57600090838252816020526040822054908382106105cb575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60405163ec442f0560e01b815260006004820152602490fd5b604051634b637e8f60e11b815260006004820152602490fdfea2646970667358221220549f3735fefeb7286061d67bca2949082af3b7d9e981110fd978bfa6ec343e5d64736f6c63430008150033"; + "0x60406080815234620003a05762000add803803806200001e81620003a5565b9283398101606082820312620003a05781516001600160401b039290838111620003a0578262000050918301620003cb565b60209283830151858111620003a05786916200006e918501620003cb565b920151938151818111620002a0576003908154906001948583811c9316801562000395575b888410146200037f578190601f9384811162000329575b508890848311600114620002c257600092620002b6575b505060001982851b1c191690851b1782555b8451928311620002a05760049485548581811c9116801562000295575b88821014620002805782811162000235575b5086918411600114620001ca57938394918492600095620001be575b50501b92600019911b1c19161781555b3315620001a757600254908382018092116200019257506000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9160025533835282815284832084815401905584519384523393a35161069f90816200043e8239f35b601190634e487b7160e01b6000525260246000fd5b602490600085519163ec442f0560e01b8352820152fd5b0151935038806200011e565b9190601f198416928660005284886000209460005b8a898383106200021d575050501062000202575b50505050811b0181556200012e565b01519060f884600019921b161c1916905538808080620001f3565b868601518955909701969485019488935001620001df565b86600052876000208380870160051c8201928a881062000276575b0160051c019086905b8281106200026957505062000102565b6000815501869062000259565b9250819262000250565b602287634e487b7160e01b6000525260246000fd5b90607f1690620000f0565b634e487b7160e01b600052604160045260246000fd5b015190503880620000c1565b90879350601f19831691866000528a6000209260005b8c828210620003125750508411620002f9575b505050811b018255620000d3565b015160001983871b60f8161c19169055388080620002eb565b8385015186558b97909501949384019301620002d8565b90915084600052886000208480850160051c8201928b861062000375575b918991869594930160051c01915b82811062000365575050620000aa565b6000815585945089910162000355565b9250819262000347565b634e487b7160e01b600052602260045260246000fd5b92607f169262000093565b600080fd5b6040519190601f01601f191682016001600160401b03811183821017620002a057604052565b919080601f84011215620003a05782516001600160401b038111620002a05760209062000401601f8201601f19168301620003a5565b92818452828287010111620003a05760005b8181106200042957508260009394955001015290565b85810183015184820184015282016200041356fe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde031461043957508163095ea7b31461038b57816318160ddd1461036c57816323b872dd14610275578163313ce5671461025957816370a082311461022257816395d89b411461010357508063a9059cbb146100d35763dd62ed3e1461008857600080fd5b346100cf57806003193601126100cf57806020926100a461055a565b6100ac610575565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b5080fd5b50346100cf57806003193601126100cf576020906100fc6100f261055a565b602435903361058b565b5160018152f35b8383346100cf57816003193601126100cf57805190828454600181811c90808316928315610218575b6020938484108114610205578388529081156101e95750600114610194575b505050829003601f01601f191682019267ffffffffffffffff841183851017610181575082918261017d925282610511565b0390f35b634e487b7160e01b815260418552602490fd5b8787529192508591837f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8385106101d5575050505083010185808061014b565b8054888601830152930192849082016101bf565b60ff1916878501525050151560051b840101905085808061014b565b634e487b7160e01b895260228a52602489fd5b91607f169161012c565b5050346100cf5760203660031901126100cf5760209181906001600160a01b0361024a61055a565b16815280845220549051908152f35b5050346100cf57816003193601126100cf576020905160128152f35b905082346103695760603660031901126103695761029161055a565b610299610575565b916044359360018060a01b0383168083526001602052868320338452602052868320549160001983036102d5575b6020886100fc89898961058b565b86831061033d57811561032657331561030f575082526001602090815286832033845281529186902090859003905582906100fc876102c7565b8751634a1406b160e11b8152908101849052602490fd5b875163e602df0560e01b8152908101849052602490fd5b8751637dc7a0d960e11b8152339181019182526020820193909352604081018790528291506060010390fd5b80fd5b5050346100cf57816003193601126100cf576020906002549051908152f35b9050346104355781600319360112610435576103a561055a565b60243590331561041e576001600160a01b031691821561040757508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8351634a1406b160e11b8152908101859052602490fd5b835163e602df0560e01b8152808401869052602490fd5b8280fd5b8490843461043557826003193601126104355782600354600181811c90808316928315610507575b6020938484108114610205578388529081156101e957506001146104b157505050829003601f01601f191682019267ffffffffffffffff841183851017610181575082918261017d925282610511565b600387529192508591837fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8385106104f3575050505083010185808061014b565b8054888601830152930192849082016104dd565b91607f1691610461565b6020808252825181830181905290939260005b82811061054657505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501610524565b600435906001600160a01b038216820361057057565b600080fd5b602435906001600160a01b038216820361057057565b916001600160a01b0380841692831561065057169283156106375760009083825281602052604082205490838210610605575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60405163ec442f0560e01b815260006004820152602490fd5b604051634b637e8f60e11b815260006004820152602490fdfea2646970667358221220dd02ac0fd1c8df17a63ddafd6f35d171a7d54e409a0ab26d8d7a6392b78bcab764736f6c63430008150033"; type ERC20TokenConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: ERC20TokenConstructorParams, + xs: ERC20TokenConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class ERC20Token__factory extends ContractFactory { @@ -375,26 +375,26 @@ export class ERC20Token__factory extends ContractFactory { name: string, symbol: string, initialSupply: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction( name, symbol, initialSupply, - overrides || {}, + overrides || {} ); } override deploy( name: string, symbol: string, initialSupply: BigNumberish, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy( name, symbol, initialSupply, - overrides || {}, + overrides || {} ) as Promise< ERC20Token & { deploymentTransaction(): ContractTransactionResponse; diff --git a/src/contractsTypes/evm/factories/contracts/ERC721Royalty__factory.ts b/src/contractsTypes/evm/factories/contracts/ERC721Royalty__factory.ts index 5340f49..4fe8ec8 100644 --- a/src/contractsTypes/evm/factories/contracts/ERC721Royalty__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/ERC721Royalty__factory.ts @@ -329,6 +329,19 @@ const _abi = [ stateMutability: "view", type: "function", }, + { + inputs: [], + name: "bridge", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -645,14 +658,14 @@ const _abi = [ ] as const; const _bytecode = - "0x608060405234620003a557620014a1803803806200001d81620003aa565b9283398101606082820312620003a55781516001600160401b039190828111620003a557816200004f918501620003d0565b60209182850151848111620003a5576040916200006e918701620003d0565b9401516001600160a01b03948582169491859003620003a5578251908282116200038f576000948554926001958685811c9516801562000384575b8386101462000370578190601f958681116200031d575b508390868311600114620002b9578992620002ad575b5050600019600383901b1c191690861b1786555b8151938411620002995784548581811c911680156200028e575b828210146200027a57908184869594931162000223575b5080928411600114620001bb57508592620001af575b5050600019600383901b1c191690821b1790555b81156200019757600780546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361105e9081620004438239f35b60249060405190631e4fbdf760e01b82526004820152fd5b01519050388062000131565b9190859450601f1984168588528388209388905b828210620002095750508411620001ef575b505050811b01905562000145565b015160001960f88460031b161c19169055388080620001e1565b8484015186558897909501949384019390810190620001cf565b90919293508587528187208480870160051c82019284881062000270575b9187968992969594930160051c01915b828110620002615750506200011b565b89815587965088910162000251565b9250819262000241565b634e487b7160e01b87526022600452602487fd5b90607f169062000104565b634e487b7160e01b86526041600452602486fd5b015190503880620000d6565b898052848a208994509190601f1984168b5b87828210620003065750508411620002ec575b505050811b018655620000ea565b015160001960f88460031b161c19169055388080620002de565b8385015186558c97909501949384019301620002cb565b9091508880528389208680850160051c82019286861062000366575b918a91869594930160051c01915b82811062000357575050620000c0565b8b81558594508a910162000347565b9250819262000339565b634e487b7160e01b88526022600452602488fd5b94607f1694620000a9565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200038f57604052565b919080601f84011215620003a55782516001600160401b0381116200038f5760209062000406601f8201601f19168301620003aa565b92818452828287010111620003a55760005b8181106200042e57508260009394955001015290565b85810183015184820184015282016200041856fe6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714610ac65750806306fdde0314610a34578063081812fc146109f9578063095ea7b31461091d57806323b872dd146109055780632a55205a146108c157806342842e0e146108985780634bd297fd146105995780636352211e1461056857806370a0823114610513578063715018a6146104b65780638da5cb5b1461048d57806395d89b41146103c0578063a22cb46514610323578063b88d4fde146102bc578063c87b56dd146101c7578063e985e9c5146101755763f2fde38b146100e957600080fd5b3461017157602036600319011261017157610102610b8c565b9061010b610c96565b6001600160a01b0391821692831561015b575050600780546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346101c357806003193601126101c35760ff81602093610195610b8c565b61019d610ba7565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b5080fd5b50903461017157602091826003193601126102b857356101e681610fed565b5083526006825280832092815180948290805461020281610cc2565b91828552600191888382169182600014610291575050600114610253575b50505061024f939291610234910386610c23565b815161023f81610bf2565b5251928284938452830190610b4c565b0390f35b8552868520879350859291905b828410610279575050508201018161023461024f610220565b8054848b018601528995508894909301928101610260565b60ff19168782015293151560051b86019093019350849250610234915061024f9050610220565b8380fd5b8382346101c35760803660031901126101c3576102d7610b8c565b6102df610ba7565b906064356001600160401b03811161031f573660238201121561031f5761031c9381602461031293369301359101610c5f565b9160443591610e9e565b80f35b8480fd5b50903461017157806003193601126101715761033d610b8c565b906024359182151580930361031f576001600160a01b03169283156103ab5750338452600560205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b836024925191630b61174360e31b8352820152fd5b82843461048a578060031936011261048a5781519182826001938454946103e686610cc2565b91828552602096878382169182600014610463575050600114610426575b50505061024f9291610417910385610c23565b51928284938452830190610b4c565b91908693508083528383205b82841061044b575050508201018161041761024f610404565b8054848a018601528895508794909301928101610432565b60ff19168782015293151560051b86019093019350849250610417915061024f9050610404565b80fd5b5050346101c357816003193601126101c35760075490516001600160a01b039091168152602090f35b833461048a578060031936011261048a576104cf610c96565b600780546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50913461048a57602036600319011261048a576001600160a01b03610536610b8c565b169283156105535750806020938392526003845220549051908152f35b91516322718ad960e21b815291820152602490fd5b50913461048a57602036600319011261048a575061058860209235610fed565b90516001600160a01b039091168152f35b50823461048a5760a036600319011261048a576105b4610b8c565b602493909260443591906001600160a01b039060643582811691883591839003610894576001600160401b036084358181116108905736602382011215610890576106079036908c818601359101610c5f565b98610610610c96565b612710881161085b5785169485156108455788999a847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef98999a528885888d60209b8c96600288528583205416918215159586610812575b84825260038952808220805460019081019091558683526002909952812080546001600160a01b0319908116909e17905580a46107fe57848b5260068852888b20938c519384116107ed5750506106bf8354610cc2565b601f81116107a7575b50869a601f83116001146107435782918b9c839260099b9c9d94610738575b50501b916000199060031b1c19161790555b7ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7848751838152a1875260088352848720918254161790555282205580f35b015192508d806106e7565b838b52878b20601f1984169c92939290918c8e5b811061079157508360099b9c9d9e10610778575b505050811b0190556106f9565b015160001960f88460031b161c191690558b808061076b565b81830151845592850192918a01918a018e610757565b838b52878b20601f840160051c8101918985106107e3575b601f0160051c019082905b8281106107d85750506106c8565b8c81550182906107ca565b90915081906107bf565b634e487b7160e01b8c52604190528afd5b88516339e3563760e11b81528085018c9052fd5b600086815260046020526040902080546001600160a01b0319169055838252600389528082208054600019019055610668565b8651633250574960e11b81528084018a90528b90fd5b865162461bcd60e51b81526020818501526010818d01526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b8880fd5b8680fd5b5050346101c35761031c906108ac36610bbd565b919251926108b984610bf2565b858452610e9e565b508290346101c357826003193601126101c357358152600860209081528282205460098252918390205492516001600160a01b039092168252810191909152604090f35b833461048a5761031c61091736610bbd565b91610cfc565b509034610171578060031936011261017157610937610b8c565b9160243561094481610fed565b331515806109e6575b806109bd575b6109a7576001600160a01b039485169482918691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258880a48452602052822080546001600160a01b031916909117905580f35b835163a9fbf51f60e01b81523381850152602490fd5b506001600160a01b03811686526005602090815284872033885290528386205460ff1615610953565b506001600160a01b03811633141561094d565b503461017157602036600319011261017157918260209335610a1a81610fed565b50825283528190205490516001600160a01b039091168152f35b82843461048a578060031936011261048a5781519182828354610a5681610cc2565b90818452602095600191878382169182600014610463575050600114610a895750505061024f9291610417910385610c23565b91908693508280528383205b828410610aae575050508201018161041761024f610404565b8054848a018601528895508794909301928101610a95565b92505034610171576020366003190112610171573563ffffffff60e01b81168091036101715760209250632483248360e11b8114908115610b09575b5015158152f35b6380ac58cd60e01b811491508115610b3b575b8115610b2a575b5038610b02565b6301ffc9a760e01b14905038610b23565b635b5e139f60e01b81149150610b1c565b919082519283825260005b848110610b78575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610b57565b600435906001600160a01b0382168203610ba257565b600080fd5b602435906001600160a01b0382168203610ba257565b6060906003190112610ba2576001600160a01b03906004358281168103610ba257916024359081168103610ba2579060443590565b602081019081106001600160401b03821117610c0d57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b03821117610c0d57604052565b6001600160401b038111610c0d57601f01601f191660200190565b929192610c6b82610c44565b91610c796040519384610c23565b829481845281830111610ba2578281602093846000960137010152565b6007546001600160a01b03163303610caa57565b60405163118cdaa760e01b8152336004820152602490fd5b90600182811c92168015610cf2575b6020831014610cdc57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610cd1565b6001600160a01b039182169290918315610e8557600092828452826020956002875260409684888820541696879133151580610dec575b509060027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9284610db9575b858352600381528b8320805460010190558683525289812080546001600160a01b0319168517905580a41692838303610d985750505050565b6064945051926364283d7b60e01b8452600484015260248301526044820152fd5b600087815260046020526040902080546001600160a01b0319169055848352600381528b83208054600019019055610d5f565b91939450915080610e44575b15610e0857859291879138610d33565b878688610e25576024915190637e27328960e01b82526004820152fd5b905163177e802f60e01b81523360048201526024810191909152604490fd5b503387148015610e69575b80610df85750858252600481523385898420541614610df8565b5086825260058152878220338352815260ff8883205416610e4f565b604051633250574960e11b815260006004820152602490fd5b610ea9838383610cfc565b813b610eb6575b50505050565b604051630a85bd0160e11b8082523360048301526001600160a01b03928316602483015260448201949094526080606482015260209592909116939092908390610f04906084830190610b4c565b039285816000958187895af1849181610fad575b50610f78575050503d600014610f70573d610f3281610c44565b90610f406040519283610c23565b81528091843d92013e5b80519283610f6b57604051633250574960e11b815260048101849052602490fd5b019050fd5b506060610f4a565b919450915063ffffffff60e01b1603610f95575038808080610eb0565b60249060405190633250574960e11b82526004820152fd5b9091508681813d8311610fe6575b610fc58183610c23565b8101031261031f57516001600160e01b03198116810361031f579038610f18565b503d610fbb565b6000818152600260205260409020546001600160a01b0316908115611010575090565b60249060405190637e27328960e01b82526004820152fdfea264697066735822122052aa700fff43b364278a2c834a4ba6862af62edf306969729726334c23855cd664736f6c63430008150033"; + "0x608060405234620003a55762001552803803806200001d81620003aa565b9283398101606082820312620003a55781516001600160401b039190828111620003a557816200004f918501620003d0565b60209182850151848111620003a5576040916200006e918701620003d0565b9401516001600160a01b03948582169491859003620003a5578251908282116200038f576000948554926001958685811c9516801562000384575b8386101462000370578190601f958681116200031d575b508390868311600114620002b9578992620002ad575b5050600019600383901b1c191690861b1786555b8151938411620002995784548581811c911680156200028e575b828210146200027a57908184869594931162000223575b5080928411600114620001bb57508592620001af575b5050600019600383901b1c191690821b1790555b81156200019757600780546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361110f9081620004438239f35b60249060405190631e4fbdf760e01b82526004820152fd5b01519050388062000131565b9190859450601f1984168588528388209388905b828210620002095750508411620001ef575b505050811b01905562000145565b015160001960f88460031b161c19169055388080620001e1565b8484015186558897909501949384019390810190620001cf565b90919293508587528187208480870160051c82019284881062000270575b9187968992969594930160051c01915b828110620002615750506200011b565b89815587965088910162000251565b9250819262000241565b634e487b7160e01b87526022600452602487fd5b90607f169062000104565b634e487b7160e01b86526041600452602486fd5b015190503880620000d6565b898052848a208994509190601f1984168b5b87828210620003065750508411620002ec575b505050811b018655620000ea565b015160001960f88460031b161c19169055388080620002de565b8385015186558c97909501949384019301620002cb565b9091508880528389208680850160051c82019286861062000366575b918a91869594930160051c01915b82811062000357575050620000c0565b8b81558594508a910162000347565b9250819262000339565b634e487b7160e01b88526022600452602488fd5b94607f1694620000a9565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200038f57604052565b919080601f84011215620003a55782516001600160401b0381116200038f5760209062000406601f8201601f19168301620003aa565b92818452828287010111620003a55760005b8181106200042e57508260009394955001015290565b85810183015184820184015282016200041856fe6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714610b745750806306fdde0314610ac4578063081812fc14610a89578063095ea7b3146109ad57806323b872dd146109955780632a55205a1461095157806342842e0e146109285780634bd297fd146105f25780636352211e146105c157806370a082311461056c578063715018a61461050f5780638da5cb5b146104e657806395d89b41146103fb578063a22cb4651461035e578063b88d4fde146102f6578063c87b56dd14610201578063e78cea92146101d8578063e985e9c5146101865763f2fde38b146100f457600080fd5b346101825760203660031901126101825761010d610c3a565b90610116610d47565b6001600160a01b0391821692831561016c575050600754826bffffffffffffffffffffffff60a01b821617600755167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346101d457806003193601126101d45760ff816020936101a6610c3a565b6101ae610c55565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b5080fd5b5050346101d457816003193601126101d457600a5490516001600160a01b039091168152602090f35b50903461018257602091826003193601126102f257356102208161109e565b5083526006825280832092815180948290805461023c81610d73565b918285526001918883821691826000146102cb57505060011461028d575b50505061028993929161026e910386610cd2565b815161027981610ca0565b5251928284938452830190610bfa565b0390f35b8552868520879350859291905b8284106102b3575050508201018161026e61028961025a565b8054848b01860152899550889490930192810161029a565b60ff19168782015293151560051b8601909301935084925061026e9150610289905061025a565b8380fd5b8382346101d45760803660031901126101d457610311610c3a565b610319610c55565b9060643567ffffffffffffffff811161035a573660238201121561035a576103579381602461034d93369301359101610d10565b9160443591610f4f565b80f35b8480fd5b509034610182578060031936011261018257610378610c3a565b906024359182151580930361035a576001600160a01b03169283156103e65750338452600560205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b836024925191630b61174360e31b8352820152fd5b8284346104e357806003193601126104e357815191828260019384549461042186610d73565b918285526020968783821691826000146104bc575050600114610461575b5050506102899291610452910385610cd2565b51928284938452830190610bfa565b91908693508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8284106104a4575050508201018161045261028961043f565b8054848a01860152889550879490930192810161048b565b60ff19168782015293151560051b860190930193508492506104529150610289905061043f565b80fd5b5050346101d457816003193601126101d45760075490516001600160a01b039091168152602090f35b83346104e357806003193601126104e357610528610d47565b600780546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5091346104e35760203660031901126104e3576001600160a01b0361058f610c3a565b169283156105ac5750806020938392526003845220549051908152f35b91516322718ad960e21b815291820152602490fd5b5091346104e35760203660031901126104e357506105e16020923561109e565b90516001600160a01b039091168152f35b5082346104e35760a03660031901126104e35761060d610c3a565b602493909260443591906001600160a01b0390606435828116918835918390036109245767ffffffffffffffff6084358181116109205736602382011215610920576106619036908c818601359101610d10565b9885600a541633036108f05761271088116108bb5785169485156108a55788999a847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef98999a528885888d60209b8c96600288528583205416918215159586610872575b8482526003895260028183209960019a8b81540190558784525281206bffffffffffffffffffffffff60a01b9d8e82541617905580a461085e57848b5260068852888b20938c5193841161084d57505061071f8354610d73565b601f8111610807575b50869a601f83116001146107a35782918b9c839260099b9c9d94610798575b50501b916000199060031b1c19161790555b7ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7848751838152a1875260088352848720918254161790555282205580f35b015192508d80610747565b838b52878b20601f1984169c92939290918c8e5b81106107f157508360099b9c9d9e106107d8575b505050811b019055610759565b015160001960f88460031b161c191690558b80806107cb565b81830151845592850192918a01918a018e6107b7565b838b52878b20601f840160051c810191898510610843575b601f0160051c019082905b828110610838575050610728565b8c815501829061082a565b909150819061081f565b634e487b7160e01b8c52604190528afd5b88516339e3563760e11b81528085018c9052fd5b600086815260046020526040902080546001600160a01b03191690558382526003895280822080546000190190556106c5565b8651633250574960e11b81528084018a90528b90fd5b865162461bcd60e51b81526020818501526010818d01526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b865162461bcd60e51b8152602081850152600b818d01526a4e6f74206272696467652160a81b6044820152606490fd5b8880fd5b8680fd5b5050346101d4576103579061093c36610c6b565b9192519261094984610ca0565b858452610f4f565b508290346101d457826003193601126101d457358152600860209081528282205460098252918390205492516001600160a01b039092168252810191909152604090f35b83346104e3576103576109a736610c6b565b91610dad565b5090346101825780600319360112610182576109c7610c3a565b916024356109d48161109e565b33151580610a76575b80610a4d575b610a37576001600160a01b039485169482918691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258880a48452602052822080546001600160a01b031916909117905580f35b835163a9fbf51f60e01b81523381850152602490fd5b506001600160a01b03811686526005602090815284872033885290528386205460ff16156109e3565b506001600160a01b0381163314156109dd565b503461018257602036600319011261018257918260209335610aaa8161109e565b50825283528190205490516001600160a01b039091168152f35b8284346104e357806003193601126104e35781519182828354610ae681610d73565b908184526020956001918783821691826000146104bc575050600114610b19575050506102899291610452910385610cd2565b91908693508280527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b828410610b5c575050508201018161045261028961043f565b8054848a018601528895508794909301928101610b43565b92505034610182576020366003190112610182573563ffffffff60e01b81168091036101825760209250632483248360e11b8114908115610bb7575b5015158152f35b6380ac58cd60e01b811491508115610be9575b8115610bd8575b5038610bb0565b6301ffc9a760e01b14905038610bd1565b635b5e139f60e01b81149150610bca565b919082519283825260005b848110610c26575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610c05565b600435906001600160a01b0382168203610c5057565b600080fd5b602435906001600160a01b0382168203610c5057565b6060906003190112610c50576001600160a01b03906004358281168103610c5057916024359081168103610c50579060443590565b6020810190811067ffffffffffffffff821117610cbc57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610cbc57604052565b67ffffffffffffffff8111610cbc57601f01601f191660200190565b929192610d1c82610cf4565b91610d2a6040519384610cd2565b829481845281830111610c50578281602093846000960137010152565b6007546001600160a01b03163303610d5b57565b60405163118cdaa760e01b8152336004820152602490fd5b90600182811c92168015610da3575b6020831014610d8d57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610d82565b6001600160a01b039182169290918315610f3657600092828452826020956002875260409684888820541696879133151580610e9d575b509060027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9284610e6a575b858352600381528b8320805460010190558683525289812080546001600160a01b0319168517905580a41692838303610e495750505050565b6064945051926364283d7b60e01b8452600484015260248301526044820152fd5b600087815260046020526040902080546001600160a01b0319169055848352600381528b83208054600019019055610e10565b91939450915080610ef5575b15610eb957859291879138610de4565b878688610ed6576024915190637e27328960e01b82526004820152fd5b905163177e802f60e01b81523360048201526024810191909152604490fd5b503387148015610f1a575b80610ea95750858252600481523385898420541614610ea9565b5086825260058152878220338352815260ff8883205416610f00565b604051633250574960e11b815260006004820152602490fd5b610f5a838383610dad565b813b610f67575b50505050565b604051630a85bd0160e11b8082523360048301526001600160a01b03928316602483015260448201949094526080606482015260209592909116939092908390610fb5906084830190610bfa565b039285816000958187895af184918161105e575b50611029575050503d600014611021573d610fe381610cf4565b90610ff16040519283610cd2565b81528091843d92013e5b8051928361101c57604051633250574960e11b815260048101849052602490fd5b019050fd5b506060610ffb565b919450915063ffffffff60e01b1603611046575038808080610f61565b60249060405190633250574960e11b82526004820152fd5b9091508681813d8311611097575b6110768183610cd2565b8101031261035a57516001600160e01b03198116810361035a579038610fc9565b503d61106c565b6000818152600260205260409020546001600160a01b03169081156110c1575090565b60249060405190637e27328960e01b82526004820152fdfea26469706673582212205498df222d6a049e5faa9dcb6a0c003fd39ed321a4b100862b5928f7bfb8e54e64736f6c63430008150033"; type ERC721RoyaltyConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: ERC721RoyaltyConstructorParams, + xs: ERC721RoyaltyConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class ERC721Royalty__factory extends ContractFactory { @@ -668,7 +681,7 @@ export class ERC721Royalty__factory extends ContractFactory { name: string, symbol: string, owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction(name, symbol, owner, overrides || {}); } @@ -676,7 +689,7 @@ export class ERC721Royalty__factory extends ContractFactory { name: string, symbol: string, owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy(name, symbol, owner, overrides || {}) as Promise< ERC721Royalty & { @@ -695,7 +708,7 @@ export class ERC721Royalty__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): ERC721Royalty { return new Contract(address, _abi, runner) as unknown as ERC721Royalty; } diff --git a/src/contractsTypes/evm/factories/contracts/HederaNft__factory.ts b/src/contractsTypes/evm/factories/contracts/HederaNft__factory.ts deleted file mode 100644 index 6eeffcf..0000000 --- a/src/contractsTypes/evm/factories/contracts/HederaNft__factory.ts +++ /dev/null @@ -1,565 +0,0 @@ -/* Autogenerated file. Do not edit manually. */ -/* tslint:disable */ -/* eslint-disable */ -import { - Contract, - ContractFactory, - ContractTransactionResponse, - Interface, -} from "ethers"; -import type { - Signer, - BigNumberish, - AddressLike, - ContractDeployTransaction, - ContractRunner, -} from "ethers"; -import type { PayableOverrides } from "../../common"; -import type { HederaNft, HederaNftInterface } from "../../contracts/HederaNft"; - -const _abi = [ - { - inputs: [ - { - internalType: "string", - name: "name", - type: "string", - }, - { - internalType: "string", - name: "symbol", - type: "string", - }, - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "contract INFTClaim", - name: "claimContract", - type: "address", - }, - { - internalType: "int64", - name: "royaltyNum", - type: "int64", - }, - { - internalType: "address", - name: "royaltyReceiver", - type: "address", - }, - ], - stateMutability: "payable", - type: "constructor", - }, - { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - ], - name: "OwnableInvalidOwner", - type: "error", - }, - { - inputs: [ - { - internalType: "address", - name: "account", - type: "address", - }, - ], - name: "OwnableUnauthorizedAccount", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "bool", - name: "", - type: "bool", - }, - { - indexed: false, - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - name: "CallResponseEvent", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "htsToken", - type: "address", - }, - { - indexed: true, - internalType: "int64", - name: "tokenId", - type: "int64", - }, - ], - name: "Minted", - 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", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, - { - indexed: true, - internalType: "int64", - name: "tokenId", - type: "int64", - }, - ], - name: "Transfer", - type: "event", - }, - { - inputs: [], - name: "DEFAULT_EXPIRY", - outputs: [ - { - internalType: "int64", - name: "", - type: "int64", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MAX_INT", - outputs: [ - { - internalType: "int64", - name: "", - type: "int64", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "int64", - name: "serialNum", - type: "int64", - }, - { - internalType: "address", - name: "token", - type: "address", - }, - ], - name: "claimNft", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "data", - type: "uint256", - }, - ], - name: "decodeHts", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "int64", - name: "", - type: "int64", - }, - ], - stateMutability: "pure", - type: "function", - }, - { - inputs: [], - name: "htsToken", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - { - internalType: "uint256", - name: "", - type: "uint256", - }, - { - internalType: "address", - name: "", - type: "address", - }, - { - internalType: "string", - name: "tokenURI", - type: "string", - }, - ], - name: "mint", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "nftClaim", - outputs: [ - { - internalType: "contract INFTClaim", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "owner", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - ], - name: "ownerOf", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "bytes", - name: "encodedFunctionSelector", - type: "bytes", - }, - ], - name: "redirectForToken", - outputs: [ - { - internalType: "int256", - name: "responseCode", - type: "int256", - }, - { - internalType: "bytes", - name: "response", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "renounceOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "tokenId", - type: "uint256", - }, - { - internalType: "uint256", - name: "salePrice", - type: "uint256", - }, - ], - name: "royaltyInfo", - outputs: [ - { - internalType: "address", - name: "receiver", - type: "address", - }, - { - internalType: "uint256", - name: "royaltyAmount", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_from", - type: "address", - }, - { - internalType: "address", - name: "_to", - type: "address", - }, - { - internalType: "uint256", - name: "_serialNum", - type: "uint256", - }, - ], - name: "safeTransferFrom", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "int64", - name: "responseCode", - type: "int64", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "token", - type: "address", - }, - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "serialNumber", - type: "uint256", - }, - ], - name: "transferFromNFT", - outputs: [ - { - internalType: "int64", - name: "responseCode", - type: "int64", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newOwner", - type: "address", - }, - ], - name: "transferOwnership", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, -] as const; - -const _bytecode = - "0x6080806040526200291980380380916200001a8285620009bf565b833981019060c081830312620006ec5780516001600160401b038111620006ec57826200004991830162000a24565b602082015190926001600160401b038211620006ec576200006c91830162000a24565b906200007b6040820162000a71565b606082015190926001600160a01b0382168203620006ec576080830151928360070b8403620006ec5760a0620000b2910162000a71565b936001600160a01b038116156200096e57600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36002602081815260017fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b557fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e09190915560047f679795a0195a1b76cdebb7c51d74e058aee92919b8c3389af86ef24535e8a28c5560087f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c3556010600080516020620028f9833981519152557fb98b78633099fa36ed8b8680c4f8092689e1e04080eb9cbb077ca38a14d7e38455600660005260407f59dd4b18488d12f51eda69757a0ed42a2010c14b564330cc74a06895e60c077b55612710600784900b136200091d57604051916200021b8362000987565b6001835260005b602081106200090357506200023662000ac3565b5060046000526002602052600080516020620028f9833981519152546200025c62000a86565b30602082015260405191620002718362000987565b82526020820152620002838462000ae8565b526200028f8362000ae8565b50600480546001600160a01b0319166001600160a01b0392909216919091179055604051946001600160401b03610120870190811190871117620008ed57610120860160405260608652606060208701526000604087015260608087015260006080870152600060a0870152600060c0870152606060e08701526200031362000b0c565b610100870152855260208501523060408501526040516200033481620009a3565b6000815260608501526001608085015263ffffffff60a0850152600060c085015260e08401526200036462000b0c565b30602082015262786450604082015261010084015260405191620003888362000987565b6001835260005b60208110620008d35750620003a362000b3c565b60079290920b825261271060208301526001600160a01b031660a0820152620003cc8262000ae8565b52620003d88162000ae8565b50604051620003e781620009a3565b60008152610100830151805160070b1580620008c3575b620008b3575b506040519263abb54eb560e01b60208501526060602485015262000437815161016060848701526101e486019062000b7f565b90620004826200045a60208301519360831994858983030160a48a015262000b7f565b60408301516001600160a01b031660c48801526060830151878203850160e489015262000b7f565b6080820151151561010487015260a082015160070b61012487015260c0820151151561014487015260e08201519286820301610164870152825180825260208201916020808360051b8301019501926000915b8383106200081e5750505050506101006040910151805160070b61018487015260018060a01b036020820151166101a4870152015160070b6101c48501526023198482030160448501526020808351928381520192019060005b818110620007c7575050506023198382030160648401526020808351928381520192019060005b81811062000761576000808662000577818803601f198101835282620009bf565b602081519101346101675af13d1562000758573d906200059782620009e3565b91620005a76040519384620009bf565b82523d6000602084013e5b156200074b57604081805181010312620006ec576020810151908160030b809203620006ec57604001516001600160a01b0381169190829003620006ec576016905b60030b03620007065760405163053aa6f360e11b81526001600160a01b0391909116906020816004816000865af1908115620006fa57600091620006bd575b5060168114908115620006b1575b50156200066c57600380546001600160a01b031916919091179055604051611d52908162000ba78239f35b60405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f206173736f636961746520746f6b656e000000000000006044820152606490fd5b60c29150148262000641565b90506020813d602011620006f1575b81620006db60209383620009bf565b81010312620006ec57518262000633565b600080fd5b3d9150620006cc565b6040513d6000823e3d90fd5b60405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f2063726561746520746f6b656e2e0000000000000000006044820152606490fd5b50600060166015620005f4565b606090620005b2565b909192602060c06001928651805160070b82528381015160070b84830152604081015160070b6040830152848060a01b03606082015116606083015260808101511515608083015260a08580821b039101511660a0820152019401910191909162000556565b8251805160070b85526020818101516001600160a01b0390811682880152604080840151151590880152606080840151151590880152608092830151169186019190915260a090940193909201916001016200052f565b9091929395602080600192601f19858203018652818a5180518352015190604083820152815115156040820152848060a01b038383015116606082015260c0620008936200087c604085015160a0608086015260e085019062000b7f565b6060850151848203603f190160a086015262000b7f565b926080878060a01b039101511691015298019301930191939290620004d5565b60406276a7009101523862000404565b50604081015160070b15620003fe565b602090620008e062000b3c565b828287010152016200038f565b634e487b7160e01b600052604160045260246000fd5b6020906200091062000ac3565b8282870101520162000222565b60405162461bcd60e51b8152602060048201526024808201527f526f79616c7479204e756d657261746f722073686f756c64206265203c3d20316044820152630303030360e41b6064820152608490fd5b604051631e4fbdf760e01b815260006004820152602490fd5b604081019081106001600160401b03821117620008ed57604052565b602081019081106001600160401b03821117620008ed57604052565b601f909101601f19168101906001600160401b03821190821017620008ed57604052565b6001600160401b038111620008ed57601f01601f191660200190565b60005b83811062000a135750506000910152565b818101518382015260200162000a02565b81601f82011215620006ec57805162000a3d81620009e3565b9262000a4d6040519485620009bf565b81845260208284010111620006ec5762000a6e9160208085019101620009ff565b90565b51906001600160a01b0382168203620006ec57565b6040519060a082016001600160401b03811183821017620008ed576040526000608083828152826020820152606060408201526060808201520152565b6040519062000ad28262000987565b8160008152602062000ae362000a86565b910152565b80511562000af65760200190565b634e487b7160e01b600052603260045260246000fd5b60405190606082016001600160401b03811183821017620008ed5760405260006040838281528260208201520152565b6040519060c082016001600160401b03811183821017620008ed576040528160a06000918281528260208201528260408201528260608201528260808201520152565b9060209162000b9a81518092818552858086019101620009ff565b601f01601f191601019056fe60e0604081815260048036101561001557600080fd5b600092833560e01c908163098d3228146108fd575080630bc14a69146108d45780630e44263a146108a057806315dacbea146108655780632a55205a1461082e57806342842e0e146105e05780634bd297fd1461056757806351761bcc146105495780635420aab214610522578063618dc65e146103ce5780636352211e1461037e578063715018a6146103245780637ad43629146102205780638da5cb5b146101f85780639b23d3d91461015e5763f2fde38b146100d357600080fd5b3461015a57602036600319011261015a576100ec61091b565b906100f5610af4565b6001600160a01b039182169283156101445750506000548260018060a01b0319821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346101f45781806101a761019961017636610947565b88959395949194519485936020850197639b23d3d960e01b895260248601611c40565b03601f198101835282610a39565b5190826101675af1916101b8611066565b92156101e7576020838051810103126101e457506101d96020809301611096565b905b519060030b8152f35b80fd5b50602091506015906101db565b5080fd5b5050346101f457816003193601126101f457905490516001600160a01b039091168152602090f35b503461015a578160031936011261015a578035918260070b9283810361032057610248610931565b835486906001600160a01b0316803b156101f45781846102819285838a8a51968795869485936301dab85560e11b855233908501610b20565b03925af18015610316576102fe575b50506016916102a29133903090611c6b565b036102c05750503330600080516020611cfd8339815191528480a480f35b906020606492519162461bcd60e51b835282015260186024820152772330b4b632b2103a37903a3930b739b332b9103a37b5b2b760411b6044820152fd5b61030790610988565b610312578538610290565b8580fd5b85513d84823e3d90fd5b8480fd5b83346101e457806003193601126101e45761033d610af4565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5091346101e45760203660031901126101e4575060166103ba6103b36020943560018060601b03811660070b9060601c6111da565b9214610b8d565b81015190516001600160a01b039091168152f35b509190346101f457806003193601126101f4576103e961091b565b926001600160401b039060243582811161032057366023820112156103205761041d85928260248594369301359101610a75565b84516330c6e32f60e11b60208083019182526001600160a01b039099166024830152604482018790529161045b908290610199906064830190610acf565b5190826101675af19061046c611066565b917f4af4780e06fe8cb9df64b0794fa6f01399af979175bb988e35e0e57e594567bc845182151581528588820152806104a787820187610acf565b0390a11561050557815182018383820312610320576104c7868401611096565b94848401519283116101e4575091856104e99281610501969501920101611174565b905b80805195869560030b8652850152830190610acf565b0390f35b50508061050191519261051784610a1e565b8352601592906104eb565b503461015a578260031936011261015a575490516001600160a01b03909116815260209150f35b5050346101f457816003193601126101f45760209051627864508152f35b8382346101f45760a03660031901126101f45761058261091b565b6064356001600160a01b038116036105db576084356001600160401b0381116105d757366023820112156105d7576105d4928160246105c693369301359101610a75565b906105cf610af4565b610d2a565b80f35b8380fd5b600080fd5b503461015a57606036600319011261015a576105fa61091b565b91610603610931565b9060443590610610610af4565b8160601c9160018060601b031660070b92869183885260206005815260ff828a20541615610755575b5087546001600160a01b0396838816938a92891685810361068d5750505050505050908361067082601695946105d4973091611c6b565b92309116600080516020611cfd8339815191528780a45b14610b45565b9093969194979295998916146106b1575b505050505050505060166105d491610687565b9091929394959697506106c682843084611c6b565b978287519830600080516020611cfd8339815191528980a460b889146106ef575b85945061069e565b84541692833b15610312576313b87c7360e01b88528794859387938593610717938501610b20565b03925af190811561074c5750610734575b808381808080806106e7565b6105d49192610744601692610988565b929150610728565b513d85823e3d90fd5b815163053aa6f360e11b81529350808488818c895af19384156108245789946107f1575b50601684148481156107e6575b50156107a75784895260059052808820805460ff1916600117905538610639565b8690606492519162461bcd60e51b8352820152601a6024820152792330b4b632b2103a379030b9b9b7b1b4b0ba32903a37b5b2b71760311b6044820152fd5b60c291501438610786565b9080945081813d831161081d575b6108098183610a39565b8101031261081957519238610779565b8880fd5b503d6107ff565b82513d8b823e3d90fd5b5082346101e457826003193601126101e4575061084f906024359035610bf7565b82516001600160a01b0390921682526020820152f35b5050346101f45781806101a761019961087d36610947565b88959395949194519485936020850197630aed65f560e11b895260248601611c40565b503461015a57602036600319011261015a5790519035606081901c82526001600160601b031660070b602082015260409150f35b5050346101f457816003193601126101f45760035490516001600160a01b039091168152602090f35b8490346101f457816003193601126101f4578063ffffffff60209252f35b600435906001600160a01b03821682036105db57565b602435906001600160a01b03821682036105db57565b60809060031901126105db576001600160a01b0360043581811681036105db579160243582811681036105db579160443590811681036105db579060643590565b6001600160401b03811161099b57604052565b634e487b7160e01b600052604160045260246000fd5b60c081019081106001600160401b0382111761099b57604052565b61012081019081106001600160401b0382111761099b57604052565b606081019081106001600160401b0382111761099b57604052565b60a081019081106001600160401b0382111761099b57604052565b602081019081106001600160401b0382111761099b57604052565b90601f801991011681019081106001600160401b0382111761099b57604052565b6001600160401b03811161099b57601f01601f191660200190565b929192610a8182610a5a565b91610a8f6040519384610a39565b8294818452818301116105db578281602093846000960137010152565b60005b838110610abf5750506000910152565b8181015183820152602001610aaf565b90602091610ae881518092818552858086019101610aac565b601f01601f1916010190565b6000546001600160a01b03163303610b0857565b60405163118cdaa760e01b8152336004820152602490fd5b6001600160a01b0391821681529116602082015260079190910b604082015260600190565b15610b4c57565b60405162461bcd60e51b81526020600482015260196024820152782330b4b632b2103a37903a3930b739b332b9103a37b5b2b71760391b6044820152606490fd5b15610b9457565b60405162461bcd60e51b81526020600482015260186024820152774661696c656420746f2067657420746f6b656e20696e666f60401b6044820152606490fd5b805115610be15760200190565b634e487b7160e01b600052603260045260246000fd5b6016929190610c2190610c1a906001600160601b03811660070b9060601c6111da565b9414610b8d565b60e0908184510151805115610d0657610c3b604091610bd4565b51015160070b15610c795750610c7060409160018060a01b0360a0610c638388510151610bd4565b5101511694510151610bd4565b51015160070b90565b929060018060a01b0360a0610c918385510151610bd4565b5101511691610ca38282510151610bd4565b515160070b94858102958187041490151715610cf057602091610cc891510151610bd4565b51015160070b908115610cda57920490565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b5050509050600090600090565b6001600160401b03811161099b5760051b60200190565b6040805191926001600160401b0391908382018381118582101761099b578252600180855260209160005b8381106110575750610d8483855183610d778295518092858086019101610aac565b8101038084520182610a39565b610d8d86610bd4565b52610d9785610bd4565b5060018060a01b03948560035416908451918483019363707a02cd60e11b8552608484019160248501526000604485015260606064850152825180925260a48401918660a48260051b8701019401926000905b8883831061102c575050505050509181610e1160009493859403601f198101835282610a39565b5190826101675af1610e21611066565b9060009015611010575080518101936060828487019603126105db57610e48838301611096565b91610e548582016110a4565b5060608101519182116105db57019380603f860112156105db5782850151610e7b81610d13565b95610e8886519788610a39565b818752858588019260051b8201019283116105db5785859101915b838310610ff857505050505b8460035416916016610ec086610bd4565b519285519360070b857fad84708d7ac2ada9581037062b2e2f5deafe013f421ab00b775fdddd98564103600080a360030b03610fbe575050610f129085610f0685610bd4565b5160070b913090611c6b565b9060b88214610f4d575090610f2c6016610f319314610b45565b610bd4565b5160070b911630600080516020611cfd833981519152600080a4565b929050610f668160049593955416916003541694610bd4565b5160070b90803b156105db57610f9694600080948651978895869485936313b87c7360e01b855260048501610b20565b03925af1908115610fb45750610fa95750565b610fb290610988565b565b513d6000823e3d90fd5b62461bcd60e51b82526004820152601660248201527502330b4b632b2103a379036b4b73a103a37b5b2b717160551b604482015260649150fd5b8190611003846110a4565b8152019101908490610ea3565b93505081519261101f84610a1e565b8084523681376015610eaf565b8061104886979860a39794959697198b82030186528951610acf565b97019201920190939291610dea565b60608782018501528301610d55565b3d15611091573d9061107782610a5a565b916110856040519384610a39565b82523d6000602084013e565b606090565b51908160030b82036105db57565b51908160070b82036105db57565b6040908151916110c1836109b1565b60a08382516110cf816109cc565b83516110da816109cc565b606094859283835283602084015260009683888481960152818082015284608082015284888201528460c08201528160e082015261010090845161111d816109e8565b86815286602082015286868201528282015283528460208401528484840152848284015284608084015281888401528160c08401528160e08401528201528452816020850152830152838183015260808201520152565b81601f820112156105db57805161118a81610a5a565b926111986040519485610a39565b818452602082840101116105db576111b69160208085019101610aac565b90565b51906001600160a01b03821682036105db57565b519081151582036105db57565b6000919061019961122684936111ee6110b2565b5060405163050fc3b560e31b602082019081526001600160a01b03909516602482015260079190910b60448201529182906064820190565b5190826101675af1611236611066565b60a0526112416110b2565b9015611c38575060a0515160a0510160c052604060a05160c05103126105db5761126f602060a05101611096565b604060a05101516080526001600160401b03608051116105db5760c060805160a05101815103126105db57604051906112a7826109b1565b602060805160a0510101516001600160401b0381116105db576101208160805160a051010160c05103126105db57604051906112e2826109cc565b60208160805160a051010101516001600160401b0381116105db57610160818360805160a05101010160c05103126105db5760405190611321826109cc565b6020818460805160a05101010101516001600160401b0381116105db5761135c9060208060c0510191848760805160a0510101010101611174565b82526040818460805160a05101010101516001600160401b0381116105db576113999060208060c0510191848760805160a0510101010101611174565b60208301526113b46060828560805160a051010101016111b9565b604083015260808184825160a05101010101516001600160401b0381116105db576113f39060208060c0510191848760805160a0510101010101611174565b606083015261140d60a082856080518351010101016111cd565b608083015261142860c0828560805160a051010101016110a4565b60a083015261144360e0828560805160a051010101016111cd565b60c0830152610100818460805160a05101010101516001600160401b0381116105db57602060c05101603f82848760805160a051010101010112156105db57602081838660805160a0510101010101519061149d82610d13565b916114ab6040519384610a39565b80835260208301602060c0510160408360051b85888b60805160a051010101010101116105db57604083868960805160a0510101010101905b60408360051b85888b60805160a0510101010101018210611a75575050505060e0830152606060ff19828560805160a05101010160c0510301126105db5761157a61016060405192611535846109e8565b61154c610120828860805160a051010101016110a4565b8452611565610140828860805160a051010101016111b9565b60208501528560805160a051010101016110a4565b6040820152610100820152825261159b60408260805160a0510101016110a4565b60208301526115b460608260805160a0510101016111cd565b60408301526115cc608082815160a0510101016111cd565b60608301526115e460a08260805182510101016111cd565b608083015260c08160805160a051010101516001600160401b0381116105db57602060c05101603f828460805160a0510101010112156105db576020818360805160a05101010101519061163782610d13565b916116456040519384610a39565b8083526020830191602060c05101604060a08402838860805160a0510101010101116105db57916040838660805160a05101010101925b604060a08402828860805160a051010101010184106119fa575050505060a083015260e08160805160a051010101516001600160401b0381116105db57602060c05101603f828460805160a0510101010112156105db576020818360805160a0510101010151906116ec82610d13565b916116fa6040519384610a39565b8083526020830191602060c05101604060c08402838860805160a0510101010101116105db57916040838660805160a05101010101925b604060c08402828860805160a0510101010101841061196f575050505060c08301526101008160805160a051010101516001600160401b0381116105db57602060c05101603f828460805160a0510101010112156105db576020818360805160a0510101010151906117a282610d13565b916117b06040519384610a39565b8083526020830191602060c05101604060c08402838860805160a0510101010101116105db57916040838660805160a05101010101925b604060c08402828860805160a051010101010184106118e4575050505060e08301526101208160805160a05101010151906001600160401b0382116105db576020611841928160c051019260805160a05101010101611174565b610100820152825261185b604060805160a05101016110a4565b6020830152611872606060805160a05101016111b9565b60408301526118886080805160a05101016110a4565b606083015260a060805181510101516001600160401b0381116105db576118bf9060208060c051019160805160a051010101611174565b60808301526118d660c060805160a05101016111b9565b60a0830152905b9060030b91565b60c060208582510301126105db5760c08060206040948551611905816109b1565b61190e896110a4565b815261191b838a016110a4565b8382015261192a878a016110a4565b8782015261193a60608a016111b9565b606082015261194b60808a016111cd565b608082015261195c60a08a016111b9565b60a08201528152019501949250506117e7565b60c060208582510301126105db5760c08060206040948551611990816109b1565b611999896110a4565b81526119a6838a016110a4565b838201526119b5878a016110a4565b878201526119c560608a016110a4565b60608201526119d660808a016111cd565b60808201526119e760a08a016111b9565b60a0820152815201950194925050611731565b60a060208560c0510301126105db5760a08060206040948551611a1c81610a03565b611a25896110a4565b8152611a32838a016111b9565b83820152611a41878a016111cd565b87820152611a5160608a016111cd565b6060820152611a6260808a016111b9565b608082015281520195019492505061167c565b8151906001600160401b0382116105db576040601f1983878a8d60805160a051010101010160c0510301126105db57604051908160408101106001600160401b0360408401111761099b5760408201604052604083878a8d60805160a051010101010101518252606083878a8d60805160a05101010101010151906001600160401b0382116105db5760a08b83868a8d601f1994608051875101010101010160c0510301126105db578a92608083868a8d60405198611b338a610a03565b611b4e604086868686868c5160a051010101010101016111cd565b8a52611b6b606086868686868c5160a051010101010101016111b9565b60208b0152855160a05101010101010101516001600160401b0381116105db5783868a8f8e90611bb760a0966040602060c051019188888888886080518f510101010101010101611174565b60408b015260805186510101010101010151936001600160401b0385116105db57611c2260c0602096958f988c8f60409b611c0b8c9b8e8d89510191888888888860805160a0510101010101010101611174565b606089015260805160a051010101010101016111b9565b60808201528382015281520192019190506114e4565b6015906118dd565b6001600160a01b03918216815291811660208301529091166040820152606081019190915260800190565b604051635cfc901160e01b602082019081526001600160a01b03928316602483015292821660448201529216606483015260079290920b6084808301919091528152611cb6816109b1565b6000809281925190826101675af190611ccd611066565b9115611cf3576020828051810103126101e457506020611ced9101611096565b60030b90565b50506015611ced56fecef55929759435389feb62e3ad30d90911d061d3eb8f8e3ead60622531745cc1a2646970667358221220d6ca725905ead11de026e010b72599a18027d892c21bc7bf60ff2709a96e538664736f6c63430008150033ee60d0579bcffd98e668647d59fec1ff86a7fb340ce572e844f234ae73a6918f"; - -type HederaNftConstructorParams = - | [signer?: Signer] - | ConstructorParameters; - -const isSuperArgs = ( - xs: HederaNftConstructorParams, -): xs is ConstructorParameters => xs.length > 1; - -export class HederaNft__factory extends ContractFactory { - constructor(...args: HederaNftConstructorParams) { - if (isSuperArgs(args)) { - super(...args); - } else { - super(_abi, _bytecode, args[0]); - } - } - - override getDeployTransaction( - name: string, - symbol: string, - owner: AddressLike, - claimContract: AddressLike, - royaltyNum: BigNumberish, - royaltyReceiver: AddressLike, - overrides?: PayableOverrides & { from?: string }, - ): Promise { - return super.getDeployTransaction( - name, - symbol, - owner, - claimContract, - royaltyNum, - royaltyReceiver, - overrides || {}, - ); - } - override deploy( - name: string, - symbol: string, - owner: AddressLike, - claimContract: AddressLike, - royaltyNum: BigNumberish, - royaltyReceiver: AddressLike, - overrides?: PayableOverrides & { from?: string }, - ) { - return super.deploy( - name, - symbol, - owner, - claimContract, - royaltyNum, - royaltyReceiver, - overrides || {}, - ) as Promise< - HederaNft & { - deploymentTransaction(): ContractTransactionResponse; - } - >; - } - override connect(runner: ContractRunner | null): HederaNft__factory { - return super.connect(runner) as HederaNft__factory; - } - - static readonly bytecode = _bytecode; - static readonly abi = _abi; - static createInterface(): HederaNftInterface { - return new Interface(_abi) as HederaNftInterface; - } - static connect(address: string, runner?: ContractRunner | null): HederaNft { - return new Contract(address, _abi, runner) as unknown as HederaNft; - } -} diff --git a/src/contractsTypes/evm/factories/contracts/NFTCollectionDeployer__factory.ts b/src/contractsTypes/evm/factories/contracts/NFTCollectionDeployer__factory.ts index 8acfb6d..a28dc33 100644 --- a/src/contractsTypes/evm/factories/contracts/NFTCollectionDeployer__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/NFTCollectionDeployer__factory.ts @@ -33,6 +33,19 @@ const _abi = [ name: "CreatedCollection", type: "event", }, + { + inputs: [], + name: "bridge", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [], name: "deployNFT1155Collection", @@ -90,6 +103,11 @@ const _abi = [ name: "_owner", type: "address", }, + { + internalType: "address", + name: "_bridge", + type: "address", + }, ], name: "setOwner", outputs: [], @@ -99,14 +117,14 @@ const _abi = [ ] as const; const _bytecode = - "0x6080806040523461001657613012908161001c8239f35b600080fdfe6080604081815260048036101561001557600080fd5b600092833560e01c90816313af403514610234575080638da5cb5b1461020c578063bcf11fd8146101065763f3b341ee1461004f57600080fd5b3461010257826003193601126101025782546001600160a01b03919082169061007933831461032f565b83519161178a8084019284841067ffffffffffffffff8511176100ef57509183916020936103b28439815203019084f080156100e3576020935016907f498b885ccb6cfb6192d597146a6881b03ad70ef20f3ec5d6e770df9eb894d9ab838251848152a151908152f35b505051903d90823e3d90fd5b634e487b7160e01b885260419052602487fd5b8280fd5b5091903461020857806003193601126102085767ffffffffffffffff83358181116102045761013890369086016102b1565b6024358281116102005761014f90369087016102b1565b84546001600160a01b0393919084169061016a33831461032f565b8551936114a1808601948511868610176101ed578594939261019e89936101ac93611b3c8939606087526060870190610371565b908582036020870152610371565b920152039084f080156100e3576020935016907f498b885ccb6cfb6192d597146a6881b03ad70ef20f3ec5d6e770df9eb894d9ab838251848152a151908152f35b634e487b7160e01b895260418a52602489fd5b8480fd5b8380fd5b5080fd5b505034610208578160031936011261020857905490516001600160a01b039091168152602090f35b92505034610102576020366003190112610102576001600160a01b0381358181169391929084900361020057845492831661027b5750506001600160a01b03191617815580f35b62461bcd60e51b825260209082015260126024820152714f776e657220616c7265616479207365742160701b6044820152606490fd5b81601f820112156103145780359067ffffffffffffffff928383116103195760405193601f8401601f19908116603f0116850190811185821017610319576040528284526020838301011161031457816000926020809301838601378301015290565b600080fd5b634e487b7160e01b600052604160045260246000fd5b1561033657565b60405162461bcd60e51b815260206004820152601360248201527213db9b1e481bdddb995c8818d85b8818d85b1b606a1b6044820152606490fd5b919082519283825260005b84811061039d575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161037c56fe6080346200018d576001600160401b0390601f6200178a38819003918201601f19168301918483118484101762000177578084926020946040528339810103126200018d57516001600160a01b0391828216918290036200018d57604051906020820190811182821017620001775760405260008091526002546001908181811c911680156200016c575b60208210146200015857601f81116200010e575b5050806002558115620000f657600380546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36115f79081620001938239f35b60249060405190631e4fbdf760e01b82526004820152fd5b60028352601f0160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace908101905b8181106200014d57506200009e565b83815582016200013e565b634e487b7160e01b83526022600452602483fd5b90607f16906200008a565b634e487b7160e01b600052604160045260246000fd5b600080fdfe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e146100f657806301ffc9a7146100f15780630e89341c146100ec578063162094c4146100e75780632a55205a146100e25780632eb2c2d6146100dd5780634e1273f4146100d8578063715018a6146100d35780638da5cb5b146100ce578063a22cb465146100c9578063a86c7b24146100c4578063e985e9c5146100bf578063f242432a146100ba5763f2fde38b146100b557600080fd5b610baa565b610ac8565b610a77565b61092e565b61087d565b610854565b6107e0565b610727565b6105b8565b610502565b6103eb565b610265565b6101a3565b610156565b600435906001600160a01b038216820361011157565b600080fd5b602435906001600160a01b038216820361011157565b608435906001600160a01b038216820361011157565b35906001600160a01b038216820361011157565b346101115760403660031901126101115760206101886101746100fb565b602435600052600083526040600020610c5e565b54604051908152f35b6001600160e01b031981160361011157565b346101115760203660031901126101115760206004356101c281610191565b63ffffffff60e01b16636cdb3d1360e11b8114908115610200575b81156101ef575b506040519015158152f35b6301ffc9a760e01b149050386101e4565b6303a24d0760e21b811491506101dd565b919082519283825260005b84811061023d575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161021c565b906020610262928181520190610211565b90565b346101115760208060031936011261011157600090600435825260068152604082209060405191838154906102998261146a565b8086529260019280841690811561030e57506001146102d3575b6102cf866102c3818a0382610368565b60405191829182610251565b0390f35b9080949650528483205b8284106102fb57505050816102cf936102c3928201019338806102b3565b80548585018701529285019281016102dd565b60ff19168787015250505050151560051b82010191506102c3816102cf38806102b3565b634e487b7160e01b600052604160045260246000fd5b602081019081106001600160401b0382111761036357604052565b610332565b90601f801991011681019081106001600160401b0382111761036357604052565b6001600160401b03811161036357601f01601f191660200190565b81601f82011215610111578035906103bb82610389565b926103c96040519485610368565b8284526020838301011161011157816000926020809301838601378301015290565b34610111576040366003190112610111576001600160401b036024358181116101115761041c9036906004016103a4565b90610425610c32565b600090600435825260209060068252604083209184519182116103635761045682610450855461146a565b856114a4565b80601f831160011461049757508190849561048794959261048c575b50508160011b916000199060031b1c19161790565b905580f35b015190503880610472565b90601f198316956104ad85600052602060002090565b9286905b8882106104ea575050836001959697106104d1575b505050811b01905580f35b015160001960f88460031b161c191690553880806104c6565b806001859682949686015181550195019301906104b1565b34610111576040366003190112610111576004356000526004602052604060018060a01b038160002054166005602052816000205482519182526020820152f35b6001600160401b0381116103635760051b60200190565b9080601f8301121561011157602090823561057481610543565b936105826040519586610368565b818552838086019260051b820101928311610111578301905b8282106105a9575050505090565b8135815290830190830161059b565b346101115760a0366003190112610111576105d16100fb565b6105d9610116565b90604435916001600160401b0390818411610111576105fd6004943690860161055a565b9060643583811161011157610615903690870161055a565b926084359081116101115761062d90369087016103a4565b936001600160a01b038082169033821415806106c0575b61068f5783161561067757156106605761065e9550610efb565b005b604051626a0d4560e21b8152600081880152602490fd5b604051632bfa23e760e11b8152600081890152602490fd5b6040805163711bec9160e11b815233818b019081526001600160a01b038616602082015290918291010390fd5b0390fd5b5081600052600160205260ff6106da336040600020610c5e565b541615610644565b90815180825260208080930193019160005b828110610702575050505090565b8351855293810193928101926001016106f4565b9060206102629281815201906106e2565b34610111576040366003190112610111576004356001600160401b03808211610111573660238301121561011157816004013561076381610543565b926107716040519485610368565b81845260209160248386019160051b8301019136831161011157602401905b8282106107c95785602435868111610111576102cf916107b76107bd92369060040161055a565b90610ce3565b60405191829182610716565b8380916107d584610142565b815201910190610790565b346101115760008060031936011261083e576107fa610c32565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b6001600160a01b03909116815260200190565b34610111576000366003190112610111576003546040516001600160a01b039091168152602090f35b34610111576040366003190112610111576108966100fb565b602435801515808203610111576001600160a01b038316928315610916576108cb903360005260016020526040600020610c5e565b9060ff801983541691161790557f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160405180610911339482919091602081019215159052565b0390a3005b60405162ced3e160e81b815260006004820152602490fd5b346101115760c0366003190112610111576109476100fb565b602435906064359061095761012c565b9260a4356001600160401b038111610111576109779036906004016103a4565b92610980610c32565b6127108111610a3f5760405161099581610348565b600081526001600160a01b03841615610a265761065e956109c96109fc92610a21966109c360443588611445565b91610d8d565b6109dd846000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b610a10826000526005602052604060002090565b556000526006602052604060002090565b6114f8565b604051632bfa23e760e11b815260006004820152602490fd5b60405162461bcd60e51b815260206004820152601060248201526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b3461011157604036600319011261011157602060ff610abc610a976100fb565b610a9f610116565b6001600160a01b0390911660009081526001855260409020610c5e565b54166040519015158152f35b346101115760a036600319011261011157610ae16100fb565b610ae9610116565b6084356001600160401b03811161011157610b089036906004016103a4565b906001600160a01b03838116903382141580610b88575b610b6157821615610a265715610b495761065e92610b41606435604435611445565b929091610efb565b604051626a0d4560e21b815260006004820152602490fd5b60405163711bec9160e11b81523360048201526001600160a01b0386166024820152604490fd5b5081600052600160205260ff610ba2336040600020610c5e565b541615610b1f565b3461011157602036600319011261011157610bc36100fb565b610bcb610c32565b6001600160a01b03908116908115610c1957600380546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b604051631e4fbdf760e01b815260006004820152602490fd5b6003546001600160a01b03163303610c4657565b60405163118cdaa760e01b8152336004820152602490fd5b9060018060a01b0316600052602052604060002090565b610c8b9160005260006020526040600020610c5e565b5490565b634e487b7160e01b600052601160045260246000fd5b6000198114610cb45760010190565b610c8f565b8051821015610ccd5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91909180518351808203610d6b575050805190610d18610d0283610543565b92610d106040519485610368565b808452610543565b60209190601f1901368484013760005b8151811015610d635780610d4e610d5e9260051b85808287010151918a01015190610c75565b610d588287610cb9565b52610ca5565b610d28565b509193505050565b604051635b05999160e01b815260048101919091526024810191909152604490fd5b908051835190818103610d6b57505060005b8151811015610e1057600581901b8281016020908101519186010151610dd9929185906001600160a01b038216610dde575b505050610ca5565b610d9f565b610e0691610df9610dfe926000526000602052604060002090565b610c5e565b9182546110f9565b9055388481610dd1565b50805191939291600103610eb2576020818101518382015160408051928352928201526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038416610e7c575b50505050565b8051600103610ea35790602080610e9a9593015191015191336111d4565b38808080610e76565b610ead93336113d9565b610e9a565b6040516001600160a01b0385169060009033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb9080610ef3888883611106565b0390a4610e67565b949190918151845190818103610d6b57505060005b825181101561100357600581901b83810160209081015191870101516001600160a01b03929186908a8516610f7c575b610f52948216610f5757505050610ca5565b610f10565b610f7291610df9610dfe926000526000602052604060002090565b9055388581610dd1565b9192939050610f998a610df9846000526000602052604060002090565b54838110610fcc5791879184610f5296959403610fc48d610df9856000526000602052604060002090565b559450610f40565b6040516303dee4c560e01b81526001600160a01b038c16600482015260248101919091526044810184905260648101839052608490fd5b5094919392909360018551146000146110ae576020858101518382015160408051928352928201526001600160a01b03838116929086169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038116611077575b5050505050565b845160010361109d5760208061109396015192015192336112c2565b3880808080611070565b6110a99491923361140e565b611093565b6040516001600160a01b03828116919085169033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb90806110f1888c83611106565b0390a4611061565b91908201809211610cb457565b909161111d610262936040845260408401906106e2565b9160208184039101526106e2565b90816020910312610111575161026281610191565b909260a0926102629594600180861b0316835260006020840152604083015260608201528160808201520190610211565b919261026295949160a094600180871b038092168552166020840152604083015260608201528160808201520190610211565b3d156111cf573d906111b582610389565b916111c36040519384610368565b82523d6000602084013e565b606090565b9293919093843b6111e6575050505050565b602091611209604051948593849363f23a6e6160e01b9889865260048601611140565b038160006001600160a01b0388165af160009181611292575b5061125b57826112306111a4565b805191908261125457604051632bfa23e760e11b8152806106bc8460048301610841565b9050602001fd5b6001600160e01b0319160361127557503880808080611070565b604051632bfa23e760e11b81529081906106bc9060048301610841565b6112b491925060203d81116112bb575b6112ac8183610368565b81019061112b565b9038611222565b503d6112a2565b939290949194853b6112d7575b505050505050565b6112fa602093604051958694859463f23a6e6160e01b998a875260048701611171565b038160006001600160a01b0388165af16000918161133c575b5061132157826112306111a4565b6001600160e01b0319160361127557503880808080806112cf565b61135591925060203d81116112bb576112ac8183610368565b9038611313565b9261138b61026295936113999360018060a01b031686526000602087015260a0604087015260a08601906106e2565b9084820360608601526106e2565b916080818403910152610211565b9390610262959361138b916113999460018060a01b03809216885216602087015260a0604087015260a08601906106e2565b9293919093843b6113eb575050505050565b602091611209604051948593849363bc197c8160e01b988986526004860161135c565b939290949194853b61142257505050505050565b6112fa602093604051958694859463bc197c8160e01b998a8752600487016113a7565b9160405192600184526020840152604083019160018352606084015260808301604052565b90600182811c9216801561149a575b602083101461148457565b634e487b7160e01b600052602260045260246000fd5b91607f1691611479565b90601f81116114b257505050565b600091825260208220906020601f850160051c830194106114ee575b601f0160051c01915b8281106114e357505050565b8181556001016114d7565b90925082906114ce565b91909182516001600160401b0381116103635761151f81611519845461146a565b846114a4565b602080601f83116001146115565750819061155293949560009261048c5750508160011b916000199060031b1c19161790565b9055565b90601f1983169561156c85600052602060002090565b926000905b8882106115a957505083600195969710611590575b505050811b019055565b015160001960f88460031b161c19169055388080611586565b8060018596829496860151815501950193019061157156fea2646970667358221220b2a59d66ee151aa06006a35cd502bbc0801d2ba4b2e0a37045ad13967c7205e664736f6c63430008150033608060405234620003a557620014a1803803806200001d81620003aa565b9283398101606082820312620003a55781516001600160401b039190828111620003a557816200004f918501620003d0565b60209182850151848111620003a5576040916200006e918701620003d0565b9401516001600160a01b03948582169491859003620003a5578251908282116200038f576000948554926001958685811c9516801562000384575b8386101462000370578190601f958681116200031d575b508390868311600114620002b9578992620002ad575b5050600019600383901b1c191690861b1786555b8151938411620002995784548581811c911680156200028e575b828210146200027a57908184869594931162000223575b5080928411600114620001bb57508592620001af575b5050600019600383901b1c191690821b1790555b81156200019757600780546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361105e9081620004438239f35b60249060405190631e4fbdf760e01b82526004820152fd5b01519050388062000131565b9190859450601f1984168588528388209388905b828210620002095750508411620001ef575b505050811b01905562000145565b015160001960f88460031b161c19169055388080620001e1565b8484015186558897909501949384019390810190620001cf565b90919293508587528187208480870160051c82019284881062000270575b9187968992969594930160051c01915b828110620002615750506200011b565b89815587965088910162000251565b9250819262000241565b634e487b7160e01b87526022600452602487fd5b90607f169062000104565b634e487b7160e01b86526041600452602486fd5b015190503880620000d6565b898052848a208994509190601f1984168b5b87828210620003065750508411620002ec575b505050811b018655620000ea565b015160001960f88460031b161c19169055388080620002de565b8385015186558c97909501949384019301620002cb565b9091508880528389208680850160051c82019286861062000366575b918a91869594930160051c01915b82811062000357575050620000c0565b8b81558594508a910162000347565b9250819262000339565b634e487b7160e01b88526022600452602488fd5b94607f1694620000a9565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200038f57604052565b919080601f84011215620003a55782516001600160401b0381116200038f5760209062000406601f8201601f19168301620003aa565b92818452828287010111620003a55760005b8181106200042e57508260009394955001015290565b85810183015184820184015282016200041856fe6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714610ac65750806306fdde0314610a34578063081812fc146109f9578063095ea7b31461091d57806323b872dd146109055780632a55205a146108c157806342842e0e146108985780634bd297fd146105995780636352211e1461056857806370a0823114610513578063715018a6146104b65780638da5cb5b1461048d57806395d89b41146103c0578063a22cb46514610323578063b88d4fde146102bc578063c87b56dd146101c7578063e985e9c5146101755763f2fde38b146100e957600080fd5b3461017157602036600319011261017157610102610b8c565b9061010b610c96565b6001600160a01b0391821692831561015b575050600780546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346101c357806003193601126101c35760ff81602093610195610b8c565b61019d610ba7565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b5080fd5b50903461017157602091826003193601126102b857356101e681610fed565b5083526006825280832092815180948290805461020281610cc2565b91828552600191888382169182600014610291575050600114610253575b50505061024f939291610234910386610c23565b815161023f81610bf2565b5251928284938452830190610b4c565b0390f35b8552868520879350859291905b828410610279575050508201018161023461024f610220565b8054848b018601528995508894909301928101610260565b60ff19168782015293151560051b86019093019350849250610234915061024f9050610220565b8380fd5b8382346101c35760803660031901126101c3576102d7610b8c565b6102df610ba7565b906064356001600160401b03811161031f573660238201121561031f5761031c9381602461031293369301359101610c5f565b9160443591610e9e565b80f35b8480fd5b50903461017157806003193601126101715761033d610b8c565b906024359182151580930361031f576001600160a01b03169283156103ab5750338452600560205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b836024925191630b61174360e31b8352820152fd5b82843461048a578060031936011261048a5781519182826001938454946103e686610cc2565b91828552602096878382169182600014610463575050600114610426575b50505061024f9291610417910385610c23565b51928284938452830190610b4c565b91908693508083528383205b82841061044b575050508201018161041761024f610404565b8054848a018601528895508794909301928101610432565b60ff19168782015293151560051b86019093019350849250610417915061024f9050610404565b80fd5b5050346101c357816003193601126101c35760075490516001600160a01b039091168152602090f35b833461048a578060031936011261048a576104cf610c96565b600780546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50913461048a57602036600319011261048a576001600160a01b03610536610b8c565b169283156105535750806020938392526003845220549051908152f35b91516322718ad960e21b815291820152602490fd5b50913461048a57602036600319011261048a575061058860209235610fed565b90516001600160a01b039091168152f35b50823461048a5760a036600319011261048a576105b4610b8c565b602493909260443591906001600160a01b039060643582811691883591839003610894576001600160401b036084358181116108905736602382011215610890576106079036908c818601359101610c5f565b98610610610c96565b612710881161085b5785169485156108455788999a847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef98999a528885888d60209b8c96600288528583205416918215159586610812575b84825260038952808220805460019081019091558683526002909952812080546001600160a01b0319908116909e17905580a46107fe57848b5260068852888b20938c519384116107ed5750506106bf8354610cc2565b601f81116107a7575b50869a601f83116001146107435782918b9c839260099b9c9d94610738575b50501b916000199060031b1c19161790555b7ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7848751838152a1875260088352848720918254161790555282205580f35b015192508d806106e7565b838b52878b20601f1984169c92939290918c8e5b811061079157508360099b9c9d9e10610778575b505050811b0190556106f9565b015160001960f88460031b161c191690558b808061076b565b81830151845592850192918a01918a018e610757565b838b52878b20601f840160051c8101918985106107e3575b601f0160051c019082905b8281106107d85750506106c8565b8c81550182906107ca565b90915081906107bf565b634e487b7160e01b8c52604190528afd5b88516339e3563760e11b81528085018c9052fd5b600086815260046020526040902080546001600160a01b0319169055838252600389528082208054600019019055610668565b8651633250574960e11b81528084018a90528b90fd5b865162461bcd60e51b81526020818501526010818d01526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b8880fd5b8680fd5b5050346101c35761031c906108ac36610bbd565b919251926108b984610bf2565b858452610e9e565b508290346101c357826003193601126101c357358152600860209081528282205460098252918390205492516001600160a01b039092168252810191909152604090f35b833461048a5761031c61091736610bbd565b91610cfc565b509034610171578060031936011261017157610937610b8c565b9160243561094481610fed565b331515806109e6575b806109bd575b6109a7576001600160a01b039485169482918691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258880a48452602052822080546001600160a01b031916909117905580f35b835163a9fbf51f60e01b81523381850152602490fd5b506001600160a01b03811686526005602090815284872033885290528386205460ff1615610953565b506001600160a01b03811633141561094d565b503461017157602036600319011261017157918260209335610a1a81610fed565b50825283528190205490516001600160a01b039091168152f35b82843461048a578060031936011261048a5781519182828354610a5681610cc2565b90818452602095600191878382169182600014610463575050600114610a895750505061024f9291610417910385610c23565b91908693508280528383205b828410610aae575050508201018161041761024f610404565b8054848a018601528895508794909301928101610a95565b92505034610171576020366003190112610171573563ffffffff60e01b81168091036101715760209250632483248360e11b8114908115610b09575b5015158152f35b6380ac58cd60e01b811491508115610b3b575b8115610b2a575b5038610b02565b6301ffc9a760e01b14905038610b23565b635b5e139f60e01b81149150610b1c565b919082519283825260005b848110610b78575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610b57565b600435906001600160a01b0382168203610ba257565b600080fd5b602435906001600160a01b0382168203610ba257565b6060906003190112610ba2576001600160a01b03906004358281168103610ba257916024359081168103610ba2579060443590565b602081019081106001600160401b03821117610c0d57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b03821117610c0d57604052565b6001600160401b038111610c0d57601f01601f191660200190565b929192610c6b82610c44565b91610c796040519384610c23565b829481845281830111610ba2578281602093846000960137010152565b6007546001600160a01b03163303610caa57565b60405163118cdaa760e01b8152336004820152602490fd5b90600182811c92168015610cf2575b6020831014610cdc57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610cd1565b6001600160a01b039182169290918315610e8557600092828452826020956002875260409684888820541696879133151580610dec575b509060027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9284610db9575b858352600381528b8320805460010190558683525289812080546001600160a01b0319168517905580a41692838303610d985750505050565b6064945051926364283d7b60e01b8452600484015260248301526044820152fd5b600087815260046020526040902080546001600160a01b0319169055848352600381528b83208054600019019055610d5f565b91939450915080610e44575b15610e0857859291879138610d33565b878688610e25576024915190637e27328960e01b82526004820152fd5b905163177e802f60e01b81523360048201526024810191909152604490fd5b503387148015610e69575b80610df85750858252600481523385898420541614610df8565b5086825260058152878220338352815260ff8883205416610e4f565b604051633250574960e11b815260006004820152602490fd5b610ea9838383610cfc565b813b610eb6575b50505050565b604051630a85bd0160e11b8082523360048301526001600160a01b03928316602483015260448201949094526080606482015260209592909116939092908390610f04906084830190610b4c565b039285816000958187895af1849181610fad575b50610f78575050503d600014610f70573d610f3281610c44565b90610f406040519283610c23565b81528091843d92013e5b80519283610f6b57604051633250574960e11b815260048101849052602490fd5b019050fd5b506060610f4a565b919450915063ffffffff60e01b1603610f95575038808080610eb0565b60249060405190633250574960e11b82526004820152fd5b9091508681813d8311610fe6575b610fc58183610c23565b8101031261031f57516001600160e01b03198116810361031f579038610f18565b503d610fbb565b6000818152600260205260409020546001600160a01b0316908115611010575090565b60249060405190637e27328960e01b82526004820152fdfea264697066735822122052aa700fff43b364278a2c834a4ba6862af62edf306969729726334c23855cd664736f6c63430008150033a2646970667358221220238cd639e77b068e0579aff3d908c9c83caa2eaeac497c5ffb0ffb32e3b7c85a64736f6c63430008150033"; + "0x6080806040523461001657613216908161001c8239f35b600080fdfe6080604081815260048036101561001557600080fd5b600092833560e01c908163299a7bcc14610273575080638da5cb5b1461024b578063bcf11fd814610143578063e78cea92146101165763f3b341ee1461005a57600080fd5b346101125782600319360112610112576001546001600160a01b03919061008490831633146103ce565b81845416908351916118468084019284841067ffffffffffffffff8511176100ff57509183916020936104498439815203019084f080156100f3576020935016907f498b885ccb6cfb6192d597146a6881b03ad70ef20f3ec5d6e770df9eb894d9ab838251848152a151908152f35b505051903d90823e3d90fd5b634e487b7160e01b885260419052602487fd5b8280fd5b50503461013f578160031936011261013f5760015490516001600160a01b039091168152602090f35b5080fd5b5091903461013f578060031936011261013f5767ffffffffffffffff8335818111610247576101759036908601610350565b6024358281116102435761018c9036908701610350565b6001546001600160a01b039391906101a790851633146103ce565b8386541690855193611552808601948686109086111761023057859493926101e189936101ef93611c8f8939606087526060870190610408565b908582036020870152610408565b920152039084f080156100f3576020935016907f498b885ccb6cfb6192d597146a6881b03ad70ef20f3ec5d6e770df9eb894d9ab838251848152a151908152f35b634e487b7160e01b895260418a52602489fd5b8480fd5b8380fd5b50503461013f578160031936011261013f57905490516001600160a01b039091168152602090f35b919050346102475782600319360112610247576001600160a01b03908035828116919082900361034c57602435948386168096036103485786549484861661031257506001549384166102d95750506001600160a01b0319928316178455161760015580f35b906020606492519162461bcd60e51b8352820152601360248201527242726964676520616c7265616479207365742160681b6044820152fd5b62461bcd60e51b815260208382015260126024820152714f776e657220616c7265616479207365742160701b6044820152606490fd5b8680fd5b8580fd5b81601f820112156103b35780359067ffffffffffffffff928383116103b85760405193601f8401601f19908116603f01168501908111858210176103b857604052828452602083830101116103b357816000926020809301838601378301015290565b600080fd5b634e487b7160e01b600052604160045260246000fd5b156103d557565b60405162461bcd60e51b815260206004820152600b60248201526a4e6f74206272696467652160a81b6044820152606490fd5b919082519283825260005b848110610434575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161041356fe6080346200018d576001600160401b0390601f6200184638819003918201601f19168301918483118484101762000177578084926020946040528339810103126200018d57516001600160a01b0391828216918290036200018d57604051906020820190811182821017620001775760405260008091526002546001908181811c911680156200016c575b60208210146200015857601f81116200010e575b5050806002558115620000f657600380546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36116b39081620001938239f35b60249060405190631e4fbdf760e01b82526004820152fd5b60028352601f0160051c7f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace908101905b8181106200014d57506200009e565b83815582016200013e565b634e487b7160e01b83526022600452602483fd5b90607f16906200008a565b634e487b7160e01b600052604160045260246000fd5b600080fdfe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461010657806301ffc9a7146101015780630e89341c146100fc578063162094c4146100f75780632a55205a146100f25780632eb2c2d6146100ed5780634e1273f4146100e8578063715018a6146100e35780638da5cb5b146100de578063a22cb465146100d9578063a86c7b24146100d4578063e78cea92146100cf578063e985e9c5146100ca578063f242432a146100c55763f2fde38b146100c057600080fd5b610c7d565b610b78565b610b1b565b610af2565b61094e565b610891565b610868565b610807565b61074d565b6105df565b610528565b610410565b610287565b6101c5565b610166565b600435906001600160a01b038216820361012157565b600080fd5b602435906001600160a01b038216820361012157565b608435906001600160a01b038216820361012157565b35906001600160a01b038216820361012157565b346101215760403660031901126101215760206101aa61018461010b565b6024356000526000835260406000209060018060a01b0316600052602052604060002090565b54604051908152f35b6001600160e01b031981160361012157565b346101215760203660031901126101215760206004356101e4816101b3565b63ffffffff60e01b16636cdb3d1360e11b8114908115610222575b8115610211575b506040519015158152f35b6301ffc9a760e01b14905038610206565b6303a24d0760e21b811491506101ff565b919082519283825260005b84811061025f575050826000602080949584010152601f8019910116010190565b60208183018101518483018201520161023e565b906020610284928181520190610233565b90565b346101215760208060031936011261012157600090600435825260068152604082209060405191838154906102bb82611525565b8086529260019280841690811561033057506001146102f5575b6102f1866102e5818a038261038b565b60405191829182610273565b0390f35b9080949650528483205b82841061031d57505050816102f1936102e5928201019338806102d5565b80548585018701529285019281016102ff565b60ff19168787015250505050151560051b82010191506102e5816102f138806102d5565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761038657604052565b610354565b90601f8019910116810190811067ffffffffffffffff82111761038657604052565b67ffffffffffffffff811161038657601f01601f191660200190565b81601f82011215610121578035906103e0826103ad565b926103ee604051948561038b565b8284526020838301011161012157816000926020809301838601378301015290565b346101215760403660031901126101215767ffffffffffffffff602435818111610121576104429036906004016103c9565b9061044b610d0b565b600090600435825260209060068252604083209184519182116103865761047c826104768554611525565b8561155f565b80601f83116001146104bd5750819084956104ad9495926104b2575b50508160011b916000199060031b1c19161790565b905580f35b015190503880610498565b90601f198316956104d385600052602060002090565b9286905b888210610510575050836001959697106104f7575b505050811b01905580f35b015160001960f88460031b161c191690553880806104ec565b806001859682949686015181550195019301906104d7565b34610121576040366003190112610121576004356000526004602052604060018060a01b038160002054166005602052816000205482519182526020820152f35b67ffffffffffffffff81116103865760051b60200190565b9080601f8301121561012157602090823561059b81610569565b936105a9604051958661038b565b818552838086019260051b820101928311610121578301905b8282106105d0575050505090565b813581529083019083016105c2565b346101215760a0366003190112610121576105f861010b565b610600610126565b906044359167ffffffffffffffff908184116101215761062560049436908601610581565b906064358381116101215761063d9036908701610581565b926084359081116101215761065590369087016103c9565b936001600160a01b038082169033821415806106e4575b6106b75783161561069f5715610688576106869550610fcf565b005b604051626a0d4560e21b8152600081880152602490fd5b604051632bfa23e760e11b8152600081890152602490fd5b6040805163711bec9160e11b815233818b019081526001600160a01b038616602082015290918291010390fd5b50600082815260016020908152604080832033845290915290205460ff161561066c565b90815180825260208080930193019160005b828110610728575050505090565b83518552938101939281019260010161071a565b906020610284928181520190610708565b346101215760403660031901126101215760043567ffffffffffffffff808211610121573660238301121561012157816004013561078a81610569565b92610798604051948561038b565b81845260209160248386019160051b8301019136831161012157602401905b8282106107f05785602435868111610121576102f1916107de6107e4923690600401610581565b90610d8b565b6040519182918261073c565b8380916107fc84610152565b8152019101906107b7565b346101215760008060031936011261086557610821610d0b565b600380546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b34610121576000366003190112610121576003546040516001600160a01b039091168152602090f35b34610121576040366003190112610121576108aa61010b565b602435801515808203610121576001600160a01b038316928315610936573360009081526001602090815260408083206001600160a01b039094168352929052209060ff801983541691161790557f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160405180610931339482919091602081019215159052565b0390a3005b60405162ced3e160e81b815260006004820152602490fd5b346101215760c03660031901126101215761096761010b565b602435906064359061097761013c565b9260a43567ffffffffffffffff8111610121576109989036906004016103c9565b6007549093906001600160a01b039081163303610abf576127108211610a8757604051906109c58261036a565b60008252841615610a6e5761068695610a11610a4492610a6996610a0b604435889160405192600184526020840152604083019160018352606084015260808301604052565b91610e4f565b610a25846000526004602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b610a58826000526005602052604060002090565b556000526006602052604060002090565b6115b3565b604051632bfa23e760e11b815260006004820152602490fd5b60405162461bcd60e51b815260206004820152601060248201526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b60405162461bcd60e51b815260206004820152600b60248201526a4e6f74206272696467652160a81b6044820152606490fd5b34610121576000366003190112610121576007546040516001600160a01b039091168152602090f35b3461012157604036600319011261012157602060ff610b6c610b3b61010b565b610b43610126565b6001600160a01b0391821660009081526001865260408082209290931681526020919091522090565b54166040519015158152f35b346101215760a036600319011261012157610b9161010b565b610b99610126565b60843567ffffffffffffffff811161012157610bb99036906004016103c9565b906001600160a01b03838116903382141580610c59575b610c3257821615610a6e5715610c1a5761068692610c126064356044359160405192600184526020840152604083019160018352606084015260808301604052565b929091610fcf565b604051626a0d4560e21b815260006004820152602490fd5b60405163711bec9160e11b81523360048201526001600160a01b0386166024820152604490fd5b50600082815260016020908152604080832033845290915290205460ff1615610bd0565b3461012157602036600319011261012157610c9661010b565b610c9e610d0b565b6001600160a01b03908116908115610cf257600354826bffffffffffffffffffffffff60a01b821617600355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b604051631e4fbdf760e01b815260006004820152602490fd5b6003546001600160a01b03163303610d1f57565b60405163118cdaa760e01b8152336004820152602490fd5b634e487b7160e01b600052601160045260246000fd5b6000198114610d5c5760010190565b610d37565b8051821015610d755760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91909180518351808203610e2d575050805190610dc0610daa83610569565b92610db8604051948561038b565b808452610569565b60209190601f1901368484013760005b8151811015610e2557600581901b8281018401519087018401516000908152602081815260408083206001600160a01b0390941683529290522054610e209190610e1a8287610d61565b52610d4d565b610dd0565b509193505050565b604051635b05999160e01b815260048101919091526024810191909152604490fd5b908051835190818103610e2d57505060005b8151811015610ee457600581901b8281016020908101519186010151610e9b929185906001600160a01b038216610ea0575b505050610d4d565b610e61565b610eda91610ebb610ed2926000526000602052604060002090565b9060018060a01b0316600052602052604060002090565b9182546111cd565b9055388481610e93565b50805191939291600103610f86576020818101518382015160408051928352928201526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b038416610f50575b50505050565b8051600103610f775790602080610f6e9593015191015191336112a8565b38808080610f4a565b610f8193336114b9565b610f6e565b6040516001600160a01b0385169060009033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb9080610fc78888836111da565b0390a4610f3b565b949190918151845190818103610e2d57505060005b82518110156110d757600581901b83810160209081015191870101516001600160a01b03929186908a8516611050575b61102694821661102b57505050610d4d565b610fe4565b61104691610ebb610ed2926000526000602052604060002090565b9055388581610e93565b919293905061106d8a610ebb846000526000602052604060002090565b548381106110a05791879184611026969594036110988d610ebb856000526000602052604060002090565b559450611014565b6040516303dee4c560e01b81526001600160a01b038c16600482015260248101919091526044810184905260648101839052608490fd5b509491939290936001855114600014611182576020858101518382015160408051928352928201526001600160a01b03838116929086169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6291a45b6001600160a01b03811661114b575b5050505050565b84516001036111715760208061116796015192015192336113a2565b3880808080611144565b61117d949192336114ee565b611167565b6040516001600160a01b03828116919085169033907f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb90806111c5888c836111da565b0390a4611135565b91908201809211610d5c57565b90916111f161028493604084526040840190610708565b916020818403910152610708565b908160209103126101215751610284816101b3565b909260a0926102849594600180861b0316835260006020840152604083015260608201528160808201520190610233565b919261028495949160a094600180871b038092168552166020840152604083015260608201528160808201520190610233565b3d156112a3573d90611289826103ad565b91611297604051938461038b565b82523d6000602084013e565b606090565b9293919093843b6112ba575050505050565b6020916112dd604051948593849363f23a6e6160e01b9889865260048601611214565b038160006001600160a01b0388165af160009181611372575b506113355782611304611278565b805191908261132e57604051632bfa23e760e11b81526001600160a01b0383166004820152602490fd5b9050602001fd5b6001600160e01b0319160361134f57503880808080611144565b604051632bfa23e760e11b81526001600160a01b03919091166004820152602490fd5b61139491925060203d811161139b575b61138c818361038b565b8101906111ff565b90386112f6565b503d611382565b939290949194853b6113b7575b505050505050565b6113da602093604051958694859463f23a6e6160e01b998a875260048701611245565b038160006001600160a01b0388165af16000918161141c575b506114015782611304611278565b6001600160e01b0319160361134f57503880808080806113af565b61143591925060203d811161139b5761138c818361038b565b90386113f3565b9261146b61028495936114799360018060a01b031686526000602087015260a0604087015260a0860190610708565b908482036060860152610708565b916080818403910152610233565b9390610284959361146b916114799460018060a01b03809216885216602087015260a0604087015260a0860190610708565b9293919093843b6114cb575050505050565b6020916112dd604051948593849363bc197c8160e01b988986526004860161143c565b939290949194853b61150257505050505050565b6113da602093604051958694859463bc197c8160e01b998a875260048701611487565b90600182811c92168015611555575b602083101461153f57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611534565b90601f811161156d57505050565b600091825260208220906020601f850160051c830194106115a9575b601f0160051c01915b82811061159e57505050565b818155600101611592565b9092508290611589565b919091825167ffffffffffffffff8111610386576115db816115d58454611525565b8461155f565b602080601f83116001146116125750819061160e9394956000926104b25750508160011b916000199060031b1c19161790565b9055565b90601f1983169561162885600052602060002090565b926000905b8882106116655750508360019596971061164c575b505050811b019055565b015160001960f88460031b161c19169055388080611642565b8060018596829496860151815501950193019061162d56fea26469706673582212203a7479ead71388733da02632e2d3b26712d5d7ee37431f1aa281c5368b9af3aa64736f6c63430008150033608060405234620003a55762001552803803806200001d81620003aa565b9283398101606082820312620003a55781516001600160401b039190828111620003a557816200004f918501620003d0565b60209182850151848111620003a5576040916200006e918701620003d0565b9401516001600160a01b03948582169491859003620003a5578251908282116200038f576000948554926001958685811c9516801562000384575b8386101462000370578190601f958681116200031d575b508390868311600114620002b9578992620002ad575b5050600019600383901b1c191690861b1786555b8151938411620002995784548581811c911680156200028e575b828210146200027a57908184869594931162000223575b5080928411600114620001bb57508592620001af575b5050600019600383901b1c191690821b1790555b81156200019757600780546001600160a01b0319811684179091556040519316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361110f9081620004438239f35b60249060405190631e4fbdf760e01b82526004820152fd5b01519050388062000131565b9190859450601f1984168588528388209388905b828210620002095750508411620001ef575b505050811b01905562000145565b015160001960f88460031b161c19169055388080620001e1565b8484015186558897909501949384019390810190620001cf565b90919293508587528187208480870160051c82019284881062000270575b9187968992969594930160051c01915b828110620002615750506200011b565b89815587965088910162000251565b9250819262000241565b634e487b7160e01b87526022600452602487fd5b90607f169062000104565b634e487b7160e01b86526041600452602486fd5b015190503880620000d6565b898052848a208994509190601f1984168b5b87828210620003065750508411620002ec575b505050811b018655620000ea565b015160001960f88460031b161c19169055388080620002de565b8385015186558c97909501949384019301620002cb565b9091508880528389208680850160051c82019286861062000366575b918a91869594930160051c01915b82811062000357575050620000c0565b8b81558594508a910162000347565b9250819262000339565b634e487b7160e01b88526022600452602488fd5b94607f1694620000a9565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200038f57604052565b919080601f84011215620003a55782516001600160401b0381116200038f5760209062000406601f8201601f19168301620003aa565b92818452828287010111620003a55760005b8181106200042e57508260009394955001015290565b85810183015184820184015282016200041856fe6080604081815260048036101561001557600080fd5b600092833560e01c90816301ffc9a714610b745750806306fdde0314610ac4578063081812fc14610a89578063095ea7b3146109ad57806323b872dd146109955780632a55205a1461095157806342842e0e146109285780634bd297fd146105f25780636352211e146105c157806370a082311461056c578063715018a61461050f5780638da5cb5b146104e657806395d89b41146103fb578063a22cb4651461035e578063b88d4fde146102f6578063c87b56dd14610201578063e78cea92146101d8578063e985e9c5146101865763f2fde38b146100f457600080fd5b346101825760203660031901126101825761010d610c3a565b90610116610d47565b6001600160a01b0391821692831561016c575050600754826bffffffffffffffffffffffff60a01b821617600755167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346101d457806003193601126101d45760ff816020936101a6610c3a565b6101ae610c55565b6001600160a01b0391821683526005875283832091168252855220549151911615158152f35b5080fd5b5050346101d457816003193601126101d457600a5490516001600160a01b039091168152602090f35b50903461018257602091826003193601126102f257356102208161109e565b5083526006825280832092815180948290805461023c81610d73565b918285526001918883821691826000146102cb57505060011461028d575b50505061028993929161026e910386610cd2565b815161027981610ca0565b5251928284938452830190610bfa565b0390f35b8552868520879350859291905b8284106102b3575050508201018161026e61028961025a565b8054848b01860152899550889490930192810161029a565b60ff19168782015293151560051b8601909301935084925061026e9150610289905061025a565b8380fd5b8382346101d45760803660031901126101d457610311610c3a565b610319610c55565b9060643567ffffffffffffffff811161035a573660238201121561035a576103579381602461034d93369301359101610d10565b9160443591610f4f565b80f35b8480fd5b509034610182578060031936011261018257610378610c3a565b906024359182151580930361035a576001600160a01b03169283156103e65750338452600560205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b836024925191630b61174360e31b8352820152fd5b8284346104e357806003193601126104e357815191828260019384549461042186610d73565b918285526020968783821691826000146104bc575050600114610461575b5050506102899291610452910385610cd2565b51928284938452830190610bfa565b91908693508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b8284106104a4575050508201018161045261028961043f565b8054848a01860152889550879490930192810161048b565b60ff19168782015293151560051b860190930193508492506104529150610289905061043f565b80fd5b5050346101d457816003193601126101d45760075490516001600160a01b039091168152602090f35b83346104e357806003193601126104e357610528610d47565b600780546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5091346104e35760203660031901126104e3576001600160a01b0361058f610c3a565b169283156105ac5750806020938392526003845220549051908152f35b91516322718ad960e21b815291820152602490fd5b5091346104e35760203660031901126104e357506105e16020923561109e565b90516001600160a01b039091168152f35b5082346104e35760a03660031901126104e35761060d610c3a565b602493909260443591906001600160a01b0390606435828116918835918390036109245767ffffffffffffffff6084358181116109205736602382011215610920576106619036908c818601359101610d10565b9885600a541633036108f05761271088116108bb5785169485156108a55788999a847fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef98999a528885888d60209b8c96600288528583205416918215159586610872575b8482526003895260028183209960019a8b81540190558784525281206bffffffffffffffffffffffff60a01b9d8e82541617905580a461085e57848b5260068852888b20938c5193841161084d57505061071f8354610d73565b601f8111610807575b50869a601f83116001146107a35782918b9c839260099b9c9d94610798575b50501b916000199060031b1c19161790555b7ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7848751838152a1875260088352848720918254161790555282205580f35b015192508d80610747565b838b52878b20601f1984169c92939290918c8e5b81106107f157508360099b9c9d9e106107d8575b505050811b019055610759565b015160001960f88460031b161c191690558b80806107cb565b81830151845592850192918a01918a018e6107b7565b838b52878b20601f840160051c810191898510610843575b601f0160051c019082905b828110610838575050610728565b8c815501829061082a565b909150819061081f565b634e487b7160e01b8c52604190528afd5b88516339e3563760e11b81528085018c9052fd5b600086815260046020526040902080546001600160a01b03191690558382526003895280822080546000190190556106c5565b8651633250574960e11b81528084018a90528b90fd5b865162461bcd60e51b81526020818501526010818d01526f0a4def2c2d8e8f240e8dede40d0d2ced60831b6044820152606490fd5b865162461bcd60e51b8152602081850152600b818d01526a4e6f74206272696467652160a81b6044820152606490fd5b8880fd5b8680fd5b5050346101d4576103579061093c36610c6b565b9192519261094984610ca0565b858452610f4f565b508290346101d457826003193601126101d457358152600860209081528282205460098252918390205492516001600160a01b039092168252810191909152604090f35b83346104e3576103576109a736610c6b565b91610dad565b5090346101825780600319360112610182576109c7610c3a565b916024356109d48161109e565b33151580610a76575b80610a4d575b610a37576001600160a01b039485169482918691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258880a48452602052822080546001600160a01b031916909117905580f35b835163a9fbf51f60e01b81523381850152602490fd5b506001600160a01b03811686526005602090815284872033885290528386205460ff16156109e3565b506001600160a01b0381163314156109dd565b503461018257602036600319011261018257918260209335610aaa8161109e565b50825283528190205490516001600160a01b039091168152f35b8284346104e357806003193601126104e35781519182828354610ae681610d73565b908184526020956001918783821691826000146104bc575050600114610b19575050506102899291610452910385610cd2565b91908693508280527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b828410610b5c575050508201018161045261028961043f565b8054848a018601528895508794909301928101610b43565b92505034610182576020366003190112610182573563ffffffff60e01b81168091036101825760209250632483248360e11b8114908115610bb7575b5015158152f35b6380ac58cd60e01b811491508115610be9575b8115610bd8575b5038610bb0565b6301ffc9a760e01b14905038610bd1565b635b5e139f60e01b81149150610bca565b919082519283825260005b848110610c26575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610c05565b600435906001600160a01b0382168203610c5057565b600080fd5b602435906001600160a01b0382168203610c5057565b6060906003190112610c50576001600160a01b03906004358281168103610c5057916024359081168103610c50579060443590565b6020810190811067ffffffffffffffff821117610cbc57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610cbc57604052565b67ffffffffffffffff8111610cbc57601f01601f191660200190565b929192610d1c82610cf4565b91610d2a6040519384610cd2565b829481845281830111610c50578281602093846000960137010152565b6007546001600160a01b03163303610d5b57565b60405163118cdaa760e01b8152336004820152602490fd5b90600182811c92168015610da3575b6020831014610d8d57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610d82565b6001600160a01b039182169290918315610f3657600092828452826020956002875260409684888820541696879133151580610e9d575b509060027fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9284610e6a575b858352600381528b8320805460010190558683525289812080546001600160a01b0319168517905580a41692838303610e495750505050565b6064945051926364283d7b60e01b8452600484015260248301526044820152fd5b600087815260046020526040902080546001600160a01b0319169055848352600381528b83208054600019019055610e10565b91939450915080610ef5575b15610eb957859291879138610de4565b878688610ed6576024915190637e27328960e01b82526004820152fd5b905163177e802f60e01b81523360048201526024810191909152604490fd5b503387148015610f1a575b80610ea95750858252600481523385898420541614610ea9565b5086825260058152878220338352815260ff8883205416610f00565b604051633250574960e11b815260006004820152602490fd5b610f5a838383610dad565b813b610f67575b50505050565b604051630a85bd0160e11b8082523360048301526001600160a01b03928316602483015260448201949094526080606482015260209592909116939092908390610fb5906084830190610bfa565b039285816000958187895af184918161105e575b50611029575050503d600014611021573d610fe381610cf4565b90610ff16040519283610cd2565b81528091843d92013e5b8051928361101c57604051633250574960e11b815260048101849052602490fd5b019050fd5b506060610ffb565b919450915063ffffffff60e01b1603611046575038808080610f61565b60249060405190633250574960e11b82526004820152fd5b9091508681813d8311611097575b6110768183610cd2565b8101031261035a57516001600160e01b03198116810361035a579038610fc9565b503d61106c565b6000818152600260205260409020546001600160a01b03169081156110c1575090565b60249060405190637e27328960e01b82526004820152fdfea26469706673582212205498df222d6a049e5faa9dcb6a0c003fd39ed321a4b100862b5928f7bfb8e54e64736f6c63430008150033a2646970667358221220424b88577817fafc7c61f2563504833f1c0e0087d8ae9affba6019da6078829064736f6c63430008150033"; type NFTCollectionDeployerConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: NFTCollectionDeployerConstructorParams, + xs: NFTCollectionDeployerConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class NFTCollectionDeployer__factory extends ContractFactory { @@ -119,7 +137,7 @@ export class NFTCollectionDeployer__factory extends ContractFactory { } override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction(overrides || {}); } @@ -131,7 +149,7 @@ export class NFTCollectionDeployer__factory extends ContractFactory { >; } override connect( - runner: ContractRunner | null, + runner: ContractRunner | null ): NFTCollectionDeployer__factory { return super.connect(runner) as NFTCollectionDeployer__factory; } @@ -143,12 +161,12 @@ export class NFTCollectionDeployer__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): NFTCollectionDeployer { return new Contract( address, _abi, - runner, + runner ) as unknown as NFTCollectionDeployer; } } diff --git a/src/contractsTypes/evm/factories/contracts/NFTStorageDeployer__factory.ts b/src/contractsTypes/evm/factories/contracts/NFTStorageDeployer__factory.ts index aee6062..6bdba20 100644 --- a/src/contractsTypes/evm/factories/contracts/NFTStorageDeployer__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/NFTStorageDeployer__factory.ts @@ -87,14 +87,14 @@ const _abi = [ ] as const; const _bytecode = - "0x6080806040523461001657610e41908161001c8239f35b600080fdfe6040608081526004908136101561001557600080fd5b600091823560e01c806311d5db80146101ab57806313af40351461012d5780638da5cb5b14610101576399a7ce6d1461004d57600080fd5b346100fd5760203660031901126100fd576001600160a01b0390803582811681036100f9578285541690610082823314610226565b84519261068c8085019185831067ffffffffffffffff8411176100e65750918493916100c79361026986396001600160a01b0391821681529116602082015260400190565b039084f09182156100dd57602093505191168152f35b513d84823e3d90fd5b634e487b7160e01b895260419052602488fd5b8480fd5b8280fd5b505034610129578160031936011261012957905490516001600160a01b039091168152602090f35b5080fd5b5090346100fd5760203660031901126100fd576001600160a01b038235818116939192908490036100f95784549283166101735750506001600160a01b03191617815580f35b906020606492519162461bcd60e51b835282015260126024820152714f776e657220616c7265616479207365742160701b6044820152fd5b50346100fd5760203660031901126100fd576001600160a01b0390803582811681036100f95782855416906101e1823314610226565b8451926105178085019185831067ffffffffffffffff8411176100e65750918493916100c7936108f586396001600160a01b0391821681529116602082015260400190565b1561022d57565b60405162461bcd60e51b815260206004820152601360248201527213db9b1e481bdddb995c8818d85b8818d85b1b606a1b6044820152606490fdfe60803461008b57601f61068c38819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b031992836000541617600055169060015416176001556040516105d190816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060409080825260048036101561001657600080fd5b600091823560e01c90816301ffc9a714610383575080636aa003711461035a5780638da5cb5b146103325780639d2d04d1146102a7578063bc197c8114610220578063f23a6e61146101ca5763fead48171461007157600080fd5b346101c65760603660031901126101c657604435926024359180356001600160a01b0380871687036101c1576100ab81875416331461050d565b600154168351627eeac760e11b81523084820152826024820152602081604481855afa9081156101b7579086918891610183575b5010610143578596813b1561013f57868094610110875198899687958694637921219560e11b865230908601610567565b03925af190811561013657506101235750f35b61012c90610407565b6101335780f35b80fd5b513d84823e3d90fd5b8680fd5b835162461bcd60e51b8152602081850152601a602482015279496e73756666696369656e7420746f6b656e2062616c616e636560301b6044820152606490fd5b9150506020813d82116101af575b8161019e60209383610430565b8101031261013f57859051386100df565b3d9150610191565b85513d89823e3d90fd5b600080fd5b5080fd5b509190346101335760a0366003190112610133576101e66103db565b506101ef6103f1565b50608435906001600160401b0382116101335750602092610212913691016104b7565b505163f23a6e6160e01b8152f35b509190346101335760a03660031901126101335761023c6103db565b506102456103f1565b506001600160401b03906044358281116101c6576102669036908601610451565b506064358281116101c65761027e9036908601610451565b506084359182116101335750602092610299913691016104b7565b505163bc197c8160e01b8152f35b509181923461032e578160031936011261032e5782546001600160a01b03906102d3908216331461050d565b6001541690813b15610329578391610309918451958680948193637921219560e11b835260243590803590309033908601610567565b03925af1908115610136575061031d575080f35b61032690610407565b80f35b505050fd5b5050fd5b8284346101c657816003193601126101c657905490516001600160a01b039091168152602090f35b8284346101c657816003193601126101c65760015490516001600160a01b039091168152602090f35b919050346103d75760203660031901126103d7573563ffffffff60e01b81168091036103d75760209250630271189760e51b81149081156103c6575b5015158152f35b6301ffc9a760e01b149050836103bf565b8280fd5b600435906001600160a01b03821682036101c157565b602435906001600160a01b03821682036101c157565b6001600160401b03811161041a57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761041a57604052565b81601f820112156101c1578035916020916001600160401b03841161041a578360051b906040519461048585840187610430565b855283808601928201019283116101c1578301905b8282106104a8575050505090565b8135815290830190830161049a565b81601f820112156101c1578035906001600160401b03821161041a57604051926104eb601f8401601f191660200185610430565b828452602083830101116101c157816000926020809301838601378301015290565b1561051457565b60405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152608490fd5b929060c0949260018060a01b0380921685521660208401526040830152606082015260a06080820152600060a0820152019056fea26469706673582212204363f44f8267d9d5016aae665da980d06ba7d814fba8dc3f8fb6410672541ebc64736f6c6343000815003360803461008b57601f61051738819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b0319928360005416176000551690600154161760015560405161045c90816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060408181526004918236101561001657600080fd5b600092833560e01c918263150b7a02146102e857508382636215be7714610271575081636aa00371146102485781637326afe0146100885750638da5cb5b1461005e57600080fd5b34610084578160031936011261008457905490516001600160a01b039091168152602090f35b5080fd5b839150346100845782600319360112610084578035926100a661039d565b83546001600160a01b039591939190861633036101f75760015483516331a9108f60e11b8152838101839052908716966020826024818b5afa9182156101ed5787926101ad575b5030911603610155578585963b156101515761012294868094865197889586948593632142170760e11b855230908501610404565b03925af190811561014857506101355750f35b61013e906103b8565b6101455780f35b80fd5b513d84823e3d90fd5b8580fd5b506020608492519162461bcd60e51b8352820152602c60248201527f5468697320636f6e7472616374206973206e6f7420746865206f776e6572206f60448201526b33103a3434b9903a37b5b2b760a11b6064820152fd5b9091506020813d82116101e5575b816101c8602093836103e2565b810103126101e1575181811681036101e15790886100ed565b8680fd5b3d91506101bb565b85513d89823e3d90fd5b506020608492519162461bcd60e51b8352820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152fd5b50503461008457816003193601126100845760015490516001600160a01b039091168152602090f35b929150346102e45760203660031901126102e4576001546001600160a01b031690813b156102df5783916102bf918451958680948193632142170760e11b8352803590309033908501610404565b03925af190811561014857506102d3575080f35b6102dc906103b8565b80f35b505050fd5b5050fd5b939150346100845760803660031901126100845780356001600160a01b038116036100845761031561039d565b5060643567ffffffffffffffff91828211610399573660238301121561039957818101359283116103865750610355601f8301601f1916602001866103e2565b818552366024838301011161038257906020948160248794018483013701015251630a85bd0160e11b8152f35b8280fd5b634e487b7160e01b845260419052602483fd5b8380fd5b602435906001600160a01b03821682036103b357565b600080fd5b67ffffffffffffffff81116103cc57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176103cc57604052565b6001600160a01b0391821681529116602082015260408101919091526060019056fea26469706673582212207cd8c5566a27a881787903cf3384fb6b0f264ad8040e382add34e2f23823b00c64736f6c63430008150033a2646970667358221220b08be34cb028f459ed8ce8f6376eebb4cc17edc93ba984d26cc1f06ad258f0b264736f6c63430008150033"; + "0x6080806040523461001657610e5a908161001c8239f35b600080fdfe6040608081526004908136101561001557600080fd5b600091823560e01c806311d5db80146101ab57806313af40351461012d5780638da5cb5b14610101576399a7ce6d1461004d57600080fd5b346100fd5760203660031901126100fd576001600160a01b0390803582811681036100f9578285541690610082823314610226565b8451926106aa8085019185831067ffffffffffffffff8411176100e65750918493916100c79361026986396001600160a01b0391821681529116602082015260400190565b039084f09182156100dd57602093505191168152f35b513d84823e3d90fd5b634e487b7160e01b895260419052602488fd5b8480fd5b8280fd5b505034610129578160031936011261012957905490516001600160a01b039091168152602090f35b5080fd5b5090346100fd5760203660031901126100fd576001600160a01b038235818116939192908490036100f95784549283166101735750506001600160a01b03191617815580f35b906020606492519162461bcd60e51b835282015260126024820152714f776e657220616c7265616479207365742160701b6044820152fd5b50346100fd5760203660031901126100fd576001600160a01b0390803582811681036100f95782855416906101e1823314610226565b8451926105128085019185831067ffffffffffffffff8411176100e65750918493916100c79361091386396001600160a01b0391821681529116602082015260400190565b1561022d57565b60405162461bcd60e51b815260206004820152601360248201527213db9b1e481bdddb995c8818d85b8818d85b1b606a1b6044820152606490fdfe60803461008b57601f6106aa38819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b031992836000541617600055169060015416176001556040516105ef90816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060409080825260048036101561001657600080fd5b600091823560e01c90816301ffc9a7146103d1575080636aa00371146103a85780638da5cb5b146103805780639d2d04d1146102db578063bc197c8114610253578063f23a6e61146101fc5763fead48171461007157600080fd5b346101f85760603660031901126101f857604435926024359180356001600160a01b0380871687036101f3576100ab81875416331461055f565b600154168351627eeac760e11b81523084820152826024820152602081604481855afa9081156101e95790869188916101b5575b5010610172578596813b1561016e578451637921219560e11b8152309481019485526001600160a01b0390911660208501526040840192909252606083019490945260a06080830181905260009083015292849184919082908490829060c00103925af190811561016557506101525750f35b61015b90610455565b6101625780f35b80fd5b513d84823e3d90fd5b8680fd5b835162461bcd60e51b8152602081850152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e63650000000000006044820152606490fd5b9150506020813d82116101e1575b816101d06020938361047f565b8101031261016e57859051386100df565b3d91506101c3565b85513d89823e3d90fd5b600080fd5b5080fd5b509190346101625760a036600319011261016257610218610429565b5061022161043f565b506084359067ffffffffffffffff8211610162575060209261024591369101610508565b505163f23a6e6160e01b8152f35b509190346101625760a03660031901126101625761026f610429565b5061027861043f565b5067ffffffffffffffff906044358281116101f85761029a90369086016104a1565b506064358281116101f8576102b290369086016104a1565b5060843591821161016257506020926102cd91369101610508565b505163bc197c8160e01b8152f35b509181923461037c578160031936011261037c5782546001600160a01b0390610307908216331461055f565b6001541690813b15610377578251637921219560e11b81523381830190815230602082015291356040830152602435606083015260a0608083018190526000908301529391849182908490829060c00103925af1908115610165575061036b575080f35b61037490610455565b80f35b505050fd5b5050fd5b8284346101f857816003193601126101f857905490516001600160a01b039091168152602090f35b8284346101f857816003193601126101f85760015490516001600160a01b039091168152602090f35b91905034610425576020366003190112610425573563ffffffff60e01b81168091036104255760209250630271189760e51b8114908115610414575b5015158152f35b6301ffc9a760e01b1490508361040d565b8280fd5b600435906001600160a01b03821682036101f357565b602435906001600160a01b03821682036101f357565b67ffffffffffffffff811161046957604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761046957604052565b81601f820112156101f35780359160209167ffffffffffffffff8411610469578360051b90604051946104d68584018761047f565b855283808601928201019283116101f3578301905b8282106104f9575050505090565b813581529083019083016104eb565b81601f820112156101f35780359067ffffffffffffffff8211610469576040519261053d601f8401601f19166020018561047f565b828452602083830101116101f357816000926020809301838601378301015290565b1561056657565b60405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152608490fdfea2646970667358221220678d9b19ba939a17c9b0cb99144fcae6f3c8da97c6d99f483f962d7ec3d4a39f64736f6c6343000815003360803461008b57601f61051238819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b0319928360005416176000551690600154161760015560405161045790816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060408181526004918236101561001657600080fd5b600092833560e01c918263150b7a021461030557508382636215be7714610287575081636aa003711461025e5781637326afe0146100885750638da5cb5b1461005e57600080fd5b34610084578160031936011261008457905490516001600160a01b039091168152602090f35b5080fd5b839150346100845782600319360112610084578035926100a66103ba565b83546001600160a01b0395919391908616330361020d5760015483516331a9108f60e11b8152838101839052908716966020826024818b5afa9182156102035787926101c3575b503091160361016b578585963b15610167578351632142170760e11b8152309381019384526001600160a01b0390951660208401526040830191909152849184919082908490829060600103925af190811561015e575061014b5750f35b610154906103d5565b61015b5780f35b80fd5b513d84823e3d90fd5b8580fd5b506020608492519162461bcd60e51b8352820152602c60248201527f5468697320636f6e7472616374206973206e6f7420746865206f776e6572206f60448201526b33103a3434b9903a37b5b2b760a11b6064820152fd5b9091506020813d82116101fb575b816101de602093836103ff565b810103126101f7575181811681036101f75790886100ed565b8680fd5b3d91506101d1565b85513d89823e3d90fd5b506020608492519162461bcd60e51b8352820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152fd5b50503461008457816003193601126100845760015490516001600160a01b039091168152602090f35b92915034610301576020366003190112610301576001546001600160a01b031690813b156102fc578251632142170760e11b815233818301908152306020820152913560408301529391849182908490829060600103925af190811561015e57506102f0575080f35b6102f9906103d5565b80f35b505050fd5b5050fd5b939150346100845760803660031901126100845780356001600160a01b03811603610084576103326103ba565b5060643567ffffffffffffffff918282116103b657366023830112156103b657818101359283116103a35750610372601f8301601f1916602001866103ff565b818552366024838301011161039f57906020948160248794018483013701015251630a85bd0160e11b8152f35b8280fd5b634e487b7160e01b845260419052602483fd5b8380fd5b602435906001600160a01b03821682036103d057565b600080fd5b67ffffffffffffffff81116103e957604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176103e95760405256fea2646970667358221220bdcc2ad72f5d5753b02116819cd11d95b714524aa9e455048961c85032c7148664736f6c63430008150033a264697066735822122091472d9bf15eefdfcba4c6a2c437f55b9ca0d3f1f0daf8a8ab02973febd0015464736f6c63430008150033"; type NFTStorageDeployerConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: NFTStorageDeployerConstructorParams, + xs: NFTStorageDeployerConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class NFTStorageDeployer__factory extends ContractFactory { @@ -107,7 +107,7 @@ export class NFTStorageDeployer__factory extends ContractFactory { } override getDeployTransaction( - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction(overrides || {}); } @@ -129,7 +129,7 @@ export class NFTStorageDeployer__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): NFTStorageDeployer { return new Contract(address, _abi, runner) as unknown as NFTStorageDeployer; } diff --git a/src/contractsTypes/evm/factories/contracts/NFTStorageERC1155__factory.ts b/src/contractsTypes/evm/factories/contracts/NFTStorageERC1155__factory.ts index 4aec944..9a2fcf7 100644 --- a/src/contractsTypes/evm/factories/contracts/NFTStorageERC1155__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/NFTStorageERC1155__factory.ts @@ -203,14 +203,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60803461008b57601f61068c38819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b031992836000541617600055169060015416176001556040516105d190816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060409080825260048036101561001657600080fd5b600091823560e01c90816301ffc9a714610383575080636aa003711461035a5780638da5cb5b146103325780639d2d04d1146102a7578063bc197c8114610220578063f23a6e61146101ca5763fead48171461007157600080fd5b346101c65760603660031901126101c657604435926024359180356001600160a01b0380871687036101c1576100ab81875416331461050d565b600154168351627eeac760e11b81523084820152826024820152602081604481855afa9081156101b7579086918891610183575b5010610143578596813b1561013f57868094610110875198899687958694637921219560e11b865230908601610567565b03925af190811561013657506101235750f35b61012c90610407565b6101335780f35b80fd5b513d84823e3d90fd5b8680fd5b835162461bcd60e51b8152602081850152601a602482015279496e73756666696369656e7420746f6b656e2062616c616e636560301b6044820152606490fd5b9150506020813d82116101af575b8161019e60209383610430565b8101031261013f57859051386100df565b3d9150610191565b85513d89823e3d90fd5b600080fd5b5080fd5b509190346101335760a0366003190112610133576101e66103db565b506101ef6103f1565b50608435906001600160401b0382116101335750602092610212913691016104b7565b505163f23a6e6160e01b8152f35b509190346101335760a03660031901126101335761023c6103db565b506102456103f1565b506001600160401b03906044358281116101c6576102669036908601610451565b506064358281116101c65761027e9036908601610451565b506084359182116101335750602092610299913691016104b7565b505163bc197c8160e01b8152f35b509181923461032e578160031936011261032e5782546001600160a01b03906102d3908216331461050d565b6001541690813b15610329578391610309918451958680948193637921219560e11b835260243590803590309033908601610567565b03925af1908115610136575061031d575080f35b61032690610407565b80f35b505050fd5b5050fd5b8284346101c657816003193601126101c657905490516001600160a01b039091168152602090f35b8284346101c657816003193601126101c65760015490516001600160a01b039091168152602090f35b919050346103d75760203660031901126103d7573563ffffffff60e01b81168091036103d75760209250630271189760e51b81149081156103c6575b5015158152f35b6301ffc9a760e01b149050836103bf565b8280fd5b600435906001600160a01b03821682036101c157565b602435906001600160a01b03821682036101c157565b6001600160401b03811161041a57604052565b634e487b7160e01b600052604160045260246000fd5b90601f801991011681019081106001600160401b0382111761041a57604052565b81601f820112156101c1578035916020916001600160401b03841161041a578360051b906040519461048585840187610430565b855283808601928201019283116101c1578301905b8282106104a8575050505090565b8135815290830190830161049a565b81601f820112156101c1578035906001600160401b03821161041a57604051926104eb601f8401601f191660200185610430565b828452602083830101116101c157816000926020809301838601378301015290565b1561051457565b60405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152608490fd5b929060c0949260018060a01b0380921685521660208401526040830152606082015260a06080820152600060a0820152019056fea26469706673582212204363f44f8267d9d5016aae665da980d06ba7d814fba8dc3f8fb6410672541ebc64736f6c63430008150033"; + "0x60803461008b57601f6106aa38819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b031992836000541617600055169060015416176001556040516105ef90816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060409080825260048036101561001657600080fd5b600091823560e01c90816301ffc9a7146103d1575080636aa00371146103a85780638da5cb5b146103805780639d2d04d1146102db578063bc197c8114610253578063f23a6e61146101fc5763fead48171461007157600080fd5b346101f85760603660031901126101f857604435926024359180356001600160a01b0380871687036101f3576100ab81875416331461055f565b600154168351627eeac760e11b81523084820152826024820152602081604481855afa9081156101e95790869188916101b5575b5010610172578596813b1561016e578451637921219560e11b8152309481019485526001600160a01b0390911660208501526040840192909252606083019490945260a06080830181905260009083015292849184919082908490829060c00103925af190811561016557506101525750f35b61015b90610455565b6101625780f35b80fd5b513d84823e3d90fd5b8680fd5b835162461bcd60e51b8152602081850152601a60248201527f496e73756666696369656e7420746f6b656e2062616c616e63650000000000006044820152606490fd5b9150506020813d82116101e1575b816101d06020938361047f565b8101031261016e57859051386100df565b3d91506101c3565b85513d89823e3d90fd5b600080fd5b5080fd5b509190346101625760a036600319011261016257610218610429565b5061022161043f565b506084359067ffffffffffffffff8211610162575060209261024591369101610508565b505163f23a6e6160e01b8152f35b509190346101625760a03660031901126101625761026f610429565b5061027861043f565b5067ffffffffffffffff906044358281116101f85761029a90369086016104a1565b506064358281116101f8576102b290369086016104a1565b5060843591821161016257506020926102cd91369101610508565b505163bc197c8160e01b8152f35b509181923461037c578160031936011261037c5782546001600160a01b0390610307908216331461055f565b6001541690813b15610377578251637921219560e11b81523381830190815230602082015291356040830152602435606083015260a0608083018190526000908301529391849182908490829060c00103925af1908115610165575061036b575080f35b61037490610455565b80f35b505050fd5b5050fd5b8284346101f857816003193601126101f857905490516001600160a01b039091168152602090f35b8284346101f857816003193601126101f85760015490516001600160a01b039091168152602090f35b91905034610425576020366003190112610425573563ffffffff60e01b81168091036104255760209250630271189760e51b8114908115610414575b5015158152f35b6301ffc9a760e01b1490508361040d565b8280fd5b600435906001600160a01b03821682036101f357565b602435906001600160a01b03821682036101f357565b67ffffffffffffffff811161046957604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761046957604052565b81601f820112156101f35780359160209167ffffffffffffffff8411610469578360051b90604051946104d68584018761047f565b855283808601928201019283116101f3578301905b8282106104f9575050505090565b813581529083019083016104eb565b81601f820112156101f35780359067ffffffffffffffff8211610469576040519261053d601f8401601f19166020018561047f565b828452602083830101116101f357816000926020809301838601378301015290565b1561056657565b60405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152608490fdfea2646970667358221220678d9b19ba939a17c9b0cb99144fcae6f3c8da97c6d99f483f962d7ec3d4a39f64736f6c63430008150033"; type NFTStorageERC1155ConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: NFTStorageERC1155ConstructorParams, + xs: NFTStorageERC1155ConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class NFTStorageERC1155__factory extends ContractFactory { @@ -225,18 +225,18 @@ export class NFTStorageERC1155__factory extends ContractFactory { override getDeployTransaction( _collectionAddress: AddressLike, _owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction( _collectionAddress, _owner, - overrides || {}, + overrides || {} ); } override deploy( _collectionAddress: AddressLike, _owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy(_collectionAddress, _owner, overrides || {}) as Promise< NFTStorageERC1155 & { @@ -255,7 +255,7 @@ export class NFTStorageERC1155__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): NFTStorageERC1155 { return new Contract(address, _abi, runner) as unknown as NFTStorageERC1155; } diff --git a/src/contractsTypes/evm/factories/contracts/NFTStorageERC721__factory.ts b/src/contractsTypes/evm/factories/contracts/NFTStorageERC721__factory.ts index a505132..dd756e7 100644 --- a/src/contractsTypes/evm/factories/contracts/NFTStorageERC721__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/NFTStorageERC721__factory.ts @@ -130,14 +130,14 @@ const _abi = [ ] as const; const _bytecode = - "0x60803461008b57601f61051738819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b0319928360005416176000551690600154161760015560405161045c90816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060408181526004918236101561001657600080fd5b600092833560e01c918263150b7a02146102e857508382636215be7714610271575081636aa00371146102485781637326afe0146100885750638da5cb5b1461005e57600080fd5b34610084578160031936011261008457905490516001600160a01b039091168152602090f35b5080fd5b839150346100845782600319360112610084578035926100a661039d565b83546001600160a01b039591939190861633036101f75760015483516331a9108f60e11b8152838101839052908716966020826024818b5afa9182156101ed5787926101ad575b5030911603610155578585963b156101515761012294868094865197889586948593632142170760e11b855230908501610404565b03925af190811561014857506101355750f35b61013e906103b8565b6101455780f35b80fd5b513d84823e3d90fd5b8580fd5b506020608492519162461bcd60e51b8352820152602c60248201527f5468697320636f6e7472616374206973206e6f7420746865206f776e6572206f60448201526b33103a3434b9903a37b5b2b760a11b6064820152fd5b9091506020813d82116101e5575b816101c8602093836103e2565b810103126101e1575181811681036101e15790886100ed565b8680fd5b3d91506101bb565b85513d89823e3d90fd5b506020608492519162461bcd60e51b8352820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152fd5b50503461008457816003193601126100845760015490516001600160a01b039091168152602090f35b929150346102e45760203660031901126102e4576001546001600160a01b031690813b156102df5783916102bf918451958680948193632142170760e11b8352803590309033908501610404565b03925af190811561014857506102d3575080f35b6102dc906103b8565b80f35b505050fd5b5050fd5b939150346100845760803660031901126100845780356001600160a01b038116036100845761031561039d565b5060643567ffffffffffffffff91828211610399573660238301121561039957818101359283116103865750610355601f8301601f1916602001866103e2565b818552366024838301011161038257906020948160248794018483013701015251630a85bd0160e11b8152f35b8280fd5b634e487b7160e01b845260419052602483fd5b8380fd5b602435906001600160a01b03821682036103b357565b600080fd5b67ffffffffffffffff81116103cc57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176103cc57604052565b6001600160a01b0391821681529116602082015260408101919091526060019056fea26469706673582212207cd8c5566a27a881787903cf3384fb6b0f264ad8040e382add34e2f23823b00c64736f6c63430008150033"; + "0x60803461008b57601f61051238819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008b576020610048826100a6565b916001600160a01b0391829161005e91016100a6565b169160018060a01b0319928360005416176000551690600154161760015560405161045790816100bb8239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361008b5756fe608060408181526004918236101561001657600080fd5b600092833560e01c918263150b7a021461030557508382636215be7714610287575081636aa003711461025e5781637326afe0146100885750638da5cb5b1461005e57600080fd5b34610084578160031936011261008457905490516001600160a01b039091168152602090f35b5080fd5b839150346100845782600319360112610084578035926100a66103ba565b83546001600160a01b0395919391908616330361020d5760015483516331a9108f60e11b8152838101839052908716966020826024818b5afa9182156102035787926101c3575b503091160361016b578585963b15610167578351632142170760e11b8152309381019384526001600160a01b0390951660208401526040830191909152849184919082908490829060600103925af190811561015e575061014b5750f35b610154906103d5565b61015b5780f35b80fd5b513d84823e3d90fd5b8580fd5b506020608492519162461bcd60e51b8352820152602c60248201527f5468697320636f6e7472616374206973206e6f7420746865206f776e6572206f60448201526b33103a3434b9903a37b5b2b760a11b6064820152fd5b9091506020813d82116101fb575b816101de602093836103ff565b810103126101f7575181811681036101f75790886100ed565b8680fd5b3d91506101d1565b85513d89823e3d90fd5b506020608492519162461bcd60e51b8352820152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152fd5b50503461008457816003193601126100845760015490516001600160a01b039091168152602090f35b92915034610301576020366003190112610301576001546001600160a01b031690813b156102fc578251632142170760e11b815233818301908152306020820152913560408301529391849182908490829060600103925af190811561015e57506102f0575080f35b6102f9906103d5565b80f35b505050fd5b5050fd5b939150346100845760803660031901126100845780356001600160a01b03811603610084576103326103ba565b5060643567ffffffffffffffff918282116103b657366023830112156103b657818101359283116103a35750610372601f8301601f1916602001866103ff565b818552366024838301011161039f57906020948160248794018483013701015251630a85bd0160e11b8152f35b8280fd5b634e487b7160e01b845260419052602483fd5b8380fd5b602435906001600160a01b03821682036103d057565b600080fd5b67ffffffffffffffff81116103e957604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176103e95760405256fea2646970667358221220bdcc2ad72f5d5753b02116819cd11d95b714524aa9e455048961c85032c7148664736f6c63430008150033"; type NFTStorageERC721ConstructorParams = | [signer?: Signer] | ConstructorParameters; const isSuperArgs = ( - xs: NFTStorageERC721ConstructorParams, + xs: NFTStorageERC721ConstructorParams ): xs is ConstructorParameters => xs.length > 1; export class NFTStorageERC721__factory extends ContractFactory { @@ -152,18 +152,18 @@ export class NFTStorageERC721__factory extends ContractFactory { override getDeployTransaction( _collectionAddress: AddressLike, _owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ): Promise { return super.getDeployTransaction( _collectionAddress, _owner, - overrides || {}, + overrides || {} ); } override deploy( _collectionAddress: AddressLike, _owner: AddressLike, - overrides?: NonPayableOverrides & { from?: string }, + overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy(_collectionAddress, _owner, overrides || {}) as Promise< NFTStorageERC721 & { @@ -182,7 +182,7 @@ export class NFTStorageERC721__factory extends ContractFactory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): NFTStorageERC721 { return new Contract(address, _abi, runner) as unknown as NFTStorageERC721; } diff --git a/src/contractsTypes/evm/factories/contracts/hedera/HederaBridge__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/HederaBridge__factory.ts new file mode 100644 index 0000000..7c5b6aa --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/HederaBridge__factory.ts @@ -0,0 +1,882 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { + Signer, + AddressLike, + ContractDeployTransaction, + ContractRunner, +} from "ethers"; +import type { NonPayableOverrides } from "../../../common"; +import type { + HederaBridge, + HederaBridgeInterface, +} from "../../../contracts/hedera/HederaBridge"; + +const _abi = [ + { + inputs: [ + { + internalType: "address[]", + name: "_validators", + type: "address[]", + }, + { + internalType: "string", + name: "_chainType", + type: "string", + }, + { + internalType: "address", + name: "_storageDeployer", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [], + name: "ECDSAInvalidSignature", + type: "error", + }, + { + inputs: [ + { + internalType: "uint256", + name: "length", + type: "uint256", + }, + ], + name: "ECDSAInvalidSignatureLength", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "s", + type: "bytes32", + }, + ], + name: "ECDSAInvalidSignatureS", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "_validator", + type: "address", + }, + ], + name: "AddNewValidator", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bool", + name: "", + type: "bool", + }, + { + indexed: false, + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + name: "CallResponseEvent", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "string", + name: "lockTxChain", + type: "string", + }, + { + indexed: false, + internalType: "string", + name: "sourceChain", + type: "string", + }, + { + indexed: false, + internalType: "string", + name: "transactionHash", + type: "string", + }, + { + indexed: false, + internalType: "address", + name: "nftContract", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "emittedTokenId", + type: "uint256", + }, + ], + name: "Claimed", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: false, + internalType: "string", + name: "destinationChain", + type: "string", + }, + { + indexed: false, + internalType: "string", + name: "destinationUserAddress", + type: "string", + }, + { + indexed: false, + internalType: "string", + name: "sourceNftContractAddress", + type: "string", + }, + { + indexed: false, + internalType: "uint256", + name: "tokenAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "string", + name: "nftType", + type: "string", + }, + { + indexed: false, + internalType: "string", + name: "sourceChain", + type: "string", + }, + ], + name: "Locked", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "bytes32", + name: "hashValue", + type: "bytes32", + }, + { + indexed: false, + internalType: "bytes[]", + name: "", + type: "bytes[]", + }, + ], + name: "LogHash", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "_validator", + type: "address", + }, + ], + name: "RewardValidator", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "contractAddr", + type: "address", + }, + ], + name: "UnLock721", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_EXPIRY", + outputs: [ + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MAX_INT", + outputs: [ + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_validator", + type: "address", + }, + { + components: [ + { + internalType: "string", + name: "signerAddress", + type: "string", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct SignerAndSignature[]", + name: "signatures", + type: "tuple[]", + }, + ], + name: "addValidator", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "string", + name: "sourceChain", + type: "string", + }, + { + internalType: "string", + name: "destinationChain", + type: "string", + }, + { + internalType: "address", + name: "destinationUserAddress", + type: "address", + }, + { + internalType: "string", + name: "sourceNftContractAddress", + type: "string", + }, + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "uint256", + name: "royalty", + type: "uint256", + }, + { + internalType: "address", + name: "royaltyReceiver", + type: "address", + }, + { + internalType: "string", + name: "metadata", + type: "string", + }, + { + internalType: "string", + name: "transactionHash", + type: "string", + }, + { + internalType: "uint256", + name: "tokenAmount", + type: "uint256", + }, + { + internalType: "string", + name: "nftType", + type: "string", + }, + { + internalType: "uint256", + name: "fee", + type: "uint256", + }, + { + internalType: "string", + name: "lockTxChain", + type: "string", + }, + ], + internalType: "struct HederaBridge.ClaimData", + name: "data", + type: "tuple", + }, + { + internalType: "bytes[]", + name: "signatures", + type: "bytes[]", + }, + ], + name: "claimNFT721", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_validator", + type: "address", + }, + ], + name: "claimValidatorRewards", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "string", + name: "", + type: "string", + }, + ], + name: "duplicateStorageMapping721", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "string", + name: "", + type: "string", + }, + ], + name: "duplicateToOriginalMapping", + outputs: [ + { + internalType: "string", + name: "chain", + type: "string", + }, + { + internalType: "string", + name: "contractAddress", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "keyToValue", + outputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "string", + name: "chain", + type: "string", + }, + { + internalType: "string", + name: "contract_", + type: "string", + }, + { + internalType: "bool", + name: "exists", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "string", + name: "destinationChain", + type: "string", + }, + { + internalType: "string", + name: "destinationUserAddress", + type: "string", + }, + { + internalType: "address", + name: "sourceNftContractAddress", + type: "address", + }, + ], + name: "lock721", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "string", + name: "", + type: "string", + }, + ], + name: "originalStorageMapping721", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "string", + name: "", + type: "string", + }, + ], + name: "originalToDuplicateMapping", + outputs: [ + { + internalType: "string", + name: "chain", + type: "string", + }, + { + internalType: "string", + name: "contractAddress", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "bytes", + name: "encodedFunctionSelector", + type: "bytes", + }, + ], + name: "redirectForToken", + outputs: [ + { + internalType: "int256", + name: "responseCode", + type: "int256", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "selfChain", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "storageDeployer", + outputs: [ + { + internalType: "contract INFTStorageDeployer", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "transferFromNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + name: "uniqueIdentifier", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "validators", + outputs: [ + { + internalType: "bool", + name: "added", + type: "bool", + }, + { + internalType: "uint256", + name: "pendingReward", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "validatorsCount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "string", + name: "", + type: "string", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "valueToKey", + outputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "string", + name: "chain", + type: "string", + }, + { + internalType: "string", + name: "contract_", + type: "string", + }, + { + internalType: "bool", + name: "exists", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + stateMutability: "payable", + type: "receive", + }, +] as const; + +const _bytecode = + "0x60806040818152346200049957600062004d9180380380916200002382876200049e565b8539830191606084840312620004955783516001600160401b03908181116200049157850193601f908082870112156200048d5785519583871162000479578660051b85519762000078602083018a6200049e565b8852602080890191830101918383116200044657602001905b8282106200045e575050506020870151838111620003b457870196818389011215620003b45787518481116200044a57601f1998865193620000db60208c8886011601866200049e565b8285526020838301011162000446579187879293815b8581106200042b57505060206200010d948601015201620004d8565b858052600160205260018587205560018652600285872055600286526004858720556003865260088587205560048652601085872055600586526020858720556006865284808720558560085562000167600d54620004ed565b838111620003fc575b506000600d556001600160a01b03168015620003b857600680546001600160a01b03191682179055803b15620003b45785809160248751809481936313af403560e01b83523060048401525af18015620003aa5762000381575b5080519283116200036d57620001e2600d54620004ed565b8281116200032d575b506020918311600114620002b8578483949596975092620002ac575b50508160011b916000199060031b1c191617600d555b815b83518110156200029d5760018060a01b0360208260051b860101511683526002602052818320600160ff19825416179055600854600181018091116200028957600855600019811462000275576001016200021f565b634e487b7160e01b83526011600452602483fd5b634e487b7160e01b84526011600452602484fd5b505161482d9081620005448239f35b01519050388062000207565b600d855260008051602062004d718339815191529190855b888516811062000314575083600195969798811610620002fa575b505050811b01600d556200021d565b015160001960f88460031b161c19169055388080620002eb565b91926020600181928685015181550194019201620002d0565b6200035c90600d60005260206000208480870160051c8201926020881062000363575b0160051c01906200052a565b38620001eb565b9250819262000350565b634e487b7160e01b85526041600452602485fd5b838196929611620003965784529338620001ca565b634e487b7160e01b82526041600452602482fd5b85513d88823e3d90fd5b8580fd5b845162461bcd60e51b815260206004820152602481018490527f416464726573732063616e6e6f74206265207a65726f206164647265737321006044820152606490fd5b600d87526200042490840160051c60008051602062004d71833981519152908101906200052a565b3862000170565b60208183018101518883018201528a95508b935001620000f1565b8780fd5b634e487b7160e01b87526041600452602487fd5b602080916200046d84620004d8565b81520191019062000091565b634e487b7160e01b86526041600452602486fd5b8480fd5b8380fd5b5080fd5b600080fd5b601f909101601f19168101906001600160401b03821190821017620004c257604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b03821682036200049957565b90600182811c921680156200051f575b60208310146200050957565b634e487b7160e01b600052602260045260246000fd5b91607f1691620004fd565b81811062000536575050565b600081556001016200052a56fe6080604052600436101561001b575b361561001957600080fd5b005b60003560e01c80630526ddb114612b89578063064f21fa14612b4e578063098d322814612b2f57806315dacbea14612ad45780631795f7fb14612aae5780633a7dc806146127ce5780633d73a08d146127865780633f45a72614612706578063506457211461268957806351761bcc1461266b578063618dc65e1461255c578063697937be146118d25780636a98ea61146118a95780637fa5a3501461187857806385fbfcbe146117815780639b23d3d9146116e1578063a543de401461168f578063c744080214610167578063ed612f8c146101495763fa52c7d80361000e5734610144576020366003190112610144576001600160a01b0361011d612fba565b166000526002602052604080600020600160ff825416910154825191151582526020820152f35b600080fd5b34610144576000366003190112610144576020600854604051908152f35b600319604036820112610144576001600160401b0360043511610144576101e09060043536030112610144576040516101e081018181106001600160401b038211176111e157604052600435600401358152602460043501356001600160401b038111610144576101df906004369181350101612ebc565b6020820152604460043501356001600160401b0381116101445761020a906004369181350101612ebc565b604082015261021d606460043501612fd0565b6060820152608460043501356001600160401b03811161014457610248906004369181350101612ebc565b608082015260a460043501356001600160401b03811161014457610273906004369181350101612ebc565b60a082015260c460043501356001600160401b0381116101445761029e906004369181350101612ebc565b60c082015260e4600435013560e08201526102be61010460043501612fd0565b6101008201526001600160401b03610124600435013511610144576102ee36600480356101248101350101612ebc565b6101208201526001600160401b036101446004350135116101445761031e36600480356101448101350101612ebc565b61014082015261016460043501356101608201526001600160401b036101846004350135116101445761035c36600480356101848101350101612ebc565b6101808201526101a460043501356101a08201526001600160401b036101c46004350135116101445761039a36600480356101c48101350101612ebc565b6101c08201526001600160401b0360243511610144573660236024350112156101445760243560040135906103ce826130a6565b916103dc6040519384612c5f565b80835260208301903660248260051b8135010111610144576024803501915b60248260051b81350101831061165d575050506101a081015134106116185760408101516040516104496020828161043c8183019687815193849201612e59565b8101038084520182612c5f565b51902060405161046d8161045f60208201613194565b03601f198101835282612c5f565b60208151910120036115d35761018081015160405161049c6020828161043c8183019687815193849201612e59565b5190206104a7613262565b6040516104c46020828161043c8183019687815193849201612e59565b5190200361159a578051602082015160408301519183600160a01b6001900360608201511691608082015160a083015160c084015160e0850151600160a01b60019003610100870151166101208701519261014088015194610160890151966101808a0151986101a08b01519a6101c001519b6040519e8f9e8f936020850152604084016101e09052610200840161055b91612e7c565b838103601f1901606085015261057091612e7c565b6080909201528c8103601f190160a08e015261058b91612e7c565b8b8103601f190160c08d01526105a091612e7c565b8a8103601f190160e08c01526105b591612e7c565b916101008a0152610120890152601f19888203016101408901526105d891612e7c565b868103601f19016101608801526105ee91612e7c565b90610180860152601f19858203016101a086015261060b91612e7c565b906101c0840152601f19838203016101e084015261062891612e7c565b03601f198101825261063a9082612c5f565b805190602001209182600052600360205260406000205460ff16611555578260005260036020526040600020600160ff19825416179055600090805193610680856130a6565b9461068e6040519687612c5f565b80865261069d601f19916130a6565b0136602087013760005b8251811015610762576001600160a01b036106cc6106c5838661313b565b51846143d5565b1680600052600260205260ff604060002054168061074d575b6106f9575b506106f490613109565b6106a7565b93906001820182116107375760016106f492019480610718838a61313b565b5260005260076020526040600020600160ff19825416179055906106ea565b634e487b7160e01b600052601160045260246000fd5b50600760205260ff60406000205416156106e5565b5050509060005b83518110156107a9576107a4906001600160a01b03610788828761313b565b51166000526007602052604060002060ff198154169055613109565b610769565b5090600854808060011b04600214811517156107375760039060011b0460018101809111610737576107dc91101561314f565b6101a081015191821561152157479283106114e55780519081156114cf5760005b815181101561084d576001600160a01b03610818828461313b565b51166000526002602052600160406000200190815491848704830183116107375761084892858804019055613109565b6107fd565b83602061087161086c6108636080850151612f49565b83850151612f6f565b613211565b019061088e82516040519061088582612c29565b60008252613286565b1591821561148a576108b0602082518160405193828580945193849201612e59565b8101600c8152030190206040516108c681613194565b918252908190036020019020546001600160a01b0316905b6108e661323d565b918351610942602086015161093160206080890151926040519561090987612c0e565b8652808287015260408601938452600160608701528160405193828580945193849201612e59565b810160048152030190209051612f6f565b905160005260205260ff600360406000200154166113df575b84806113cd575b15610b345781516000805160206147b883398151915295506001600160a01b039061098c9061356e565b166000606085019182511515600014610ad857602086516024604051809481936331a9108f60e11b835260048301525afa60009181610aa7575b50610a9f575b505b6001600160a01b038381169116149081610a94575b5015610a3a5760608401518351610a359392610a0a929091906001600160a01b0316614346565b6101c084015192610a266101406020870151960151925161356e565b905191604051958695866132ed565b0390a1005b50610a359150610a4d610a74915161356e565b61012084015160018060a01b03606086015116855190602087015192608088015194613b01565b6101c08401516020850151610140909501516040519586959492866132ed565b9050511515866109e3565b9050876109cc565b610aca91925060203d602011610ad1575b610ac28183612c5f565b8101906132ce565b90896109c6565b503d610ab8565b602087516024604051809481936331a9108f60e11b835260048301525afa60009181610b13575b50610b0b575b506109ce565b905087610b05565b610b2d91925060203d602011610ad157610ac28183612c5f565b9089610aff565b9190929380806113bc575b15610b675750505090610a35610a74610a4d6000805160206147b8833981519152945161356e565b919250908015806113ab575b1561120e5750505060a081015160c082015160e08301516101008401516040516001600160a01b0390911692610ba882612bf3565b6001825260005b602081106111f75750610bc061388d565b50600460005260016020527fedc95719e9a3b28dd8e80877cb5880a9be7de1a13fc8b05e7999683b6b56764354610bf5613851565b30602082015260405191610c0883612bf3565b82526020820152610c1883613118565b52610c2282613118565b5060405194856101208101106001600160401b03610120880111176111e157610120860160405260608652606060208701526000604087015260608087015260006080870152600060a0870152600060c0870152606060e0870152610c856138a9565b61010087015285526020850152306040850152604051610ca481612c29565b6000815260608501526001608085015263ffffffff60a0850152600060c085015260e0840152610cd26138a9565b30602082015262786450604082015261010084015260008160070b136000146111ca5760405190610d0282612bf3565b6001825260005b602081106111b3575090610d43918193610d216138d8565b9160070b8252612710602083015260a0820152610d3d82613118565b52613118565b505b604051610d5181612c29565b60008152610100830151805160070b15806111a4575b611195575b506040519263abb54eb560e01b602085015260606024850152610de2610db9610da3835161016060848901526101e4880190612e7c565b60208401518782036083190160a4890152612e7c565b60408301516001600160a01b031660c487015260608301518682036083190160e4880152612e7c565b906080810151151561010486015260a081015160070b61012486015260c0810151151561014486015260e08101519160831986820301610164870152825180825260208201916020808360051b8301019501926000915b8383106111055750505050506101006040910151805160070b61018487015260018060a01b036020820151166101a4870152015160070b6101c48501526023198482030160448501526020808351928381520192019060005b8181106110af575050506023198382030160648401526020808351928381520192019060005b81811061104a5750505081610ed9600093849303601f198101835282612c5f565b602081519101346101675af190610eee6146a7565b911561102757604082805181010312610144576040610f0f602084016146d7565b9201516001600160a01b0381169081900361014457610a74610a3591610f8d6000805160206147b88339815191529560030b5b60030b6016610f8682604051610f5781612bf3565b601781527f4661696c656420746f2063726561746520746f6b656e2e000000000000000000602082015261394a565b911461391a565b610fd4610f998261457c565b60405190610fa682612bf3565b610fae612d2d565b82526020820152610fcf610fc56080880151612f49565b6020880151612f6f565b61333e565b610a4d6020850151608086015160405191610fee83612bf3565b8252602082015260018060a01b038316600052600a60205260406000206020604051809261101b82613194565b9081520301902061333e565b6000805160206147b88339815191529150610a35610a746000610f8d6015610f42565b909192602060c06001928651805160070b82528381015160070b84830152604081015160070b6040830152848060a01b03606082015116606083015260808101511515608083015260a08580821b039101511660a08201520194019101919091610eb8565b8251805160070b85526020818101516001600160a01b0390811682880152604080840151151590880152606080840151151590880152608092830151169186019190915260a09094019390920191600101610e92565b9091929395602080600192601f19858203018652818a5180518352015190604083820152815115156040820152848060a01b038383015116606082015260c0611176611160604085015160a0608086015260e0850190612e7c565b6060850151848203603f190160a0860152612e7c565b926080878060a01b039101511691015298019301930191939290610e39565b60406276a70091015284610d6c565b50604081015160070b15610d67565b6020906111be6138d8565b82828601015201610d09565b50506040516111d881612c29565b60008152610d45565b634e487b7160e01b600052604160045260246000fd5b60209061120261388d565b82828601015201610baf565b1580611399575b1561135d5760808301516001600160a01b03906112319061356e565b16600060608301918251151560001461130157602084516024604051809481936331a9108f60e11b835260048301525afa600091816112e0575b506112d8575b505b6001600160a01b0384811691161490816112cd575b50156112a8576060909201519151610019926001600160a01b0316614346565b505080610a35610a74610a4d60806000805160206147b883398151915295015161356e565b905051151584611288565b905085611271565b6112fa91925060203d602011610ad157610ac28183612c5f565b908761126b565b602086516024604051809481936331a9108f60e11b835260048301525afa6000918161133c575b50611334575b50611273565b90508561132e565b61135691925060203d602011610ad157610ac28183612c5f565b9087611328565b60405162461bcd60e51b8152602060048201526014602482015273496e76616c69642062726964676520737461746560601b6044820152606490fd5b506001600160a01b0382161515611215565b506001600160a01b03831615610b73565b506001600160a01b03831615610b3f565b506001600160a01b0381161515610962565b91508251611436602085015161093160206080880151926040519561140387612c0e565b8652818601908152604086019384526001606087015261142161323d565b50518160405193828580945193849201612e59565b9051600052602052604060002060ff60036040519261145484612c0e565b8054845261146460018201612db7565b602085015261147560028201612db7565b6040850152015416151560608201529161095b565b60808201516114c760206114a76040519384815193849201612e59565b820191600b835260208160018060a01b0394030190206020850151612f6f565b5416906108de565b634e487b7160e01b600052601260045260246000fd5b60405162461bcd60e51b81526020600482015260146024820152734e6f207265776172647320617661696c61626c6560601b6044820152606490fd5b60405162461bcd60e51b815260206004820152600c60248201526b496e76616c6964206665657360a01b6044820152606490fd5b60405162461bcd60e51b815260206004820152601760248201527f4461746120616c72656164792070726f636573736564210000000000000000006044820152606490fd5b60405162461bcd60e51b8152602060048201526011602482015270496e76616c6964204e465420747970652160781b6044820152606490fd5b60405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642064657374696e6174696f6e20636861696e210000000000006044820152606490fd5b60405162461bcd60e51b815260206004820152601f60248201527f646174612e666565204c455353205448414e2073656e7420616d6f756e7421006044820152606490fd5b6001600160401b03833511610144576020806024926116823685883581350101612ebc565b81520193019290506103fb565b346101445760206116d76116a236612f03565b836116b96040949394519485815193849201612e59565b600c90840190815283900384019092206001600160a01b0392612f6f565b5416604051908152f35b346101445760008061173c61045f6116f836612fe4565b604051639b23d3d960e01b602082019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b5190826101675af161174c6146a7565b9015611777576020818051810103126101445761176c60208092016146d7565b6040519060030b8152f35b506020601561176c565b34610144576020366003190112610144576001600160a01b036117a2612fba565b166117ae8115156130bd565b806000526002602052600160ff60406000205416151503611833576000808080937fc4b044d89af9405903f78d1ff2a194cc7f65b0d821544faddfc65f7800aa9a9e6020604051838152a180825260026020526001604083200190828254925582821561182a575bf11561181e57005b6040513d6000823e3d90fd5b506108fc611816565b60405162461bcd60e51b815260206004820152601960248201527f56616c696461746f7220646f6573206e6f7420657869737421000000000000006044820152606490fd5b34610144576020366003190112610144576004356000526003602052602060ff604060002054166040519015158152f35b34610144576000366003190112610144576006546040516001600160a01b039091168152602090f35b34610144576080366003190112610144576024356001600160401b03811161014457611902903690600401612ebc565b6044356001600160401b03811161014457611921903690600401612ebc565b6064356001600160a01b0381169003610144576064356001600160a01b0316156124ff5760018060a01b0360643516600052600a60205261197c60406000206020604051809261197082613194565b90815203019020613211565b9161199260208401516040519061088582612c29565b9261199b61323d565b6119a660643561457c565b611a036119ed6020604051936119bb85612c0e565b60043585526119c8612c80565b9081838701526040860152600160608601528160405193828580945193849201612e59565b6005818301528101030190206040830151612f6f565b905160005260205260ff60036040600020015416612451575b606081015115611e6c5751935b15611ca55750611a526020611a3f60643561457c565b8160405193828580945193849201612e59565b8101600b815203019020604051611a6881613194565b918252908190036020019020546001600160a01b03168015611bdb575b611b0d92611aa9611af8926001600160401b036004351660070b90336064356146f3565b50611aea611ab860643561457c565b91611adc611ac4613262565b9560405198895260e060208a015260e0890190612e7c565b908782036040890152612e7c565b908582036060870152612e7c565b906001608085015283820360a0850152612e7c565b81810360c0830152600d54600091611b2482612bb9565b8082529160018116908115611bab5750600114611b55575b505090806000805160206147d8833981519152920390a1005b600d60009081529250906000805160206147988339815191525b818410611b9157505001602001816000805160206147d8833981519152611b3c565b600181602092959395548385870101520191019290611b6f565b8594506020929150926000805160206147d8833981519152959360ff191683830152151560051b01019192611b3c565b506006546040516223abb760e71b81526001600160a01b036064358116600483015290939160209185916024918391600091165af190811561181e57611aa9611af892611b0d95600091611c86575b5080611c3c6020611a3f60643561457c565b8101600b81520301902060206040518092611c5682613194565b908152030190209060018060a01b03166bffffffffffffffffffffffff60a01b8254161790559250509250611a85565b611c9f915060203d602011610ad157610ac28183612c5f565b87611c2a565b929091611cb86020611a3f60643561457c565b8101600c815203019020604051611cce81613194565b918252908190036020019020546001600160a01b03168015611d91575b90611d836000805160206147d883398151915295611d1f610a35946001600160401b036004351660070b90336064356146f3565b50611d6e6020820151611d60611d33613262565b935195611d526040519a8b9a8b5260e060208c015260e08b0190612e7c565b9089820360408b0152612e7c565b908782036060890152612e7c565b906001608087015285820360a0870152612e7c565b9083820360c0850152612e7c565b506006546040516223abb760e71b81526001600160a01b036064358116600483015290929160209184916024918391600091165af1801561181e576000805160206147d883398151915295611d1f611d8392610a3595600091611e4d575b5080611e016020611a3f60643561457c565b8101600c81520301902060206040518092611e1b82613194565b908152030190209060018060a01b03166bffffffffffffffffffffffff60a01b82541617905593945050955050611ceb565b611e66915060203d602011610ad157610ac28183612c5f565b89611def565b5060043593611e7c60643561457c565b60405190611e8982612c0e565b6004358252611e96612c80565b6020830152604082015260016060820152611eb260643561457c565b60405190611ebf82612c0e565b6004358252611ecc612c80565b6020830152604082015260016060820152611f10611efc6020808501518160405193828580945193849201612e59565b810160048152030190206040840151612f6f565b825160005260205260406000208151815560208201518051906001600160401b0382116111e1578190611f466001850154612bb9565b601f81116123fe575b50602090601f831160011461238c57600092612381575b50508160011b916000199060031b1c19161760018201555b60408201518051906001600160401b0382116111e157611fa16002840154612bb9565b601f811161233a575b50602090601f83116001146122c657611ffc939291600091836122bb575b50508160011b916000199060031b1c19161760028201555b60036060840151151591019060ff801983541691151516179055565b61202f61201b6020808401518160405193828580945193849201612e59565b810160058152030190206040830151612f6f565b90516000526020526040600020908051825560208101518051906001600160401b0382116111e15781906120666001860154612bb9565b601f8111612268575b50602090601f83116001146121f6576000926121eb575b50508160011b916000199060031b1c19161760018301555b60408101518051906001600160401b0382116111e1576120c16002850154612bb9565b601f81116121a4575b50602090601f831160011461212c57928260039360609361211c9796600092612121575b50508160011b9160001990861b1c19161760028501555b0151151591019060ff801983541691151516179055565b611a29565b015190508c806120ee565b906002850160005260206000209160005b601f198516811061218c57508360609361211c979693600193600397601f19811610612174575b505050811b016002850155612105565b015160001983881b60f8161c191690558c8080612164565b9192602060018192868501518155019401920161213d565b600285016000526020600020601f840160051c8101602085106121e4575b601f830160051c820181106121d85750506120ca565b600081556001016121c2565b50806121c2565b015190508980612086565b9250600185016000526020600020906000935b601f198416851061224d576001945083601f19811610612234575b505050811b01600183015561209e565b015160001960f88460031b161c19169055898080612224565b81810151835560209485019460019093019290910190612209565b909150600185016000526020600020601f840160051c8101602085106122b4575b90849392915b601f830160051c820181106122a557505061206f565b6000815585945060010161228f565b5080612289565b015190508b80611fc8565b906002840160005260206000209160005b601f19851681106123225750918391600193611ffc9695601f19811610612309575b505050811b016002820155611fe0565b015160001960f88460031b161c191690558b80806122f9565b919260206001819286850151815501940192016122d7565b600284016000526020600020601f840160051c81016020851061237a575b601f830160051c8201811061236e575050611faa565b60008155600101612358565b5080612358565b015190508a80611f66565b9250600184016000526020600020906000935b601f19841685106123e3576001945083601f198116106123ca575b505050811b016001820155611f7e565b015160001960f88460031b161c191690558a80806123ba565b8181015183556020948501946001909301929091019061239f565b909150600184016000526020600020601f840160051c81016020851061244a575b90849392915b601f830160051c8201811061243b575050611f4f565b60008155859450600101612425565b508061241f565b5061245d60643561457c565b6124ac6040519161246d83612c0e565b600435835261249b602061247f612c80565b818601908152604086019384526001606087015261142161323d565b810160058152030190209051612f6f565b9051600052602052604060002060ff6003604051926124ca84612c0e565b805484526124da60018201612db7565b60208501526124eb60028201612db7565b604085015201541615156060820152611a1c565b60405162461bcd60e51b815260206004820152602f60248201527f736f757263654e6674436f6e7472616374416464726573732063616e6e6f742060448201526e6265207a65726f206164647265737360881b6064820152608490fd5b3461014457604036600319011261014457612575612fba565b6024356001600160401b0381116101445760009161045f6125d661259e85943690600401612ebc565b604080516330c6e32f60e11b602082019081526001600160a01b03909616602482015260448101919091529283916064830190612e7c565b5190826101675af16125e66146a7565b907f4af4780e06fe8cb9df64b0794fa6f01399af979175bb988e35e0e57e594567bc604051821515815260406020820152806126256040820186612e7c565b0390a1156126535760165b61264f60405192839260030b8352604060208401526040830190612e7c565b0390f35b5060405161266081612c29565b600081526015612630565b34610144576000366003190112610144576020604051627864508152f35b34610144576126b76126c7602061269f36613025565b94918360409492945193828580945193849201612e59565b8101600581520301902090612f6f565b906000526020526040600020805461264f6126e460018401612db7565b9260ff60036126f560028401612db7565b92015416906040519485948561306f565b346101445760403660031901126101445761271f612fba565b602435906001600160401b03821161014457612742612761923690600401612ebc565b6001600160a01b039091166000908152600a6020526040902090612f6f565b612776600161276f83612db7565b9201612db7565b9061264f60405192839283612f95565b346101445760206116d761279936612f03565b836127b06040949394519485815193849201612e59565b600b90840190815283900384019092206001600160a01b0392612f6f565b34610144576040366003190112610144576127e7612fba565b60249081356001600160401b0391828211610144573660238301121561014457816004013591612816836130a6565b926128246040519485612c5f565b808452602094868686019260051b8401019236841161014457878101925b848410612a3e575050506001600160a01b0392831694915061286790508415156130bd565b825115612a03578360005260029081815260ff9283604060002054166129bf5760009460005b815181101561291057826128c7604051868101908b82528781526128b081612bf3565b519020866128be858761313b565b510151906143d5565b1660005284845285604060002054166128e9575b6128e490613109565b61288d565b95600181018091116128fb57956128db565b88634e487b7160e01b60005260116004526000fd5b8885858a8a6008548060011b908082048614901517156129aa5760039004600181018091116129aa5761294491101561314f565b7ff910fa450d85dbabdd71a7d3256547d80a4a2f84c8b7f6d088cae55c8ffdccb382604051838152a1600052526040600020600160ff1982541617905560085490600182018092116129965750600855005b634e487b7160e01b60009081526011600452fd5b85634e487b7160e01b60005260116004526000fd5b60405162461bcd60e51b8152600481018390526017818901527f56616c696461746f7220616c72656164792061646465640000000000000000006044820152606490fd5b6064906015866040519262461bcd60e51b84526004840152820152744d7573742068617665207369676e6174757265732160581b6044820152fd5b8335838111610144578201604060231982360301126101445760405191612a6483612bf3565b8a82013585811161014457612a7e908c3691850101612ebc565b835260448201359285841161014457612a9f8b94938d869536920101612ebc565b83820152815201930192612842565b3461014457612ac46126c7602061269f36613025565b8101600481520301902090612f6f565b346101445760008061173c61045f612aeb36612fe4565b604051630aed65f560e11b602082019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b3461014457600036600319011261014457602060405163ffffffff8152f35b34610144576127616020612b79612b6436612f03565b92908160405193828580945193849201612e59565b8101600981520301902090612f6f565b346101445760003660031901126101445761264f612ba5612c80565b604051918291602083526020830190612e7c565b90600182811c92168015612be9575b6020831014612bd357565b634e487b7160e01b600052602260045260246000fd5b91607f1691612bc8565b604081019081106001600160401b038211176111e157604052565b608081019081106001600160401b038211176111e157604052565b602081019081106001600160401b038211176111e157604052565b606081019081106001600160401b038211176111e157604052565b90601f801991011681019081106001600160401b038211176111e157604052565b60405190600082600d5491612c9483612bb9565b808352602093600190818116908115612d0d5750600114612cc0575b5050612cbe92500383612c5f565b565b90939150600d600052600080516020614798833981519152936000915b818310612cf5575050612cbe93508201013880612cb0565b85548884018501529485019487945091830191612cdd565b915050612cbe94925060ff191682840152151560051b8201013880612cb0565b60405190600082600d5491612d4183612bb9565b808352602093600190818116908115612d0d5750600114612d6a575050612cbe92500383612c5f565b90939150600d600052600080516020614798833981519152936000915b818310612d9f575050612cbe93508201013880612cb0565b85548884018501529485019487945091830191612d87565b90604051918260008254612dca81612bb9565b908184526020946001918281169081600014612e375750600114612df8575b505050612cbe92500383612c5f565b600090815285812095935091905b818310612e1f575050612cbe9350820101388080612de9565b85548884018501529485019487945091830191612e06565b92505050612cbe94925060ff191682840152151560051b820101388080612de9565b60005b838110612e6c5750506000910152565b8181015183820152602001612e5c565b90602091612e9581518092818552858086019101612e59565b601f01601f1916010190565b6001600160401b0381116111e157601f01601f191660200190565b81601f8201121561014457803590612ed382612ea1565b92612ee16040519485612c5f565b8284526020838301011161014457816000926020809301838601378301015290565b906040600319830112610144576001600160401b036004358181116101445783612f2f91600401612ebc565b9260243591821161014457612f4691600401612ebc565b90565b6020612f62918160405193828580945193849201612e59565b8101600981520301902090565b602090612f89928260405194838680955193849201612e59565b82019081520301902090565b9091612fac612f4693604084526040840190612e7c565b916020818403910152612e7c565b600435906001600160a01b038216820361014457565b35906001600160a01b038216820361014457565b6080906003190112610144576001600160a01b0360043581811681036101445791602435828116810361014457916044359081168103610144579060643590565b906060600319830112610144576001600160401b03600435818111610144578361305191600401612ebc565b926024359182116101445761306891600401612ebc565b9060443590565b9261309060609361309e939796978652608060208701526080860190612e7c565b908482036040860152612e7c565b931515910152565b6001600160401b0381116111e15760051b60200190565b156130c457565b60405162461bcd60e51b815260206004820152601f60248201527f416464726573732063616e6e6f74206265207a65726f206164647265737321006044820152606490fd5b60001981146107375760010190565b8051156131255760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156131255760209160051b010190565b1561315657565b60405162461bcd60e51b81526020600482015260166024820152755468726573686f6c64206e6f7420726561636865642160501b6044820152606490fd5b600d54600092916131a482612bb9565b916001908181169081156131fe57506001146131bf57505050565b9091929350600d600052600080516020614798833981519152906000915b8483106131eb575050500190565b81816020925485870152019201916131dd565b60ff191683525050811515909102019150565b9060405161321e81612bf3565b60206132386001839561323081612db7565b855201612db7565b910152565b6040519061324a82612c0e565b60006060838281528160208201528160408201520152565b6040519061326f82612bf3565b600882526739b4b733bab630b960c11b6020830152565b90604051916020926132a784828161043c8183019687815193849201612e59565b519020916132c760405191828161043c8183019687815193849201612e59565b5190201490565b9081602091031261014457516001600160a01b03811681036101445790565b919261331c60809461330e61332a949998979960a0875260a0870190612e7c565b908582036020870152612e7c565b908382036040850152612e7c565b6001600160a01b0390951660608201520152565b81518051906001600160401b03918281116111e1578061335e8554612bb9565b92601f9384811161350b575b506020908483116001146134a65760009261349b575b50508160011b916000199060031b1c19161783555b6020600180940194015180519283116111e1576133b28554612bb9565b828111613453575b5060209183116001146133f3579282939183926000946133e8575b50501b916000199060031b1c1916179055565b0151925038806133d5565b90601f198316918560005283826000209360005b8782821061343a57505010613421575b505050811b019055565b015160001960f88460031b161c19169055388080613417565b8486015187559095019460209485019487935001613407565b8560005260206000208380860160051c82019260208710613492575b0160051c019085905b8281106134865750506133ba565b60008155018590613478565b9250819261346f565b015190503880613380565b60008781528281209350601f198516905b8181106134f357509084600195949392106134da575b505050811b018355613395565b015160001960f88460031b161c191690553880806134cd565b929360206001819287860151815501950193016134b7565b9091506000868152602081208580860160051c82019360208710613554575b908695949392910160051c01915b82811061354657505061336a565b818155859450600101613538565b9350819361352a565b908151811015613125570160200190565b90818051602a90818114908115613846575b5015613808578151818114613709575b505050600091825b81518410156136fb576135ab848361355d565b5160f81c6030811015806136f0575b156136415760ff908116602f190190811161073757905b6001600160a01b039160049180831b6010600160a01b0316919084168015908304601014171561362c5760ff160191821161361757506136119093613109565b92613598565b601190634e487b7160e01b6000525260246000fd5b601183634e487b7160e01b6000525260246000fd5b6061811015806136e5575b156136675760ff9081166056190190811161073757906135d1565b6041811015806136da575b15613689576036190160ff811161073757906135d1565b60405162461bcd60e51b815260206004820152602360248201527f496e76616c69642063686172616374657220696e206164647265737320737472604482015262696e6760e81b6064820152608490fd5b506046811115613672565b50606681111561364c565b5060398111156135ba565b6001600160a01b0316925050565b9091929350156131255760208201516001600160f81b0319908116600360fc1b14806137eb575b156137b0576040519261374284612c44565b60288452604036602086013760025b838110613765575050505090388080613590565b82613770828461355d565b511690600119810181811161379b576137906137969360001a918861355d565b53613109565b613751565b60246000634e487b7160e01b81526011600452fd5b60405162461bcd60e51b815260206004820152601360248201527209ad2e6e6d2dcce404e60f04e40e0e4caccd2f606b1b6044820152606490fd5b508251600110156131255760218301518116600f60fb1b14613730565b60405162461bcd60e51b8152602060048201526016602482015275092dcecc2d8d2c840c2c8c8e4cae6e640d8cadccee8d60531b6044820152606490fd5b602891501438613580565b6040519060a082018281106001600160401b038211176111e1576040526000608083828152826020820152606060408201526060808201520152565b6040519061389a82612bf3565b81600081526020613238613851565b60405190606082018281106001600160401b038211176111e15760405260006040838281528260208201520152565b6040519060c082018281106001600160401b038211176111e1576040528160a06000918281528260208201528260408201528260608201528260808201520152565b156139225750565b60405162461bcd60e51b815260206004820152908190613946906024830190612e7c565b0390fd5b90600090807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008181811015613af3575b50506d04ee2d6d415b85acef810000000080821015613ae6575b50662386f26fc1000080821015613ad9575b506305f5e10080821015613acc575b5061271080821015613abf575b506064811015613ab1575b600a80911015613aa7575b6001808401928160216139fe6139e887612ea1565b966139f66040519889612c5f565b808852612ea1565b602087019790601f1901368937860101905b613a71575b50505050613a6292612f4692602d926040519583613a3d889551809260208089019101612e59565b8401916c01022b93937b91031b7b2329d1609d1b602084015251809386840190612e59565b0103600d810184520182612c5f565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215613aa257919082613a10565b613a15565b91600101916139d3565b6064600291049201916139c8565b60049104920191386139bd565b60089104920191386139b0565b60109104920191386139a1565b602091049201913861398f565b604094500490503880613975565b95949092919260405190613b1482612bf3565b6001825260005b602081106143355750613b4060206040518361043c8295518092858086019101612e59565b613b4982613118565b52613b5381613118565b50604051602081019163707a02cd60e11b83526084820160018060a01b038a1660248401526000604484015260606064840152815180915260a4830190602060a48260051b8601019301916000905b82821061430a57505050509181613bc660009493859403601f198101835282612c5f565b5190826101675af193613bd76146a7565b94600090156142f0575084518501946060816020880197031261014457613c00602082016146d7565b90613c0d604082016146e5565b506060810151906001600160401b03821161014457019580603f88011215610144576020870151613c3d816130a6565b97613c4b604051998a612c5f565b818952604060208a019260051b82010192831161014457604001905b8282106142d857505050613cb2905b60030b6016610f8682604051613c8b81612bf3565b8381527502330b4b632b2103a379036b4b73a103a37b5b2b717160551b602082015261394a565b60405192613cbf84612c0e565b835260208301526040820152600160608201526001600160401b03613ce384613118565b5116613cee8661457c565b60405191613cfb83612c0e565b8252613d05612d2d565b6020830152604082015260016060820152613d35611efc6020808501518160405193828580945193849201612e59565b825160005260205260406000208151815560208201518051906001600160401b0382116111e1578190613d6b6001850154612bb9565b601f8111614285575b50602090601f831160011461421357600092614208575b50508160011b916000199060031b1c19161760018201555b60408201518051906001600160401b0382116111e157613dc66002840154612bb9565b601f81116141c1575b50602090601f831160011461414e57613e1f939291600091836141435750508160011b916000199060031b1c191617600282015560036060840151151591019060ff801983541691151516179055565b613e3e61201b6020808401518160405193828580945193849201612e59565b90516000526020526040600020908051825560208101518051906001600160401b0382116111e1578190613e756001860154612bb9565b601f81116140f0575b50602090601f831160011461407e57600092614073575b50508160011b916000199060031b1c19161760018301555b6002820160408201518051906001600160401b0382116111e157613ed18354612bb9565b601f811161402b575b50602090601f8311600114613fa7579460036060613f9296613f519686613f979b97613f3c976001600160401b039e9c600092613f9c575b50508160011b9160001990871b1c19161790550151151591019060ff801983541691151516179055565b613f4584613118565b5160070b9030896146f3565b6016610f8682604051613f6381612bf3565b602081527f4661696c656420746f207472616e73666572206d696e74656420746f6b656e2e602082015261394a565b613118565b511690565b015190503880613f12565b90601f198316918460005260206000209260005b8181106140135750613f9296613f5196600187613f3c976001600160401b039e9c97600397613f979f9b60609810613ffb575b505050811b019055612105565b015160001983891b60f8161c19169055388080613fee565b92936020600181928786015181550195019301613fbb565b836000526020600020601f840160051c81019160208510614069575b601f0160051c01905b81811061405d5750613eda565b60008155600101614050565b9091508190614047565b015190503880613e95565b9250600185016000526020600020906000935b601f19841685106140d5576001945083601f198116106140bc575b505050811b016001830155613ead565b015160001960f88460031b161c191690553880806140ac565b81810151835560209485019460019093019290910190614091565b909150600185016000526020600020601f840160051c81016020851061413c575b90849392915b601f830160051c8201811061412d575050613e7e565b60008155859450600101614117565b5080614111565b015190503880611fc8565b906002840160005260206000209160005b601f19851681106141a95750918391600193613e1f9695601f1981161061419057505050811b016002820155611fe0565b015160001960f88460031b161c191690553880806122f9565b9192602060018192868501518155019401920161415f565b600284016000526020600020601f840160051c810160208510614201575b601f830160051c820181106141f5575050613dcf565b600081556001016141df565b50806141df565b015190503880613d8b565b9250600184016000526020600020906000935b601f198416851061426a576001945083601f19811610614251575b505050811b016001820155613da3565b015160001960f88460031b161c19169055388080614241565b81810151835560209485019460019093019290910190614226565b909150600184016000526020600020601f840160051c8101602085106142d1575b90849392915b601f830160051c820181106142c2575050613d74565b600081558594506001016142ac565b50806142a6565b602080916142e5846146e5565b815201910190613c67565b60405195506142fe86612c29565b8552613cb26015613c76565b9091929360208061432760019360a3198a82030186528851612e7c565b960192019201909291613ba2565b806060602080938601015201613b1b565b7f26b5f43c1b8acf29c34ba80744bb118ae1dbff66554aa409f44f466bb41327bd606060018060a01b0380951694604051931692838152846020820152856040820152a1823b15610144576044600092836040519586948593630399357f60e51b8552600485015260248401525af1801561181e576143c25750565b6001600160401b0381116111e157604052565b612f46916144229160405160208101917f19457468657265756d205369676e6564204d6573736167653a0a3332000000008352603c820152603c815261441a81612c44565b51902061442b565b909291926144f7565b815191906041830361445c5761445592506020820151906060604084015193015160001a90614467565b9192909190565b505060009160029190565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084116144eb57926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa156144df5780516001600160a01b038116156144d657918190565b50809160019190565b604051903d90823e3d90fd5b50505060009160039190565b60048110156145665780614509575050565b600181036145235760405163f645eedf60e01b8152600490fd5b600281036145445760405163fce698f760e01b815260048101839052602490fd5b60031461454e5750565b602490604051906335e2f38360e21b82526004820152fd5b634e487b7160e01b600052602160045260246000fd5b604051906001600160a01b031661459282612bf3565b6010825260206f181899199a1a9b1b9c1cb0b131b232b360811b81840152604051926145bd84612c44565b602a845281840160403682378451156131255760309053835192600193841015613125576078602186015360005b601481106145fb57505050505090565b600c810180821161073757848110156131255782901a60046001600160f81b0319600f8161462d85851c83168961355d565b511693858a1b94600290878704821488151715614692578682018092116146925761466261466a9493928e9260001a9261355d565b53168761355d565b511690600392830180931161361757509061379061468d939260001a918961355d565b6145eb565b601186634e487b7160e01b6000525260246000fd5b3d156146d2573d906146b882612ea1565b916146c66040519384612c5f565b82523d6000602084013e565b606090565b51908160030b820361014457565b51908160070b820361014457565b604051635cfc901160e01b602082019081526001600160a01b03928316602483015292821660448201529216606483015260079290920b608480830191909152815260c081016001600160401b038111828210176111e1576040526000809281925190826101675af1906147656146a7565b911561478e5760208280518101031261478b5750602061478591016146d7565b60030b90565b80fd5b5050601561478556fed7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5193453b4ea8c1bfee82c191d9bd91c15cc16985f1da1f9ead41625b78a27e04ad50d6b7e8a31963b83afcdbc240518dba3a293d249f0e191001a92b587ba5fb1a2646970667358221220b7d08d4fab51a5b29c8fd3084031bfcc15078b897e677f221a506585a61730a164736f6c63430008150033d7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5"; + +type HederaBridgeConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: HederaBridgeConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class HederaBridge__factory extends ContractFactory { + constructor(...args: HederaBridgeConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + _validators: AddressLike[], + _chainType: string, + _storageDeployer: AddressLike, + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction( + _validators, + _chainType, + _storageDeployer, + overrides || {} + ); + } + override deploy( + _validators: AddressLike[], + _chainType: string, + _storageDeployer: AddressLike, + overrides?: NonPayableOverrides & { from?: string } + ) { + return super.deploy( + _validators, + _chainType, + _storageDeployer, + overrides || {} + ) as Promise< + HederaBridge & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): HederaBridge__factory { + return super.connect(runner) as HederaBridge__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): HederaBridgeInterface { + return new Interface(_abi) as HederaBridgeInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): HederaBridge { + return new Contract(address, _abi, runner) as unknown as HederaBridge; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/HederaNftDep__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/HederaNftDep__factory.ts new file mode 100644 index 0000000..5e88897 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/HederaNftDep__factory.ts @@ -0,0 +1,571 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { + Signer, + BigNumberish, + AddressLike, + ContractDeployTransaction, + ContractRunner, +} from "ethers"; +import type { PayableOverrides } from "../../../../common"; +import type { + HederaNftDep, + HederaNftDepInterface, +} from "../../../../contracts/hedera/HederaNFT.sol/HederaNftDep"; + +const _abi = [ + { + inputs: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "contract INFTClaim", + name: "claimContract", + type: "address", + }, + { + internalType: "int64", + name: "royaltyNum", + type: "int64", + }, + { + internalType: "address", + name: "royaltyReceiver", + type: "address", + }, + ], + stateMutability: "payable", + type: "constructor", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "OwnableInvalidOwner", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "OwnableUnauthorizedAccount", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bool", + name: "", + type: "bool", + }, + { + indexed: false, + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + name: "CallResponseEvent", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "htsToken", + type: "address", + }, + { + indexed: true, + internalType: "int64", + name: "tokenId", + type: "int64", + }, + ], + name: "Minted", + 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", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: true, + internalType: "int64", + name: "tokenId", + type: "int64", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_EXPIRY", + outputs: [ + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MAX_INT", + outputs: [ + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "int64", + name: "serialNum", + type: "int64", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "claimNft", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "data", + type: "uint256", + }, + ], + name: "decodeHts", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "pure", + type: "function", + }, + { + inputs: [], + name: "htsToken", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "string", + name: "tokenURI", + type: "string", + }, + ], + name: "mint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "nftClaim", + outputs: [ + { + internalType: "contract INFTClaim", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "ownerOf", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "bytes", + name: "encodedFunctionSelector", + type: "bytes", + }, + ], + name: "redirectForToken", + outputs: [ + { + internalType: "int256", + name: "responseCode", + type: "int256", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "renounceOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "uint256", + name: "salePrice", + type: "uint256", + }, + ], + name: "royaltyInfo", + outputs: [ + { + internalType: "address", + name: "receiver", + type: "address", + }, + { + internalType: "uint256", + name: "royaltyAmount", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_from", + type: "address", + }, + { + internalType: "address", + name: "_to", + type: "address", + }, + { + internalType: "uint256", + name: "_serialNum", + type: "uint256", + }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "transferFromNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "transferOwnership", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x6080806040526200292780380380916200001a8285620009bf565b833981019060c081830312620006ec5780516001600160401b038111620006ec57826200004991830162000a24565b602082015190926001600160401b038211620006ec576200006c91830162000a24565b906200007b6040820162000a71565b606082015190926001600160a01b0382168203620006ec576080830151928360070b8403620006ec5760a0620000b2910162000a71565b936001600160a01b038116156200096e57600080546001600160a01b039283166001600160a01b03198216811783559216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36002602081815260017fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b557fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e09190915560047f679795a0195a1b76cdebb7c51d74e058aee92919b8c3389af86ef24535e8a28c5560087f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c355601060008051602062002907833981519152557fb98b78633099fa36ed8b8680c4f8092689e1e04080eb9cbb077ca38a14d7e38455600660005260407f59dd4b18488d12f51eda69757a0ed42a2010c14b564330cc74a06895e60c077b55612710600784900b136200091d57604051916200021b8362000987565b6001835260005b602081106200090357506200023662000ac3565b506004600052600260205260008051602062002907833981519152546200025c62000a86565b30602082015260405191620002718362000987565b82526020820152620002838462000ae8565b526200028f8362000ae8565b50600480546001600160a01b0319166001600160a01b0392909216919091179055604051946001600160401b03610120870190811190871117620008ed57610120860160405260608652606060208701526000604087015260608087015260006080870152600060a0870152600060c0870152606060e08701526200031362000b0c565b610100870152855260208501523060408501526040516200033481620009a3565b6000815260608501526001608085015263ffffffff60a0850152600060c085015260e08401526200036462000b0c565b30602082015262786450604082015261010084015260405191620003888362000987565b6001835260005b60208110620008d35750620003a362000b3c565b60079290920b825261271060208301526001600160a01b031660a0820152620003cc8262000ae8565b52620003d88162000ae8565b50604051620003e781620009a3565b60008152610100830151805160070b1580620008c3575b620008b3575b506040519263abb54eb560e01b60208501526060602485015262000437815161016060848701526101e486019062000b7f565b90620004826200045a60208301519360831994858983030160a48a015262000b7f565b60408301516001600160a01b031660c48801526060830151878203850160e489015262000b7f565b6080820151151561010487015260a082015160070b61012487015260c0820151151561014487015260e08201519286820301610164870152825180825260208201916020808360051b8301019501926000915b8383106200081e5750505050506101006040910151805160070b61018487015260018060a01b036020820151166101a4870152015160070b6101c48501526023198482030160448501526020808351928381520192019060005b818110620007c7575050506023198382030160648401526020808351928381520192019060005b81811062000761576000808662000577818803601f198101835282620009bf565b602081519101346101675af13d1562000758573d906200059782620009e3565b91620005a76040519384620009bf565b82523d6000602084013e5b156200074b57604081805181010312620006ec576020810151908160030b809203620006ec57604001516001600160a01b0381169190829003620006ec576016905b60030b03620007065760405163053aa6f360e11b81526001600160a01b0391909116906020816004816000865af1908115620006fa57600091620006bd575b5060168114908115620006b1575b50156200066c57600380546001600160a01b031916919091179055604051611d60908162000ba78239f35b60405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f206173736f636961746520746f6b656e000000000000006044820152606490fd5b60c29150148262000641565b90506020813d602011620006f1575b81620006db60209383620009bf565b81010312620006ec57518262000633565b600080fd5b3d9150620006cc565b6040513d6000823e3d90fd5b60405162461bcd60e51b815260206004820152601760248201527f4661696c656420746f2063726561746520746f6b656e2e0000000000000000006044820152606490fd5b50600060166015620005f4565b606090620005b2565b909192602060c06001928651805160070b82528381015160070b84830152604081015160070b6040830152848060a01b03606082015116606083015260808101511515608083015260a08580821b039101511660a0820152019401910191909162000556565b8251805160070b85526020818101516001600160a01b0390811682880152604080840151151590880152606080840151151590880152608092830151169186019190915260a090940193909201916001016200052f565b9091929395602080600192601f19858203018652818a5180518352015190604083820152815115156040820152848060a01b038383015116606082015260c0620008936200087c604085015160a0608086015260e085019062000b7f565b6060850151848203603f190160a086015262000b7f565b926080878060a01b039101511691015298019301930191939290620004d5565b60406276a7009101523862000404565b50604081015160070b15620003fe565b602090620008e062000b3c565b828287010152016200038f565b634e487b7160e01b600052604160045260246000fd5b6020906200091062000ac3565b8282870101520162000222565b60405162461bcd60e51b8152602060048201526024808201527f526f79616c7479204e756d657261746f722073686f756c64206265203c3d20316044820152630303030360e41b6064820152608490fd5b604051631e4fbdf760e01b815260006004820152602490fd5b604081019081106001600160401b03821117620008ed57604052565b602081019081106001600160401b03821117620008ed57604052565b601f909101601f19168101906001600160401b03821190821017620008ed57604052565b6001600160401b038111620008ed57601f01601f191660200190565b60005b83811062000a135750506000910152565b818101518382015260200162000a02565b81601f82011215620006ec57805162000a3d81620009e3565b9262000a4d6040519485620009bf565b81845260208284010111620006ec5762000a6e9160208085019101620009ff565b90565b51906001600160a01b0382168203620006ec57565b6040519060a082016001600160401b03811183821017620008ed576040526000608083828152826020820152606060408201526060808201520152565b6040519062000ad28262000987565b8160008152602062000ae362000a86565b910152565b80511562000af65760200190565b634e487b7160e01b600052603260045260246000fd5b60405190606082016001600160401b03811183821017620008ed5760405260006040838281528260208201520152565b6040519060c082016001600160401b03811183821017620008ed576040528160a06000918281528260208201528260408201528260608201528260808201520152565b9060209162000b9a81518092818552858086019101620009ff565b601f01601f191601019056fe60e0604081815260048036101561001557600080fd5b600092833560e01c908163098d322814610941575080630bc14a69146109185780630e44263a146108e457806315dacbea146108895780632a55205a1461085257806342842e0e146105e95780634bd297fd1461057457806351761bcc146105565780635420aab21461052f578063618dc65e1461040e5780636352211e146103bd578063715018a6146103635780637ad43629146102435780638da5cb5b1461021b5780639b23d3d9146101615763f2fde38b146100d357600080fd5b3461015d57602036600319011261015d576100ec61095f565b906100f5610b38565b6001600160a01b03918216928315610147575050600054826001600160601b0360a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b5050346102175781806101ca6101bc6101793661098b565b8851639b23d3d960e01b602082019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b03601f198101835282610a7d565b5190826101675af1916101db61109f565b921561020a5760208380518101031261020757506101fc60208093016110cf565b905b519060030b8152f35b80fd5b50602091506015906101fe565b5080fd5b505034610217578160031936011261021757905490516001600160a01b039091168152602090f35b503461015d578160031936011261015d578035918260070b9283810361035f5761026b610975565b835486906001600160a01b0316803b156102175784516301dab85560e11b8152338188019081526001600160a01b0385166020820152600786900b60408201529091839183919082908490829060600103925af180156103555761033d575b50506016916102dc9133903090611c79565b036102fa5750503330600080516020611d0b8339815191528480a480f35b906020606492519162461bcd60e51b8352820152601860248201527f4661696c656420746f207472616e7366657220746f6b656e00000000000000006044820152fd5b610346906109cc565b6103515785386102ca565b8580fd5b85513d84823e3d90fd5b8480fd5b833461020757806003193601126102075761037c610b38565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b509134610207576020366003190112610207575060166103fa6103f3602094356001600160601b03811660070b9060601c611213565b9214610bb0565b81015190516001600160a01b039091168152f35b5082903461021757826003193601126102175761042961095f565b906024356001600160401b03811161052b573660238201121561052b57916101bc6104986104638695948560248897369301359101610ab9565b87516330c6e32f60e11b602082019081526001600160a01b039095166024820152604481018990529283916064830190610b13565b5190826101675af1906104a961109f565b917f4af4780e06fe8cb9df64b0794fa6f01399af979175bb988e35e0e57e594567bc84518215158152856020820152806104e587820187610b13565b0390a115610511575061050d6016915b835193849360030b8452806020850152830190610b13565b0390f35b8251915061051e82610a62565b815261050d6015916104f5565b8380fd5b503461015d578260031936011261015d575490516001600160a01b03909116815260209150f35b50503461021757816003193601126102175760209051627864508152f35b8382346102175760a03660031901126102175761058f61095f565b6064356001600160a01b038116036105e4576084356001600160401b03811161052b573660238201121561052b576105e1928160246105d393369301359101610ab9565b906105dc610b38565b610d50565b80f35b600080fd5b503461015d57606036600319011261015d5761060361095f565b9161060c610975565b9060443590610619610b38565b6001600160601b038260601c921660070b92869183885260206005815260ff828a20541615610776575b5087546001600160a01b0396838816938a9289168581036106975750505050505050908361067a82601695946105e1973091611c79565b92309116600080516020611d0b8339815191528780a45b14610b64565b9093969194979295998916146106bb575b505050505050505060166105e191610691565b9091929394959697506106d082843084611c79565b978287519830600080516020611d0b8339815191528980a460b889146106f9575b8594506106a8565b84541692833b15610351576313b87c7360e01b88526001600160a01b0390811694880194855216602084015260070b6040830152849182908490829060600103925af190811561076d5750610755575b808381808080806106f1565b6105e191926107656016926109cc565b929150610749565b513d85823e3d90fd5b815163053aa6f360e11b81529350808488818c895af1938415610848578994610815575b506016841484811561080a575b50156107c85784895260059052808820805460ff1916600117905538610643565b8690606492519162461bcd60e51b8352820152601a60248201527f4661696c656420746f206173736f636961746520746f6b656e2e0000000000006044820152fd5b60c2915014386107a7565b9080945081813d8311610841575b61082d8183610a7d565b8101031261083d5751923861079a565b8880fd5b503d610823565b82513d8b823e3d90fd5b50823461020757826003193601126102075750610873906024359035610c1f565b82516001600160a01b0390921682526020820152f35b5050346102175781806101ca6101bc6108a13661098b565b8851630aed65f560e11b602082019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b503461015d57602036600319011261015d5790519035606081901c82526001600160601b031660070b602082015260409150f35b50503461021757816003193601126102175760035490516001600160a01b039091168152602090f35b8490346102175781600319360112610217578063ffffffff60209252f35b600435906001600160a01b03821682036105e457565b602435906001600160a01b03821682036105e457565b60809060031901126105e4576001600160a01b0360043581811681036105e4579160243582811681036105e4579160443590811681036105e4579060643590565b6001600160401b0381116109df57604052565b634e487b7160e01b600052604160045260246000fd5b60c081019081106001600160401b038211176109df57604052565b61012081019081106001600160401b038211176109df57604052565b606081019081106001600160401b038211176109df57604052565b60a081019081106001600160401b038211176109df57604052565b602081019081106001600160401b038211176109df57604052565b90601f801991011681019081106001600160401b038211176109df57604052565b6001600160401b0381116109df57601f01601f191660200190565b929192610ac582610a9e565b91610ad36040519384610a7d565b8294818452818301116105e4578281602093846000960137010152565b60005b838110610b035750506000910152565b8181015183820152602001610af3565b90602091610b2c81518092818552858086019101610af0565b601f01601f1916010190565b6000546001600160a01b03163303610b4c57565b60405163118cdaa760e01b8152336004820152602490fd5b15610b6b57565b60405162461bcd60e51b815260206004820152601960248201527f4661696c656420746f207472616e7366657220746f6b656e2e000000000000006044820152606490fd5b15610bb757565b60405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f2067657420746f6b656e20696e666f00000000000000006044820152606490fd5b805115610c095760200190565b634e487b7160e01b600052603260045260246000fd5b90610c47610c40601694936001600160601b03811660070b9060601c611213565b9414610bb0565b60e0908184510151805115610d2c57610c61604091610bfc565b51015160070b15610c9f5750610c9660409160018060a01b0360a0610c898388510151610bfc565b5101511694510151610bfc565b51015160070b90565b929060018060a01b0360a0610cb78385510151610bfc565b5101511691610cc98282510151610bfc565b515160070b94858102958187041490151715610d1657602091610cee91510151610bfc565b51015160070b908115610d0057920490565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b5050509050600090600090565b6001600160401b0381116109df5760051b60200190565b6040805191926001600160401b039190838201838111858210176109df578252600180855260209160005b8381106110905750610daa83855183610d9d8295518092858086019101610af0565b8101038084520182610a7d565b610db386610bfc565b52610dbd85610bfc565b5060018060a01b03948560035416908451918483019363707a02cd60e11b8552608484019160248501526000604485015260606064850152825180925260a48401918660a48260051b8701019401926000905b88838310611065575050505050509181610e3760009493859403601f198101835282610a7d565b5190826101675af1610e4761109f565b9060009015611049575080518101936060828487019603126105e457610e6e8383016110cf565b91610e7a8582016110dd565b5060608101519182116105e457019380603f860112156105e45782850151610ea181610d39565b95610eae86519788610a7d565b818752858588019260051b8201019283116105e45785859101915b83831061103157505050505b8460035416916016610ee686610bfc565b519285519360070b857fad84708d7ac2ada9581037062b2e2f5deafe013f421ab00b775fdddd98564103600080a360030b03610ff7575050610f389085610f2c85610bfc565b5160070b913090611c79565b9060b88214610f73575090610f526016610f579314610b64565b610bfc565b5160070b911630600080516020611d0b833981519152600080a4565b929050610f8c8160049593955416916003541694610bfc565b5160070b90803b156105e45783516313b87c7360e01b81526001600160a01b03938416600482015294909216602485015260070b60448401526000908390606490829084905af1908115610fed5750610fe25750565b610feb906109cc565b565b513d6000823e3d90fd5b62461bcd60e51b82526004820152601660248201527502330b4b632b2103a379036b4b73a103a37b5b2b717160551b604482015260649150fd5b819061103c846110dd565b8152019101908490610ec9565b93505081519261105884610a62565b8084523681376015610ed5565b8061108186979860a39794959697198b82030186528951610b13565b97019201920190939291610e10565b60608782018501528301610d7b565b3d156110ca573d906110b082610a9e565b916110be6040519384610a7d565b82523d6000602084013e565b606090565b51908160030b82036105e457565b51908160070b82036105e457565b6040908151916110fa836109f5565b60a083825161110881610a10565b835161111381610a10565b606094859283835283602084015260009683888481960152818082015284608082015284888201528460c08201528160e082015261010090845161115681610a2c565b86815286602082015286868201528282015283528460208401528484840152848284015284608084015281888401528160c08401528160e08401528201528452816020850152830152838183015260808201520152565b81601f820112156105e45780516111c381610a9e565b926111d16040519485610a7d565b818452602082840101116105e4576111ef9160208085019101610af0565b90565b51906001600160a01b03821682036105e457565b519081151582036105e457565b600091906101bc61125f84936112276110eb565b5060405163050fc3b560e31b602082019081526001600160a01b03909516602482015260079190910b60448201529182906064820190565b5190826101675af161126f61109f565b60a05261127a6110eb565b9015611c71575060a0515160a0510160c052604060a05160c05103126105e4576112a8602060a051016110cf565b604060a05101516080526001600160401b03608051116105e45760c060805160a05101815103126105e457604051906112e0826109f5565b602060805160a0510101516001600160401b0381116105e4576101208160805160a051010160c05103126105e4576040519061131b82610a10565b60208160805160a051010101516001600160401b0381116105e457610160818360805160a05101010160c05103126105e4576040519061135a82610a10565b6020818460805160a05101010101516001600160401b0381116105e4576113959060208060c0510191848760805160a05101010101016111ad565b82526040818460805160a05101010101516001600160401b0381116105e4576113d29060208060c0510191848760805160a05101010101016111ad565b60208301526113ed6060828560805160a051010101016111f2565b604083015260808184825160a05101010101516001600160401b0381116105e45761142c9060208060c0510191848760805160a05101010101016111ad565b606083015261144660a08285608051835101010101611206565b608083015261146160c0828560805160a051010101016110dd565b60a083015261147c60e0828560805160a05101010101611206565b60c0830152610100818460805160a05101010101516001600160401b0381116105e457602060c05101603f82848760805160a051010101010112156105e457602081838660805160a051010101010151906114d682610d39565b916114e46040519384610a7d565b80835260208301602060c0510160408360051b85888b60805160a051010101010101116105e457604083868960805160a0510101010101905b60408360051b85888b60805160a0510101010101018210611aae575050505060e0830152606060ff19828560805160a05101010160c0510301126105e4576115b36101606040519261156e84610a2c565b611585610120828860805160a051010101016110dd565b845261159e610140828860805160a051010101016111f2565b60208501528560805160a051010101016110dd565b604082015261010082015282526115d460408260805160a0510101016110dd565b60208301526115ed60608260805160a051010101611206565b6040830152611605608082815160a051010101611206565b606083015261161d60a0826080518251010101611206565b608083015260c08160805160a051010101516001600160401b0381116105e457602060c05101603f828460805160a0510101010112156105e4576020818360805160a05101010101519061167082610d39565b9161167e6040519384610a7d565b8083526020830191602060c05101604060a08402838860805160a0510101010101116105e457916040838660805160a05101010101925b604060a08402828860805160a05101010101018410611a33575050505060a083015260e08160805160a051010101516001600160401b0381116105e457602060c05101603f828460805160a0510101010112156105e4576020818360805160a05101010101519061172582610d39565b916117336040519384610a7d565b8083526020830191602060c05101604060c08402838860805160a0510101010101116105e457916040838660805160a05101010101925b604060c08402828860805160a051010101010184106119a8575050505060c08301526101008160805160a051010101516001600160401b0381116105e457602060c05101603f828460805160a0510101010112156105e4576020818360805160a0510101010151906117db82610d39565b916117e96040519384610a7d565b8083526020830191602060c05101604060c08402838860805160a0510101010101116105e457916040838660805160a05101010101925b604060c08402828860805160a0510101010101841061191d575050505060e08301526101208160805160a05101010151906001600160401b0382116105e457602061187a928160c051019260805160a051010101016111ad565b6101008201528252611894604060805160a05101016110dd565b60208301526118ab606060805160a05101016111f2565b60408301526118c16080805160a05101016110dd565b606083015260a060805181510101516001600160401b0381116105e4576118f89060208060c051019160805160a0510101016111ad565b608083015261190f60c060805160a05101016111f2565b60a0830152905b9060030b91565b60c060208582510301126105e45760c0806020604094855161193e816109f5565b611947896110dd565b8152611954838a016110dd565b83820152611963878a016110dd565b8782015261197360608a016111f2565b606082015261198460808a01611206565b608082015261199560a08a016111f2565b60a0820152815201950194925050611820565b60c060208582510301126105e45760c080602060409485516119c9816109f5565b6119d2896110dd565b81526119df838a016110dd565b838201526119ee878a016110dd565b878201526119fe60608a016110dd565b6060820152611a0f60808a01611206565b6080820152611a2060a08a016111f2565b60a082015281520195019492505061176a565b60a060208560c0510301126105e45760a08060206040948551611a5581610a47565b611a5e896110dd565b8152611a6b838a016111f2565b83820152611a7a878a01611206565b87820152611a8a60608a01611206565b6060820152611a9b60808a016111f2565b60808201528152019501949250506116b5565b8151906001600160401b0382116105e4576040601f1983878a8d60805160a051010101010160c0510301126105e457604051908160408101106001600160401b036040840111176109df5760408201604052604083878a8d60805160a051010101010101518252606083878a8d60805160a05101010101010151906001600160401b0382116105e45760a08b83868a8d601f1994608051875101010101010160c0510301126105e4578a92608083868a8d60405198611b6c8a610a47565b611b87604086868686868c5160a05101010101010101611206565b8a52611ba4606086868686868c5160a051010101010101016111f2565b60208b0152855160a05101010101010101516001600160401b0381116105e45783868a8f8e90611bf060a0966040602060c051019188888888886080518f5101010101010101016111ad565b60408b015260805186510101010101010151936001600160401b0385116105e457611c5b60c0602096958f988c8f60409b611c448c9b8e8d89510191888888888860805160a05101010101010101016111ad565b606089015260805160a051010101010101016111f2565b608082015283820152815201920191905061151d565b601590611916565b604051635cfc901160e01b602082019081526001600160a01b03928316602483015292821660448201529216606483015260079290920b6084808301919091528152611cc4816109f5565b6000809281925190826101675af190611cdb61109f565b9115611d015760208280518101031261020757506020611cfb91016110cf565b60030b90565b50506015611cfb56fecef55929759435389feb62e3ad30d90911d061d3eb8f8e3ead60622531745cc1a2646970667358221220f4dd65b7281d905637002c2a1416c231d71017c0f8129a64e3ca0ce2236aa43164736f6c63430008150033ee60d0579bcffd98e668647d59fec1ff86a7fb340ce572e844f234ae73a6918f"; + +type HederaNftDepConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: HederaNftDepConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class HederaNftDep__factory extends ContractFactory { + constructor(...args: HederaNftDepConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + name: string, + symbol: string, + owner: AddressLike, + claimContract: AddressLike, + royaltyNum: BigNumberish, + royaltyReceiver: AddressLike, + overrides?: PayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction( + name, + symbol, + owner, + claimContract, + royaltyNum, + royaltyReceiver, + overrides || {} + ); + } + override deploy( + name: string, + symbol: string, + owner: AddressLike, + claimContract: AddressLike, + royaltyNum: BigNumberish, + royaltyReceiver: AddressLike, + overrides?: PayableOverrides & { from?: string } + ) { + return super.deploy( + name, + symbol, + owner, + claimContract, + royaltyNum, + royaltyReceiver, + overrides || {} + ) as Promise< + HederaNftDep & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): HederaNftDep__factory { + return super.connect(runner) as HederaNftDep__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): HederaNftDepInterface { + return new Interface(_abi) as HederaNftDepInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): HederaNftDep { + return new Contract(address, _abi, runner) as unknown as HederaNftDep; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/index.ts b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/index.ts new file mode 100644 index 0000000..207be80 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFT.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { HederaNftDep__factory } from "./HederaNftDep__factory"; diff --git a/src/contractsTypes/evm/factories/contracts/hedera/HederaNFTClaim__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFTClaim__factory.ts new file mode 100644 index 0000000..3687786 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFTClaim__factory.ts @@ -0,0 +1,290 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../../../common"; +import type { + HederaNFTClaim, + HederaNFTClaimInterface, +} from "../../../contracts/hedera/HederaNFTClaim"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "OwnableInvalidOwner", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "OwnableUnauthorizedAccount", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "token", + type: "address", + }, + { + indexed: true, + internalType: "int64", + name: "serial", + type: "int64", + }, + ], + name: "ClaimCreated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "token", + type: "address", + }, + { + indexed: true, + internalType: "int64", + name: "serial", + type: "int64", + }, + ], + name: "ClaimRemoved", + 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: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "serial", + type: "int64", + }, + ], + name: "addClaimRecord", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "data", + type: "uint256", + }, + ], + name: "decodeHts", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "sender", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "serialNum", + type: "int64", + }, + ], + name: "getClaimRecord", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "claimer", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getClaimableNfts", + outputs: [ + { + internalType: "uint256[]", + name: "", + type: "uint256[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + 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; + +const _bytecode = + "0x6080806040523461007a5733156100645760008054336001600160a01b03198216811783556040519290916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361063590816100808239f35b631e4fbdf760e01b815260006004820152602490fd5b600080fdfe604060808152600436101561001357600080fd5b600090813560e01c806303b570aa146103155780630b5d6cab146102225780630e44263a146101ea57806313b87c7314610178578063715018a61461011b5780638da5cb5b146100f45763f2fde38b1461006c57600080fd5b346100f05760203660031901126100f0576100856103d1565b61008d61042b565b6001600160a01b039081169182156100d9575082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b815260048101849052602490fd5b5080fd5b50346100f057816003193601126100f057905490516001600160a01b039091168152602090f35b823461017557806003193601126101755761013461042b565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b50346100f0576101c29061018b366103ec565b93909261019661042b565b60018060a01b0380931692838752600160205281872094169384875260205285209360070b809461058c565b507f44b4992efa0f4a2ef0ab6c12e382a8912e85b95be1d0c1ef675f3ec8eb4c072f8480a480f35b50903461017557602036600319011261017557506004356bffffffffffffffffffffffff8251918060601c83521660070b6020820152f35b50346100f057806003193601126100f05761023b6103d1565b6001600160a01b036024358181169290839003610311571683526001926020918483528382209082528252828120918351918183818654918281520190819684528284209089855b8281106102fc5750505050849003601f01601f1916840195905067ffffffffffffffff8611848710176102e85792869284878096528186019282875251809352850195925b8281106102d55785870386f35b83518752958101959281019284016102c8565b634e487b7160e01b82526041600452602482fd5b83548552879590940193928101928101610283565b8480fd5b50346100f057610324366103ec565b90919261032f61042b565b60018060a01b0380941693848652600160205281862093169283865260205261036581862067ffffffffffffffff841690610485565b15610396575060070b917fb07fa4a51e7b16a069203e783265a3ef2a613ec877f5c502ffd9694079204ac18480a480f35b5162461bcd60e51b815260206004820152601560248201527410d85b9b9bdd0818db185a5b481d1a1a5cc81b999d605a1b6044820152606490fd5b600435906001600160a01b03821682036103e757565b600080fd5b60609060031901126103e7576001600160a01b039060043582811681036103e7579160243590811681036103e757906044358060070b81036103e75790565b6000546001600160a01b0316330361043f57565b60405163118cdaa760e01b8152336004820152602490fd5b805482101561046f5760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b9060018201906000928184528260205260408420549081151560001461058557600019918083018181116105715782549084820191821161055d57818103610511575b505050805480156104fd578201916104e08383610457565b909182549160031b1b191690555582526020526040812055600190565b634e487b7160e01b86526031600452602486fd5b6105486105216105319386610457565b90549060031b1c92839286610457565b819391549060031b91821b91600019901b19161790565b905586528460205260408620553880806104c8565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b87526011600452602487fd5b5050505090565b919060018301600090828252806020526040822054156000146105f957845494680100000000000000008610156105e557836105d5610531886001604098999a01855584610457565b9055549382526020522055600190565b634e487b7160e01b83526041600452602483fd5b5092505056fea264697066735822122033c61da5cd9ec57c395528bcd889dac8d27e1b4941089542732fedb9b8add18264736f6c63430008150033"; + +type HederaNFTClaimConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: HederaNFTClaimConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class HederaNFTClaim__factory extends ContractFactory { + constructor(...args: HederaNFTClaimConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}); + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + HederaNFTClaim & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): HederaNFTClaim__factory { + return super.connect(runner) as HederaNFTClaim__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): HederaNFTClaimInterface { + return new Interface(_abi) as HederaNFTClaimInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): HederaNFTClaim { + return new Contract(address, _abi, runner) as unknown as HederaNFTClaim; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/HederaNFTStorage__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFTStorage__factory.ts new file mode 100644 index 0000000..000e755 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/HederaNFTStorage__factory.ts @@ -0,0 +1,327 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { + Signer, + AddressLike, + ContractDeployTransaction, + ContractRunner, +} from "ethers"; +import type { NonPayableOverrides } from "../../../common"; +import type { + HederaNFTStorage, + HederaNFTStorageInterface, +} from "../../../contracts/hedera/HederaNFTStorage"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_collectionAddress", + type: "address", + }, + { + internalType: "address", + name: "_owner", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bool", + name: "", + type: "bool", + }, + { + indexed: false, + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + name: "CallResponseEvent", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: true, + internalType: "int64", + name: "tokenId", + type: "int64", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [], + name: "claimContract", + outputs: [ + { + internalType: "contract INFTClaim", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "int64", + name: "serialNum", + type: "int64", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "claimNft", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "collectionAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "depositToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "bytes", + name: "encodedFunctionSelector", + type: "bytes", + }, + ], + name: "redirectForToken", + outputs: [ + { + internalType: "int256", + name: "responseCode", + type: "int256", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "transferFromNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + name: "unlockToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040908082523461012d5781816111b580380380916100208285610132565b83398101031261012d5760206100358261016b565b916001600160a01b0391829161004b910161016b565b169160018060a01b0319926020836000938493878554161784551680866001541617600155600487518094819363053aa6f360e11b83525af18015610123576100f5575b5083516106b5808201906001600160401b038211838310176100e157908291610b008339039082f09081156100d65750169060025416176002555161098090816101808239f35b8451903d90823e3d90fd5b634e487b7160e01b84526041600452602484fd5b602090813d811161011c575b61010b8183610132565b81010312610119573861008f565b80fd5b503d610101565b85513d84823e3d90fd5b600080fd5b601f909101601f19168101906001600160401b0382119082101761015557604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361012d5756fe608060408181526004918236101561001657600080fd5b600092833560e01c91826315dacbea146106c357508163618dc65e1461054c5781636215be771461050457816366345da4146104db5781636aa00371146104b25781637326afe0146102915781637ad4362914610159575080638da5cb5b1461013257639b23d3d91461008857600080fd5b3461012e5781806020936100f16100e36100a136610739565b8951639b23d3d960e01b8c82019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b03601f1981018352826107a4565b5190826101675af1610101610867565b9150156101255780838061011a93518301019101610897565b905b519060030b8152f35b5060159061011c565b5080fd5b503461012e578160031936011261012e57905490516001600160a01b039091168152602090f35b90503461028d578160031936011261028d578035918260070b928381036102895761018261071e565b60025486906001600160a01b0316803b1561012e5784516301dab85560e11b8152338188019081526001600160a01b0385166020820152600786900b60408201529091839183919082908490829060600103925af1801561027f57610267575b50506016916101f491339030906108b0565b0361022457505033307fcef55929759435389feb62e3ad30d90911d061d3eb8f8e3ead60622531745cc18480a480f35b906020606492519162461bcd60e51b8352820152601860248201527f4661696c656420746f207472616e7366657220746f6b656e00000000000000006044820152fd5b6102709061077a565b61027b5785386101e2565b8580fd5b85513d84823e3d90fd5b8480fd5b8280fd5b9190503461028d578060031936011261028d578135916102af61071e565b845490936001600160a01b0391821633036104615781600154169084516331a9108f60e11b81528185820152602081602481865afa908115610457578891610419575b5083309116036103c1579161031d8695949267ffffffffffffffff89951660070b96879130906108b0565b9560b88714610337575b8361033460168914610822565b80f35b8160025416916001541692823b156102895785516313b87c7360e01b81526001600160a01b0392831691810191825291909316602084015260079590950b6040830152849182908490829060600103925af19081156103b857506103a0575b8083818080610327565b61033491926103b060169261077a565b929150610396565b513d85823e3d90fd5b845162461bcd60e51b8152602081860152602c60248201527f5468697320636f6e7472616374206973206e6f7420746865206f776e6572206f60448201526b33103a3434b9903a37b5b2b760a11b6064820152608490fd5b90506020813d821161044f575b81610433602093836107a4565b8101031261044b5751838116810361044b57386102f2565b8780fd5b3d9150610426565b86513d8a823e3d90fd5b835162461bcd60e51b8152602081850152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152608490fd5b50503461012e578160031936011261012e5760015490516001600160a01b039091168152602090f35b50503461012e578160031936011261012e5760025490516001600160a01b039091168152602090f35b83903461012e57602036600319011261012e5760015461033491601691610546913567ffffffffffffffff1660070b90309033906001600160a01b03166108b0565b14610822565b8284346106c057816003193601126106c05782356001600160a01b038116929083900361012e576024359267ffffffffffffffff908185116106bc57366023860112156106bc57848601356105a0816107c6565b906105ad855192836107a4565b80825260209636602483830101116106b85761060287949293858a86829760246100e39701838601378301015287519283918b8301956330c6e32f60e11b8752602484015289604484015260648301906107e2565b5190826101675af192610613610867565b937f4af4780e06fe8cb9df64b0794fa6f01399af979175bb988e35e0e57e594567bc8451821515815285888201528061064e878201896107e2565b0390a11561067e57505061067a91929350601692905b80805195869560030b86528501528301906107e2565b0390f35b8251935090848401908111848210176106a55761067a939495508252835260159290610664565b634e487b7160e01b825260418652602482fd5b8680fd5b8380fd5b80fd5b9150503461028d579180806100e3856100f16020976106e136610739565b630aed65f560e11b858e019081526001600160a01b03948516602487015292841660448601529216606484015260848301919091529360a4820190565b602435906001600160a01b038216820361073457565b600080fd5b6080906003190112610734576001600160a01b0360043581811681036107345791602435828116810361073457916044359081168103610734579060643590565b67ffffffffffffffff811161078e57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761078e57604052565b67ffffffffffffffff811161078e57601f01601f191660200190565b919082519283825260005b84811061080e575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016107ed565b1561082957565b60405162461bcd60e51b815260206004820152601660248201527511985a5b1959081d1bc81d1c985b9cd9995c8813919560521b6044820152606490fd5b3d15610892573d90610878826107c6565b9161088660405193846107a4565b82523d6000602084013e565b606090565b9081602091031261073457518060030b81036107345790565b604051635cfc901160e01b602082019081526001600160a01b03928316602483015292821660448201529216606483015260079290920b60848083019190915281529060c082019067ffffffffffffffff82118383101761078e5760009283926040525190826101675af1610923610867565b9015610942578060208061093c93518301019101610897565b60030b90565b50601561093c56fea2646970667358221220c32474f17254aa7c7a2432efc9aad917993404f88a0f1ce5232e645d31ba7fda64736f6c634300081500336080806040523461007a5733156100645760008054336001600160a01b03198216811783556040519290916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361063590816100808239f35b631e4fbdf760e01b815260006004820152602490fd5b600080fdfe604060808152600436101561001357600080fd5b600090813560e01c806303b570aa146103155780630b5d6cab146102225780630e44263a146101ea57806313b87c7314610178578063715018a61461011b5780638da5cb5b146100f45763f2fde38b1461006c57600080fd5b346100f05760203660031901126100f0576100856103d1565b61008d61042b565b6001600160a01b039081169182156100d9575082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b815260048101849052602490fd5b5080fd5b50346100f057816003193601126100f057905490516001600160a01b039091168152602090f35b823461017557806003193601126101755761013461042b565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b50346100f0576101c29061018b366103ec565b93909261019661042b565b60018060a01b0380931692838752600160205281872094169384875260205285209360070b809461058c565b507f44b4992efa0f4a2ef0ab6c12e382a8912e85b95be1d0c1ef675f3ec8eb4c072f8480a480f35b50903461017557602036600319011261017557506004356bffffffffffffffffffffffff8251918060601c83521660070b6020820152f35b50346100f057806003193601126100f05761023b6103d1565b6001600160a01b036024358181169290839003610311571683526001926020918483528382209082528252828120918351918183818654918281520190819684528284209089855b8281106102fc5750505050849003601f01601f1916840195905067ffffffffffffffff8611848710176102e85792869284878096528186019282875251809352850195925b8281106102d55785870386f35b83518752958101959281019284016102c8565b634e487b7160e01b82526041600452602482fd5b83548552879590940193928101928101610283565b8480fd5b50346100f057610324366103ec565b90919261032f61042b565b60018060a01b0380941693848652600160205281862093169283865260205261036581862067ffffffffffffffff841690610485565b15610396575060070b917fb07fa4a51e7b16a069203e783265a3ef2a613ec877f5c502ffd9694079204ac18480a480f35b5162461bcd60e51b815260206004820152601560248201527410d85b9b9bdd0818db185a5b481d1a1a5cc81b999d605a1b6044820152606490fd5b600435906001600160a01b03821682036103e757565b600080fd5b60609060031901126103e7576001600160a01b039060043582811681036103e7579160243590811681036103e757906044358060070b81036103e75790565b6000546001600160a01b0316330361043f57565b60405163118cdaa760e01b8152336004820152602490fd5b805482101561046f5760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b9060018201906000928184528260205260408420549081151560001461058557600019918083018181116105715782549084820191821161055d57818103610511575b505050805480156104fd578201916104e08383610457565b909182549160031b1b191690555582526020526040812055600190565b634e487b7160e01b86526031600452602486fd5b6105486105216105319386610457565b90549060031b1c92839286610457565b819391549060031b91821b91600019901b19161790565b905586528460205260408620553880806104c8565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b87526011600452602487fd5b5050505090565b919060018301600090828252806020526040822054156000146105f957845494680100000000000000008610156105e557836105d5610531886001604098999a01855584610457565b9055549382526020522055600190565b634e487b7160e01b83526041600452602483fd5b5092505056fea264697066735822122033c61da5cd9ec57c395528bcd889dac8d27e1b4941089542732fedb9b8add18264736f6c63430008150033"; + +type HederaNFTStorageConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: HederaNFTStorageConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class HederaNFTStorage__factory extends ContractFactory { + constructor(...args: HederaNFTStorageConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + _collectionAddress: AddressLike, + _owner: AddressLike, + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction( + _collectionAddress, + _owner, + overrides || {} + ); + } + override deploy( + _collectionAddress: AddressLike, + _owner: AddressLike, + overrides?: NonPayableOverrides & { from?: string } + ) { + return super.deploy(_collectionAddress, _owner, overrides || {}) as Promise< + HederaNFTStorage & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): HederaNFTStorage__factory { + return super.connect(runner) as HederaNFTStorage__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): HederaNFTStorageInterface { + return new Interface(_abi) as HederaNFTStorageInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): HederaNFTStorage { + return new Contract(address, _abi, runner) as unknown as HederaNFTStorage; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer__factory.ts new file mode 100644 index 0000000..6037507 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer__factory.ts @@ -0,0 +1,123 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../../../../common"; +import type { + HederaNFTStorageDeployer, + HederaNFTStorageDeployerInterface, +} from "../../../../contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [ + { + internalType: "address", + name: "collectionAddress", + type: "address", + }, + ], + name: "deployNFT721Storage", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "nonpayable", + 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; + +const _bytecode = + "0x60808060405234610016576113bc908161001c8239f35b600080fdfe608060408181526004918236101561001657600080fd5b600092833560e01c91826311d5db80146100f75750816313af4035146100705750638da5cb5b1461004657600080fd5b3461006c578160031936011261006c57905490516001600160a01b039091168152602090f35b5080fd5b919050346100f35760203660031901126100f3576001600160a01b038235818116939192908490036100ef5784549283166100b75750506001600160a01b03191617815580f35b906020606492519162461bcd60e51b835282015260126024820152714f776e657220616c7265616479207365742160701b6044820152fd5b8480fd5b8280fd5b9150346101cd5760203660031901126101cd576001600160a01b039181358381169291908390036101c957838654169081330361019257508451926111b58085019385851067ffffffffffffffff86111761017f57509186939185936101d285398252602082015203019084f091821561017657602093505191168152f35b513d84823e3d90fd5b634e487b7160e01b895260419052602488fd5b62461bcd60e51b8152602083820152601360248201527213db9b1e481bdddb995c8818d85b8818d85b1b606a1b6044820152606490fd5b8580fd5b8380fdfe60806040908082523461012d5781816111b580380380916100208285610132565b83398101031261012d5760206100358261016b565b916001600160a01b0391829161004b910161016b565b169160018060a01b0319926020836000938493878554161784551680866001541617600155600487518094819363053aa6f360e11b83525af18015610123576100f5575b5083516106b5808201906001600160401b038211838310176100e157908291610b008339039082f09081156100d65750169060025416176002555161098090816101808239f35b8451903d90823e3d90fd5b634e487b7160e01b84526041600452602484fd5b602090813d811161011c575b61010b8183610132565b81010312610119573861008f565b80fd5b503d610101565b85513d84823e3d90fd5b600080fd5b601f909101601f19168101906001600160401b0382119082101761015557604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b038216820361012d5756fe608060408181526004918236101561001657600080fd5b600092833560e01c91826315dacbea146106c357508163618dc65e1461054c5781636215be771461050457816366345da4146104db5781636aa00371146104b25781637326afe0146102915781637ad4362914610159575080638da5cb5b1461013257639b23d3d91461008857600080fd5b3461012e5781806020936100f16100e36100a136610739565b8951639b23d3d960e01b8c82019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b03601f1981018352826107a4565b5190826101675af1610101610867565b9150156101255780838061011a93518301019101610897565b905b519060030b8152f35b5060159061011c565b5080fd5b503461012e578160031936011261012e57905490516001600160a01b039091168152602090f35b90503461028d578160031936011261028d578035918260070b928381036102895761018261071e565b60025486906001600160a01b0316803b1561012e5784516301dab85560e11b8152338188019081526001600160a01b0385166020820152600786900b60408201529091839183919082908490829060600103925af1801561027f57610267575b50506016916101f491339030906108b0565b0361022457505033307fcef55929759435389feb62e3ad30d90911d061d3eb8f8e3ead60622531745cc18480a480f35b906020606492519162461bcd60e51b8352820152601860248201527f4661696c656420746f207472616e7366657220746f6b656e00000000000000006044820152fd5b6102709061077a565b61027b5785386101e2565b8580fd5b85513d84823e3d90fd5b8480fd5b8280fd5b9190503461028d578060031936011261028d578135916102af61071e565b845490936001600160a01b0391821633036104615781600154169084516331a9108f60e11b81528185820152602081602481865afa908115610457578891610419575b5083309116036103c1579161031d8695949267ffffffffffffffff89951660070b96879130906108b0565b9560b88714610337575b8361033460168914610822565b80f35b8160025416916001541692823b156102895785516313b87c7360e01b81526001600160a01b0392831691810191825291909316602084015260079590950b6040830152849182908490829060600103925af19081156103b857506103a0575b8083818080610327565b61033491926103b060169261077a565b929150610396565b513d85823e3d90fd5b845162461bcd60e51b8152602081860152602c60248201527f5468697320636f6e7472616374206973206e6f7420746865206f776e6572206f60448201526b33103a3434b9903a37b5b2b760a11b6064820152608490fd5b90506020813d821161044f575b81610433602093836107a4565b8101031261044b5751838116810361044b57386102f2565b8780fd5b3d9150610426565b86513d8a823e3d90fd5b835162461bcd60e51b8152602081850152602560248201527f4f6e6c7920746865206f776e65722063616e2063616c6c20746869732066756e60448201526431ba34b7b760d91b6064820152608490fd5b50503461012e578160031936011261012e5760015490516001600160a01b039091168152602090f35b50503461012e578160031936011261012e5760025490516001600160a01b039091168152602090f35b83903461012e57602036600319011261012e5760015461033491601691610546913567ffffffffffffffff1660070b90309033906001600160a01b03166108b0565b14610822565b8284346106c057816003193601126106c05782356001600160a01b038116929083900361012e576024359267ffffffffffffffff908185116106bc57366023860112156106bc57848601356105a0816107c6565b906105ad855192836107a4565b80825260209636602483830101116106b85761060287949293858a86829760246100e39701838601378301015287519283918b8301956330c6e32f60e11b8752602484015289604484015260648301906107e2565b5190826101675af192610613610867565b937f4af4780e06fe8cb9df64b0794fa6f01399af979175bb988e35e0e57e594567bc8451821515815285888201528061064e878201896107e2565b0390a11561067e57505061067a91929350601692905b80805195869560030b86528501528301906107e2565b0390f35b8251935090848401908111848210176106a55761067a939495508252835260159290610664565b634e487b7160e01b825260418652602482fd5b8680fd5b8380fd5b80fd5b9150503461028d579180806100e3856100f16020976106e136610739565b630aed65f560e11b858e019081526001600160a01b03948516602487015292841660448601529216606484015260848301919091529360a4820190565b602435906001600160a01b038216820361073457565b600080fd5b6080906003190112610734576001600160a01b0360043581811681036107345791602435828116810361073457916044359081168103610734579060643590565b67ffffffffffffffff811161078e57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761078e57604052565b67ffffffffffffffff811161078e57601f01601f191660200190565b919082519283825260005b84811061080e575050826000602080949584010152601f8019910116010190565b6020818301810151848301820152016107ed565b1561082957565b60405162461bcd60e51b815260206004820152601660248201527511985a5b1959081d1bc81d1c985b9cd9995c8813919560521b6044820152606490fd5b3d15610892573d90610878826107c6565b9161088660405193846107a4565b82523d6000602084013e565b606090565b9081602091031261073457518060030b81036107345790565b604051635cfc901160e01b602082019081526001600160a01b03928316602483015292821660448201529216606483015260079290920b60848083019190915281529060c082019067ffffffffffffffff82118383101761078e5760009283926040525190826101675af1610923610867565b9015610942578060208061093c93518301019101610897565b60030b90565b50601561093c56fea2646970667358221220c32474f17254aa7c7a2432efc9aad917993404f88a0f1ce5232e645d31ba7fda64736f6c634300081500336080806040523461007a5733156100645760008054336001600160a01b03198216811783556040519290916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361063590816100808239f35b631e4fbdf760e01b815260006004820152602490fd5b600080fdfe604060808152600436101561001357600080fd5b600090813560e01c806303b570aa146103155780630b5d6cab146102225780630e44263a146101ea57806313b87c7314610178578063715018a61461011b5780638da5cb5b146100f45763f2fde38b1461006c57600080fd5b346100f05760203660031901126100f0576100856103d1565b61008d61042b565b6001600160a01b039081169182156100d9575082546001600160a01b0319811683178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b51631e4fbdf760e01b815260048101849052602490fd5b5080fd5b50346100f057816003193601126100f057905490516001600160a01b039091168152602090f35b823461017557806003193601126101755761013461042b565b80546001600160a01b03198116825581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b50346100f0576101c29061018b366103ec565b93909261019661042b565b60018060a01b0380931692838752600160205281872094169384875260205285209360070b809461058c565b507f44b4992efa0f4a2ef0ab6c12e382a8912e85b95be1d0c1ef675f3ec8eb4c072f8480a480f35b50903461017557602036600319011261017557506004356bffffffffffffffffffffffff8251918060601c83521660070b6020820152f35b50346100f057806003193601126100f05761023b6103d1565b6001600160a01b036024358181169290839003610311571683526001926020918483528382209082528252828120918351918183818654918281520190819684528284209089855b8281106102fc5750505050849003601f01601f1916840195905067ffffffffffffffff8611848710176102e85792869284878096528186019282875251809352850195925b8281106102d55785870386f35b83518752958101959281019284016102c8565b634e487b7160e01b82526041600452602482fd5b83548552879590940193928101928101610283565b8480fd5b50346100f057610324366103ec565b90919261032f61042b565b60018060a01b0380941693848652600160205281862093169283865260205261036581862067ffffffffffffffff841690610485565b15610396575060070b917fb07fa4a51e7b16a069203e783265a3ef2a613ec877f5c502ffd9694079204ac18480a480f35b5162461bcd60e51b815260206004820152601560248201527410d85b9b9bdd0818db185a5b481d1a1a5cc81b999d605a1b6044820152606490fd5b600435906001600160a01b03821682036103e757565b600080fd5b60609060031901126103e7576001600160a01b039060043582811681036103e7579160243590811681036103e757906044358060070b81036103e75790565b6000546001600160a01b0316330361043f57565b60405163118cdaa760e01b8152336004820152602490fd5b805482101561046f5760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b9060018201906000928184528260205260408420549081151560001461058557600019918083018181116105715782549084820191821161055d57818103610511575b505050805480156104fd578201916104e08383610457565b909182549160031b1b191690555582526020526040812055600190565b634e487b7160e01b86526031600452602486fd5b6105486105216105319386610457565b90549060031b1c92839286610457565b819391549060031b91821b91600019901b19161790565b905586528460205260408620553880806104c8565b634e487b7160e01b88526011600452602488fd5b634e487b7160e01b87526011600452602487fd5b5050505090565b919060018301600090828252806020526040822054156000146105f957845494680100000000000000008610156105e557836105d5610531886001604098999a01855584610457565b9055549382526020522055600190565b634e487b7160e01b83526041600452602483fd5b5092505056fea264697066735822122033c61da5cd9ec57c395528bcd889dac8d27e1b4941089542732fedb9b8add18264736f6c63430008150033a26469706673582212203d7a05fff3b356e33ecbbe7592705973d7380c37f6af09ed8d3f79265b8843a564736f6c63430008150033"; + +type HederaNFTStorageDeployerConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: HederaNFTStorageDeployerConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class HederaNFTStorageDeployer__factory extends ContractFactory { + constructor(...args: HederaNFTStorageDeployerConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}); + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + HederaNFTStorageDeployer & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect( + runner: ContractRunner | null + ): HederaNFTStorageDeployer__factory { + return super.connect(runner) as HederaNFTStorageDeployer__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): HederaNFTStorageDeployerInterface { + return new Interface(_abi) as HederaNFTStorageDeployerInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): HederaNFTStorageDeployer { + return new Contract( + address, + _abi, + runner + ) as unknown as HederaNFTStorageDeployer; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/index.ts b/src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/index.ts new file mode 100644 index 0000000..07e75f1 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/HederaStorageDeployer.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { HederaNFTStorageDeployer__factory } from "./HederaNFTStorageDeployer__factory"; diff --git a/src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/ContractProxy__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/ContractProxy__factory.ts new file mode 100644 index 0000000..aeebe6a --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/ContractProxy__factory.ts @@ -0,0 +1,585 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../../../../common"; +import type { + ContractProxy, + ContractProxyInterface, +} from "../../../../contracts/hedera/RoyaltyInfo.sol/ContractProxy"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bool", + name: "", + type: "bool", + }, + { + indexed: false, + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + name: "CallResponseEvent", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "token", + type: "address", + }, + { + indexed: false, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: false, + internalType: "int64", + name: "serialNumber", + type: "int64", + }, + ], + name: "Mint", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "NftCollectionCreated", + type: "event", + }, + { + inputs: [], + name: "DEFAULT_EXPIRY", + outputs: [ + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MAX_INT", + outputs: [ + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + ], + name: "deployNft", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "string", + name: "tokenURI", + type: "string", + }, + ], + name: "mint", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "bytes", + name: "encodedFunctionSelector", + type: "bytes", + }, + ], + name: "redirectForToken", + outputs: [ + { + internalType: "int256", + name: "responseCode", + type: "int256", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "serialNumber", + type: "int64", + }, + ], + name: "royaltyInfo", + outputs: [ + { + internalType: "int256", + name: "", + type: "int256", + }, + { + components: [ + { + components: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + { + internalType: "int64", + name: "totalSupply", + type: "int64", + }, + { + internalType: "bool", + name: "deleted", + type: "bool", + }, + { + internalType: "bool", + name: "defaultKycStatus", + type: "bool", + }, + { + internalType: "bool", + name: "pauseStatus", + type: "bool", + }, + { + components: [ + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "bool", + name: "useCurrentTokenForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FixedFee[]", + name: "fixedFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "minimumAmount", + type: "int64", + }, + { + internalType: "int64", + name: "maximumAmount", + type: "int64", + }, + { + internalType: "bool", + name: "netOfTransfers", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FractionalFee[]", + name: "fractionalFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.RoyaltyFee[]", + name: "royaltyFees", + type: "tuple[]", + }, + { + internalType: "string", + name: "ledgerId", + type: "string", + }, + ], + internalType: "struct IHederaTokenService.TokenInfo", + name: "tokenInfo", + type: "tuple", + }, + { + internalType: "int64", + name: "serialNumber", + type: "int64", + }, + { + internalType: "address", + name: "ownerId", + type: "address", + }, + { + internalType: "int64", + name: "creationTime", + type: "int64", + }, + { + internalType: "bytes", + name: "metadata", + type: "bytes", + }, + { + internalType: "address", + name: "spenderId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.NonFungibleTokenInfo", + name: "", + type: "tuple", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "transferFromNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040818152346100605780600080805260016020526001828220556001815260028282205560028152600482822055600381526008828220556004815260108282205560058152602082822055600681522055611f4690816100668239f35b600080fdfe60e0806040526004908136101561001557600080fd5b60003560e01c908163098d3228146117e65750806315dacbea1461178b57806351761bcc1461176d578063618dc65e1461164b5780639b23d3d9146115ab578063d0def521146110f3578063e79342ce146103d35763f39901571461007957600080fd5b6040366003190112610396576001600160401b038135818111610396576100a390369084016119ce565b90602435908111610396576100bb90369084016119ce565b90604051906100c9826118a7565b6001825260005b6020808210156100f257906020916100e6611c8a565b908286010152016100d0565b85856000808688610101611c8a565b50858352602094600186526040842054610119611c5e565b30888201526040519161012b836118a7565b82528782015261013a83611ca6565b5261014482611ca6565b5061014d611b7e565b92835285830152306040830152604051610166816118f8565b83815260608301526001608083015263ffffffff60a08301528260c083015260e0820152610192611b5f565b30858201526040810190627864508252806101008401525160070b15806103c7575b6103bb575b506040516101f0816101e28782019463ea83f29360e01b865288602484015260448301906119ec565b03601f198101835282611913565b5190346101675af1610200611e61565b90156103ae57604081805181010312610396576040610220838301611e91565b9101516001600160a01b0381169190829003610396576102b19060030b5b60030b601661024c82611cf9565b916102ab604460405180957f4661696c656420746f2063726561746520746f6b656e2e204572726f7220436f8a83015263032329d160e51b604083015261029b815180928c8686019101611986565b8101036024810186520184611913565b14611cc9565b60405163053aa6f360e11b81526001600160a01b03919091169290828183816000885af19081156103a257600091610370575b5060168114908115610365575b501561032357507fb120d480bc501942d4f721c70535f5708a65b73f8cc7079d71ebbb2d2174dc5e91604051908152a1005b6064916040519162461bcd60e51b8352820152601960248201527f4661696c656420746f206173736f636961746520746f6b656e000000000000006044820152fd5b60c2915014846102f1565b90508281813d831161039b575b6103878183611913565b810103126103965751846102e4565b600080fd5b503d61037d565b6040513d6000823e3d90fd5b5060006102b1601561023e565b6276a7009052856101b9565b50805160070b156101b4565b5034610396576040366003190112610396576103ed611803565b602435918260070b80930361039657610404611bd0565b5061040d611bd0565b5060405163050fc3b560e31b602082019081526001600160a01b03909316602482015260448082019490945292835260808301906001600160401b038211848310176110de576000808486856040525190826101675af161046c611e61565b60a052610477611bd0565b90156110d7575060a0515160a0510160c052604060a05160c0510312610396576104a5602060a05101611e91565b604060a05101516080526001600160401b03608051116103965760c060805160a051018151031261039657604051906104dd8261185a565b602060805160a0510101516001600160401b038111610396576101208160805160a051010160c051031261039657604051906105188261188b565b60208160805160a051010101516001600160401b03811161039657610160818360805160a05101010160c051031261039657604051906105578261188b565b6020818460805160a05101010101516001600160401b038111610396576105929060208060c0510191848760805160a0510101010101611ead565b82526040818460805160a05101010101516001600160401b038111610396576105cf9060208060c0510191848760805160a0510101010101611ead565b60208301526105ea6060828560805160a05101010101611eef565b604083015260808184825160a05101010101516001600160401b038111610396576106299060208060c0510191848760805160a0510101010101611ead565b606083015261064360a08285608051835101010101611f03565b608083015261065e60c0828560805160a05101010101611e9f565b60a083015261067960e0828560805160a05101010101611f03565b60c0830152610100818460805160a05101010101516001600160401b03811161039657602060c05101603f82848760805160a0510101010101121561039657602081838660805160a051010101010151906106d382611c47565b916106e16040519384611913565b80835260208301602060c0510160408360051b85888b60805160a0510101010101011161039657604083868960805160a0510101010101905b60408360051b85888b60805160a0510101010101018210610f2a575050505060e0830152606060ff19828560805160a05101010160c051030112610396576107b06101606040519261076b846118dd565b610782610120828860805160a05101010101611e9f565b845261079b610140828860805160a05101010101611eef565b60208501528560805160a05101010101611e9f565b604082015261010082015282526107d160408260805160a051010101611e9f565b60208301526107ea60608260805160a051010101611f03565b6040830152610802608082815160a051010101611f03565b606083015261081a60a0826080518251010101611f03565b608083015260c08160805160a051010101516001600160401b03811161039657602060c05101603f828460805160a051010101011215610396576020818360805160a05101010101519061086d82611c47565b9161087b6040519384611913565b8083526020830191602060c05101604060a08402838860805160a05101010101011161039657916040838660805160a05101010101925b604060a08402828860805160a05101010101018410610eaf575050505060a083015260e08160805160a051010101516001600160401b03811161039657602060c05101603f828460805160a051010101011215610396576020818360805160a05101010101519061092282611c47565b916109306040519384611913565b8083526020830191602060c05101604060c08402838860805160a05101010101011161039657916040838660805160a05101010101925b604060c08402828860805160a05101010101018410610e24575050505060c08301526101008160805160a051010101516001600160401b03811161039657602060c05101603f828460805160a051010101011215610396576020818360805160a0510101010151906109d882611c47565b916109e66040519384611913565b8083526020830191602060c05101604060c08402838860805160a05101010101011161039657916040838660805160a05101010101925b604060c08402828860805160a05101010101018410610d99575050505060e08301526101208160805160a05101010151906001600160401b038211610396576020610a77928160c051019260805160a05101010101611ead565b6101008201528252610a91604060805160a0510101611e9f565b6020830152610aa8606060805160a0510101611eef565b6040830152610abe6080805160a0510101611e9f565b606083015260a060805181510101516001600160401b03811161039657610af59060208060c051019160805160a051010101611ead565b6080830152610b0c60c060805160a0510101611eef565b60a08301525b6040519060030b81526040602082015281519160c06040830152825192610b4861012094856101008601526102208501906119ec565b93602082015160070b9084015260408101511515610140840152606081015115156101608401526080810151151561018084015260a08101519360ff19848203016101a08501526020808651928381520195019060005b818110610d435750505060c08101519360ff19848203016101c08501526020808651928381520195019060005b818110610ce25750505060e08101519360ff19848203016101e08501526020808651928381520195019060005b818110610c7d57505050610c238394610100610c6593015160ff19868303016102008701526119a9565b602083015160070b606085015260018060a01b036040840151166080850152606083015160070b60a08501526080830151603f198583030160c08601526119a9565b60a0909101516001600160a01b031660e08301520390f35b909195602060c06001928951805160070b82528381015160070b84830152604081015160070b6040830152848060a01b03606082015116606083015260808101511515608083015260a08580821b039101511660a08201520197019101919091610bf9565b909195602060c06001928951805160070b82528381015160070b84830152604081015160070b6040830152606081015160070b606083015260808101511515608083015260a08580821b039101511660a08201520197019101919091610bcc565b8251805160070b88526020818101516001600160a01b03908116828b01526040808401511515908b01526060808401511515908b0152608092830151169189019190915260a09097019690920191600101610b9f565b60c060208582510301126103965760c08060206040948551610dba8161185a565b610dc389611e9f565b8152610dd0838a01611e9f565b83820152610ddf878a01611e9f565b87820152610def60608a01611eef565b6060820152610e0060808a01611f03565b6080820152610e1160a08a01611eef565b60a0820152815201950194925050610a1d565b60c060208582510301126103965760c08060206040948551610e458161185a565b610e4e89611e9f565b8152610e5b838a01611e9f565b83820152610e6a878a01611e9f565b87820152610e7a60608a01611e9f565b6060820152610e8b60808a01611f03565b6080820152610e9c60a08a01611eef565b60a0820152815201950194925050610967565b60a060208560c0510301126103965760a08060206040948551610ed1816118c2565b610eda89611e9f565b8152610ee7838a01611eef565b83820152610ef6878a01611f03565b87820152610f0660608a01611f03565b6060820152610f1760808a01611eef565b60808201528152019501949250506108b2565b8151906001600160401b038211610396576040601f1983878a8d60805160a051010101010160c0510301126103965760405190610f66826118a7565b604083878a8d60805160a051010101010101518252606083878a8d60805160a05101010101010151906001600160401b0382116103965760a08b83868a8d601f1994608051875101010101010160c051030112610396578a92608083868a8d60405198610fd28a6118c2565b610fed604086868686868c5160a05101010101010101611f03565b8a5261100a606086868686868c5160a05101010101010101611eef565b60208b0152855160a05101010101010101516001600160401b0381116103965783868a8f8e9061105660a0966040602060c051019188888888886080518f510101010101010101611ead565b60408b015260805186510101010101010151936001600160401b038511610396576110c160c0602096958f988c8f60409b6110aa8c9b8e8d89510191888888888860805160a0510101010101010101611ead565b606089015260805160a05101010101010101611eef565b608082015283820152815201920191905061071a565b6015610b12565b604190634e487b7160e01b6000525260246000fd5b50604036600319011261039657611108611803565b6001600160401b03906024358281116103965761112890369085016119ce565b60405163053aa6f360e11b81526020946001600160a01b039093169285908290816000875af180156103a25760009061157c575b6111dd915060168114908115611571575b61117690611cf9565b906111d8604760405180947f4661696c656420746f206173736f636961746520746f6b656e2e204572726f728b8301526601021b7b2329d160cd1b60408301526111c8815180928d8686019101611986565b8101036027810185520183611913565b611cc9565b6040516111e9816118a7565b6001918282528560005b818110611561575061122390604051836112168295518092858086019101611986565b8101038084520182611913565b61122c82611ca6565b5261123681611ca6565b50604051908582019263707a02cd60e11b845260848301908560248501526000604485015260606064850152825180925260a48401918860a48260051b8701019401926000905b8a838310611536578a8a8a6000808c61129f818e03601f198101835282611913565b516101679382855af16112b0611e61565b9015611511578051810193606082878701960312610396576112d3868301611e91565b916112e060408201611e9f565b50606081015191821161039657019380603f8601121561039657858501519461130886611c47565b956113166040519788611913565b80875260408888019160051b830101928311610396576040889201905b8382106114fa57505050506000916113b36113a3601685945b60030b6102ab60428b61135e84611cf9565b60405196827f4661696c656420746f206d696e7420746f6b656e2e204572726f7220436f646589948501526101d160f51b604085015282519283918686019101611986565b8101036022810186520184611913565b6113bc85611ca6565b518260405188810192635cfc901160e01b845287602483015230604483015233606483015260070b6084820152608481526113f68161185a565b51925af192611403611e61565b93156114c7578084805181010312610396576114af6060936114aa61144a847ff5e67f6c9b65e0ac28f93821e04b2a0256e87b830fdd38fb215cbf48a04504bf9801611e91565b60030b601661145882611cf9565b916102ab603a60405180957f4661696c656420746f207472616e7366657220746f6b656e2e200000000000008b83015261149a815180928d8686019101611986565b810103601a810186520184611913565b611ca6565b5160070b9060405192835233908301526040820152a1005b7ff5e67f6c9b65e0ac28f93821e04b2a0256e87b830fdd38fb215cbf48a04504bf93506114af6060936114aa601561144a565b82809161150684611e9f565b815201910190611333565b50915060008060405193611524856118f8565b8185526113b36113a36016601561134c565b8061155286979860a39794959697198b820301865289516119a9565b9701920192019093929161127d565b60608282860101520186906111f3565b60c28114915061116d565b508481813d83116115a4575b6115928183611913565b81010312610396576111dd905161115c565b503d611588565b34610396576000806116066101e26115c236611819565b604051639b23d3d960e01b602082019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b5190826101675af1611616611e61565b901561164157602081805181010312610396576116366020809201611e91565b6040519060030b8152f35b5060206015611636565b503461039657604036600319011261039657611665611803565b90602435916001600160401b0383116103965736602384011215610396576101e26116d86116a060009594856024889736930135910161194f565b604080516330c6e32f60e11b602082019081526001600160a01b039096166024820152604481019190915292839160648301906119a9565b5190826101675af16116e8611e61565b907f4af4780e06fe8cb9df64b0794fa6f01399af979175bb988e35e0e57e594567bc6040518215158152604060208201528061172760408201866119a9565b0390a1156117555760165b61175160405192839260030b83526040602084015260408301906119a9565b0390f35b50604051611762816118f8565b600081526015611732565b34610396576000366003190112610396576020604051627864508152f35b34610396576000806116066101e26117a236611819565b604051630aed65f560e11b602082019081526001600160a01b03958616602483015293851660448201529390911660648401526084830152929091829060a4820190565b34610396576000366003190112610396578063ffffffff60209252f35b600435906001600160a01b038216820361039657565b6080906003190112610396576001600160a01b0360043581811681036103965791602435828116810361039657916044359081168103610396579060643590565b60c081019081106001600160401b0382111761187557604052565b634e487b7160e01b600052604160045260246000fd5b61012081019081106001600160401b0382111761187557604052565b604081019081106001600160401b0382111761187557604052565b60a081019081106001600160401b0382111761187557604052565b606081019081106001600160401b0382111761187557604052565b602081019081106001600160401b0382111761187557604052565b90601f801991011681019081106001600160401b0382111761187557604052565b6001600160401b03811161187557601f01601f191660200190565b92919261195b82611934565b916119696040519384611913565b829481845281830111610396578281602093846000960137010152565b60005b8381106119995750506000910152565b8181015183820152602001611989565b906020916119c281518092818552858086019101611986565b601f01601f1916010190565b9080601f83011215610396578160206119e99335910161194f565b90565b90611a3d611a19611a076101608551908086528501906119a9565b602085015184820360208601526119a9565b604084015160018060a01b03166040840152606084015183820360608501526119a9565b9160808101511515608083015260a081015160070b60a083015260c0810151151560c083015260e0808201519383810382850152845190818152602081016020808460051b8401019701936000925b848410611ace575050505050506040610140916101008091015190815160070b9085015260018060a01b03602082015116610120850152015160070b91015290565b909192939497602080600192601f19858203018752818c5180518352015190604083820152815115156040820152848060a01b038383015116606082015260c0611b3f611b29604085015160a060808601528a8501906119a9565b6060850151848203603f190160a08601526119a9565b926080878060a01b03910151169101529a01940194019294939190611a8c565b60405190611b6c826118dd565b60006040838281528260208201520152565b60405190611b8b8261188b565b8160608152606060208201526000604082015260608082015260006080820152600060a0820152600060c0820152606060e0820152610100611bcb611b5f565b910152565b60405190611bdd8261185a565b60405160a083611bec8361188b565b611bf4611b7e565b8352600092836020820152836040820152606090848282015284608082015281848201528160c08201528160e0820152816101008201528252836020830152836040830152838183015260808201520152565b6001600160401b0381116118755760051b60200190565b60405190611c6b826118c2565b6000608083828152826020820152606060408201526060808201520152565b60405190611c97826118a7565b81600081526020611bcb611c5e565b805115611cb35760200190565b634e487b7160e01b600052603260045260246000fd5b15611cd15750565b60405162461bcd60e51b815260206004820152908190611cf59060248301906119a9565b0390fd5b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015611e53575b506d04ee2d6d415b85acef810000000080831015611e44575b50662386f26fc1000080831015611e35575b506305f5e10080831015611e26575b5061271080831015611e17575b506064821015611e07575b600a80921015611dfd575b60019081602181860195611d9287611934565b96611da06040519889611913565b808852611daf601f1991611934565b01366020890137860101905b611dc7575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215611df857919082611dbb565b611dc0565b9160010191611d7f565b9190606460029104910191611d74565b60049193920491019138611d69565b60089193920491019138611d5c565b60109193920491019138611d4d565b60209193920491019138611d3b565b604093508104915038611d22565b3d15611e8c573d90611e7282611934565b91611e806040519384611913565b82523d6000602084013e565b606090565b51908160030b820361039657565b51908160070b820361039657565b81601f82011215610396578051611ec381611934565b92611ed16040519485611913565b81845260208284010111610396576119e99160208085019101611986565b51906001600160a01b038216820361039657565b519081151582036103965756fea2646970667358221220db9d4d4f1c1e589cdba19c90b7c0c5ae04b0cac62d6420a94134a82c93093aca64736f6c63430008150033"; + +type ContractProxyConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: ContractProxyConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class ContractProxy__factory extends ContractFactory { + constructor(...args: ContractProxyConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}); + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + ContractProxy & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): ContractProxy__factory { + return super.connect(runner) as ContractProxy__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ContractProxyInterface { + return new Interface(_abi) as ContractProxyInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): ContractProxy { + return new Contract(address, _abi, runner) as unknown as ContractProxy; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/index.ts b/src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/index.ts new file mode 100644 index 0000000..6602026 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/RoyaltyInfo.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { ContractProxy__factory } from "./ContractProxy__factory"; diff --git a/src/contractsTypes/evm/factories/contracts/hedera/index.ts b/src/contractsTypes/evm/factories/contracts/hedera/index.ts new file mode 100644 index 0000000..e791866 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/index.ts @@ -0,0 +1,10 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as hederaNftSol from "./HederaNFT.sol"; +export * as hederaStorageDeployerSol from "./HederaStorageDeployer.sol"; +export * as royaltyInfoSol from "./RoyaltyInfo.sol"; +export * as interfaces from "./interfaces"; +export { HederaBridge__factory } from "./HederaBridge__factory"; +export { HederaNFTClaim__factory } from "./HederaNFTClaim__factory"; +export { HederaNFTStorage__factory } from "./HederaNFTStorage__factory"; diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IERC721Royalty__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IERC721Royalty__factory.ts new file mode 100644 index 0000000..58ca4da --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IERC721Royalty__factory.ts @@ -0,0 +1,106 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + IERC721Royalty, + IERC721RoyaltyInterface, +} from "../../../../contracts/hedera/interfaces/IERC721Royalty"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "uint256", + name: "royalty", + type: "uint256", + }, + { + internalType: "address", + name: "royaltyReceiver", + type: "address", + }, + { + internalType: "string", + name: "tokenURI", + type: "string", + }, + ], + name: "mint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "ownerOf", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "uint256", + name: "salePrice", + type: "uint256", + }, + ], + name: "royaltyInfo", + outputs: [ + { + internalType: "address", + name: "receiver", + type: "address", + }, + { + internalType: "uint256", + name: "royaltyAmount", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IERC721Royalty__factory { + static readonly abi = _abi; + static createInterface(): IERC721RoyaltyInterface { + return new Interface(_abi) as IERC721RoyaltyInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): IERC721Royalty { + return new Contract(address, _abi, runner) as unknown as IERC721Royalty; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHRC__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHRC__factory.ts new file mode 100644 index 0000000..a71d29f --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHRC__factory.ts @@ -0,0 +1,48 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + IHRC, + IHRCInterface, +} from "../../../../contracts/hedera/interfaces/IHRC"; + +const _abi = [ + { + inputs: [], + name: "associate", + outputs: [ + { + internalType: "uint256", + name: "responseCode", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "dissociate", + outputs: [ + { + internalType: "uint256", + name: "responseCode", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IHRC__factory { + static readonly abi = _abi; + static createInterface(): IHRCInterface { + return new Interface(_abi) as IHRCInterface; + } + static connect(address: string, runner?: ContractRunner | null): IHRC { + return new Contract(address, _abi, runner) as unknown as IHRC; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer__factory.ts new file mode 100644 index 0000000..c740676 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer__factory.ts @@ -0,0 +1,48 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + IHTSCompatibilityLayer, + IHTSCompatibilityLayerInterface, +} from "../../../../../contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer"; + +const _abi = [ + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "ownerOf", + outputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +export class IHTSCompatibilityLayer__factory { + static readonly abi = _abi; + static createInterface(): IHTSCompatibilityLayerInterface { + return new Interface(_abi) as IHTSCompatibilityLayerInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): IHTSCompatibilityLayer { + return new Contract( + address, + _abi, + runner + ) as unknown as IHTSCompatibilityLayer; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts new file mode 100644 index 0000000..90a386c --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { IHTSCompatibilityLayer__factory } from "./IHTSCompatibilityLayer__factory"; diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTClaim__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTClaim__factory.ts new file mode 100644 index 0000000..deb5839 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTClaim__factory.ts @@ -0,0 +1,116 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + INFTClaim, + INFTClaimInterface, +} from "../../../../contracts/hedera/interfaces/INFTClaim"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "serial", + type: "int64", + }, + ], + name: "addClaimRecord", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "data", + type: "uint256", + }, + ], + name: "decodeHts", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "int64", + name: "", + type: "int64", + }, + ], + stateMutability: "pure", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "sender", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "serialNum", + type: "int64", + }, + ], + name: "getClaimRecord", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "claimer", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getClaimableNfts", + outputs: [ + { + internalType: "uint256[]", + name: "", + type: "uint256[]", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +export class INFTClaim__factory { + static readonly abi = _abi; + static createInterface(): INFTClaimInterface { + return new Interface(_abi) as INFTClaimInterface; + } + static connect(address: string, runner?: ContractRunner | null): INFTClaim { + return new Contract(address, _abi, runner) as unknown as INFTClaim; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageDeployer__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageDeployer__factory.ts new file mode 100644 index 0000000..01d89f5 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageDeployer__factory.ts @@ -0,0 +1,74 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + INFTStorageDeployer, + INFTStorageDeployerInterface, +} from "../../../../contracts/hedera/interfaces/INFTStorageDeployer"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "collectionAddress", + type: "address", + }, + ], + name: "deployNFT721Storage", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "nonpayable", + 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 INFTStorageDeployer__factory { + static readonly abi = _abi; + static createInterface(): INFTStorageDeployerInterface { + return new Interface(_abi) as INFTStorageDeployerInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): INFTStorageDeployer { + return new Contract( + address, + _abi, + runner + ) as unknown as INFTStorageDeployer; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageERC721__factory.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageERC721__factory.ts new file mode 100644 index 0000000..8ab06c2 --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/INFTStorageERC721__factory.ts @@ -0,0 +1,82 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + INFTStorageERC721, + INFTStorageERC721Interface, +} from "../../../../contracts/hedera/interfaces/INFTStorageERC721"; + +const _abi = [ + { + inputs: [], + name: "collectionAddress", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "depositToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "owner", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + ], + name: "unlockToken", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class INFTStorageERC721__factory { + static readonly abi = _abi; + static createInterface(): INFTStorageERC721Interface { + return new Interface(_abi) as INFTStorageERC721Interface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): INFTStorageERC721 { + return new Contract(address, _abi, runner) as unknown as INFTStorageERC721; + } +} diff --git a/src/contractsTypes/evm/factories/contracts/hedera/interfaces/index.ts b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/index.ts new file mode 100644 index 0000000..e7c509a --- /dev/null +++ b/src/contractsTypes/evm/factories/contracts/hedera/interfaces/index.ts @@ -0,0 +1,9 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as ihtsCompatabilityLayerSol from "./IHTSCompatabilityLayer.sol"; +export { IERC721Royalty__factory } from "./IERC721Royalty__factory"; +export { IHRC__factory } from "./IHRC__factory"; +export { INFTClaim__factory } from "./INFTClaim__factory"; +export { INFTStorageDeployer__factory } from "./INFTStorageDeployer__factory"; +export { INFTStorageERC721__factory } from "./INFTStorageERC721__factory"; diff --git a/src/contractsTypes/evm/factories/contracts/index.ts b/src/contractsTypes/evm/factories/contracts/index.ts index e0e79db..018a334 100644 --- a/src/contractsTypes/evm/factories/contracts/index.ts +++ b/src/contractsTypes/evm/factories/contracts/index.ts @@ -1,14 +1,15 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as interfaces from './interfaces'; -export { Bridge__factory } from './Bridge__factory'; -export { BridgeStorage__factory } from './BridgeStorage__factory'; -export { ERC1155Royalty__factory } from './ERC1155Royalty__factory'; -export { ERC20Staking__factory } from './ERC20Staking__factory'; -export { ERC20Token__factory } from './ERC20Token__factory'; -export { ERC721Royalty__factory } from './ERC721Royalty__factory'; -export { NFTCollectionDeployer__factory } from './NFTCollectionDeployer__factory'; -export { NFTStorageDeployer__factory } from './NFTStorageDeployer__factory'; -export { NFTStorageERC1155__factory } from './NFTStorageERC1155__factory'; -export { NFTStorageERC721__factory } from './NFTStorageERC721__factory'; +export * as hedera from "./hedera"; +export * as interfaces from "./interfaces"; +export { Bridge__factory } from "./Bridge__factory"; +export { BridgeStorage__factory } from "./BridgeStorage__factory"; +export { ERC1155Royalty__factory } from "./ERC1155Royalty__factory"; +export { ERC20Staking__factory } from "./ERC20Staking__factory"; +export { ERC20Token__factory } from "./ERC20Token__factory"; +export { ERC721Royalty__factory } from "./ERC721Royalty__factory"; +export { NFTCollectionDeployer__factory } from "./NFTCollectionDeployer__factory"; +export { NFTStorageDeployer__factory } from "./NFTStorageDeployer__factory"; +export { NFTStorageERC1155__factory } from "./NFTStorageERC1155__factory"; +export { NFTStorageERC721__factory } from "./NFTStorageERC721__factory"; diff --git a/src/contractsTypes/evm/factories/contracts/interfaces/IERC1155Royalty__factory.ts b/src/contractsTypes/evm/factories/contracts/interfaces/IERC1155Royalty__factory.ts index 4bcb87d..292efd8 100644 --- a/src/contractsTypes/evm/factories/contracts/interfaces/IERC1155Royalty__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/interfaces/IERC1155Royalty__factory.ts @@ -159,7 +159,7 @@ export class IERC1155Royalty__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC1155Royalty { return new Contract(address, _abi, runner) as unknown as IERC1155Royalty; } diff --git a/src/contractsTypes/evm/factories/contracts/interfaces/IERC721Royalty__factory.ts b/src/contractsTypes/evm/factories/contracts/interfaces/IERC721Royalty__factory.ts index 4af56b3..15e2cff 100644 --- a/src/contractsTypes/evm/factories/contracts/interfaces/IERC721Royalty__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/interfaces/IERC721Royalty__factory.ts @@ -58,7 +58,7 @@ const _abi = [ type: "address", }, ], - stateMutability: "view", + stateMutability: "nonpayable", type: "function", }, { @@ -87,7 +87,7 @@ const _abi = [ type: "uint256", }, ], - stateMutability: "view", + stateMutability: "nonpayable", type: "function", }, ] as const; @@ -99,7 +99,7 @@ export class IERC721Royalty__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): IERC721Royalty { return new Contract(address, _abi, runner) as unknown as IERC721Royalty; } diff --git a/src/contractsTypes/evm/factories/contracts/interfaces/INFTCollectionDeployer__factory.ts b/src/contractsTypes/evm/factories/contracts/interfaces/INFTCollectionDeployer__factory.ts index a56b4f9..815c9f5 100644 --- a/src/contractsTypes/evm/factories/contracts/interfaces/INFTCollectionDeployer__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/interfaces/INFTCollectionDeployer__factory.ts @@ -66,6 +66,11 @@ const _abi = [ name: "_owner", type: "address", }, + { + internalType: "address", + name: "_bridge", + type: "address", + }, ], name: "setOwner", outputs: [], @@ -81,12 +86,12 @@ export class INFTCollectionDeployer__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): INFTCollectionDeployer { return new Contract( address, _abi, - runner, + runner ) as unknown as INFTCollectionDeployer; } } diff --git a/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageDeployer__factory.ts b/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageDeployer__factory.ts index 165a218..05f0b33 100644 --- a/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageDeployer__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageDeployer__factory.ts @@ -82,12 +82,12 @@ export class INFTStorageDeployer__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): INFTStorageDeployer { return new Contract( address, _abi, - runner, + runner ) as unknown as INFTStorageDeployer; } } diff --git a/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC1155__factory.ts b/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC1155__factory.ts index f979b64..aa74ba3 100644 --- a/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC1155__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC1155__factory.ts @@ -85,7 +85,7 @@ export class INFTStorageERC1155__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): INFTStorageERC1155 { return new Contract(address, _abi, runner) as unknown as INFTStorageERC1155; } diff --git a/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC721__factory.ts b/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC721__factory.ts index c7932b2..0adf376 100644 --- a/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC721__factory.ts +++ b/src/contractsTypes/evm/factories/contracts/interfaces/INFTStorageERC721__factory.ts @@ -75,7 +75,7 @@ export class INFTStorageERC721__factory { } static connect( address: string, - runner?: ContractRunner | null, + runner?: ContractRunner | null ): INFTStorageERC721 { return new Contract(address, _abi, runner) as unknown as INFTStorageERC721; } diff --git a/src/contractsTypes/evm/factories/contracts/interfaces/index.ts b/src/contractsTypes/evm/factories/contracts/interfaces/index.ts index 7f4d610..7c5b1c9 100644 --- a/src/contractsTypes/evm/factories/contracts/interfaces/index.ts +++ b/src/contractsTypes/evm/factories/contracts/interfaces/index.ts @@ -1,9 +1,9 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export { IERC1155Royalty__factory } from './IERC1155Royalty__factory'; -export { IERC721Royalty__factory } from './IERC721Royalty__factory'; -export { INFTCollectionDeployer__factory } from './INFTCollectionDeployer__factory'; -export { INFTStorageDeployer__factory } from './INFTStorageDeployer__factory'; -export { INFTStorageERC1155__factory } from './INFTStorageERC1155__factory'; -export { INFTStorageERC721__factory } from './INFTStorageERC721__factory'; +export { IERC1155Royalty__factory } from "./IERC1155Royalty__factory"; +export { IERC721Royalty__factory } from "./IERC721Royalty__factory"; +export { INFTCollectionDeployer__factory } from "./INFTCollectionDeployer__factory"; +export { INFTStorageDeployer__factory } from "./INFTStorageDeployer__factory"; +export { INFTStorageERC1155__factory } from "./INFTStorageERC1155__factory"; +export { INFTStorageERC721__factory } from "./INFTStorageERC721__factory"; diff --git a/src/contractsTypes/evm/factories/index.ts b/src/contractsTypes/evm/factories/index.ts index 622c0b8..006165a 100644 --- a/src/contractsTypes/evm/factories/index.ts +++ b/src/contractsTypes/evm/factories/index.ts @@ -1,5 +1,6 @@ /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ -export * as openzeppelin from './@openzeppelin'; -export * as contracts from './contracts'; +export * as openzeppelin from "./@openzeppelin"; +export * as contracts from "./contracts"; +export * as lib from "./lib"; diff --git a/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/HederaTokenService__factory.ts b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/HederaTokenService__factory.ts new file mode 100644 index 0000000..6d52fa4 --- /dev/null +++ b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/HederaTokenService__factory.ts @@ -0,0 +1,141 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + HederaTokenService, + HederaTokenServiceInterface, +} from "../../../../../lib/hedera/contracts/hts-precompile/HederaTokenService"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "bool", + name: "", + type: "bool", + }, + { + indexed: false, + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + name: "CallResponseEvent", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "bytes", + name: "encodedFunctionSelector", + type: "bytes", + }, + ], + name: "redirectForToken", + outputs: [ + { + internalType: "int256", + name: "responseCode", + type: "int256", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "transferFromNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class HederaTokenService__factory { + static readonly abi = _abi; + static createInterface(): HederaTokenServiceInterface { + return new Interface(_abi) as HederaTokenServiceInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): HederaTokenService { + return new Contract(address, _abi, runner) as unknown as HederaTokenService; + } +} diff --git a/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHRC__factory.ts b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHRC__factory.ts new file mode 100644 index 0000000..e720d08 --- /dev/null +++ b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHRC__factory.ts @@ -0,0 +1,48 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + IHRC, + IHRCInterface, +} from "../../../../../lib/hedera/contracts/hts-precompile/IHRC"; + +const _abi = [ + { + inputs: [], + name: "associate", + outputs: [ + { + internalType: "uint256", + name: "responseCode", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "dissociate", + outputs: [ + { + internalType: "uint256", + name: "responseCode", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IHRC__factory { + static readonly abi = _abi; + static createInterface(): IHRCInterface { + return new Interface(_abi) as IHRCInterface; + } + static connect(address: string, runner?: ContractRunner | null): IHRC { + return new Contract(address, _abi, runner) as unknown as IHRC; + } +} diff --git a/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHederaTokenService__factory.ts b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHederaTokenService__factory.ts new file mode 100644 index 0000000..da874ef --- /dev/null +++ b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/IHederaTokenService__factory.ts @@ -0,0 +1,3042 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from "ethers"; +import type { + IHederaTokenService, + IHederaTokenServiceInterface, +} from "../../../../../lib/hedera/contracts/hts-precompile/IHederaTokenService"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "spender", + type: "address", + }, + ], + name: "allowance", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "uint256", + name: "allowance", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "approve", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "approved", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "approveNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "associateToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + { + internalType: "address[]", + name: "tokens", + type: "address[]", + }, + ], + name: "associateTokens", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "int64[]", + name: "serialNumbers", + type: "int64[]", + }, + ], + name: "burnToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "int64", + name: "newTotalSupply", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + { + internalType: "int64", + name: "initialTotalSupply", + type: "int64", + }, + { + internalType: "int32", + name: "decimals", + type: "int32", + }, + ], + name: "createFungibleToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + { + internalType: "int64", + name: "initialTotalSupply", + type: "int64", + }, + { + internalType: "int32", + name: "decimals", + type: "int32", + }, + { + components: [ + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "bool", + name: "useCurrentTokenForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FixedFee[]", + name: "fixedFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "minimumAmount", + type: "int64", + }, + { + internalType: "int64", + name: "maximumAmount", + type: "int64", + }, + { + internalType: "bool", + name: "netOfTransfers", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FractionalFee[]", + name: "fractionalFees", + type: "tuple[]", + }, + ], + name: "createFungibleTokenWithCustomFees", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + ], + name: "createNonFungibleToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + { + components: [ + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "bool", + name: "useCurrentTokenForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FixedFee[]", + name: "fixedFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.RoyaltyFee[]", + name: "royaltyFees", + type: "tuple[]", + }, + ], + name: "createNonFungibleTokenWithCustomFees", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "address", + name: "tokenAddress", + type: "address", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + components: [ + { + internalType: "address", + name: "accountID", + type: "address", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "bool", + name: "isApproval", + type: "bool", + }, + ], + internalType: "struct IHederaTokenService.AccountAmount[]", + name: "transfers", + type: "tuple[]", + }, + ], + internalType: "struct IHederaTokenService.TransferList", + name: "transferList", + type: "tuple", + }, + { + components: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + components: [ + { + internalType: "address", + name: "accountID", + type: "address", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "bool", + name: "isApproval", + type: "bool", + }, + ], + internalType: "struct IHederaTokenService.AccountAmount[]", + name: "transfers", + type: "tuple[]", + }, + { + components: [ + { + internalType: "address", + name: "senderAccountID", + type: "address", + }, + { + internalType: "address", + name: "receiverAccountID", + type: "address", + }, + { + internalType: "int64", + name: "serialNumber", + type: "int64", + }, + { + internalType: "bool", + name: "isApproval", + type: "bool", + }, + ], + internalType: "struct IHederaTokenService.NftTransfer[]", + name: "nftTransfers", + type: "tuple[]", + }, + ], + internalType: "struct IHederaTokenService.TokenTransferList[]", + name: "tokenTransfers", + type: "tuple[]", + }, + ], + name: "cryptoTransfer", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "deleteToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "dissociateToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + { + internalType: "address[]", + name: "tokens", + type: "address[]", + }, + ], + name: "dissociateTokens", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "freezeToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "getApproved", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "address", + name: "approved", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getFungibleTokenInfo", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + components: [ + { + components: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + { + internalType: "int64", + name: "totalSupply", + type: "int64", + }, + { + internalType: "bool", + name: "deleted", + type: "bool", + }, + { + internalType: "bool", + name: "defaultKycStatus", + type: "bool", + }, + { + internalType: "bool", + name: "pauseStatus", + type: "bool", + }, + { + components: [ + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "bool", + name: "useCurrentTokenForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FixedFee[]", + name: "fixedFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "minimumAmount", + type: "int64", + }, + { + internalType: "int64", + name: "maximumAmount", + type: "int64", + }, + { + internalType: "bool", + name: "netOfTransfers", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FractionalFee[]", + name: "fractionalFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.RoyaltyFee[]", + name: "royaltyFees", + type: "tuple[]", + }, + { + internalType: "string", + name: "ledgerId", + type: "string", + }, + ], + internalType: "struct IHederaTokenService.TokenInfo", + name: "tokenInfo", + type: "tuple", + }, + { + internalType: "int32", + name: "decimals", + type: "int32", + }, + ], + internalType: "struct IHederaTokenService.FungibleTokenInfo", + name: "fungibleTokenInfo", + type: "tuple", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "serialNumber", + type: "int64", + }, + ], + name: "getNonFungibleTokenInfo", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + components: [ + { + components: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + { + internalType: "int64", + name: "totalSupply", + type: "int64", + }, + { + internalType: "bool", + name: "deleted", + type: "bool", + }, + { + internalType: "bool", + name: "defaultKycStatus", + type: "bool", + }, + { + internalType: "bool", + name: "pauseStatus", + type: "bool", + }, + { + components: [ + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "bool", + name: "useCurrentTokenForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FixedFee[]", + name: "fixedFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "minimumAmount", + type: "int64", + }, + { + internalType: "int64", + name: "maximumAmount", + type: "int64", + }, + { + internalType: "bool", + name: "netOfTransfers", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FractionalFee[]", + name: "fractionalFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.RoyaltyFee[]", + name: "royaltyFees", + type: "tuple[]", + }, + { + internalType: "string", + name: "ledgerId", + type: "string", + }, + ], + internalType: "struct IHederaTokenService.TokenInfo", + name: "tokenInfo", + type: "tuple", + }, + { + internalType: "int64", + name: "serialNumber", + type: "int64", + }, + { + internalType: "address", + name: "ownerId", + type: "address", + }, + { + internalType: "int64", + name: "creationTime", + type: "int64", + }, + { + internalType: "bytes", + name: "metadata", + type: "bytes", + }, + { + internalType: "address", + name: "spenderId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.NonFungibleTokenInfo", + name: "nonFungibleTokenInfo", + type: "tuple", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getTokenCustomFees", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + components: [ + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "bool", + name: "useCurrentTokenForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FixedFee[]", + name: "fixedFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "minimumAmount", + type: "int64", + }, + { + internalType: "int64", + name: "maximumAmount", + type: "int64", + }, + { + internalType: "bool", + name: "netOfTransfers", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FractionalFee[]", + name: "fractionalFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.RoyaltyFee[]", + name: "royaltyFees", + type: "tuple[]", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getTokenDefaultFreezeStatus", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "bool", + name: "defaultFreezeStatus", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getTokenDefaultKycStatus", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "bool", + name: "defaultKycStatus", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getTokenExpiryInfo", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getTokenInfo", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + components: [ + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "token", + type: "tuple", + }, + { + internalType: "int64", + name: "totalSupply", + type: "int64", + }, + { + internalType: "bool", + name: "deleted", + type: "bool", + }, + { + internalType: "bool", + name: "defaultKycStatus", + type: "bool", + }, + { + internalType: "bool", + name: "pauseStatus", + type: "bool", + }, + { + components: [ + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "bool", + name: "useCurrentTokenForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FixedFee[]", + name: "fixedFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "minimumAmount", + type: "int64", + }, + { + internalType: "int64", + name: "maximumAmount", + type: "int64", + }, + { + internalType: "bool", + name: "netOfTransfers", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.FractionalFee[]", + name: "fractionalFees", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "numerator", + type: "int64", + }, + { + internalType: "int64", + name: "denominator", + type: "int64", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "address", + name: "tokenId", + type: "address", + }, + { + internalType: "bool", + name: "useHbarsForPayment", + type: "bool", + }, + { + internalType: "address", + name: "feeCollector", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.RoyaltyFee[]", + name: "royaltyFees", + type: "tuple[]", + }, + { + internalType: "string", + name: "ledgerId", + type: "string", + }, + ], + internalType: "struct IHederaTokenService.TokenInfo", + name: "tokenInfo", + type: "tuple", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + ], + name: "getTokenKey", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "getTokenType", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "int32", + name: "tokenType", + type: "int32", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "grantTokenKyc", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "operator", + type: "address", + }, + ], + name: "isApprovedForAll", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "bool", + name: "approved", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "isFrozen", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "bool", + name: "frozen", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "isKyc", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "bool", + name: "kycGranted", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "isToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "bool", + name: "isToken", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + { + internalType: "bytes[]", + name: "metadata", + type: "bytes[]", + }, + ], + name: "mintToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "int64", + name: "newTotalSupply", + type: "int64", + }, + { + internalType: "int64[]", + name: "serialNumbers", + type: "int64[]", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "pauseToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "bytes", + name: "encodedFunctionSelector", + type: "bytes", + }, + ], + name: "redirectForToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "revokeTokenKyc", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "operator", + type: "address", + }, + { + internalType: "bool", + name: "approved", + type: "bool", + }, + ], + name: "setApprovalForAll", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "serialNumber", + type: "uint256", + }, + ], + name: "transferFromNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "sender", + type: "address", + }, + { + internalType: "address", + name: "recipient", + type: "address", + }, + { + internalType: "int64", + name: "serialNumber", + type: "int64", + }, + ], + name: "transferNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address[]", + name: "sender", + type: "address[]", + }, + { + internalType: "address[]", + name: "receiver", + type: "address[]", + }, + { + internalType: "int64[]", + name: "serialNumber", + type: "int64[]", + }, + ], + name: "transferNFTs", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "sender", + type: "address", + }, + { + internalType: "address", + name: "recipient", + type: "address", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + ], + name: "transferToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address[]", + name: "accountId", + type: "address[]", + }, + { + internalType: "int64[]", + name: "amount", + type: "int64[]", + }, + ], + name: "transferTokens", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "unfreezeToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + ], + name: "unpauseToken", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiryInfo", + type: "tuple", + }, + ], + name: "updateTokenExpiryInfo", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + components: [ + { + internalType: "string", + name: "name", + type: "string", + }, + { + internalType: "string", + name: "symbol", + type: "string", + }, + { + internalType: "address", + name: "treasury", + type: "address", + }, + { + internalType: "string", + name: "memo", + type: "string", + }, + { + internalType: "bool", + name: "tokenSupplyType", + type: "bool", + }, + { + internalType: "int64", + name: "maxSupply", + type: "int64", + }, + { + internalType: "bool", + name: "freezeDefault", + type: "bool", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "tokenKeys", + type: "tuple[]", + }, + { + components: [ + { + internalType: "int64", + name: "second", + type: "int64", + }, + { + internalType: "address", + name: "autoRenewAccount", + type: "address", + }, + { + internalType: "int64", + name: "autoRenewPeriod", + type: "int64", + }, + ], + internalType: "struct IHederaTokenService.Expiry", + name: "expiry", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.HederaToken", + name: "tokenInfo", + type: "tuple", + }, + ], + name: "updateTokenInfo", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + components: [ + { + internalType: "uint256", + name: "keyType", + type: "uint256", + }, + { + components: [ + { + internalType: "bool", + name: "inheritAccountKey", + type: "bool", + }, + { + internalType: "address", + name: "contractId", + type: "address", + }, + { + internalType: "bytes", + name: "ed25519", + type: "bytes", + }, + { + internalType: "bytes", + name: "ECDSA_secp256k1", + type: "bytes", + }, + { + internalType: "address", + name: "delegatableContractId", + type: "address", + }, + ], + internalType: "struct IHederaTokenService.KeyValue", + name: "key", + type: "tuple", + }, + ], + internalType: "struct IHederaTokenService.TokenKey[]", + name: "keys", + type: "tuple[]", + }, + ], + name: "updateTokenKeys", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + { + internalType: "int64", + name: "amount", + type: "int64", + }, + ], + name: "wipeTokenAccount", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "token", + type: "address", + }, + { + internalType: "address", + name: "account", + type: "address", + }, + { + internalType: "int64[]", + name: "serialNumbers", + type: "int64[]", + }, + ], + name: "wipeTokenAccountNFT", + outputs: [ + { + internalType: "int64", + name: "responseCode", + type: "int64", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IHederaTokenService__factory { + static readonly abi = _abi; + static createInterface(): IHederaTokenServiceInterface { + return new Interface(_abi) as IHederaTokenServiceInterface; + } + static connect( + address: string, + runner?: ContractRunner | null + ): IHederaTokenService { + return new Contract( + address, + _abi, + runner + ) as unknown as IHederaTokenService; + } +} diff --git a/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/index.ts b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/index.ts new file mode 100644 index 0000000..a384780 --- /dev/null +++ b/src/contractsTypes/evm/factories/lib/hedera/contracts/hts-precompile/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { HederaTokenService__factory } from "./HederaTokenService__factory"; +export { IHRC__factory } from "./IHRC__factory"; +export { IHederaTokenService__factory } from "./IHederaTokenService__factory"; diff --git a/src/contractsTypes/evm/factories/lib/hedera/contracts/index.ts b/src/contractsTypes/evm/factories/lib/hedera/contracts/index.ts new file mode 100644 index 0000000..0e8c3e3 --- /dev/null +++ b/src/contractsTypes/evm/factories/lib/hedera/contracts/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as htsPrecompile from "./hts-precompile"; diff --git a/src/contractsTypes/evm/factories/lib/hedera/index.ts b/src/contractsTypes/evm/factories/lib/hedera/index.ts new file mode 100644 index 0000000..6397da0 --- /dev/null +++ b/src/contractsTypes/evm/factories/lib/hedera/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as contracts from "./contracts"; diff --git a/src/contractsTypes/evm/factories/lib/index.ts b/src/contractsTypes/evm/factories/lib/index.ts new file mode 100644 index 0000000..3917be6 --- /dev/null +++ b/src/contractsTypes/evm/factories/lib/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as hedera from "./hedera"; diff --git a/src/contractsTypes/evm/hardhat.d.ts b/src/contractsTypes/evm/hardhat.d.ts index 8be4364..e70506d 100644 --- a/src/contractsTypes/evm/hardhat.d.ts +++ b/src/contractsTypes/evm/hardhat.d.ts @@ -2,800 +2,1070 @@ /* tslint:disable */ /* eslint-disable */ -import { ethers } from 'ethers'; +import { ethers } from "ethers"; import { - DeployContractOptions, - FactoryOptions, - HardhatEthersHelpers as HardhatEthersHelpersBase, -} from '@nomicfoundation/hardhat-ethers/types'; + DeployContractOptions, + FactoryOptions, + HardhatEthersHelpers as HardhatEthersHelpersBase, +} from "@nomicfoundation/hardhat-ethers/types"; -import * as Contracts from '.'; +import * as Contracts from "."; -declare module 'hardhat/types/runtime' { - interface HardhatEthersHelpers extends HardhatEthersHelpersBase { - getContractFactory( - name: 'Ownable', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC1155Errors', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC20Errors', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC721Errors', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC2981', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC4906', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC2981', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC1155', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC1155MetadataURI', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC1155', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC1155Receiver', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC1155Holder', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC20', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC20Metadata', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC20', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC721', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC721URIStorage', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC721Metadata', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC721', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC721Receiver', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC721Holder', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ECDSA', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC165', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC165', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'Math', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'Strings', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'Bridge', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'BridgeStorage', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC1155Royalty', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC20Staking', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC20Token', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'ERC721Royalty', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC1155Royalty', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'IERC721Royalty', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'INFTCollectionDeployer', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'INFTStorageDeployer', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'INFTStorageERC1155', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'INFTStorageERC721', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'NFTCollectionDeployer', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'NFTStorageDeployer', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'NFTStorageERC1155', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - name: 'NFTStorageERC721', - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; +declare module "hardhat/types/runtime" { + interface HardhatEthersHelpers extends HardhatEthersHelpersBase { + getContractFactory( + name: "Ownable", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC1155Errors", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC20Errors", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC721Errors", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC2981", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC4906", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC2981", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC1155", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC1155MetadataURI", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC1155", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC1155Receiver", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC1155Holder", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC20", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC20Metadata", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC20", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC721", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC721URIStorage", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC721Metadata", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC721", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC721Receiver", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC721Holder", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ECDSA", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC165", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC165", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Math", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Strings", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Bridge", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "BridgeStorage", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC1155Royalty", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC20Staking", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC20Token", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC721Royalty", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "HederaBridge", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "HederaNftDep", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "HederaNFTClaim", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "HederaNFTStorage", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "HederaNFTStorageDeployer", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC721Royalty", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IHRC", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IHTSCompatibilityLayer", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "INFTClaim", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "INFTStorageDeployer", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "INFTStorageERC721", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ContractProxy", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC1155Royalty", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC721Royalty", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "INFTCollectionDeployer", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "INFTStorageDeployer", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "INFTStorageERC1155", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "INFTStorageERC721", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "NFTCollectionDeployer", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "NFTStorageDeployer", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "NFTStorageERC1155", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "NFTStorageERC721", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "HederaTokenService", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IHederaTokenService", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IHRC", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; - getContractAt( - name: 'Ownable', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC1155Errors', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC20Errors', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC721Errors', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC2981', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC4906', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC2981', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC1155', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC1155MetadataURI', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC1155', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC1155Receiver', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC1155Holder', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC20', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC20Metadata', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC20', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC721', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC721URIStorage', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC721Metadata', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC721', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC721Receiver', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC721Holder', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ECDSA', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC165', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC165', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'Math', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'Strings', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'Bridge', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'BridgeStorage', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC1155Royalty', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC20Staking', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC20Token', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'ERC721Royalty', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC1155Royalty', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'IERC721Royalty', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'INFTCollectionDeployer', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'INFTStorageDeployer', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'INFTStorageERC1155', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'INFTStorageERC721', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'NFTCollectionDeployer', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'NFTStorageDeployer', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'NFTStorageERC1155', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - getContractAt( - name: 'NFTStorageERC721', - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; + getContractAt( + name: "Ownable", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC1155Errors", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC20Errors", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC721Errors", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC2981", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC4906", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC2981", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC1155", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC1155MetadataURI", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC1155", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC1155Receiver", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC1155Holder", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC20", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC20Metadata", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC20", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC721", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC721URIStorage", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC721Metadata", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC721", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC721Receiver", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC721Holder", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ECDSA", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC165", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC165", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Math", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Strings", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Bridge", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "BridgeStorage", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC1155Royalty", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC20Staking", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC20Token", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC721Royalty", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "HederaBridge", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "HederaNftDep", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "HederaNFTClaim", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "HederaNFTStorage", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "HederaNFTStorageDeployer", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC721Royalty", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IHRC", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IHTSCompatibilityLayer", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "INFTClaim", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "INFTStorageDeployer", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "INFTStorageERC721", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ContractProxy", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC1155Royalty", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC721Royalty", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "INFTCollectionDeployer", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "INFTStorageDeployer", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "INFTStorageERC1155", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "INFTStorageERC721", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "NFTCollectionDeployer", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "NFTStorageDeployer", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "NFTStorageERC1155", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "NFTStorageERC721", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "HederaTokenService", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IHederaTokenService", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IHRC", + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; - deployContract( - name: 'Ownable', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155Errors', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC20Errors', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Errors', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC2981', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC4906', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC2981', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC1155', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155MetadataURI', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155Receiver', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC1155Holder', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC20', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC20Metadata', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC20', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721URIStorage', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Metadata', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Receiver', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721Holder', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ECDSA', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC165', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC165', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'Math', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'Strings', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'Bridge', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'BridgeStorage', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC1155Royalty', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC20Staking', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC20Token', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721Royalty', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155Royalty', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Royalty', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTCollectionDeployer', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTStorageDeployer', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTStorageERC1155', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTStorageERC721', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTCollectionDeployer', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTStorageDeployer', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTStorageERC1155', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTStorageERC721', - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; + deployContract( + name: "Ownable", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155Errors", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC20Errors", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Errors", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC2981", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC4906", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC2981", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC1155", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155MetadataURI", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155Receiver", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC1155Holder", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC20", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC20Metadata", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC20", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721URIStorage", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Metadata", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Receiver", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721Holder", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ECDSA", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC165", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC165", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "Math", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "Strings", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "Bridge", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "BridgeStorage", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC1155Royalty", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC20Staking", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC20Token", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721Royalty", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaBridge", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNftDep", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNFTClaim", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNFTStorage", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNFTStorageDeployer", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Royalty", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHRC", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHTSCompatibilityLayer", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTClaim", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageDeployer", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageERC721", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ContractProxy", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155Royalty", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Royalty", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTCollectionDeployer", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageDeployer", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageERC1155", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageERC721", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTCollectionDeployer", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTStorageDeployer", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTStorageERC1155", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTStorageERC721", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaTokenService", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHederaTokenService", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHRC", + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; - deployContract( - name: 'Ownable', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155Errors', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC20Errors', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Errors', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC2981', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC4906', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC2981', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC1155', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155MetadataURI', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155Receiver', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC1155Holder', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC20', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC20Metadata', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC20', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721URIStorage', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Metadata', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Receiver', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721Holder', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ECDSA', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC165', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC165', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'Math', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'Strings', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'Bridge', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'BridgeStorage', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC1155Royalty', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC20Staking', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC20Token', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'ERC721Royalty', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC1155Royalty', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'IERC721Royalty', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTCollectionDeployer', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTStorageDeployer', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTStorageERC1155', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'INFTStorageERC721', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTCollectionDeployer', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTStorageDeployer', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTStorageERC1155', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: 'NFTStorageERC721', - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; + deployContract( + name: "Ownable", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155Errors", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC20Errors", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Errors", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC2981", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC4906", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC2981", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC1155", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155MetadataURI", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155Receiver", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC1155Holder", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC20", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC20Metadata", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC20", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721URIStorage", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Metadata", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Receiver", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721Holder", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ECDSA", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC165", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC165", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "Math", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "Strings", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "Bridge", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "BridgeStorage", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC1155Royalty", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC20Staking", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC20Token", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ERC721Royalty", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaBridge", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNftDep", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNFTClaim", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNFTStorage", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaNFTStorageDeployer", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Royalty", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHRC", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHTSCompatibilityLayer", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTClaim", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageDeployer", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageERC721", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "ContractProxy", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC1155Royalty", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IERC721Royalty", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTCollectionDeployer", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageDeployer", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageERC1155", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "INFTStorageERC721", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTCollectionDeployer", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTStorageDeployer", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTStorageERC1155", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "NFTStorageERC721", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "HederaTokenService", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHederaTokenService", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: "IHRC", + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; - // default types - getContractFactory( - name: string, - signerOrOptions?: ethers.Signer | FactoryOptions, - ): Promise; - getContractFactory( - abi: any[], - bytecode: ethers.BytesLike, - signer?: ethers.Signer, - ): Promise; - getContractAt( - nameOrAbi: string | any[], - address: string | ethers.Addressable, - signer?: ethers.Signer, - ): Promise; - deployContract( - name: string, - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - deployContract( - name: string, - args: any[], - signerOrOptions?: ethers.Signer | DeployContractOptions, - ): Promise; - } + // default types + getContractFactory( + name: string, + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + abi: any[], + bytecode: ethers.BytesLike, + signer?: ethers.Signer + ): Promise; + getContractAt( + nameOrAbi: string | any[], + address: string | ethers.Addressable, + signer?: ethers.Signer + ): Promise; + deployContract( + name: string, + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + deployContract( + name: string, + args: any[], + signerOrOptions?: ethers.Signer | DeployContractOptions + ): Promise; + } } diff --git a/src/contractsTypes/evm/index.ts b/src/contractsTypes/evm/index.ts index 53541a0..7bd7e66 100644 --- a/src/contractsTypes/evm/index.ts +++ b/src/contractsTypes/evm/index.ts @@ -5,6 +5,8 @@ import type * as openzeppelin from "./@openzeppelin"; export type { openzeppelin }; import type * as contracts from "./contracts"; export type { contracts }; +import type * as lib from "./lib"; +export type { lib }; export * as factories from "./factories"; export type { Ownable } from "./@openzeppelin/contracts/access/Ownable"; export { Ownable__factory } from "./factories/@openzeppelin/contracts/access/Ownable__factory"; @@ -70,6 +72,30 @@ export type { ERC20Token } from "./contracts/ERC20Token"; export { ERC20Token__factory } from "./factories/contracts/ERC20Token__factory"; export type { ERC721Royalty } from "./contracts/ERC721Royalty"; export { ERC721Royalty__factory } from "./factories/contracts/ERC721Royalty__factory"; +export type { HederaBridge } from "./contracts/hedera/HederaBridge"; +export { HederaBridge__factory } from "./factories/contracts/hedera/HederaBridge__factory"; +export type { HederaNftDep } from "./contracts/hedera/HederaNFT.sol/HederaNftDep"; +export { HederaNftDep__factory } from "./factories/contracts/hedera/HederaNFT.sol/HederaNftDep__factory"; +export type { HederaNFTClaim } from "./contracts/hedera/HederaNFTClaim"; +export { HederaNFTClaim__factory } from "./factories/contracts/hedera/HederaNFTClaim__factory"; +export type { HederaNFTStorage } from "./contracts/hedera/HederaNFTStorage"; +export { HederaNFTStorage__factory } from "./factories/contracts/hedera/HederaNFTStorage__factory"; +export type { HederaNFTStorageDeployer } from "./contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer"; +export { HederaNFTStorageDeployer__factory } from "./factories/contracts/hedera/HederaStorageDeployer.sol/HederaNFTStorageDeployer__factory"; +export type { IERC721Royalty } from "./contracts/hedera/interfaces/IERC721Royalty"; +export { IERC721Royalty__factory } from "./factories/contracts/hedera/interfaces/IERC721Royalty__factory"; +export type { IHRC } from "./contracts/hedera/interfaces/IHRC"; +export { IHRC__factory } from "./factories/contracts/hedera/interfaces/IHRC__factory"; +export type { IHTSCompatibilityLayer } from "./contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer"; +export { IHTSCompatibilityLayer__factory } from "./factories/contracts/hedera/interfaces/IHTSCompatabilityLayer.sol/IHTSCompatibilityLayer__factory"; +export type { INFTClaim } from "./contracts/hedera/interfaces/INFTClaim"; +export { INFTClaim__factory } from "./factories/contracts/hedera/interfaces/INFTClaim__factory"; +export type { INFTStorageDeployer } from "./contracts/hedera/interfaces/INFTStorageDeployer"; +export { INFTStorageDeployer__factory } from "./factories/contracts/hedera/interfaces/INFTStorageDeployer__factory"; +export type { INFTStorageERC721 } from "./contracts/hedera/interfaces/INFTStorageERC721"; +export { INFTStorageERC721__factory } from "./factories/contracts/hedera/interfaces/INFTStorageERC721__factory"; +export type { ContractProxy } from "./contracts/hedera/RoyaltyInfo.sol/ContractProxy"; +export { ContractProxy__factory } from "./factories/contracts/hedera/RoyaltyInfo.sol/ContractProxy__factory"; export type { IERC1155Royalty } from "./contracts/interfaces/IERC1155Royalty"; export { IERC1155Royalty__factory } from "./factories/contracts/interfaces/IERC1155Royalty__factory"; export type { INFTCollectionDeployer } from "./contracts/interfaces/INFTCollectionDeployer"; @@ -84,3 +110,7 @@ export type { NFTStorageERC1155 } from "./contracts/NFTStorageERC1155"; export { NFTStorageERC1155__factory } from "./factories/contracts/NFTStorageERC1155__factory"; export type { NFTStorageERC721 } from "./contracts/NFTStorageERC721"; export { NFTStorageERC721__factory } from "./factories/contracts/NFTStorageERC721__factory"; +export type { HederaTokenService } from "./lib/hedera/contracts/hts-precompile/HederaTokenService"; +export { HederaTokenService__factory } from "./factories/lib/hedera/contracts/hts-precompile/HederaTokenService__factory"; +export type { IHederaTokenService } from "./lib/hedera/contracts/hts-precompile/IHederaTokenService"; +export { IHederaTokenService__factory } from "./factories/lib/hedera/contracts/hts-precompile/IHederaTokenService__factory"; diff --git a/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/HederaTokenService.ts b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/HederaTokenService.ts new file mode 100644 index 0000000..b89bac8 --- /dev/null +++ b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/HederaTokenService.ts @@ -0,0 +1,200 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from "../../../../common"; + +export interface HederaTokenServiceInterface extends Interface { + getFunction( + nameOrSignature: "redirectForToken" | "transferFrom" | "transferFromNFT" + ): FunctionFragment; + + getEvent(nameOrSignatureOrTopic: "CallResponseEvent"): EventFragment; + + encodeFunctionData( + functionFragment: "redirectForToken", + values: [AddressLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFromNFT", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + + decodeFunctionResult( + functionFragment: "redirectForToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFromNFT", + data: BytesLike + ): Result; +} + +export namespace CallResponseEventEvent { + export type InputTuple = [arg0: boolean, arg1: BytesLike]; + export type OutputTuple = [arg0: boolean, arg1: string]; + export interface OutputObject { + arg0: boolean; + arg1: string; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface HederaTokenService extends BaseContract { + connect(runner?: ContractRunner | null): HederaTokenService; + waitForDeployment(): Promise; + + interface: HederaTokenServiceInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + redirectForToken: TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + + transferFrom: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferFromNFT: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "redirectForToken" + ): TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFrom" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFromNFT" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + getEvent( + key: "CallResponseEvent" + ): TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + + filters: { + "CallResponseEvent(bool,bytes)": TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + CallResponseEvent: TypedContractEvent< + CallResponseEventEvent.InputTuple, + CallResponseEventEvent.OutputTuple, + CallResponseEventEvent.OutputObject + >; + }; +} diff --git a/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHRC.ts b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHRC.ts new file mode 100644 index 0000000..ff27bad --- /dev/null +++ b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHRC.ts @@ -0,0 +1,94 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../../common"; + +export interface IHRCInterface extends Interface { + getFunction(nameOrSignature: "associate" | "dissociate"): FunctionFragment; + + encodeFunctionData(functionFragment: "associate", values?: undefined): string; + encodeFunctionData( + functionFragment: "dissociate", + values?: undefined + ): string; + + decodeFunctionResult(functionFragment: "associate", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "dissociate", data: BytesLike): Result; +} + +export interface IHRC extends BaseContract { + connect(runner?: ContractRunner | null): IHRC; + waitForDeployment(): Promise; + + interface: IHRCInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + associate: TypedContractMethod<[], [bigint], "nonpayable">; + + dissociate: TypedContractMethod<[], [bigint], "nonpayable">; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "associate" + ): TypedContractMethod<[], [bigint], "nonpayable">; + getFunction( + nameOrSignature: "dissociate" + ): TypedContractMethod<[], [bigint], "nonpayable">; + + filters: {}; +} diff --git a/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHederaTokenService.ts b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHederaTokenService.ts new file mode 100644 index 0000000..aab4004 --- /dev/null +++ b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/IHederaTokenService.ts @@ -0,0 +1,1560 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from "../../../../common"; + +export declare namespace IHederaTokenService { + export type KeyValueStruct = { + inheritAccountKey: boolean; + contractId: AddressLike; + ed25519: BytesLike; + ECDSA_secp256k1: BytesLike; + delegatableContractId: AddressLike; + }; + + export type KeyValueStructOutput = [ + inheritAccountKey: boolean, + contractId: string, + ed25519: string, + ECDSA_secp256k1: string, + delegatableContractId: string + ] & { + inheritAccountKey: boolean; + contractId: string; + ed25519: string; + ECDSA_secp256k1: string; + delegatableContractId: string; + }; + + export type TokenKeyStruct = { + keyType: BigNumberish; + key: IHederaTokenService.KeyValueStruct; + }; + + export type TokenKeyStructOutput = [ + keyType: bigint, + key: IHederaTokenService.KeyValueStructOutput + ] & { keyType: bigint; key: IHederaTokenService.KeyValueStructOutput }; + + export type ExpiryStruct = { + second: BigNumberish; + autoRenewAccount: AddressLike; + autoRenewPeriod: BigNumberish; + }; + + export type ExpiryStructOutput = [ + second: bigint, + autoRenewAccount: string, + autoRenewPeriod: bigint + ] & { second: bigint; autoRenewAccount: string; autoRenewPeriod: bigint }; + + export type HederaTokenStruct = { + name: string; + symbol: string; + treasury: AddressLike; + memo: string; + tokenSupplyType: boolean; + maxSupply: BigNumberish; + freezeDefault: boolean; + tokenKeys: IHederaTokenService.TokenKeyStruct[]; + expiry: IHederaTokenService.ExpiryStruct; + }; + + export type HederaTokenStructOutput = [ + name: string, + symbol: string, + treasury: string, + memo: string, + tokenSupplyType: boolean, + maxSupply: bigint, + freezeDefault: boolean, + tokenKeys: IHederaTokenService.TokenKeyStructOutput[], + expiry: IHederaTokenService.ExpiryStructOutput + ] & { + name: string; + symbol: string; + treasury: string; + memo: string; + tokenSupplyType: boolean; + maxSupply: bigint; + freezeDefault: boolean; + tokenKeys: IHederaTokenService.TokenKeyStructOutput[]; + expiry: IHederaTokenService.ExpiryStructOutput; + }; + + export type FixedFeeStruct = { + amount: BigNumberish; + tokenId: AddressLike; + useHbarsForPayment: boolean; + useCurrentTokenForPayment: boolean; + feeCollector: AddressLike; + }; + + export type FixedFeeStructOutput = [ + amount: bigint, + tokenId: string, + useHbarsForPayment: boolean, + useCurrentTokenForPayment: boolean, + feeCollector: string + ] & { + amount: bigint; + tokenId: string; + useHbarsForPayment: boolean; + useCurrentTokenForPayment: boolean; + feeCollector: string; + }; + + export type FractionalFeeStruct = { + numerator: BigNumberish; + denominator: BigNumberish; + minimumAmount: BigNumberish; + maximumAmount: BigNumberish; + netOfTransfers: boolean; + feeCollector: AddressLike; + }; + + export type FractionalFeeStructOutput = [ + numerator: bigint, + denominator: bigint, + minimumAmount: bigint, + maximumAmount: bigint, + netOfTransfers: boolean, + feeCollector: string + ] & { + numerator: bigint; + denominator: bigint; + minimumAmount: bigint; + maximumAmount: bigint; + netOfTransfers: boolean; + feeCollector: string; + }; + + export type RoyaltyFeeStruct = { + numerator: BigNumberish; + denominator: BigNumberish; + amount: BigNumberish; + tokenId: AddressLike; + useHbarsForPayment: boolean; + feeCollector: AddressLike; + }; + + export type RoyaltyFeeStructOutput = [ + numerator: bigint, + denominator: bigint, + amount: bigint, + tokenId: string, + useHbarsForPayment: boolean, + feeCollector: string + ] & { + numerator: bigint; + denominator: bigint; + amount: bigint; + tokenId: string; + useHbarsForPayment: boolean; + feeCollector: string; + }; + + export type AccountAmountStruct = { + accountID: AddressLike; + amount: BigNumberish; + isApproval: boolean; + }; + + export type AccountAmountStructOutput = [ + accountID: string, + amount: bigint, + isApproval: boolean + ] & { accountID: string; amount: bigint; isApproval: boolean }; + + export type TransferListStruct = { + transfers: IHederaTokenService.AccountAmountStruct[]; + }; + + export type TransferListStructOutput = [ + transfers: IHederaTokenService.AccountAmountStructOutput[] + ] & { transfers: IHederaTokenService.AccountAmountStructOutput[] }; + + export type NftTransferStruct = { + senderAccountID: AddressLike; + receiverAccountID: AddressLike; + serialNumber: BigNumberish; + isApproval: boolean; + }; + + export type NftTransferStructOutput = [ + senderAccountID: string, + receiverAccountID: string, + serialNumber: bigint, + isApproval: boolean + ] & { + senderAccountID: string; + receiverAccountID: string; + serialNumber: bigint; + isApproval: boolean; + }; + + export type TokenTransferListStruct = { + token: AddressLike; + transfers: IHederaTokenService.AccountAmountStruct[]; + nftTransfers: IHederaTokenService.NftTransferStruct[]; + }; + + export type TokenTransferListStructOutput = [ + token: string, + transfers: IHederaTokenService.AccountAmountStructOutput[], + nftTransfers: IHederaTokenService.NftTransferStructOutput[] + ] & { + token: string; + transfers: IHederaTokenService.AccountAmountStructOutput[]; + nftTransfers: IHederaTokenService.NftTransferStructOutput[]; + }; + + export type TokenInfoStruct = { + token: IHederaTokenService.HederaTokenStruct; + totalSupply: BigNumberish; + deleted: boolean; + defaultKycStatus: boolean; + pauseStatus: boolean; + fixedFees: IHederaTokenService.FixedFeeStruct[]; + fractionalFees: IHederaTokenService.FractionalFeeStruct[]; + royaltyFees: IHederaTokenService.RoyaltyFeeStruct[]; + ledgerId: string; + }; + + export type TokenInfoStructOutput = [ + token: IHederaTokenService.HederaTokenStructOutput, + totalSupply: bigint, + deleted: boolean, + defaultKycStatus: boolean, + pauseStatus: boolean, + fixedFees: IHederaTokenService.FixedFeeStructOutput[], + fractionalFees: IHederaTokenService.FractionalFeeStructOutput[], + royaltyFees: IHederaTokenService.RoyaltyFeeStructOutput[], + ledgerId: string + ] & { + token: IHederaTokenService.HederaTokenStructOutput; + totalSupply: bigint; + deleted: boolean; + defaultKycStatus: boolean; + pauseStatus: boolean; + fixedFees: IHederaTokenService.FixedFeeStructOutput[]; + fractionalFees: IHederaTokenService.FractionalFeeStructOutput[]; + royaltyFees: IHederaTokenService.RoyaltyFeeStructOutput[]; + ledgerId: string; + }; + + export type FungibleTokenInfoStruct = { + tokenInfo: IHederaTokenService.TokenInfoStruct; + decimals: BigNumberish; + }; + + export type FungibleTokenInfoStructOutput = [ + tokenInfo: IHederaTokenService.TokenInfoStructOutput, + decimals: bigint + ] & { + tokenInfo: IHederaTokenService.TokenInfoStructOutput; + decimals: bigint; + }; + + export type NonFungibleTokenInfoStruct = { + tokenInfo: IHederaTokenService.TokenInfoStruct; + serialNumber: BigNumberish; + ownerId: AddressLike; + creationTime: BigNumberish; + metadata: BytesLike; + spenderId: AddressLike; + }; + + export type NonFungibleTokenInfoStructOutput = [ + tokenInfo: IHederaTokenService.TokenInfoStructOutput, + serialNumber: bigint, + ownerId: string, + creationTime: bigint, + metadata: string, + spenderId: string + ] & { + tokenInfo: IHederaTokenService.TokenInfoStructOutput; + serialNumber: bigint; + ownerId: string; + creationTime: bigint; + metadata: string; + spenderId: string; + }; +} + +export interface IHederaTokenServiceInterface extends Interface { + getFunction( + nameOrSignature: + | "allowance" + | "approve" + | "approveNFT" + | "associateToken" + | "associateTokens" + | "burnToken" + | "createFungibleToken" + | "createFungibleTokenWithCustomFees" + | "createNonFungibleToken" + | "createNonFungibleTokenWithCustomFees" + | "cryptoTransfer" + | "deleteToken" + | "dissociateToken" + | "dissociateTokens" + | "freezeToken" + | "getApproved" + | "getFungibleTokenInfo" + | "getNonFungibleTokenInfo" + | "getTokenCustomFees" + | "getTokenDefaultFreezeStatus" + | "getTokenDefaultKycStatus" + | "getTokenExpiryInfo" + | "getTokenInfo" + | "getTokenKey" + | "getTokenType" + | "grantTokenKyc" + | "isApprovedForAll" + | "isFrozen" + | "isKyc" + | "isToken" + | "mintToken" + | "pauseToken" + | "redirectForToken" + | "revokeTokenKyc" + | "setApprovalForAll" + | "transferFrom" + | "transferFromNFT" + | "transferNFT" + | "transferNFTs" + | "transferToken" + | "transferTokens" + | "unfreezeToken" + | "unpauseToken" + | "updateTokenExpiryInfo" + | "updateTokenInfo" + | "updateTokenKeys" + | "wipeTokenAccount" + | "wipeTokenAccountNFT" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "allowance", + values: [AddressLike, AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "approve", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "approveNFT", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "associateToken", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "associateTokens", + values: [AddressLike, AddressLike[]] + ): string; + encodeFunctionData( + functionFragment: "burnToken", + values: [AddressLike, BigNumberish, BigNumberish[]] + ): string; + encodeFunctionData( + functionFragment: "createFungibleToken", + values: [IHederaTokenService.HederaTokenStruct, BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "createFungibleTokenWithCustomFees", + values: [ + IHederaTokenService.HederaTokenStruct, + BigNumberish, + BigNumberish, + IHederaTokenService.FixedFeeStruct[], + IHederaTokenService.FractionalFeeStruct[] + ] + ): string; + encodeFunctionData( + functionFragment: "createNonFungibleToken", + values: [IHederaTokenService.HederaTokenStruct] + ): string; + encodeFunctionData( + functionFragment: "createNonFungibleTokenWithCustomFees", + values: [ + IHederaTokenService.HederaTokenStruct, + IHederaTokenService.FixedFeeStruct[], + IHederaTokenService.RoyaltyFeeStruct[] + ] + ): string; + encodeFunctionData( + functionFragment: "cryptoTransfer", + values: [ + IHederaTokenService.TransferListStruct, + IHederaTokenService.TokenTransferListStruct[] + ] + ): string; + encodeFunctionData( + functionFragment: "deleteToken", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "dissociateToken", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "dissociateTokens", + values: [AddressLike, AddressLike[]] + ): string; + encodeFunctionData( + functionFragment: "freezeToken", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getApproved", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getFungibleTokenInfo", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getNonFungibleTokenInfo", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getTokenCustomFees", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getTokenDefaultFreezeStatus", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getTokenDefaultKycStatus", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getTokenExpiryInfo", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getTokenInfo", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getTokenKey", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getTokenType", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "grantTokenKyc", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "isApprovedForAll", + values: [AddressLike, AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "isFrozen", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "isKyc", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "isToken", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "mintToken", + values: [AddressLike, BigNumberish, BytesLike[]] + ): string; + encodeFunctionData( + functionFragment: "pauseToken", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "redirectForToken", + values: [AddressLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "revokeTokenKyc", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "setApprovalForAll", + values: [AddressLike, AddressLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFromNFT", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferNFT", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferNFTs", + values: [AddressLike, AddressLike[], AddressLike[], BigNumberish[]] + ): string; + encodeFunctionData( + functionFragment: "transferToken", + values: [AddressLike, AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferTokens", + values: [AddressLike, AddressLike[], BigNumberish[]] + ): string; + encodeFunctionData( + functionFragment: "unfreezeToken", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "unpauseToken", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "updateTokenExpiryInfo", + values: [AddressLike, IHederaTokenService.ExpiryStruct] + ): string; + encodeFunctionData( + functionFragment: "updateTokenInfo", + values: [AddressLike, IHederaTokenService.HederaTokenStruct] + ): string; + encodeFunctionData( + functionFragment: "updateTokenKeys", + values: [AddressLike, IHederaTokenService.TokenKeyStruct[]] + ): string; + encodeFunctionData( + functionFragment: "wipeTokenAccount", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "wipeTokenAccountNFT", + values: [AddressLike, AddressLike, BigNumberish[]] + ): string; + + decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "approveNFT", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "associateToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "associateTokens", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "burnToken", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "createFungibleToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "createFungibleTokenWithCustomFees", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "createNonFungibleToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "createNonFungibleTokenWithCustomFees", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "cryptoTransfer", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "deleteToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "dissociateToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "dissociateTokens", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "freezeToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getApproved", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getFungibleTokenInfo", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getNonFungibleTokenInfo", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenCustomFees", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenDefaultFreezeStatus", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenDefaultKycStatus", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenExpiryInfo", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenInfo", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenKey", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getTokenType", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "grantTokenKyc", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isApprovedForAll", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "isFrozen", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "isKyc", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "isToken", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "mintToken", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "pauseToken", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "redirectForToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "revokeTokenKyc", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setApprovalForAll", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferFromNFT", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferNFT", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferNFTs", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "transferTokens", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "unfreezeToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "unpauseToken", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "updateTokenExpiryInfo", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "updateTokenInfo", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "updateTokenKeys", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "wipeTokenAccount", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "wipeTokenAccountNFT", + data: BytesLike + ): Result; +} + +export interface IHederaTokenService extends BaseContract { + connect(runner?: ContractRunner | null): IHederaTokenService; + waitForDeployment(): Promise; + + interface: IHederaTokenServiceInterface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + allowance: TypedContractMethod< + [token: AddressLike, owner: AddressLike, spender: AddressLike], + [[bigint, bigint] & { responseCode: bigint; allowance: bigint }], + "nonpayable" + >; + + approve: TypedContractMethod< + [token: AddressLike, spender: AddressLike, amount: BigNumberish], + [bigint], + "nonpayable" + >; + + approveNFT: TypedContractMethod< + [token: AddressLike, approved: AddressLike, serialNumber: BigNumberish], + [bigint], + "nonpayable" + >; + + associateToken: TypedContractMethod< + [account: AddressLike, token: AddressLike], + [bigint], + "nonpayable" + >; + + associateTokens: TypedContractMethod< + [account: AddressLike, tokens: AddressLike[]], + [bigint], + "nonpayable" + >; + + burnToken: TypedContractMethod< + [token: AddressLike, amount: BigNumberish, serialNumbers: BigNumberish[]], + [[bigint, bigint] & { responseCode: bigint; newTotalSupply: bigint }], + "nonpayable" + >; + + createFungibleToken: TypedContractMethod< + [ + token: IHederaTokenService.HederaTokenStruct, + initialTotalSupply: BigNumberish, + decimals: BigNumberish + ], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + + createFungibleTokenWithCustomFees: TypedContractMethod< + [ + token: IHederaTokenService.HederaTokenStruct, + initialTotalSupply: BigNumberish, + decimals: BigNumberish, + fixedFees: IHederaTokenService.FixedFeeStruct[], + fractionalFees: IHederaTokenService.FractionalFeeStruct[] + ], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + + createNonFungibleToken: TypedContractMethod< + [token: IHederaTokenService.HederaTokenStruct], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + + createNonFungibleTokenWithCustomFees: TypedContractMethod< + [ + token: IHederaTokenService.HederaTokenStruct, + fixedFees: IHederaTokenService.FixedFeeStruct[], + royaltyFees: IHederaTokenService.RoyaltyFeeStruct[] + ], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + + cryptoTransfer: TypedContractMethod< + [ + transferList: IHederaTokenService.TransferListStruct, + tokenTransfers: IHederaTokenService.TokenTransferListStruct[] + ], + [bigint], + "nonpayable" + >; + + deleteToken: TypedContractMethod< + [token: AddressLike], + [bigint], + "nonpayable" + >; + + dissociateToken: TypedContractMethod< + [account: AddressLike, token: AddressLike], + [bigint], + "nonpayable" + >; + + dissociateTokens: TypedContractMethod< + [account: AddressLike, tokens: AddressLike[]], + [bigint], + "nonpayable" + >; + + freezeToken: TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + + getApproved: TypedContractMethod< + [token: AddressLike, serialNumber: BigNumberish], + [[bigint, string] & { responseCode: bigint; approved: string }], + "nonpayable" + >; + + getFungibleTokenInfo: TypedContractMethod< + [token: AddressLike], + [ + [bigint, IHederaTokenService.FungibleTokenInfoStructOutput] & { + responseCode: bigint; + fungibleTokenInfo: IHederaTokenService.FungibleTokenInfoStructOutput; + } + ], + "nonpayable" + >; + + getNonFungibleTokenInfo: TypedContractMethod< + [token: AddressLike, serialNumber: BigNumberish], + [ + [bigint, IHederaTokenService.NonFungibleTokenInfoStructOutput] & { + responseCode: bigint; + nonFungibleTokenInfo: IHederaTokenService.NonFungibleTokenInfoStructOutput; + } + ], + "nonpayable" + >; + + getTokenCustomFees: TypedContractMethod< + [token: AddressLike], + [ + [ + bigint, + IHederaTokenService.FixedFeeStructOutput[], + IHederaTokenService.FractionalFeeStructOutput[], + IHederaTokenService.RoyaltyFeeStructOutput[] + ] & { + responseCode: bigint; + fixedFees: IHederaTokenService.FixedFeeStructOutput[]; + fractionalFees: IHederaTokenService.FractionalFeeStructOutput[]; + royaltyFees: IHederaTokenService.RoyaltyFeeStructOutput[]; + } + ], + "nonpayable" + >; + + getTokenDefaultFreezeStatus: TypedContractMethod< + [token: AddressLike], + [ + [bigint, boolean] & { responseCode: bigint; defaultFreezeStatus: boolean } + ], + "nonpayable" + >; + + getTokenDefaultKycStatus: TypedContractMethod< + [token: AddressLike], + [[bigint, boolean] & { responseCode: bigint; defaultKycStatus: boolean }], + "nonpayable" + >; + + getTokenExpiryInfo: TypedContractMethod< + [token: AddressLike], + [ + [bigint, IHederaTokenService.ExpiryStructOutput] & { + responseCode: bigint; + expiry: IHederaTokenService.ExpiryStructOutput; + } + ], + "nonpayable" + >; + + getTokenInfo: TypedContractMethod< + [token: AddressLike], + [ + [bigint, IHederaTokenService.TokenInfoStructOutput] & { + responseCode: bigint; + tokenInfo: IHederaTokenService.TokenInfoStructOutput; + } + ], + "nonpayable" + >; + + getTokenKey: TypedContractMethod< + [token: AddressLike, keyType: BigNumberish], + [ + [bigint, IHederaTokenService.KeyValueStructOutput] & { + responseCode: bigint; + key: IHederaTokenService.KeyValueStructOutput; + } + ], + "nonpayable" + >; + + getTokenType: TypedContractMethod< + [token: AddressLike], + [[bigint, bigint] & { responseCode: bigint; tokenType: bigint }], + "nonpayable" + >; + + grantTokenKyc: TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + + isApprovedForAll: TypedContractMethod< + [token: AddressLike, owner: AddressLike, operator: AddressLike], + [[bigint, boolean] & { responseCode: bigint; approved: boolean }], + "nonpayable" + >; + + isFrozen: TypedContractMethod< + [token: AddressLike, account: AddressLike], + [[bigint, boolean] & { responseCode: bigint; frozen: boolean }], + "nonpayable" + >; + + isKyc: TypedContractMethod< + [token: AddressLike, account: AddressLike], + [[bigint, boolean] & { responseCode: bigint; kycGranted: boolean }], + "nonpayable" + >; + + isToken: TypedContractMethod< + [token: AddressLike], + [[bigint, boolean] & { responseCode: bigint; isToken: boolean }], + "nonpayable" + >; + + mintToken: TypedContractMethod< + [token: AddressLike, amount: BigNumberish, metadata: BytesLike[]], + [ + [bigint, bigint, bigint[]] & { + responseCode: bigint; + newTotalSupply: bigint; + serialNumbers: bigint[]; + } + ], + "nonpayable" + >; + + pauseToken: TypedContractMethod<[token: AddressLike], [bigint], "nonpayable">; + + redirectForToken: TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + + revokeTokenKyc: TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + + setApprovalForAll: TypedContractMethod< + [token: AddressLike, operator: AddressLike, approved: boolean], + [bigint], + "nonpayable" + >; + + transferFrom: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferFromNFT: TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferNFT: TypedContractMethod< + [ + token: AddressLike, + sender: AddressLike, + recipient: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferNFTs: TypedContractMethod< + [ + token: AddressLike, + sender: AddressLike[], + receiver: AddressLike[], + serialNumber: BigNumberish[] + ], + [bigint], + "nonpayable" + >; + + transferToken: TypedContractMethod< + [ + token: AddressLike, + sender: AddressLike, + recipient: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + + transferTokens: TypedContractMethod< + [token: AddressLike, accountId: AddressLike[], amount: BigNumberish[]], + [bigint], + "nonpayable" + >; + + unfreezeToken: TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + + unpauseToken: TypedContractMethod< + [token: AddressLike], + [bigint], + "nonpayable" + >; + + updateTokenExpiryInfo: TypedContractMethod< + [token: AddressLike, expiryInfo: IHederaTokenService.ExpiryStruct], + [bigint], + "nonpayable" + >; + + updateTokenInfo: TypedContractMethod< + [token: AddressLike, tokenInfo: IHederaTokenService.HederaTokenStruct], + [bigint], + "nonpayable" + >; + + updateTokenKeys: TypedContractMethod< + [token: AddressLike, keys: IHederaTokenService.TokenKeyStruct[]], + [bigint], + "nonpayable" + >; + + wipeTokenAccount: TypedContractMethod< + [token: AddressLike, account: AddressLike, amount: BigNumberish], + [bigint], + "nonpayable" + >; + + wipeTokenAccountNFT: TypedContractMethod< + [token: AddressLike, account: AddressLike, serialNumbers: BigNumberish[]], + [bigint], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "allowance" + ): TypedContractMethod< + [token: AddressLike, owner: AddressLike, spender: AddressLike], + [[bigint, bigint] & { responseCode: bigint; allowance: bigint }], + "nonpayable" + >; + getFunction( + nameOrSignature: "approve" + ): TypedContractMethod< + [token: AddressLike, spender: AddressLike, amount: BigNumberish], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "approveNFT" + ): TypedContractMethod< + [token: AddressLike, approved: AddressLike, serialNumber: BigNumberish], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "associateToken" + ): TypedContractMethod< + [account: AddressLike, token: AddressLike], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "associateTokens" + ): TypedContractMethod< + [account: AddressLike, tokens: AddressLike[]], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "burnToken" + ): TypedContractMethod< + [token: AddressLike, amount: BigNumberish, serialNumbers: BigNumberish[]], + [[bigint, bigint] & { responseCode: bigint; newTotalSupply: bigint }], + "nonpayable" + >; + getFunction( + nameOrSignature: "createFungibleToken" + ): TypedContractMethod< + [ + token: IHederaTokenService.HederaTokenStruct, + initialTotalSupply: BigNumberish, + decimals: BigNumberish + ], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + getFunction( + nameOrSignature: "createFungibleTokenWithCustomFees" + ): TypedContractMethod< + [ + token: IHederaTokenService.HederaTokenStruct, + initialTotalSupply: BigNumberish, + decimals: BigNumberish, + fixedFees: IHederaTokenService.FixedFeeStruct[], + fractionalFees: IHederaTokenService.FractionalFeeStruct[] + ], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + getFunction( + nameOrSignature: "createNonFungibleToken" + ): TypedContractMethod< + [token: IHederaTokenService.HederaTokenStruct], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + getFunction( + nameOrSignature: "createNonFungibleTokenWithCustomFees" + ): TypedContractMethod< + [ + token: IHederaTokenService.HederaTokenStruct, + fixedFees: IHederaTokenService.FixedFeeStruct[], + royaltyFees: IHederaTokenService.RoyaltyFeeStruct[] + ], + [[bigint, string] & { responseCode: bigint; tokenAddress: string }], + "payable" + >; + getFunction( + nameOrSignature: "cryptoTransfer" + ): TypedContractMethod< + [ + transferList: IHederaTokenService.TransferListStruct, + tokenTransfers: IHederaTokenService.TokenTransferListStruct[] + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "deleteToken" + ): TypedContractMethod<[token: AddressLike], [bigint], "nonpayable">; + getFunction( + nameOrSignature: "dissociateToken" + ): TypedContractMethod< + [account: AddressLike, token: AddressLike], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "dissociateTokens" + ): TypedContractMethod< + [account: AddressLike, tokens: AddressLike[]], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "freezeToken" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "getApproved" + ): TypedContractMethod< + [token: AddressLike, serialNumber: BigNumberish], + [[bigint, string] & { responseCode: bigint; approved: string }], + "nonpayable" + >; + getFunction( + nameOrSignature: "getFungibleTokenInfo" + ): TypedContractMethod< + [token: AddressLike], + [ + [bigint, IHederaTokenService.FungibleTokenInfoStructOutput] & { + responseCode: bigint; + fungibleTokenInfo: IHederaTokenService.FungibleTokenInfoStructOutput; + } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "getNonFungibleTokenInfo" + ): TypedContractMethod< + [token: AddressLike, serialNumber: BigNumberish], + [ + [bigint, IHederaTokenService.NonFungibleTokenInfoStructOutput] & { + responseCode: bigint; + nonFungibleTokenInfo: IHederaTokenService.NonFungibleTokenInfoStructOutput; + } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "getTokenCustomFees" + ): TypedContractMethod< + [token: AddressLike], + [ + [ + bigint, + IHederaTokenService.FixedFeeStructOutput[], + IHederaTokenService.FractionalFeeStructOutput[], + IHederaTokenService.RoyaltyFeeStructOutput[] + ] & { + responseCode: bigint; + fixedFees: IHederaTokenService.FixedFeeStructOutput[]; + fractionalFees: IHederaTokenService.FractionalFeeStructOutput[]; + royaltyFees: IHederaTokenService.RoyaltyFeeStructOutput[]; + } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "getTokenDefaultFreezeStatus" + ): TypedContractMethod< + [token: AddressLike], + [ + [bigint, boolean] & { responseCode: bigint; defaultFreezeStatus: boolean } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "getTokenDefaultKycStatus" + ): TypedContractMethod< + [token: AddressLike], + [[bigint, boolean] & { responseCode: bigint; defaultKycStatus: boolean }], + "nonpayable" + >; + getFunction( + nameOrSignature: "getTokenExpiryInfo" + ): TypedContractMethod< + [token: AddressLike], + [ + [bigint, IHederaTokenService.ExpiryStructOutput] & { + responseCode: bigint; + expiry: IHederaTokenService.ExpiryStructOutput; + } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "getTokenInfo" + ): TypedContractMethod< + [token: AddressLike], + [ + [bigint, IHederaTokenService.TokenInfoStructOutput] & { + responseCode: bigint; + tokenInfo: IHederaTokenService.TokenInfoStructOutput; + } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "getTokenKey" + ): TypedContractMethod< + [token: AddressLike, keyType: BigNumberish], + [ + [bigint, IHederaTokenService.KeyValueStructOutput] & { + responseCode: bigint; + key: IHederaTokenService.KeyValueStructOutput; + } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "getTokenType" + ): TypedContractMethod< + [token: AddressLike], + [[bigint, bigint] & { responseCode: bigint; tokenType: bigint }], + "nonpayable" + >; + getFunction( + nameOrSignature: "grantTokenKyc" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "isApprovedForAll" + ): TypedContractMethod< + [token: AddressLike, owner: AddressLike, operator: AddressLike], + [[bigint, boolean] & { responseCode: bigint; approved: boolean }], + "nonpayable" + >; + getFunction( + nameOrSignature: "isFrozen" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike], + [[bigint, boolean] & { responseCode: bigint; frozen: boolean }], + "nonpayable" + >; + getFunction( + nameOrSignature: "isKyc" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike], + [[bigint, boolean] & { responseCode: bigint; kycGranted: boolean }], + "nonpayable" + >; + getFunction( + nameOrSignature: "isToken" + ): TypedContractMethod< + [token: AddressLike], + [[bigint, boolean] & { responseCode: bigint; isToken: boolean }], + "nonpayable" + >; + getFunction( + nameOrSignature: "mintToken" + ): TypedContractMethod< + [token: AddressLike, amount: BigNumberish, metadata: BytesLike[]], + [ + [bigint, bigint, bigint[]] & { + responseCode: bigint; + newTotalSupply: bigint; + serialNumbers: bigint[]; + } + ], + "nonpayable" + >; + getFunction( + nameOrSignature: "pauseToken" + ): TypedContractMethod<[token: AddressLike], [bigint], "nonpayable">; + getFunction( + nameOrSignature: "redirectForToken" + ): TypedContractMethod< + [token: AddressLike, encodedFunctionSelector: BytesLike], + [[bigint, string] & { responseCode: bigint; response: string }], + "nonpayable" + >; + getFunction( + nameOrSignature: "revokeTokenKyc" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "setApprovalForAll" + ): TypedContractMethod< + [token: AddressLike, operator: AddressLike, approved: boolean], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFrom" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFromNFT" + ): TypedContractMethod< + [ + token: AddressLike, + from: AddressLike, + to: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferNFT" + ): TypedContractMethod< + [ + token: AddressLike, + sender: AddressLike, + recipient: AddressLike, + serialNumber: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferNFTs" + ): TypedContractMethod< + [ + token: AddressLike, + sender: AddressLike[], + receiver: AddressLike[], + serialNumber: BigNumberish[] + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferToken" + ): TypedContractMethod< + [ + token: AddressLike, + sender: AddressLike, + recipient: AddressLike, + amount: BigNumberish + ], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferTokens" + ): TypedContractMethod< + [token: AddressLike, accountId: AddressLike[], amount: BigNumberish[]], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "unfreezeToken" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "unpauseToken" + ): TypedContractMethod<[token: AddressLike], [bigint], "nonpayable">; + getFunction( + nameOrSignature: "updateTokenExpiryInfo" + ): TypedContractMethod< + [token: AddressLike, expiryInfo: IHederaTokenService.ExpiryStruct], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "updateTokenInfo" + ): TypedContractMethod< + [token: AddressLike, tokenInfo: IHederaTokenService.HederaTokenStruct], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "updateTokenKeys" + ): TypedContractMethod< + [token: AddressLike, keys: IHederaTokenService.TokenKeyStruct[]], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "wipeTokenAccount" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike, amount: BigNumberish], + [bigint], + "nonpayable" + >; + getFunction( + nameOrSignature: "wipeTokenAccountNFT" + ): TypedContractMethod< + [token: AddressLike, account: AddressLike, serialNumbers: BigNumberish[]], + [bigint], + "nonpayable" + >; + + filters: {}; +} diff --git a/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/index.ts b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/index.ts new file mode 100644 index 0000000..8b959c8 --- /dev/null +++ b/src/contractsTypes/evm/lib/hedera/contracts/hts-precompile/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { HederaTokenService } from "./HederaTokenService"; +export type { IHRC } from "./IHRC"; +export type { IHederaTokenService } from "./IHederaTokenService"; diff --git a/src/contractsTypes/evm/lib/hedera/contracts/index.ts b/src/contractsTypes/evm/lib/hedera/contracts/index.ts new file mode 100644 index 0000000..06f6954 --- /dev/null +++ b/src/contractsTypes/evm/lib/hedera/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as htsPrecompile from "./hts-precompile"; +export type { htsPrecompile }; diff --git a/src/contractsTypes/evm/lib/hedera/index.ts b/src/contractsTypes/evm/lib/hedera/index.ts new file mode 100644 index 0000000..a11e4ca --- /dev/null +++ b/src/contractsTypes/evm/lib/hedera/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as contracts from "./contracts"; +export type { contracts }; diff --git a/src/contractsTypes/evm/lib/index.ts b/src/contractsTypes/evm/lib/index.ts new file mode 100644 index 0000000..ed996e1 --- /dev/null +++ b/src/contractsTypes/evm/lib/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as hedera from "./hedera"; +export type { hedera }; diff --git a/src/contractsTypes/evm/abi/multiversXBridgeABI.ts b/src/contractsTypes/multiversx/abi/multiversXBridgeABI.ts similarity index 99% rename from src/contractsTypes/evm/abi/multiversXBridgeABI.ts rename to src/contractsTypes/multiversx/abi/multiversXBridgeABI.ts index dc97bb0..208c2f8 100644 --- a/src/contractsTypes/evm/abi/multiversXBridgeABI.ts +++ b/src/contractsTypes/multiversx/abi/multiversXBridgeABI.ts @@ -1,4 +1,4 @@ -const multiversXBridgeABI = { +export const multiversXBridgeABI = { buildInfo: { rustc: { version: '1.71.0-nightly', diff --git a/src/deps.ts b/src/deps.ts index a1550c4..fd4ea67 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -12,6 +12,7 @@ import type { TSupportedChainTypes, TSupportedChains } from "./config"; import { type BridgeStorage, BridgeStorage__factory, + type ERC20Staking, } from "./contractsTypes/evm"; import { evmHandler } from "./handler/evm"; import { multiversxHandler } from "./handler/multiversx"; @@ -23,6 +24,7 @@ import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate"; import { DirectSecp256k1Wallet } from "@cosmjs/proto-signing"; import type { EntityManager } from "@mikro-orm/sqlite"; import axios, { type AxiosInstance } from "axios"; +import { ERC20Staking__factory } from "./contractsTypes/evm"; import { cosmWasmHandler } from "./handler/cosmos"; import { evmStakingHandler } from "./handler/evm/stakingHandler"; import type { LogInstance, THandler } from "./handler/types"; @@ -54,6 +56,7 @@ export async function configEvmHandler( wallet: IEvmWallet, serverLinkHandler: AxiosInstance | undefined, evmLogger: LogInstance, + staking: ERC20Staking, ) { const lb = await em.findOne(Block, { chain: conf.chain, @@ -76,6 +79,7 @@ export async function configEvmHandler( chainType: conf.chainType as TSupportedChainTypes, serverLinkHandler, logger: evmLogger, + staking, }); } @@ -86,6 +90,7 @@ export async function configHederaHandler( wallet: IEvmWallet, serverLinkHandler: AxiosInstance | undefined, hederaLogger: LogInstance, + staking: ERC20Staking, ) { const lb = await em.findOne(Block, { chain: conf.chain, @@ -108,6 +113,7 @@ export async function configHederaHandler( chainType: conf.chainType as TSupportedChainTypes, serverLinkHandler, logger: hederaLogger, + staking, }); } export async function configStakingHandler( @@ -328,6 +334,10 @@ export async function configDeps( config.storageConfig.contractAddress, new NonceManager(new Wallet(secrets.evmWallet.privateKey, storageProvider)), ); + const staking = ERC20Staking__factory.connect( + config.stakingConfig.contractAddress, + new NonceManager(new Wallet(secrets.evmWallet.privateKey, storageProvider)), + ); const orm = await MikroORM.init(MikroOrmConfig); await orm.schema.updateSchema(); const em = orm.em; @@ -409,6 +419,7 @@ export async function configDeps( secrets.evmWallet, serverLinkHandler, logger.getSubLogger({ name: c.chain }), + staking, ); }), )), @@ -424,6 +435,7 @@ export async function configDeps( secrets.evmWallet, serverLinkHandler, logger.getSubLogger({ name: "HEDERA" }), + staking, ); }), )), diff --git a/src/handler/cosmos/types/index.ts b/src/handler/cosmos/types/index.ts index ecdd83b..12fd483 100644 --- a/src/handler/cosmos/types/index.ts +++ b/src/handler/cosmos/types/index.ts @@ -2,8 +2,8 @@ import type { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate"; import type { DirectSecp256k1Wallet } from "@cosmjs/proto-signing"; import type { EntityManager } from "@mikro-orm/sqlite"; import type { AxiosInstance } from "axios"; -import type { BridgeStorage } from "xp-decentralized-sdk/dist/contractsTypes/evm"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; +import type { BridgeStorage } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type CosmosHandlerParams = { diff --git a/src/handler/evm/index.ts b/src/handler/evm/index.ts index 45bc759..3a36e30 100644 --- a/src/handler/evm/index.ts +++ b/src/handler/evm/index.ts @@ -31,6 +31,7 @@ export function evmHandler({ chainType, serverLinkHandler, logger, + staking, }: EVMHandlerParams): THandler { const bc = Bridge__factory.connect(bridge, signer.connect(provider)); return { @@ -42,7 +43,14 @@ export function evmHandler({ initialFunds, currency, address: signer.address, - addSelfAsValidator: addSelfAsValidator(bc, storage, signer), + addSelfAsValidator: addSelfAsValidator( + bc, + storage, + signer, + logger, + staking, + signer.address, + ), listenForLockEvents: listenForLockEvents( provider, lastBlock_, diff --git a/src/handler/evm/types/index.ts b/src/handler/evm/types/index.ts index b990ed3..72ad0b0 100644 --- a/src/handler/evm/types/index.ts +++ b/src/handler/evm/types/index.ts @@ -3,7 +3,7 @@ import type { AxiosInstance } from "axios"; import type { JsonRpcProvider, Wallet } from "ethers"; import type { Web3Account } from "web3-eth-accounts"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; -import type { BridgeStorage } from "../../../contractsTypes/evm"; +import type { BridgeStorage, ERC20Staking } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type EVMHandlerParams = { @@ -23,4 +23,5 @@ export type EVMHandlerParams = { chainType: TSupportedChainTypes; serverLinkHandler: AxiosInstance | undefined; logger: LogInstance; + staking: ERC20Staking; }; diff --git a/src/handler/evm/utils/addSelfAsValidator.ts b/src/handler/evm/utils/addSelfAsValidator.ts index a381541..d97aef2 100644 --- a/src/handler/evm/utils/addSelfAsValidator.ts +++ b/src/handler/evm/utils/addSelfAsValidator.ts @@ -1,5 +1,7 @@ import type { Wallet } from "ethers"; import type { Bridge, BridgeStorage } from "../../../contractsTypes/evm"; +import type { ERC20Staking } from "../../../contractsTypes/evm"; +import type { LogInstance } from "../../types"; import { ProcessDelayMilliseconds, confirmationCountNeeded, @@ -10,9 +12,25 @@ const addSelfAsValidator = ( bc: Bridge, storage: BridgeStorage, signer: Wallet, + logger: LogInstance, + staking: ERC20Staking, + validatorAddress: string, ) => { return async (): Promise<"success" | "failure"> => { try { + const stakedAmt = await staking.stakingBalances(validatorAddress); + if (stakedAmt > 0n) { + const add = await staking.addNewChains([ + { + chainType: "evm", + validatorAddress, + }, + ]); + const receipt = await add.wait(); + logger.info( + `Added self as new chain at hash: ${receipt?.hash}. BN: ${receipt?.blockNumber}`, + ); + } let validatorsCount = Number(await bc.validatorsCount()); let signatureCount = Number( await storage.getStakingSignaturesCount(signer.address), diff --git a/src/handler/icp/types/index.ts b/src/handler/icp/types/index.ts index 2accfda..9482df8 100644 --- a/src/handler/icp/types/index.ts +++ b/src/handler/icp/types/index.ts @@ -2,8 +2,8 @@ import type { HttpAgent } from "@dfinity/agent"; import type { Ed25519KeyIdentity } from "@dfinity/identity"; import type { EntityManager } from "@mikro-orm/sqlite"; import type { AxiosInstance } from "axios"; -import type { BridgeStorage } from "xp-decentralized-sdk/dist/contractsTypes/evm"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; +import type { BridgeStorage } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type ICPHandlerParams = { diff --git a/src/handler/multiversx/index.ts b/src/handler/multiversx/index.ts index a8f2608..97886f2 100644 --- a/src/handler/multiversx/index.ts +++ b/src/handler/multiversx/index.ts @@ -6,7 +6,7 @@ import { } from "@multiversx/sdk-core/out"; import { Address } from "@multiversx/sdk-network-providers/out/primitives"; import axios from "axios"; -import { multiversXBridgeABI } from "../../contractsTypes/evm/abi"; +import { multiversXBridgeABI } from "../../contractsTypes/multiversx/abi/multiversXBridgeABI"; import pollForLockEvents from "../poller"; import { raise } from "../ton"; import type { THandler } from "../types"; diff --git a/src/handler/multiversx/types/index.ts b/src/handler/multiversx/types/index.ts index f839cc1..c401f40 100644 --- a/src/handler/multiversx/types/index.ts +++ b/src/handler/multiversx/types/index.ts @@ -2,8 +2,8 @@ import type { EntityManager } from "@mikro-orm/sqlite"; import type { INetworkProvider } from "@multiversx/sdk-network-providers/out/interface"; import type { UserSigner } from "@multiversx/sdk-wallet/out"; import type { AxiosInstance } from "axios"; -import type { BridgeStorage } from "xp-decentralized-sdk/dist/contractsTypes/evm"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; +import type { BridgeStorage } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type MultiversXHandlerParams = { diff --git a/src/handler/secrets/types/index.ts b/src/handler/secrets/types/index.ts index 858169a..0ea7a69 100644 --- a/src/handler/secrets/types/index.ts +++ b/src/handler/secrets/types/index.ts @@ -1,8 +1,8 @@ import type { EntityManager } from "@mikro-orm/sqlite"; import type { AxiosInstance } from "axios"; import type { SecretNetworkClient, Wallet } from "secretjs"; -import type { BridgeStorage } from "xp-decentralized-sdk/dist/contractsTypes/evm"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; +import type { BridgeStorage } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type SecretsHandlerParams = { diff --git a/src/handler/tezos/types/index.ts b/src/handler/tezos/types/index.ts index 10702b6..8f68961 100644 --- a/src/handler/tezos/types/index.ts +++ b/src/handler/tezos/types/index.ts @@ -1,8 +1,8 @@ import type { EntityManager } from "@mikro-orm/sqlite"; import type { Signer, TezosToolkit } from "@taquito/taquito"; import type { AxiosInstance } from "axios"; -import type { BridgeStorage } from "xp-decentralized-sdk/dist/contractsTypes/evm"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; +import type { BridgeStorage } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type TezosHandlerParams = { diff --git a/src/handler/ton/types/index.ts b/src/handler/ton/types/index.ts index fa2ed76..eee217e 100644 --- a/src/handler/ton/types/index.ts +++ b/src/handler/ton/types/index.ts @@ -3,8 +3,8 @@ import type { Sender } from "@ton/core"; import type { TonClient, WalletContractV4 } from "@ton/ton"; import type { AxiosInstance } from "axios"; import type { HttpProvider } from "tonweb/dist/types/providers/http-provider"; -import type { BridgeStorage } from "xp-decentralized-sdk/dist/contractsTypes/evm"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; +import type { BridgeStorage } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type TonParams = { diff --git a/src/utils.ts b/src/utils.ts index 2739923..8ae5ed4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -11,7 +11,7 @@ import { JsonRpcProvider, VoidSigner, ethers } from "ethers"; import { type Interface, createInterface } from "node:readline/promises"; -import { ERC20Token__factory } from "xp-decentralized-sdk/dist/contractsTypes/evm"; +import { ERC20Token__factory } from "./contractsTypes/evm"; import { ERC20Staking__factory } from "./contractsTypes/evm"; import { getBalance } from "./handler/evm/utils"; import { raise } from "./handler/ton"; From 4df20122f074a5ea39609dc8ea304821e6436a81 Mon Sep 17 00:00:00 2001 From: imsk17 Date: Wed, 7 Aug 2024 16:22:36 +0530 Subject: [PATCH 3/6] handlers(staking): listen for newly staked chains --- src/config.ts | 26 ++++++------- src/deps.ts | 6 +++ src/handler/index.ts | 39 ++++++++----------- src/handler/tezos/index.ts | 12 +++++- src/handler/tezos/types/index.ts | 4 +- src/handler/tezos/utils/addSelfAsValidator.ts | 17 +++++++- 6 files changed, 66 insertions(+), 38 deletions(-) diff --git a/src/config.ts b/src/config.ts index ad0928a..f046bf4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -49,18 +49,18 @@ export const bridgeTestChains = [ // lastBlock: 24014875000001, // nativeCoinSymbol: "TON", // }, - // { - // blockChunks: 1000, - // chain: "TEZOS", - // chainType: "tezos", - // contractAddress: "KT1UGfH2Hk2MVKt8ADqqkRqcGZussRnfpahV", - // decimals: 9, - // intialFund: "100000000", - // lastBlock: 7259145, - // nativeCoinSymbol: "TEZOS", - // restApiURL: "https://api.ghostnet.tzkt.io", - // rpcURL: "https://ghostnet.smartpy.io", - // }, + { + blockChunks: 1000, + chain: "TEZOS", + chainType: "tezos", + contractAddress: "KT1XTpmy5x2KQuLcLab9uXaoda3RnfnTnQLY", + decimals: 9, + intialFund: "100000000", + lastBlock: 7259145, + nativeCoinSymbol: "TEZOS", + restApiURL: "https://api.ghostnet.tzkt.io", + rpcURL: "https://ghostnet.smartpy.io", + }, // { // chainType: "multiversX", // chain: "MULTIVERSX", @@ -81,7 +81,7 @@ export const storageTestnetConfig: IEvmChainConfig = { rpcURL: "https://testnet.skalenodes.com/v1/juicy-low-small-testnet", nativeCoinSymbol: "sFUEL", intialFund: "0", - contractAddress: "0xBAA31376C5CA464598d98C15f46d1E6C1b03A2a6", + contractAddress: "0xa2bfF1a9f53d1e2fEDd40963871Dd107b0Bf783C", chainType: "evm", lastBlock: 2209753, decimals: 18, diff --git a/src/deps.ts b/src/deps.ts index fd4ea67..87f662d 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -143,6 +143,8 @@ export async function configTezosHandler( tezosWallet: ITezosWallet, serverLinkHandler: AxiosInstance | undefined, tzLogger: LogInstance, + staking: ERC20Staking, + validatorAddress: string, ) { const lb = await em.findOne(Block, { chain: conf.chain, @@ -166,6 +168,8 @@ export async function configTezosHandler( chainType: conf.chainType as TSupportedChainTypes, serverLinkHandler, logger: tzLogger, + staking, + validatorAddress, }); } @@ -356,6 +360,8 @@ export async function configDeps( secrets.tezosWallet, serverLinkHandler, logger.getSubLogger({ name: "TEZOS" }), + staking, + secrets.evmWallet.address, ) : undefined; diff --git a/src/handler/index.ts b/src/handler/index.ts index c7cc713..b3bf982 100644 --- a/src/handler/index.ts +++ b/src/handler/index.ts @@ -212,30 +212,25 @@ export async function listenStakeEvents( signerAddress: signerAndSignature.signer, }, }); - } - if (!signatures.length) return; - const newEvmValidator = ev.find((item) => item.chainType === "evm"); - if (!newEvmValidator) { - throw new Error("Unreachable State"); - } - const approvalFn = async () => { - const tx = await deps.storage.approveStake( - newEvmValidator.validatorAddress, - signatures, + const approvalFn = async () => { + const tx = await deps.storage.approveStake( + currentValidatorAddress, + signatures, + ); + if (!(await tx.wait())?.status) throw new Error("TxFailed"); + return tx; + }; + const approved = await retry( + approvalFn, + `Approving stake ${JSON.stringify(ev, null, 2)}`, + log, + 6, ); - if (!(await tx.wait())?.status) throw new Error("TxFailed"); - return tx; - }; - const approved = await retry( - approvalFn, - `Approving stake ${JSON.stringify(ev, null, 2)}`, - log, - 6, - ); - log.info( - `Approved and Signed Data for Staking Chain at TX: ${approved.hash}`, - ); + log.info( + `Approved and Signed Data for Staking Chain at TX: ${approved.hash}`, + ); + } }); } diff --git a/src/handler/tezos/index.ts b/src/handler/tezos/index.ts index d009f50..8049eee 100644 --- a/src/handler/tezos/index.ts +++ b/src/handler/tezos/index.ts @@ -28,6 +28,8 @@ export async function tezosHandler({ chainIdent, serverLinkHandler, logger, + staking, + validatorAddress, }: TezosHandlerParams): Promise { const bc = await provider.contract.at(bridge); @@ -68,7 +70,15 @@ export async function tezosHandler({ signClaimData: (data) => signClaimData(data, signer), nftData: (tid, ctr) => nftData(tid, ctr, provider, logger), selfIsValidator: () => selfIsValidator(bc, signer), - addSelfAsValidator: () => addSelfAsValidator(storage, bc, signer, logger), + addSelfAsValidator: () => + addSelfAsValidator( + storage, + bc, + signer, + logger, + staking, + validatorAddress, + ), chainIdent: chainIdent, decimals: BigInt(10 ** decimals), }; diff --git a/src/handler/tezos/types/index.ts b/src/handler/tezos/types/index.ts index 8f68961..3c6c67e 100644 --- a/src/handler/tezos/types/index.ts +++ b/src/handler/tezos/types/index.ts @@ -2,7 +2,7 @@ import type { EntityManager } from "@mikro-orm/sqlite"; import type { Signer, TezosToolkit } from "@taquito/taquito"; import type { AxiosInstance } from "axios"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; -import type { BridgeStorage } from "../../../contractsTypes/evm"; +import type { BridgeStorage, ERC20Staking } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type TezosHandlerParams = { @@ -20,4 +20,6 @@ export type TezosHandlerParams = { chainIdent: TSupportedChains; serverLinkHandler: AxiosInstance | undefined; logger: LogInstance; + staking: ERC20Staking; + validatorAddress: string; }; diff --git a/src/handler/tezos/utils/addSelfAsValidator.ts b/src/handler/tezos/utils/addSelfAsValidator.ts index eefd4ad..90254e2 100644 --- a/src/handler/tezos/utils/addSelfAsValidator.ts +++ b/src/handler/tezos/utils/addSelfAsValidator.ts @@ -1,7 +1,7 @@ import { hash } from "@stablelib/blake2b"; import type { Signer } from "@taquito/taquito"; import { b58cdecode, b58cencode, prefix } from "@taquito/utils"; -import type { BridgeStorage } from "../../../contractsTypes/evm"; +import type { BridgeStorage, ERC20Staking } from "../../../contractsTypes/evm"; import type { BridgeContractType } from "../../../contractsTypes/tezos/Bridge.types"; import { tas } from "../../../contractsTypes/tezos/type-aliases"; import type { LogInstance } from "../../types"; @@ -16,8 +16,23 @@ export default async function addSelfAsValidator( bc: BridgeContractType, signer: Signer, logger: LogInstance, + staking: ERC20Staking, + validatorAddress: string, ): Promise<"success" | "failure"> { try { + const stakedAmt = await staking.stakingBalances(validatorAddress); + if (stakedAmt > 0n) { + const add = await staking.addNewChains([ + { + chainType: "tezos", + validatorAddress: await signer.publicKey(), + }, + ]); + const receipt = await add.wait(); + logger.info( + `Added self as new chain at hash: ${receipt?.hash}. BN: ${receipt?.blockNumber}`, + ); + } let validatorsCount = (await bc.storage()).validators_count.toNumber(); let signatureCount = Number( await storage.getStakingSignaturesCount(await signer.publicKey()), From d831dc1f439e373eb55020b580e48024c2991ecb Mon Sep 17 00:00:00 2001 From: imsk17 Date: Wed, 7 Aug 2024 16:37:34 +0530 Subject: [PATCH 4/6] handlers(multiversx): emit self as new chain on new validators --- src/config.ts | 26 +++++++++---------- src/deps.ts | 6 +++++ src/handler/multiversx/index.ts | 13 +++++++++- src/handler/multiversx/types/index.ts | 4 ++- .../multiversx/utils/addSelfAsValidator.ts | 25 ++++++++++++++---- 5 files changed, 54 insertions(+), 20 deletions(-) diff --git a/src/config.ts b/src/config.ts index f046bf4..f2abaa5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -61,19 +61,19 @@ export const bridgeTestChains = [ restApiURL: "https://api.ghostnet.tzkt.io", rpcURL: "https://ghostnet.smartpy.io", }, - // { - // chainType: "multiversX", - // chain: "MULTIVERSX", - // chainID: "D", - // contractAddress: - // "erd1qqqqqqqqqqqqqpgqn5vhjcu3mrctgaj85zx2c5lpph32q408lwzqrl4vys", - // decimals: 18, - // elasticSearchURL: "https://devnet-index.multiversx.com", - // gatewayURL: "https://devnet-gateway.multiversx.com", - // intialFund: "50000000000000000", - // nativeCoinSymbol: "EGLD", - // lastBlock: 4757826, - // }, + { + chainType: "multiversX", + chain: "MULTIVERSX", + chainID: "D", + contractAddress: + "erd1qqqqqqqqqqqqqpgql67498cpkdp77kjmcujy8nqskqmmvrdxtfmsrvqde2", + decimals: 18, + elasticSearchURL: "https://devnet-index.multiversx.com", + gatewayURL: "https://devnet-gateway.multiversx.com", + intialFund: "50000000000000000", + nativeCoinSymbol: "EGLD", + lastBlock: 4757826, + }, ] as const satisfies TChain[]; export const storageTestnetConfig: IEvmChainConfig = { diff --git a/src/deps.ts b/src/deps.ts index 87f662d..b4b3271 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -260,6 +260,8 @@ export async function configMultiversXHandler( multiversXWallet: IMultiversXWallet, serverLinkHandler: AxiosInstance | undefined, mxLogger: LogInstance, + staking: ERC20Staking, + validatorAddress: string, ) { const lb = await em.findOne(Block, { chain: conf.chain, @@ -284,6 +286,8 @@ export async function configMultiversXHandler( decimals: conf.decimals, serverLinkHandler, logger: mxLogger, + staking, + validatorAddress, }); } @@ -386,6 +390,8 @@ export async function configDeps( secrets.multiversXWallet, serverLinkHandler, logger.getSubLogger({ name: "MULTIVERSX" }), + staking, + secrets.evmWallet.address, ) : undefined; diff --git a/src/handler/multiversx/index.ts b/src/handler/multiversx/index.ts index 97886f2..720c775 100644 --- a/src/handler/multiversx/index.ts +++ b/src/handler/multiversx/index.ts @@ -36,6 +36,8 @@ export function multiversxHandler({ chainIdent, serverLinkHandler, logger, + staking, + validatorAddress, }: MultiversXHandlerParams): THandler { const multiversXBridgeAddress = new Address(bridge); const abiRegistry = AbiRegistry.create(multiversXBridgeABI); @@ -77,7 +79,16 @@ export function multiversxHandler({ chainIdent, selfIsValidator: () => selfIsValidator(bc, signer, provider), addSelfAsValidator: () => - addSelfAsValidator(bc, chainID, storage, signer, provider, logger), + addSelfAsValidator( + bc, + chainID, + storage, + signer, + provider, + logger, + staking, + validatorAddress, + ), listenForLockEvents: (builder, cb) => listenForLockEvents( builder, diff --git a/src/handler/multiversx/types/index.ts b/src/handler/multiversx/types/index.ts index c401f40..650981e 100644 --- a/src/handler/multiversx/types/index.ts +++ b/src/handler/multiversx/types/index.ts @@ -3,7 +3,7 @@ import type { INetworkProvider } from "@multiversx/sdk-network-providers/out/int import type { UserSigner } from "@multiversx/sdk-wallet/out"; import type { AxiosInstance } from "axios"; import type { TSupportedChainTypes, TSupportedChains } from "../../../config"; -import type { BridgeStorage } from "../../../contractsTypes/evm"; +import type { BridgeStorage, ERC20Staking } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; export type MultiversXHandlerParams = { @@ -21,4 +21,6 @@ export type MultiversXHandlerParams = { chainIdent: TSupportedChains; serverLinkHandler: AxiosInstance | undefined; logger: LogInstance; + staking: ERC20Staking; + validatorAddress: string; }; diff --git a/src/handler/multiversx/utils/addSelfAsValidator.ts b/src/handler/multiversx/utils/addSelfAsValidator.ts index 9afe7a5..d03cc6f 100644 --- a/src/handler/multiversx/utils/addSelfAsValidator.ts +++ b/src/handler/multiversx/utils/addSelfAsValidator.ts @@ -7,7 +7,7 @@ import { import { AddressValue, BytesValue } from "@multiversx/sdk-core/out"; import type { INetworkProvider } from "@multiversx/sdk-network-providers/out/interface"; import type { UserSigner } from "@multiversx/sdk-wallet/out"; -import type { BridgeStorage } from "../../../contractsTypes/evm"; +import type { BridgeStorage, ERC20Staking } from "../../../contractsTypes/evm"; import type { LogInstance } from "../../types"; import { ProcessDelayMilliseconds, @@ -22,6 +22,8 @@ export default async function addSelfAsValidator( signer: UserSigner, provider: INetworkProvider, logger: LogInstance, + staking: ERC20Staking, + validatorAddress: string, ): Promise<"success" | "failure"> { try { const vc = async (): Promise => { @@ -40,10 +42,23 @@ export default async function addSelfAsValidator( const count = firstValue.valueOf(); return count; }; + const stakedAmt = await staking.stakingBalances(validatorAddress); + if (stakedAmt > 0n) { + const add = await staking.addNewChains([ + { + chainType: "multiversX", + validatorAddress: signer.getAddress().hex(), + }, + ]); + const receipt = await add.wait(); + logger.info( + `Added self as new chain at hash: ${receipt?.hash}. BN: ${receipt?.blockNumber}`, + ); + } let validatorCount = Number(await vc()); let signatureCount = Number( - await storage.getStakingSignaturesCount(signer.getAddress().bech32()), + await storage.getStakingSignaturesCount(signer.getAddress().hex()), ); while (signatureCount < confirmationCountNeeded(validatorCount)) { @@ -54,13 +69,13 @@ export default async function addSelfAsValidator( )}`, ); signatureCount = Number( - await storage.getStakingSignaturesCount(signer.getAddress().bech32()), + await storage.getStakingSignaturesCount(signer.getAddress().hex()), ); validatorCount = Number(await vc()); } const signatures = [ - ...(await storage.getStakingSignatures(signer.getAddress().bech32())), + ...(await storage.getStakingSignatures(signer.getAddress().hex())), ].map((item) => { return { signerAddress: item.signerAddress, @@ -80,7 +95,7 @@ export default async function addSelfAsValidator( sig: new BytesValue( Buffer.from(item.signature.replace("0x", ""), "hex"), ), - public_key: new AddressValue(new Address(userAddress.bech32())), + public_key: new AddressValue(new Address(userAddress.hex())), }; }), ]; From b96e00edb8231c975ec5cf02c835c5019a170388 Mon Sep 17 00:00:00 2001 From: imsk17 Date: Wed, 7 Aug 2024 16:43:31 +0530 Subject: [PATCH 5/6] handlers(multiversx): fix checking for self is validator --- src/handler/multiversx/utils/selfIsValidator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/handler/multiversx/utils/selfIsValidator.ts b/src/handler/multiversx/utils/selfIsValidator.ts index 54d131a..bd69adb 100644 --- a/src/handler/multiversx/utils/selfIsValidator.ts +++ b/src/handler/multiversx/utils/selfIsValidator.ts @@ -23,6 +23,9 @@ export default async function selfIsValidator( validatorsDefinition, ); let added = false; - if (firstValue) ({ added } = firstValue.valueOf()[0]); + if (firstValue) { + const [value] = firstValue.valueOf(); + added = value?.added ?? false; + } return added; } From 712b6f1de07938c2f25cdec8901aae9dba20d06c Mon Sep 17 00:00:00 2001 From: imsk17 Date: Wed, 7 Aug 2024 18:22:38 +0530 Subject: [PATCH 6/6] feat(testnet): keep old contracts --- src/config.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/config.ts b/src/config.ts index f2abaa5..ee8abdf 100644 --- a/src/config.ts +++ b/src/config.ts @@ -11,7 +11,7 @@ export const bridgeTestChains = [ rpcURL: "https://bsc-testnet-rpc.publicnode.com", nativeCoinSymbol: "BNB", intialFund: "50000000000000000", - contractAddress: "0x88d879721bfF6A8c14e8cFEd20b41508C054e486", + contractAddress: "0xA70D9c05EB97FeDF4EA6CD52Dc426E66C0959968", chainType: "evm", lastBlock: 42367810, decimals: 18, @@ -22,7 +22,7 @@ export const bridgeTestChains = [ rpcURL: "https://rpc.api.moonbase.moonbeam.network", nativeCoinSymbol: "DEV", intialFund: "50000000000000000", - contractAddress: "0x6c7C46Ffc4A3560708bfddC14968AaBF5a25752B", + contractAddress: "0x2b4082b5cBe5958888d68985524939ec1c871007", chainType: "evm", lastBlock: 7970143, decimals: 18, @@ -33,27 +33,27 @@ export const bridgeTestChains = [ rpcURL: "https://testnet.hashio.io/api", nativeCoinSymbol: "HBAR", intialFund: "50000000000000000", - contractAddress: "0xE9cfB51Ea4DE533b7A2BC9ae8a89FB6debd1eFfF", + contractAddress: "0x5AaC11DDCf117A789f339ece3CBC23756985E554", chainType: "evm", lastBlock: 6959861, decimals: 18, blockChunks: 1000, }, - // { - // chain: "TON", - // rpcURL: "https://testnet.toncenter.com/api/v2/jsonRPC", - // chainType: "ton", - // contractAddress: "kQCHrjSTU6W7XYUfJgwr_trmG3QL_llPJfPyXPmINYznrkh6", - // decimals: 9, - // intialFund: "100000000", - // lastBlock: 24014875000001, - // nativeCoinSymbol: "TON", - // }, + { + chain: "TON", + rpcURL: "https://testnet.toncenter.com/api/v2/jsonRPC", + chainType: "ton", + contractAddress: "kQCHrjSTU6W7XYUfJgwr_trmG3QL_llPJfPyXPmINYznrkh6", + decimals: 9, + intialFund: "100000000", + lastBlock: 24014875000001, + nativeCoinSymbol: "TON", + }, { blockChunks: 1000, chain: "TEZOS", chainType: "tezos", - contractAddress: "KT1XTpmy5x2KQuLcLab9uXaoda3RnfnTnQLY", + contractAddress: "KT1UGfH2Hk2MVKt8ADqqkRqcGZussRnfpahV", decimals: 9, intialFund: "100000000", lastBlock: 7259145, @@ -66,7 +66,7 @@ export const bridgeTestChains = [ chain: "MULTIVERSX", chainID: "D", contractAddress: - "erd1qqqqqqqqqqqqqpgql67498cpkdp77kjmcujy8nqskqmmvrdxtfmsrvqde2", + "erd1qqqqqqqqqqqqqpgqn5vhjcu3mrctgaj85zx2c5lpph32q408lwzqrl4vys", decimals: 18, elasticSearchURL: "https://devnet-index.multiversx.com", gatewayURL: "https://devnet-gateway.multiversx.com", @@ -81,7 +81,7 @@ export const storageTestnetConfig: IEvmChainConfig = { rpcURL: "https://testnet.skalenodes.com/v1/juicy-low-small-testnet", nativeCoinSymbol: "sFUEL", intialFund: "0", - contractAddress: "0xa2bfF1a9f53d1e2fEDd40963871Dd107b0Bf783C", + contractAddress: "0x04cAEd1763B2C121D92FcaEaB41BFfe3EAB57EFC", chainType: "evm", lastBlock: 2209753, decimals: 18, @@ -94,8 +94,8 @@ export const stakingTestChain: IStakingConfig = { coinSymbol: "DummyERC20", nativeCoinSymbol: "sFUEL", chainType: "evm", - coinAddress: "0x3e522f71ACA5Ec551Fd16f0476C9a35642CaDE5F", - contractAddress: "0x5270E33517c596Be4A3e4CB107a0Db078424BE9D", + coinAddress: "0x491f505AbD292372f7D9a8C6B12d3a8d3894C8b6", + contractAddress: "0x2b4082b5cBe5958888d68985524939ec1c871007", intialFund: "0", lastBlock: 2209753, decimals: 18,