diff --git a/public/deployments/contracts-mainnet.json b/public/deployments/contracts-mainnet.json index 3a0bc17..1ae20b4 100644 --- a/public/deployments/contracts-mainnet.json +++ b/public/deployments/contracts-mainnet.json @@ -436,12 +436,6 @@ { "anonymous": false, "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "owner", - "type": "address" - }, { "indexed": true, "internalType": "address", @@ -1538,21 +1532,6 @@ "name": "avaxForNodeRental", "type": "uint256" }, - { - "internalType": "uint256", - "name": "minUSDCAmountOut", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "bestRate", - "type": "bool" - }, - { - "internalType": "bool", - "name": "withdrawalRightWaiver", - "type": "bool" - }, { "internalType": "address", "name": "hardwareProviderContract", @@ -1574,81 +1553,6 @@ "stateMutability": "payable", "type": "function" }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "nodeID", - "type": "address" - }, - { - "internalType": "bytes", - "name": "blsPubkeyAndSig", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "duration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "avaxForMinipool", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "avaxForGGP", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minGGPAmountOut", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "avaxForNodeRental", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "minUSDCAmountOut", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "bestRate", - "type": "bool" - }, - { - "internalType": "bool", - "name": "withdrawalRightWaiver", - "type": "bool" - }, - { - "internalType": "address", - "name": "hardwareProviderContract", - "type": "address" - }, - { - "internalType": "bytes", - "name": "hardwareProviderInformation", - "type": "bytes" - } - ], - "internalType": "struct MinipoolStreamliner.StreamlinedMinipool", - "name": "newMinipool", - "type": "tuple" - } - ], - "name": "createOrRelaunchStreamlinedMinipoolWithBLSKeys", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, { "inputs": [ { @@ -2158,11 +2062,21 @@ "internalType": "address", "name": "ooNodz", "type": "address" + }, + { + "internalType": "address", + "name": "minipoolStreamliner", + "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, + { + "inputs": [], + "name": "InvalidSender", + "type": "error" + }, { "inputs": [], "name": "SwapFailed", @@ -2289,21 +2203,6 @@ "name": "avaxForNodeRental", "type": "uint256" }, - { - "internalType": "uint256", - "name": "minUSDCAmountOut", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "bestRate", - "type": "bool" - }, - { - "internalType": "bool", - "name": "withdrawalRightWaiver", - "type": "bool" - }, { "internalType": "address", "name": "hardwareProviderContract", @@ -5524,22 +5423,151 @@ } ] }, - "GGAVAXRateProvider": { + "AggregatorV2V3Interface": { "abi": [ { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "int256", + "name": "current", + "type": "int256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "roundId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "name": "AnswerUpdated", + "type": "event" + }, + { + "anonymous": false, "inputs": [ { + "indexed": true, + "internalType": "uint256", + "name": "roundId", + "type": "uint256" + }, + { + "indexed": true, "internalType": "address", - "name": "addr", + "name": "startedBy", "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "startedAt", + "type": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "name": "NewRound", + "type": "event" }, { "inputs": [], - "name": "getRate", + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "description", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "roundId", + "type": "uint256" + } + ], + "name": "getAnswer", + "outputs": [ + { + "internalType": "int256", + "name": "", + "type": "int256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint80", + "name": "_roundId", + "type": "uint80" + } + ], + "name": "getRoundData", + "outputs": [ + { + "internalType": "uint80", + "name": "roundId", + "type": "uint80" + }, + { + "internalType": "int256", + "name": "answer", + "type": "int256" + }, + { + "internalType": "uint256", + "name": "startedAt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "updatedAt", + "type": "uint256" + }, + { + "internalType": "uint80", + "name": "answeredInRound", + "type": "uint80" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "roundId", + "type": "uint256" + } + ], + "name": "getTimestamp", "outputs": [ { "internalType": "uint256", @@ -5552,24 +5580,79 @@ }, { "inputs": [], - "name": "ggAVAX", + "name": "latestAnswer", "outputs": [ { - "internalType": "contract IggAVAX", + "internalType": "int256", "name": "", - "type": "address" + "type": "int256" } ], "stateMutability": "view", "type": "function" - } - ] - }, - "IRateProvider": { - "abi": [ + }, { "inputs": [], - "name": "getRate", + "name": "latestRound", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "latestRoundData", + "outputs": [ + { + "internalType": "uint80", + "name": "roundId", + "type": "uint80" + }, + { + "internalType": "int256", + "name": "answer", + "type": "int256" + }, + { + "internalType": "uint256", + "name": "startedAt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "updatedAt", + "type": "uint256" + }, + { + "internalType": "uint80", + "name": "answeredInRound", + "type": "uint80" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "latestTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "version", "outputs": [ { "internalType": "uint256", @@ -5605,6 +5688,120 @@ } ] }, + "StakedAvaxPriceFeed": { + "abi": [ + { + "inputs": [], + "name": "avaxPriceFeed", + "outputs": [ + { + "internalType": "contract AggregatorV2V3Interface", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "latestAnswer", + "outputs": [ + { + "internalType": "int256", + "name": "", + "type": "int256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "sAVAX", + "outputs": [ + { + "internalType": "contract IggAVAX", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } + ] + }, + "GGAVAXRateProvider": { + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "getRate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "ggAVAX", + "outputs": [ + { + "internalType": "contract IggAVAX", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } + ] + }, + "IRateProvider": { + "abi": [ + { + "inputs": [], + "name": "getRate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + } + ] + }, "TokenGGP": { "abi": [ { diff --git a/public/deployments/mainnet.js b/public/deployments/mainnet.js index 7b28e62..90e141e 100644 --- a/public/deployments/mainnet.js +++ b/public/deployments/mainnet.js @@ -24,6 +24,9 @@ const deployment = { async function deploymentFn() { deployment.contracts = await fetch("/deployments/contracts-mainnet.json").then((res) => res.json()); deployment.dashboard = await fetch("/deployments/dashboard.json").then((res) => res.json()); + // Hack in Pandasia ABIs + const pandasiaAbi = await fetch("/deployments/pandasia-abi.json").then((res) => res.json()); + deployment.contracts.Pandasia = pandasiaAbi; return deployment; } diff --git a/public/deployments/pandasia-abi.json b/public/deployments/pandasia-abi.json new file mode 100644 index 0000000..c923d3a --- /dev/null +++ b/public/deployments/pandasia-abi.json @@ -0,0 +1,682 @@ +{ + "abi": [ + { "type": "constructor", "inputs": [], "stateMutability": "nonpayable" }, + { + "type": "function", + "name": "AIRDROP_ADMIN", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "DEFAULT_ADMIN_ROLE", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "ROOT_UPDATER", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "airdropCount", + "inputs": [], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "airdropIds", + "inputs": [ + { "name": "", "type": "address", "internalType": "address" }, + { "name": "", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "airdrops", + "inputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], + "outputs": [ + { "name": "id", "type": "uint64", "internalType": "uint64" }, + { "name": "owner", "type": "address", "internalType": "address" }, + { "name": "erc20", "type": "address", "internalType": "address" }, + { "name": "balance", "type": "uint256", "internalType": "uint256" }, + { "name": "customRoot", "type": "bytes32", "internalType": "bytes32" }, + { "name": "claimAmount", "type": "uint256", "internalType": "uint256" }, + { "name": "startsAt", "type": "uint64", "internalType": "uint64" }, + { "name": "expiresAt", "type": "uint64", "internalType": "uint64" } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "blockHeight", + "inputs": [], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "c2p", + "inputs": [{ "name": "", "type": "address", "internalType": "address" }], + "outputs": [{ "name": "", "type": "address", "internalType": "address" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "cChainAddrs", + "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], + "outputs": [{ "name": "", "type": "address", "internalType": "address" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "cChainAddrsCount", + "inputs": [], + "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "canClaimAirdrop", + "inputs": [ + { "name": "cChainAddr", "type": "address", "internalType": "address" }, + { "name": "airdropId", "type": "uint64", "internalType": "uint64" }, + { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "claimAirdrop", + "inputs": [ + { "name": "airdropId", "type": "uint64", "internalType": "uint64" }, + { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "claimed", + "inputs": [ + { "name": "", "type": "uint64", "internalType": "uint64" }, + { "name": "", "type": "address", "internalType": "address" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "deleteAirdrop", + "inputs": [{ "name": "airdropId", "type": "uint64", "internalType": "uint64" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "emergencyWithdraw", + "inputs": [{ "name": "airdropId", "type": "uint64", "internalType": "uint64" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "feePct", + "inputs": [], + "outputs": [{ "name": "", "type": "uint32", "internalType": "uint32" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "fundAirdrop", + "inputs": [ + { "name": "airdropId", "type": "uint64", "internalType": "uint64" }, + { "name": "fundAmount", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getAirdrop", + "inputs": [{ "name": "airdropId", "type": "uint64", "internalType": "uint64" }], + "outputs": [ + { + "name": "", + "type": "tuple", + "internalType": "struct Pandasia.Airdrop", + "components": [ + { "name": "id", "type": "uint64", "internalType": "uint64" }, + { "name": "owner", "type": "address", "internalType": "address" }, + { "name": "erc20", "type": "address", "internalType": "address" }, + { "name": "balance", "type": "uint256", "internalType": "uint256" }, + { + "name": "customRoot", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "claimAmount", + "type": "uint256", + "internalType": "uint256" + }, + { "name": "startsAt", "type": "uint64", "internalType": "uint64" }, + { "name": "expiresAt", "type": "uint64", "internalType": "uint64" } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getAirdropIds", + "inputs": [{ "name": "owner", "type": "address", "internalType": "address" }], + "outputs": [{ "name": "", "type": "uint64[]", "internalType": "uint64[]" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getAirdrops", + "inputs": [ + { "name": "offset", "type": "uint64", "internalType": "uint64" }, + { "name": "limit", "type": "uint64", "internalType": "uint64" } + ], + "outputs": [ + { + "name": "pageOfAirdrops", + "type": "tuple[]", + "internalType": "struct Pandasia.Airdrop[]", + "components": [ + { "name": "id", "type": "uint64", "internalType": "uint64" }, + { "name": "owner", "type": "address", "internalType": "address" }, + { "name": "erc20", "type": "address", "internalType": "address" }, + { "name": "balance", "type": "uint256", "internalType": "uint256" }, + { + "name": "customRoot", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "claimAmount", + "type": "uint256", + "internalType": "uint256" + }, + { "name": "startsAt", "type": "uint64", "internalType": "uint64" }, + { "name": "expiresAt", "type": "uint64", "internalType": "uint64" } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRegisteredUsers", + "inputs": [ + { "name": "offset", "type": "uint256", "internalType": "uint256" }, + { "name": "limit", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [ + { + "name": "users", + "type": "tuple[]", + "internalType": "struct Pandasia.User[]", + "components": [ + { + "name": "cChainAddr", + "type": "address", + "internalType": "address" + }, + { + "name": "pChainAddr", + "type": "address", + "internalType": "address" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getRoleAdmin", + "inputs": [{ "name": "role", "type": "bytes32", "internalType": "bytes32" }], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "grantRole", + "inputs": [ + { "name": "role", "type": "bytes32", "internalType": "bytes32" }, + { "name": "account", "type": "address", "internalType": "address" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "hasClaimed", + "inputs": [ + { "name": "airdropId", "type": "uint64", "internalType": "uint64" }, + { "name": "addr", "type": "address", "internalType": "address" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "hasRole", + "inputs": [ + { "name": "role", "type": "bytes32", "internalType": "bytes32" }, + { "name": "account", "type": "address", "internalType": "address" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "hashChecksummedMessage", + "inputs": [{ "name": "addr", "type": "address", "internalType": "address" }], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "initialize", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "isMinipoolOperator", + "inputs": [{ "name": "addr", "type": "address", "internalType": "address" }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "isRegisteredValidator", + "inputs": [{ "name": "addr", "type": "address", "internalType": "address" }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "merkleRoot", + "inputs": [], + "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "newAirdrop", + "inputs": [ + { "name": "customRoot", "type": "bytes32", "internalType": "bytes32" }, + { "name": "erc20", "type": "address", "internalType": "address" }, + { "name": "claimAmount", "type": "uint256", "internalType": "uint256" }, + { "name": "startsAt", "type": "uint64", "internalType": "uint64" }, + { "name": "expiresAt", "type": "uint64", "internalType": "uint64" } + ], + "outputs": [{ "name": "", "type": "uint64", "internalType": "uint64" }], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "p2c", + "inputs": [{ "name": "", "type": "address", "internalType": "address" }], + "outputs": [{ "name": "", "type": "address", "internalType": "address" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "pubKeyBytesToAvaAddressBytes", + "inputs": [ + { "name": "x", "type": "uint256", "internalType": "uint256" }, + { "name": "y", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [{ "name": "", "type": "address", "internalType": "address" }], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "recoverMessage", + "inputs": [ + { "name": "v", "type": "uint8", "internalType": "uint8" }, + { "name": "r", "type": "bytes32", "internalType": "bytes32" }, + { "name": "s", "type": "bytes32", "internalType": "bytes32" } + ], + "outputs": [{ "name": "", "type": "address", "internalType": "address" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "registerPChainAddr", + "inputs": [ + { "name": "v", "type": "uint8", "internalType": "uint8" }, + { "name": "r", "type": "bytes32", "internalType": "bytes32" }, + { "name": "s", "type": "bytes32", "internalType": "bytes32" }, + { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "renounceOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "renounceRole", + "inputs": [ + { "name": "role", "type": "bytes32", "internalType": "bytes32" }, + { + "name": "callerConfirmation", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "revokeRole", + "inputs": [ + { "name": "role", "type": "bytes32", "internalType": "bytes32" }, + { "name": "account", "type": "address", "internalType": "address" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setFee", + "inputs": [{ "name": "fee", "type": "uint32", "internalType": "uint32" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setMerkleRoot", + "inputs": [ + { "name": "root", "type": "bytes32", "internalType": "bytes32" }, + { "name": "height", "type": "uint64", "internalType": "uint64" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "setStorageContract", + "inputs": [{ "name": "addr", "type": "address", "internalType": "address" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "storageContract", + "inputs": [], + "outputs": [{ "name": "", "type": "address", "internalType": "address" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "supportsInterface", + "inputs": [{ "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" }], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "view" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "unregisterPChainAddr", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "verify", + "inputs": [ + { "name": "root", "type": "bytes32", "internalType": "bytes32" }, + { "name": "account", "type": "address", "internalType": "address" }, + { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" } + ], + "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "withdrawFees", + "inputs": [{ "name": "airdropId", "type": "uint64", "internalType": "uint64" }], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "withdrawFunding", + "inputs": [ + { "name": "airdropId", "type": "uint64", "internalType": "uint64" }, + { "name": "withdrawAmt", "type": "uint256", "internalType": "uint256" } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "AirdropClaimed", + "inputs": [ + { + "name": "id", + "type": "uint64", + "indexed": true, + "internalType": "uint64" + }, + { + "name": "claimant", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "AirdropCreated", + "inputs": [ + { + "name": "id", + "type": "uint64", + "indexed": true, + "internalType": "uint64" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + } + ], + "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": "RoleAdminChanged", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "previousAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "newAdminRole", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleGranted", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "RoleRevoked", + "inputs": [ + { + "name": "role", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "account", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { "type": "error", "name": "AccessControlBadConfirmation", "inputs": [] }, + { + "type": "error", + "name": "AccessControlUnauthorizedAccount", + "inputs": [ + { "name": "account", "type": "address", "internalType": "address" }, + { "name": "neededRole", "type": "bytes32", "internalType": "bytes32" } + ] + }, + { "type": "error", "name": "AddressAlreadyClaimed", "inputs": [] }, + { + "type": "error", + "name": "AddressEmptyCode", + "inputs": [{ "name": "target", "type": "address", "internalType": "address" }] + }, + { + "type": "error", + "name": "AddressInsufficientBalance", + "inputs": [{ "name": "account", "type": "address", "internalType": "address" }] + }, + { "type": "error", "name": "AddressNotEligible", "inputs": [] }, + { "type": "error", "name": "AirdropExpired", "inputs": [] }, + { "type": "error", "name": "AirdropNotStarted", "inputs": [] }, + { "type": "error", "name": "AirdropOutOfFunds", "inputs": [] }, + { "type": "error", "name": "AirdropStillActive", "inputs": [] }, + { "type": "error", "name": "AirdropStillHasFunding", "inputs": [] }, + { "type": "error", "name": "FailedInnerCall", "inputs": [] }, + { "type": "error", "name": "InvalidAddress", "inputs": [] }, + { "type": "error", "name": "InvalidAmount", "inputs": [] }, + { "type": "error", "name": "InvalidInitialization", "inputs": [] }, + { "type": "error", "name": "InvalidWithdrawRequest", "inputs": [] }, + { "type": "error", "name": "NotInitializing", "inputs": [] }, + { "type": "error", "name": "NotOwner", "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": "PAddrAlreadyRegistered", "inputs": [] }, + { "type": "error", "name": "PAddrNotInMerkleTree", "inputs": [] }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [{ "name": "token", "type": "address", "internalType": "address" }] + }, + { "type": "error", "name": "ZeroAmount", "inputs": [] } + ] +}