diff --git a/.gitignore b/.gitignore index 06888c6..ff022df 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,11 @@ dependencies .yarn/install-state.gz coverage/ + +# Deployment files +deployments/*.json +!deployments/*.example.json + +# TypeScript build artifacts +*.tsbuildinfo +packages/*/dist/ diff --git a/packages/abis/.gitignore b/packages/abis/.gitignore new file mode 100644 index 0000000..5a3b94e --- /dev/null +++ b/packages/abis/.gitignore @@ -0,0 +1,22 @@ +# TypeScript build outputs +dist/ +*.tsbuildinfo + +# Generated JS and declaration files in src +# (Keep only .ts source files in version control) +src/**/*.js +src/**/*.d.ts +src/**/*.d.ts.map + +# Dependencies +node_modules/ + +# Logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Misc +.DS_Store + diff --git a/packages/abis/src/index.ts b/packages/abis/src/index.ts index eb9827f..d6fbf3e 100644 --- a/packages/abis/src/index.ts +++ b/packages/abis/src/index.ts @@ -1,6 +1,7 @@ import xDN404BaseAbi from './xDN404Base.js'; import xMorseAbi from './xMorse.js'; import xMorseCollateralAbi from './xMorseCollateral.js'; +import xMorseStakingAbi from './xMorseStaking.js'; import interfacesExports from './interfaces/index.js'; import libsExports from './libs/index.js'; import peripheryExports from './periphery/index.js'; @@ -9,6 +10,7 @@ const abis = { xDN404Base: xDN404BaseAbi, xMorse: xMorseAbi, xMorseCollateral: xMorseCollateralAbi, + xMorseStaking: xMorseStakingAbi, interfaces: interfacesExports, libs: libsExports, periphery: peripheryExports, diff --git a/packages/abis/src/interfaces/IDN404.ts b/packages/abis/src/interfaces/IDN404.ts index 8bbb86a..bd25a7e 100644 --- a/packages/abis/src/interfaces/IDN404.ts +++ b/packages/abis/src/interfaces/IDN404.ts @@ -1,615 +1,615 @@ const abi = [ - { - "type": "function", - "name": "allowance", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "approve", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "approveNFT", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "msgSender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "balanceOf", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "balanceOfNFT", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "balance", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "decimals", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "uint8" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getApprovedNFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "approved", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getSkipNFT", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "result", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "implementsDN404", - "inputs": [], - "outputs": [ - { - "name": "result", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "isApprovedForAllNFT", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "result", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "mirrorERC721", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "ownerAtNFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "ownerOfNFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "setApprovalForAllNFT", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "status", - "type": "bool", - "internalType": "bool" - }, - { - "name": "msgSender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setSkipNFT", - "inputs": [ - { - "name": "skipNFT", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "symbol", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "tokenURI", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "uri", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "tokenURINFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "uri", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "totalNFTSupply", - "inputs": [], - "outputs": [ - { - "name": "totalSupply", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "totalSupply", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transfer", - "inputs": [ - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferFrom", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferFromNFT", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "msgSender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "SkipNFTSet", - "inputs": [ - { - "name": "owner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "status", - "type": "bool", - "indexed": false, - "internalType": "bool" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Transfer", - "inputs": [ - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "ApprovalCallerNotOwnerNorApproved", - "inputs": [] - }, - { - "type": "error", - "name": "DNAlreadyInitialized", - "inputs": [] - }, - { - "type": "error", - "name": "DNNotInitialized", - "inputs": [] - }, - { - "type": "error", - "name": "FnSelectorNotRecognized", - "inputs": [] - }, - { - "type": "error", - "name": "InsufficientAllowance", - "inputs": [] - }, - { - "type": "error", - "name": "InsufficientBalance", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidUnit", - "inputs": [] - }, - { - "type": "error", - "name": "LinkMirrorContractFailed", - "inputs": [] - }, - { - "type": "error", - "name": "MirrorAddressIsZero", - "inputs": [] - }, - { - "type": "error", - "name": "SenderNotMirror", - "inputs": [] - }, - { - "type": "error", - "name": "TokenDoesNotExist", - "inputs": [] - }, - { - "type": "error", - "name": "TotalSupplyOverflow", - "inputs": [] - }, - { - "type": "error", - "name": "TransferCallerNotOwnerNorApproved", - "inputs": [] - }, - { - "type": "error", - "name": "TransferFromIncorrectOwner", - "inputs": [] - }, - { - "type": "error", - "name": "TransferToZeroAddress", - "inputs": [] - } -] as const; + { + "type": "function", + "name": "allowance", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "approve", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "approveNFT", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "msgSender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "balanceOfNFT", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "decimals", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "uint8" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getApprovedNFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "approved", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getSkipNFT", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "result", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "implementsDN404", + "inputs": [], + "outputs": [ + { + "name": "result", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isApprovedForAllNFT", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "result", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mirrorERC721", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ownerAtNFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ownerOfNFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setApprovalForAllNFT", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "internalType": "bool" + }, + { + "name": "msgSender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setSkipNFT", + "inputs": [ + { + "name": "skipNFT", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "tokenURI", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "uri", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "tokenURINFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "uri", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalNFTSupply", + "inputs": [], + "outputs": [ + { + "name": "totalSupply", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFromNFT", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "msgSender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SkipNFTSet", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "DNAlreadyInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "DNNotInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "FnSelectorNotRecognized", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientAllowance", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientBalance", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidUnit", + "inputs": [] + }, + { + "type": "error", + "name": "LinkMirrorContractFailed", + "inputs": [] + }, + { + "type": "error", + "name": "MirrorAddressIsZero", + "inputs": [] + }, + { + "type": "error", + "name": "SenderNotMirror", + "inputs": [] + }, + { + "type": "error", + "name": "TokenDoesNotExist", + "inputs": [] + }, + { + "type": "error", + "name": "TotalSupplyOverflow", + "inputs": [] + }, + { + "type": "error", + "name": "TransferCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "TransferFromIncorrectOwner", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToZeroAddress", + "inputs": [] + } + ] as const; export default abi; diff --git a/packages/abis/src/interfaces/IMorse.ts b/packages/abis/src/interfaces/IMorse.ts index 19ed220..d8e9ed0 100644 --- a/packages/abis/src/interfaces/IMorse.ts +++ b/packages/abis/src/interfaces/IMorse.ts @@ -1,658 +1,658 @@ const abi = [ - { - "type": "function", - "name": "allowance", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "approve", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "approveNFT", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "msgSender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "balanceOf", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "balanceOfNFT", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "balance", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "decimals", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "uint8" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getApprovedNFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "approved", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getCurrentTransferLogs", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "tuple[]", - "internalType": "struct IMorse.DN404TransferLog[]", - "components": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getCurrentTransferLogsCount", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getSkipNFT", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "result", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "implementsDN404", - "inputs": [], - "outputs": [ - { - "name": "result", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "isApprovedForAllNFT", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "operator", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "result", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "mirrorERC721", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "ownerAtNFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "ownerOfNFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "setApprovalForAllNFT", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "status", - "type": "bool", - "internalType": "bool" - }, - { - "name": "msgSender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setSkipNFT", - "inputs": [ - { - "name": "skipNFT", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "symbol", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "tokenURI", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "uri", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "tokenURINFT", - "inputs": [ - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "uri", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "totalNFTSupply", - "inputs": [], - "outputs": [ - { - "name": "totalSupply", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "totalSupply", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transfer", - "inputs": [ - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferFrom", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferFromNFT", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "id", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "msgSender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "SkipNFTSet", - "inputs": [ - { - "name": "owner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "status", - "type": "bool", - "indexed": false, - "internalType": "bool" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Transfer", - "inputs": [ - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "ApprovalCallerNotOwnerNorApproved", - "inputs": [] - }, - { - "type": "error", - "name": "DNAlreadyInitialized", - "inputs": [] - }, - { - "type": "error", - "name": "DNNotInitialized", - "inputs": [] - }, - { - "type": "error", - "name": "FnSelectorNotRecognized", - "inputs": [] - }, - { - "type": "error", - "name": "InsufficientAllowance", - "inputs": [] - }, - { - "type": "error", - "name": "InsufficientBalance", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidUnit", - "inputs": [] - }, - { - "type": "error", - "name": "LinkMirrorContractFailed", - "inputs": [] - }, - { - "type": "error", - "name": "MirrorAddressIsZero", - "inputs": [] - }, - { - "type": "error", - "name": "SenderNotMirror", - "inputs": [] - }, - { - "type": "error", - "name": "TokenDoesNotExist", - "inputs": [] - }, - { - "type": "error", - "name": "TotalSupplyOverflow", - "inputs": [] - }, - { - "type": "error", - "name": "TransferCallerNotOwnerNorApproved", - "inputs": [] - }, - { - "type": "error", - "name": "TransferFromIncorrectOwner", - "inputs": [] - }, - { - "type": "error", - "name": "TransferToZeroAddress", - "inputs": [] - } -] as const; + { + "type": "function", + "name": "allowance", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "approve", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "approveNFT", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "msgSender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "balanceOfNFT", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "balance", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "decimals", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "uint8" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getApprovedNFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "approved", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getCurrentTransferLogs", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "internalType": "struct IMorse.DN404TransferLog[]", + "components": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getCurrentTransferLogsCount", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getSkipNFT", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "result", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "implementsDN404", + "inputs": [], + "outputs": [ + { + "name": "result", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isApprovedForAllNFT", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "result", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mirrorERC721", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ownerAtNFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ownerOfNFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setApprovalForAllNFT", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "internalType": "bool" + }, + { + "name": "msgSender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setSkipNFT", + "inputs": [ + { + "name": "skipNFT", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "tokenURI", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "uri", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "tokenURINFT", + "inputs": [ + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "uri", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalNFTSupply", + "inputs": [], + "outputs": [ + { + "name": "totalSupply", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFromNFT", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "msgSender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SkipNFTSet", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "DNAlreadyInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "DNNotInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "FnSelectorNotRecognized", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientAllowance", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientBalance", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidUnit", + "inputs": [] + }, + { + "type": "error", + "name": "LinkMirrorContractFailed", + "inputs": [] + }, + { + "type": "error", + "name": "MirrorAddressIsZero", + "inputs": [] + }, + { + "type": "error", + "name": "SenderNotMirror", + "inputs": [] + }, + { + "type": "error", + "name": "TokenDoesNotExist", + "inputs": [] + }, + { + "type": "error", + "name": "TotalSupplyOverflow", + "inputs": [] + }, + { + "type": "error", + "name": "TransferCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "TransferFromIncorrectOwner", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToZeroAddress", + "inputs": [] + } + ] as const; export default abi; diff --git a/packages/abis/src/interfaces/IxDN404.ts b/packages/abis/src/interfaces/IxDN404.ts index 95e19fc..86973f3 100644 --- a/packages/abis/src/interfaces/IxDN404.ts +++ b/packages/abis/src/interfaces/IxDN404.ts @@ -1,142 +1,142 @@ const abi = [ - { - "type": "function", - "name": "quoteTransferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteTransferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "transferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - } -] as const; + { + "type": "function", + "name": "quoteTransferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteTransferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "transferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + } + ] as const; export default abi; diff --git a/packages/abis/src/interfaces/IxMorseStaking.ts b/packages/abis/src/interfaces/IxMorseStaking.ts new file mode 100644 index 0000000..845d0a2 --- /dev/null +++ b/packages/abis/src/interfaces/IxMorseStaking.ts @@ -0,0 +1,553 @@ +const abi = [ + { + "type": "function", + "name": "accRewardPerNFT", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "claimAllRewards", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "claimRewards", + "inputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "distributeRewards", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getNFTInfo", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "info", + "type": "tuple", + "internalType": "struct IxMorseStaking.NFTInfo", + "components": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "stakedAt", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "lockupEndTime", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "unclaimedRewards", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "rewardDebt", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getPendingRewards", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "pending", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getStakedNFTs", + "inputs": [ + { + "name": "user", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getTotalStakedNFTs", + "inputs": [], + "outputs": [ + { + "name": "total", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "_xMorseToken", + "type": "address", + "internalType": "address" + }, + { + "name": "_mirrorNFT", + "type": "address", + "internalType": "address" + }, + { + "name": "_rewardToken", + "type": "address", + "internalType": "address" + }, + { + "name": "_owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "mirrorNFT", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "pause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "rewardToken", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setRewardToken", + "inputs": [ + { + "name": "_rewardToken", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "stake", + "inputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unpause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unstake", + "inputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "xMorseToken", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "LockupPeriodUpdated", + "inputs": [ + { + "name": "oldPeriod", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "newPeriod", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NFTStaked", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "lockupEndTime", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NFTUnstaked", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorUpdated", + "inputs": [ + { + "name": "oldOperator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOperator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardTokenUpdated", + "inputs": [ + { + "name": "oldToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newToken", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardsClaimed", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardsDistributed", + "inputs": [ + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "newAccRewardPerNFT", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorAddressUpdated", + "inputs": [ + { + "name": "oldValidator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newValidator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorRewardDistributorUpdated", + "inputs": [ + { + "name": "oldDistributor", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newDistributor", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorRewardsClaimed", + "inputs": [ + { + "name": "validatorAddress", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "EmptyArray", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidNFTContract", + "inputs": [] + }, + { + "type": "error", + "name": "LockupPeriodNotEnded", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "NFTAlreadyStaked", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "NFTNotStaked", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "NoRewardsAvailable", + "inputs": [] + }, + { + "type": "error", + "name": "NoStakersInPool", + "inputs": [] + }, + { + "type": "error", + "name": "NotAuthorized", + "inputs": [] + }, + { + "type": "error", + "name": "NotNFTOwner", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "UnclaimedRewardsExist", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "ZeroAmount", + "inputs": [] + } + ] as const; + +export default abi; diff --git a/packages/abis/src/interfaces/index.ts b/packages/abis/src/interfaces/index.ts index cf8ab51..2783c40 100644 --- a/packages/abis/src/interfaces/index.ts +++ b/packages/abis/src/interfaces/index.ts @@ -1,11 +1,13 @@ import IDN404Abi from './IDN404.js'; import IMorseAbi from './IMorse.js'; import IxDN404Abi from './IxDN404.js'; +import IxMorseStakingAbi from './IxMorseStaking.js'; const abis = { IDN404: IDN404Abi, IMorse: IMorseAbi, IxDN404: IxDN404Abi, + IxMorseStaking: IxMorseStakingAbi, }; export default abis; diff --git a/packages/abis/src/libs/LibTransfer.ts b/packages/abis/src/libs/LibTransfer.ts index 4a9df1c..81ed24b 100644 --- a/packages/abis/src/libs/LibTransfer.ts +++ b/packages/abis/src/libs/LibTransfer.ts @@ -1,9 +1,9 @@ const abi = [ - { - "type": "error", - "name": "TotalAmountMustBeOne", - "inputs": [] - } -] as const; + { + "type": "error", + "name": "TotalAmountMustBeOne", + "inputs": [] + } + ] as const; export default abi; diff --git a/packages/abis/src/libs/Operation.ts b/packages/abis/src/libs/Operation.ts index d8fdb9d..3203685 100644 --- a/packages/abis/src/libs/Operation.ts +++ b/packages/abis/src/libs/Operation.ts @@ -1,42 +1,42 @@ const abi = [ - { - "type": "function", - "name": "getOperationNonce", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "nextOperationId", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - } -] as const; + { + "type": "function", + "name": "getOperationNonce", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "nextOperationId", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + } + ] as const; export default abi; diff --git a/packages/abis/src/xDN404Base.ts b/packages/abis/src/xDN404Base.ts index fe3dcaa..a77c14b 100644 --- a/packages/abis/src/xDN404Base.ts +++ b/packages/abis/src/xDN404Base.ts @@ -1,738 +1,738 @@ const abi = [ - { - "type": "function", - "name": "PACKAGE_VERSION", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "TRANSFER_ERC20", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "TRANSFER_ERC721", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "domains", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32[]", - "internalType": "uint32[]" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "enrollRemoteRouter", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_router", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "enrollRemoteRouters", - "inputs": [ - { - "name": "_domains", - "type": "uint32[]", - "internalType": "uint32[]" - }, - { - "name": "_addresses", - "type": "bytes32[]", - "internalType": "bytes32[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "getOperationNonce", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "handle", - "inputs": [ - { - "name": "_origin", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_sender", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_message", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "hook", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IPostDispatchHook" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "interchainSecurityModule", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IInterchainSecurityModule" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "localDomain", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "mailbox", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IMailbox" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "nextOperationId", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteGasPayment", - "inputs": [ - { - "name": "_destinationDomain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_action", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteTransferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "quotes", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteTransferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "quotes", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "routers", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "setDestinationGas", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "internalType": "uint128" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setDestinationGas", - "inputs": [ - { - "name": "gasConfigs", - "type": "tuple[]", - "internalType": "struct GasRouter.GasRouterConfig[]", - "components": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "internalType": "uint128" - } - ] - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setHook", - "inputs": [ - { - "name": "_hook", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setInterchainSecurityModule", - "inputs": [ - { - "name": "_module", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "transferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "unenrollRemoteRouter", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unenrollRemoteRouters", - "inputs": [ - { - "name": "_domains", - "type": "uint32[]", - "internalType": "uint32[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "event", - "name": "GasSet", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "indexed": false, - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "indexed": false, - "internalType": "uint128" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "HookSet", - "inputs": [ - { - "name": "_hook", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "IsmSet", - "inputs": [ - { - "name": "_ism", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReceivedNFT", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "recipient", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReceivedNFTPartial", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "tokenId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransferRemoteNFT", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "destination", - "type": "uint32", - "indexed": true, - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "messageId", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "gasLimit", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransferRemoteNFTPartial", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "destination", - "type": "uint32", - "indexed": true, - "internalType": "uint32" - }, - { - "name": "messageId", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "recipients", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "gasLimit", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "GasRouter__GasLimitNotSet", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidMessageType", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "ReentrancyGuardReentrantCall", - "inputs": [] - }, - { - "type": "error", - "name": "TotalAmountMustBeOne", - "inputs": [] - } -] as const; + { + "type": "function", + "name": "PACKAGE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "TRANSFER_ERC20", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "TRANSFER_ERC721", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "domains", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32[]", + "internalType": "uint32[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "enrollRemoteRouter", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_router", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "enrollRemoteRouters", + "inputs": [ + { + "name": "_domains", + "type": "uint32[]", + "internalType": "uint32[]" + }, + { + "name": "_addresses", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getOperationNonce", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "handle", + "inputs": [ + { + "name": "_origin", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_sender", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "_message", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "hook", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IPostDispatchHook" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "interchainSecurityModule", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IInterchainSecurityModule" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "localDomain", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mailbox", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IMailbox" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "nextOperationId", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteGasPayment", + "inputs": [ + { + "name": "_destinationDomain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_action", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteTransferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "quotes", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteTransferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "quotes", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "routers", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setDestinationGas", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "internalType": "uint128" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setDestinationGas", + "inputs": [ + { + "name": "gasConfigs", + "type": "tuple[]", + "internalType": "struct GasRouter.GasRouterConfig[]", + "components": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "internalType": "uint128" + } + ] + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setHook", + "inputs": [ + { + "name": "_hook", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setInterchainSecurityModule", + "inputs": [ + { + "name": "_module", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "transferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "unenrollRemoteRouter", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unenrollRemoteRouters", + "inputs": [ + { + "name": "_domains", + "type": "uint32[]", + "internalType": "uint32[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "GasSet", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "indexed": false, + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "indexed": false, + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "indexed": false, + "internalType": "uint128" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "HookSet", + "inputs": [ + { + "name": "_hook", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "IsmSet", + "inputs": [ + { + "name": "_ism", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReceivedNFT", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "recipient", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReceivedNFTPartial", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "indexed": false, + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TransferRemoteNFT", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "destination", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "messageId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "gasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TransferRemoteNFTPartial", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "destination", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + }, + { + "name": "messageId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "recipients", + "type": "bytes32[]", + "indexed": false, + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "gasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "GasRouter__GasLimitNotSet", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidMessageType", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "ReentrancyGuardReentrantCall", + "inputs": [] + }, + { + "type": "error", + "name": "TotalAmountMustBeOne", + "inputs": [] + } + ] as const; export default abi; diff --git a/packages/abis/src/xMorse.ts b/packages/abis/src/xMorse.ts index 40c1d56..595d2a4 100644 --- a/packages/abis/src/xMorse.ts +++ b/packages/abis/src/xMorse.ts @@ -1,1426 +1,1528 @@ const abi = [ - { - "type": "constructor", - "inputs": [ - { - "name": "_mailbox", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "fallback", - "stateMutability": "payable" - }, - { - "type": "receive", - "stateMutability": "payable" - }, - { - "type": "function", - "name": "PACKAGE_VERSION", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "TRANSFER_ERC20", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "TRANSFER_ERC721", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "UPGRADE_INTERFACE_VERSION", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "allowance", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "approve", - "inputs": [ - { - "name": "spender", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "balanceOf", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "baseURI", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "decimals", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint8", - "internalType": "uint8" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "domains", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32[]", - "internalType": "uint32[]" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "enrollRemoteRouter", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_router", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "enrollRemoteRouters", - "inputs": [ - { - "name": "_domains", - "type": "uint32[]", - "internalType": "uint32[]" - }, - { - "name": "_addresses", - "type": "bytes32[]", - "internalType": "bytes32[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "finalize", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "getOperationNonce", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getSkipNFT", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "result", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "handle", - "inputs": [ - { - "name": "_origin", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_sender", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_message", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "hook", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IPostDispatchHook" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "initialize", - "inputs": [ - { - "name": "_name", - "type": "string", - "internalType": "string" - }, - { - "name": "_symbol", - "type": "string", - "internalType": "string" - }, - { - "name": "_decimals", - "type": "uint8", - "internalType": "uint8" - }, - { - "name": "_multicall", - "type": "address", - "internalType": "address" - }, - { - "name": "_initialTokenSupply", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "_initialOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "_hook", - "type": "address", - "internalType": "address" - }, - { - "name": "_ism", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "interchainSecurityModule", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IInterchainSecurityModule" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "localDomain", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "mailbox", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IMailbox" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "mirrorERC721", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "name", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "nextOperationId", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteGasPayment", - "inputs": [ - { - "name": "_destinationDomain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_action", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteTransferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "quotes", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteTransferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "quotes", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "routers", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "setDestinationGas", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "internalType": "uint128" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setDestinationGas", - "inputs": [ - { - "name": "gasConfigs", - "type": "tuple[]", - "internalType": "struct GasRouter.GasRouterConfig[]", - "components": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "internalType": "uint128" - } - ] - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setHook", - "inputs": [ - { - "name": "_hook", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setInterchainSecurityModule", - "inputs": [ - { - "name": "_module", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setSkipNFT", - "inputs": [ - { - "name": "skipNFT", - "type": "bool", - "internalType": "bool" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "symbol", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "totalSupply", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "transfer", - "inputs": [ - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferFrom", - "inputs": [ - { - "name": "from", - "type": "address", - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "transferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "unenrollRemoteRouter", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unenrollRemoteRouters", - "inputs": [ - { - "name": "_domains", - "type": "uint32[]", - "internalType": "uint32[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "event", - "name": "Approval", - "inputs": [ - { - "name": "owner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "spender", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Finalized", - "inputs": [], - "anonymous": false - }, - { - "type": "event", - "name": "GasSet", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "indexed": false, - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "indexed": false, - "internalType": "uint128" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "HookSet", - "inputs": [ - { - "name": "_hook", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "IsmSet", - "inputs": [ - { - "name": "_ism", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReceivedNFT", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "recipient", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReceivedNFTPartial", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "tokenId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "SkipNFTSet", - "inputs": [ - { - "name": "owner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "status", - "type": "bool", - "indexed": false, - "internalType": "bool" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Transfer", - "inputs": [ - { - "name": "from", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "to", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransferRemoteNFT", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "destination", - "type": "uint32", - "indexed": true, - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "messageId", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "gasLimit", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransferRemoteNFTPartial", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "destination", - "type": "uint32", - "indexed": true, - "internalType": "uint32" - }, - { - "name": "messageId", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "recipients", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "gasLimit", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ApprovalCallerNotOwnerNorApproved", - "inputs": [] - }, - { - "type": "error", - "name": "DNAlreadyInitialized", - "inputs": [] - }, - { - "type": "error", - "name": "DNNotInitialized", - "inputs": [] - }, - { - "type": "error", - "name": "ERC1967InvalidImplementation", - "inputs": [ - { - "name": "implementation", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC1967NonPayable", - "inputs": [] - }, - { - "type": "error", - "name": "FailedCall", - "inputs": [] - }, - { - "type": "error", - "name": "FnSelectorNotRecognized", - "inputs": [] - }, - { - "type": "error", - "name": "GasRouter__GasLimitNotSet", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "error", - "name": "InsufficientAllowance", - "inputs": [] - }, - { - "type": "error", - "name": "InsufficientBalance", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidMessageType", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidUnit", - "inputs": [] - }, - { - "type": "error", - "name": "LinkMirrorContractFailed", - "inputs": [] - }, - { - "type": "error", - "name": "MirrorAddressIsZero", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ReentrancyGuardReentrantCall", - "inputs": [] - }, - { - "type": "error", - "name": "SenderNotMirror", - "inputs": [] - }, - { - "type": "error", - "name": "TokenDoesNotExist", - "inputs": [] - }, - { - "type": "error", - "name": "TotalAmountMustBeOne", - "inputs": [] - }, - { - "type": "error", - "name": "TotalSupplyOverflow", - "inputs": [] - }, - { - "type": "error", - "name": "TransferCallerNotOwnerNorApproved", - "inputs": [] - }, - { - "type": "error", - "name": "TransferFromIncorrectOwner", - "inputs": [] - }, - { - "type": "error", - "name": "TransferToZeroAddress", - "inputs": [] - }, - { - "type": "error", - "name": "TreasuryBalanceDoesNotMatchInitialTokenSupply", - "inputs": [] - }, - { - "type": "error", - "name": "TreasurySkipNFTIsNotSet", - "inputs": [] - }, - { - "type": "error", - "name": "UUPSUnauthorizedCallContext", - "inputs": [] - }, - { - "type": "error", - "name": "UUPSUnsupportedProxiableUUID", - "inputs": [ - { - "name": "slot", - "type": "bytes32", - "internalType": "bytes32" - } - ] - } -] as const; + { + "type": "constructor", + "inputs": [ + { + "name": "_mailbox", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "fallback", + "stateMutability": "payable" + }, + { + "type": "receive", + "stateMutability": "payable" + }, + { + "type": "function", + "name": "PACKAGE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "TRANSFER_ERC20", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "TRANSFER_ERC721", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "UPGRADE_INTERFACE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "acceptOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "allowance", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "approve", + "inputs": [ + { + "name": "spender", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "balanceOf", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "baseURI", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "decimals", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint8", + "internalType": "uint8" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "domains", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32[]", + "internalType": "uint32[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "enrollRemoteRouter", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_router", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "enrollRemoteRouters", + "inputs": [ + { + "name": "_domains", + "type": "uint32[]", + "internalType": "uint32[]" + }, + { + "name": "_addresses", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "ethereumToMitosisId", + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getOperationNonce", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getSkipNFT", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "result", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "handle", + "inputs": [ + { + "name": "_origin", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_sender", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "_message", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "hook", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IPostDispatchHook" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "_name", + "type": "string", + "internalType": "string" + }, + { + "name": "_symbol", + "type": "string", + "internalType": "string" + }, + { + "name": "_decimals", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "_baseURI", + "type": "string", + "internalType": "string" + }, + { + "name": "_initialOwner", + "type": "address", + "internalType": "address" + }, + { + "name": "_hook", + "type": "address", + "internalType": "address" + }, + { + "name": "_ism", + "type": "address", + "internalType": "address" + }, + { + "name": "_mirror", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "interchainSecurityModule", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IInterchainSecurityModule" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "localDomain", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mailbox", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IMailbox" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mirrorERC721", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mitosisToEthereumId", + "inputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "name", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "nextOperationId", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "onERC721Received", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "pendingOwner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "proxiableUUID", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteGasPayment", + "inputs": [ + { + "name": "_destinationDomain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_action", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteTransferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "quotes", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteTransferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "quotes", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "routers", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setBaseURI", + "inputs": [ + { + "name": "_baseURI", + "type": "string", + "internalType": "string" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setDestinationGas", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "internalType": "uint128" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setDestinationGas", + "inputs": [ + { + "name": "gasConfigs", + "type": "tuple[]", + "internalType": "struct GasRouter.GasRouterConfig[]", + "components": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "internalType": "uint128" + } + ] + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setHook", + "inputs": [ + { + "name": "_hook", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setInterchainSecurityModule", + "inputs": [ + { + "name": "_module", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setSkipNFT", + "inputs": [ + { + "name": "skipNFT", + "type": "bool", + "internalType": "bool" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "symbol", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "totalSupply", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transfer", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferFrom", + "inputs": [ + { + "name": "from", + "type": "address", + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "transferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "unenrollRemoteRouter", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unenrollRemoteRouters", + "inputs": [ + { + "name": "_domains", + "type": "uint32[]", + "internalType": "uint32[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "upgradeToAndCall", + "inputs": [ + { + "name": "newImplementation", + "type": "address", + "internalType": "address" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "event", + "name": "Approval", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "spender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GasSet", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "indexed": false, + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "indexed": false, + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "indexed": false, + "internalType": "uint128" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "HookSet", + "inputs": [ + { + "name": "_hook", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "IsmSet", + "inputs": [ + { + "name": "_ism", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferStarted", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReceivedNFT", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "recipient", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReceivedNFTPartial", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "indexed": false, + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "SkipNFTSet", + "inputs": [ + { + "name": "owner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "status", + "type": "bool", + "indexed": false, + "internalType": "bool" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TokenIdMapped", + "inputs": [ + { + "name": "mitosisTokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "ethereumTokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Transfer", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TransferRemoteNFT", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "destination", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "messageId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "gasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TransferRemoteNFTPartial", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "destination", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + }, + { + "name": "messageId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "recipients", + "type": "bytes32[]", + "indexed": false, + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "gasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Upgraded", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ApprovalCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "DNAlreadyInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "DNNotInitialized", + "inputs": [] + }, + { + "type": "error", + "name": "ERC1967InvalidImplementation", + "inputs": [ + { + "name": "implementation", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967NonPayable", + "inputs": [] + }, + { + "type": "error", + "name": "FailedCall", + "inputs": [] + }, + { + "type": "error", + "name": "FnSelectorNotRecognized", + "inputs": [] + }, + { + "type": "error", + "name": "GasRouter__GasLimitNotSet", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "error", + "name": "InsufficientAllowance", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientBalance", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidMessageType", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidUnit", + "inputs": [] + }, + { + "type": "error", + "name": "LinkMirrorContractFailed", + "inputs": [] + }, + { + "type": "error", + "name": "MirrorAddressIsZero", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "PartialTransfersNotSupported", + "inputs": [] + }, + { + "type": "error", + "name": "ReentrancyGuardReentrantCall", + "inputs": [] + }, + { + "type": "error", + "name": "SenderNotMirror", + "inputs": [] + }, + { + "type": "error", + "name": "TokenDoesNotExist", + "inputs": [] + }, + { + "type": "error", + "name": "TokenIdArrayLengthMismatch", + "inputs": [] + }, + { + "type": "error", + "name": "TokenNotBridgedFromEthereum", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "TotalAmountMustBeOne", + "inputs": [] + }, + { + "type": "error", + "name": "TotalSupplyOverflow", + "inputs": [] + }, + { + "type": "error", + "name": "TransferCallerNotOwnerNorApproved", + "inputs": [] + }, + { + "type": "error", + "name": "TransferFromIncorrectOwner", + "inputs": [] + }, + { + "type": "error", + "name": "TransferToZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "UUPSUnauthorizedCallContext", + "inputs": [] + }, + { + "type": "error", + "name": "UUPSUnsupportedProxiableUUID", + "inputs": [ + { + "name": "slot", + "type": "bytes32", + "internalType": "bytes32" + } + ] + } + ] as const; export default abi; diff --git a/packages/abis/src/xMorseCollateral.ts b/packages/abis/src/xMorseCollateral.ts index 33051cb..d71eab3 100644 --- a/packages/abis/src/xMorseCollateral.ts +++ b/packages/abis/src/xMorseCollateral.ts @@ -1,1065 +1,1102 @@ const abi = [ - { - "type": "constructor", - "inputs": [ - { - "name": "token_", - "type": "address", - "internalType": "address" - }, - { - "name": "_multicall", - "type": "address", - "internalType": "address" - }, - { - "name": "_mailbox", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "MULTICALL", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IMulticall3" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "PACKAGE_VERSION", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "TOKEN", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "TRANSFER_ERC20", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "TRANSFER_ERC721", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "UPGRADE_INTERFACE_VERSION", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "string", - "internalType": "string" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "acceptOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "domains", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32[]", - "internalType": "uint32[]" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "enrollRemoteRouter", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_router", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "enrollRemoteRouters", - "inputs": [ - { - "name": "_domains", - "type": "uint32[]", - "internalType": "uint32[]" - }, - { - "name": "_addresses", - "type": "bytes32[]", - "internalType": "bytes32[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "getOperationNonce", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "handle", - "inputs": [ - { - "name": "_origin", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_sender", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "_message", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "hook", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IPostDispatchHook" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "initialize", - "inputs": [ - { - "name": "initialOwner", - "type": "address", - "internalType": "address" - }, - { - "name": "_hook", - "type": "address", - "internalType": "address" - }, - { - "name": "_ism", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "interchainSecurityModule", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IInterchainSecurityModule" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "localDomain", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint32", - "internalType": "uint32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "mailbox", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "contract IMailbox" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "nextOperationId", - "inputs": [ - { - "name": "sender", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "onERC721Received", - "inputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "address", - "internalType": "address" - }, - { - "name": "", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "owner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "pendingOwner", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "proxiableUUID", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteGasPayment", - "inputs": [ - { - "name": "_destinationDomain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "_action", - "type": "uint96", - "internalType": "uint96" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteTransferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "quotes", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "quoteTransferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [ - { - "name": "quotes", - "type": "tuple[]", - "internalType": "struct Quote[]", - "components": [ - { - "name": "token", - "type": "address", - "internalType": "address" - }, - { - "name": "amount", - "type": "uint256", - "internalType": "uint256" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "renounceOwnership", - "inputs": [], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "routers", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "setDestinationGas", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "internalType": "uint128" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setDestinationGas", - "inputs": [ - { - "name": "gasConfigs", - "type": "tuple[]", - "internalType": "struct GasRouter.GasRouterConfig[]", - "components": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "internalType": "uint128" - } - ] - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setHook", - "inputs": [ - { - "name": "_hook", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setInterchainSecurityModule", - "inputs": [ - { - "name": "_module", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferOwnership", - "inputs": [ - { - "name": "newOwner", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "transferRemoteNFT", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "transferRemoteNFTPartial", - "inputs": [ - { - "name": "destination", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "tokenId", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "internalType": "uint256[]" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "function", - "name": "unenrollRemoteRouter", - "inputs": [ - { - "name": "_domain", - "type": "uint32", - "internalType": "uint32" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "unenrollRemoteRouters", - "inputs": [ - { - "name": "_domains", - "type": "uint32[]", - "internalType": "uint32[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "upgradeToAndCall", - "inputs": [ - { - "name": "newImplementation", - "type": "address", - "internalType": "address" - }, - { - "name": "data", - "type": "bytes", - "internalType": "bytes" - } - ], - "outputs": [], - "stateMutability": "payable" - }, - { - "type": "event", - "name": "GasSet", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "indexed": false, - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "indexed": false, - "internalType": "uint96" - }, - { - "name": "gas", - "type": "uint128", - "indexed": false, - "internalType": "uint128" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "HookSet", - "inputs": [ - { - "name": "_hook", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint64", - "indexed": false, - "internalType": "uint64" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "IsmSet", - "inputs": [ - { - "name": "_ism", - "type": "address", - "indexed": false, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferStarted", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "OwnershipTransferred", - "inputs": [ - { - "name": "previousOwner", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "newOwner", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReceivedNFT", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "recipient", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "ReceivedNFTPartial", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "tokenId", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "recipients", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransferRemoteNFT", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "destination", - "type": "uint32", - "indexed": true, - "internalType": "uint32" - }, - { - "name": "recipient", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "messageId", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "tokenIds", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "gasLimit", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "TransferRemoteNFTPartial", - "inputs": [ - { - "name": "operationId", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "destination", - "type": "uint32", - "indexed": true, - "internalType": "uint32" - }, - { - "name": "messageId", - "type": "bytes32", - "indexed": false, - "internalType": "bytes32" - }, - { - "name": "recipients", - "type": "bytes32[]", - "indexed": false, - "internalType": "bytes32[]" - }, - { - "name": "amounts", - "type": "uint256[]", - "indexed": false, - "internalType": "uint256[]" - }, - { - "name": "gasLimit", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Upgraded", - "inputs": [ - { - "name": "implementation", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "AddressEmptyCode", - "inputs": [ - { - "name": "target", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC1967InvalidImplementation", - "inputs": [ - { - "name": "implementation", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ERC1967NonPayable", - "inputs": [] - }, - { - "type": "error", - "name": "FailedCall", - "inputs": [] - }, - { - "type": "error", - "name": "GasRouter__GasLimitNotSet", - "inputs": [ - { - "name": "domain", - "type": "uint32", - "internalType": "uint32" - }, - { - "name": "action", - "type": "uint96", - "internalType": "uint96" - } - ] - }, - { - "type": "error", - "name": "InvalidInitialization", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidMessageType", - "inputs": [] - }, - { - "type": "error", - "name": "NotInitializing", - "inputs": [] - }, - { - "type": "error", - "name": "OwnableInvalidOwner", - "inputs": [ - { - "name": "owner", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "OwnableUnauthorizedAccount", - "inputs": [ - { - "name": "account", - "type": "address", - "internalType": "address" - } - ] - }, - { - "type": "error", - "name": "ReentrancyGuardReentrantCall", - "inputs": [] - }, - { - "type": "error", - "name": "TotalAmountMustBeOne", - "inputs": [] - }, - { - "type": "error", - "name": "TotalAmountMustBeOne", - "inputs": [] - }, - { - "type": "error", - "name": "UUPSUnauthorizedCallContext", - "inputs": [] - }, - { - "type": "error", - "name": "UUPSUnsupportedProxiableUUID", - "inputs": [ - { - "name": "slot", - "type": "bytes32", - "internalType": "bytes32" - } - ] - } -] as const; + { + "type": "constructor", + "inputs": [ + { + "name": "token_", + "type": "address", + "internalType": "address" + }, + { + "name": "_multicall", + "type": "address", + "internalType": "address" + }, + { + "name": "_mailbox", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "MULTICALL", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IMulticall3" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "PACKAGE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "TOKEN", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "TRANSFER_ERC20", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "TRANSFER_ERC721", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "UPGRADE_INTERFACE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "acceptOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "domains", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32[]", + "internalType": "uint32[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "emergencyRescueNFT", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "enrollRemoteRouter", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_router", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "enrollRemoteRouters", + "inputs": [ + { + "name": "_domains", + "type": "uint32[]", + "internalType": "uint32[]" + }, + { + "name": "_addresses", + "type": "bytes32[]", + "internalType": "bytes32[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getOperationNonce", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "handle", + "inputs": [ + { + "name": "_origin", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_sender", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "_message", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "hook", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IPostDispatchHook" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "initialOwner", + "type": "address", + "internalType": "address" + }, + { + "name": "_hook", + "type": "address", + "internalType": "address" + }, + { + "name": "_ism", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "interchainSecurityModule", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IInterchainSecurityModule" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "localDomain", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint32", + "internalType": "uint32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mailbox", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IMailbox" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "nextOperationId", + "inputs": [ + { + "name": "sender", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "onERC721Received", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "pendingOwner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "proxiableUUID", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteGasPayment", + "inputs": [ + { + "name": "_destinationDomain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "_action", + "type": "uint96", + "internalType": "uint96" + } + ], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteTransferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "quotes", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "quoteTransferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [ + { + "name": "quotes", + "type": "tuple[]", + "internalType": "struct Quote[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "routers", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setDestinationGas", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "internalType": "uint128" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setDestinationGas", + "inputs": [ + { + "name": "gasConfigs", + "type": "tuple[]", + "internalType": "struct GasRouter.GasRouterConfig[]", + "components": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "internalType": "uint128" + } + ] + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setHook", + "inputs": [ + { + "name": "_hook", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setInterchainSecurityModule", + "inputs": [ + { + "name": "_module", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferRemoteNFT", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "transferRemoteNFTPartial", + "inputs": [ + { + "name": "destination", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "unenrollRemoteRouter", + "inputs": [ + { + "name": "_domain", + "type": "uint32", + "internalType": "uint32" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unenrollRemoteRouters", + "inputs": [ + { + "name": "_domains", + "type": "uint32[]", + "internalType": "uint32[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "upgradeToAndCall", + "inputs": [ + { + "name": "newImplementation", + "type": "address", + "internalType": "address" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "event", + "name": "EmergencyNFTRescued", + "inputs": [ + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "GasSet", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "indexed": false, + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "indexed": false, + "internalType": "uint96" + }, + { + "name": "gas", + "type": "uint128", + "indexed": false, + "internalType": "uint128" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "HookSet", + "inputs": [ + { + "name": "_hook", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "IsmSet", + "inputs": [ + { + "name": "_ism", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferStarted", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReceivedNFT", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "recipient", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ReceivedNFTPartial", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "recipients", + "type": "bytes32[]", + "indexed": false, + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TransferRemoteNFT", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "destination", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + }, + { + "name": "recipient", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "messageId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "tokenIds", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "gasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "TransferRemoteNFTPartial", + "inputs": [ + { + "name": "operationId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "destination", + "type": "uint32", + "indexed": true, + "internalType": "uint32" + }, + { + "name": "messageId", + "type": "bytes32", + "indexed": false, + "internalType": "bytes32" + }, + { + "name": "recipients", + "type": "bytes32[]", + "indexed": false, + "internalType": "bytes32[]" + }, + { + "name": "amounts", + "type": "uint256[]", + "indexed": false, + "internalType": "uint256[]" + }, + { + "name": "gasLimit", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Upgraded", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967InvalidImplementation", + "inputs": [ + { + "name": "implementation", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967NonPayable", + "inputs": [] + }, + { + "type": "error", + "name": "FailedCall", + "inputs": [] + }, + { + "type": "error", + "name": "GasRouter__GasLimitNotSet", + "inputs": [ + { + "name": "domain", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "action", + "type": "uint96", + "internalType": "uint96" + } + ] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidMessageType", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ReentrancyGuardReentrantCall", + "inputs": [] + }, + { + "type": "error", + "name": "TotalAmountMustBeOne", + "inputs": [] + }, + { + "type": "error", + "name": "TotalAmountMustBeOne", + "inputs": [] + }, + { + "type": "error", + "name": "UUPSUnauthorizedCallContext", + "inputs": [] + }, + { + "type": "error", + "name": "UUPSUnsupportedProxiableUUID", + "inputs": [ + { + "name": "slot", + "type": "bytes32", + "internalType": "bytes32" + } + ] + } + ] as const; export default abi; diff --git a/packages/abis/src/xMorseStaking.ts b/packages/abis/src/xMorseStaking.ts new file mode 100644 index 0000000..9a5594f --- /dev/null +++ b/packages/abis/src/xMorseStaking.ts @@ -0,0 +1,1033 @@ +const abi = [ + { + "type": "constructor", + "inputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "DEFAULT_LOCKUP_PERIOD", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "PRECISION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "UPGRADE_INTERFACE_VERSION", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "accRewardPerNFT", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "acceptOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "claimAllRewards", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "claimRewards", + "inputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "distributeRewards", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getNFTInfo", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "info", + "type": "tuple", + "internalType": "struct IxMorseStaking.NFTInfo", + "components": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + }, + { + "name": "stakedAt", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "lockupEndTime", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "unclaimedRewards", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "rewardDebt", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getPendingRewards", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [ + { + "name": "pending", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getStakedNFTs", + "inputs": [ + { + "name": "user", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getTotalStakedNFTs", + "inputs": [], + "outputs": [ + { + "name": "total", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "initialize", + "inputs": [ + { + "name": "_xMorseToken", + "type": "address", + "internalType": "address" + }, + { + "name": "_mirrorNFT", + "type": "address", + "internalType": "address" + }, + { + "name": "_rewardToken", + "type": "address", + "internalType": "address" + }, + { + "name": "_owner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "lockupPeriod", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "mirrorNFT", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "onERC721Received", + "inputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "address", + "internalType": "address" + }, + { + "name": "", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [ + { + "name": "", + "type": "bytes4", + "internalType": "bytes4" + } + ], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "operator", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "pause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "paused", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bool", + "internalType": "bool" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "pendingOwner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "proxiableUUID", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "rewardToken", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setLockupPeriod", + "inputs": [ + { + "name": "_lockupPeriod", + "type": "uint256", + "internalType": "uint256" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setOperator", + "inputs": [ + { + "name": "_operator", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setRewardToken", + "inputs": [ + { + "name": "_rewardToken", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setValidatorAddress", + "inputs": [ + { + "name": "_validatorAddress", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setValidatorRewardDistributor", + "inputs": [ + { + "name": "_validatorRewardDistributor", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "stake", + "inputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "newOwner", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unpause", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unstake", + "inputs": [ + { + "name": "tokenIds", + "type": "uint256[]", + "internalType": "uint256[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "upgradeToAndCall", + "inputs": [ + { + "name": "newImplementation", + "type": "address", + "internalType": "address" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + } + ], + "outputs": [], + "stateMutability": "payable" + }, + { + "type": "function", + "name": "validatorAddress", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "validatorRewardDistributor", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "xMorseToken", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "LockupPeriodUpdated", + "inputs": [ + { + "name": "oldPeriod", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "newPeriod", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NFTStaked", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "lockupEndTime", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "NFTUnstaked", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OperatorUpdated", + "inputs": [ + { + "name": "oldOperator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOperator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferStarted", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Paused", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardTokenUpdated", + "inputs": [ + { + "name": "oldToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newToken", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardsClaimed", + "inputs": [ + { + "name": "user", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "tokenId", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RewardsDistributed", + "inputs": [ + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "newAccRewardPerNFT", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Unpaused", + "inputs": [ + { + "name": "account", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Upgraded", + "inputs": [ + { + "name": "implementation", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorAddressUpdated", + "inputs": [ + { + "name": "oldValidator", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newValidator", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorRewardDistributorUpdated", + "inputs": [ + { + "name": "oldDistributor", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newDistributor", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ValidatorRewardsClaimed", + "inputs": [ + { + "name": "validatorAddress", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [ + { + "name": "target", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967InvalidImplementation", + "inputs": [ + { + "name": "implementation", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ERC1967NonPayable", + "inputs": [] + }, + { + "type": "error", + "name": "EmptyArray", + "inputs": [] + }, + { + "type": "error", + "name": "EnforcedPause", + "inputs": [] + }, + { + "type": "error", + "name": "ExpectedPause", + "inputs": [] + }, + { + "type": "error", + "name": "FailedCall", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidInitialization", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidNFTContract", + "inputs": [] + }, + { + "type": "error", + "name": "LockupPeriodNotEnded", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "LockupPeriodTooShort", + "inputs": [] + }, + { + "type": "error", + "name": "NFTAlreadyStaked", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "NFTNotStaked", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "NoRewardsAvailable", + "inputs": [] + }, + { + "type": "error", + "name": "NoStakersInPool", + "inputs": [] + }, + { + "type": "error", + "name": "NotAuthorized", + "inputs": [] + }, + { + "type": "error", + "name": "NotInitializing", + "inputs": [] + }, + { + "type": "error", + "name": "NotNFTOwner", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "OwnableInvalidOwner", + "inputs": [ + { + "name": "owner", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "OwnableUnauthorizedAccount", + "inputs": [ + { + "name": "account", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ReentrancyGuardReentrantCall", + "inputs": [] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "UUPSUnauthorizedCallContext", + "inputs": [] + }, + { + "type": "error", + "name": "UUPSUnsupportedProxiableUUID", + "inputs": [ + { + "name": "slot", + "type": "bytes32", + "internalType": "bytes32" + } + ] + }, + { + "type": "error", + "name": "UnclaimedRewardsExist", + "inputs": [ + { + "name": "tokenId", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "ZeroAddress", + "inputs": [] + }, + { + "type": "error", + "name": "ZeroAmount", + "inputs": [] + } + ] as const; + +export default abi; diff --git a/packages/abis/tsconfig.json b/packages/abis/tsconfig.json index fffdde2..38d3603 100644 --- a/packages/abis/tsconfig.json +++ b/packages/abis/tsconfig.json @@ -1,9 +1,17 @@ { "compilerOptions": { + "target": "ES2020", + "module": "ESNext", + "moduleResolution": "node", + "esModuleInterop": true, + "strict": true, + "skipLibCheck": true, "composite": true, - "incremental": true + "incremental": true, + "declaration": true, + "declarationMap": true, + "outDir": "./dist" }, "exclude": ["node_modules", "dist"], - "extends": "../../tsconfig.json", "include": ["src/**/*"] }