UNPKG

@vechain/vebetterdao-contracts

Version:

Vebetter DAO smart contracts, including their addresses, ABIs, and interfaces.

619 lines (618 loc) 13.5 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IX2EarnRewardsPool", "sourceName": "contracts/interfaces/IX2EarnRewardsPool.sol", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "admin", "type": "address" } ], "name": "AppPaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "admin", "type": "address" } ], "name": "AppUnpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "depositor", "type": "address" } ], "name": "NewDeposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "reason", "type": "string" }, { "indexed": false, "internalType": "bytes", "name": "lowLevelData", "type": "bytes" } ], "name": "RegisterActionFailed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "string", "name": "proof", "type": "string" }, { "indexed": true, "internalType": "address", "name": "distributor", "type": "address" } ], "name": "RewardDistributed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "string", "name": "metadata", "type": "string" }, { "indexed": true, "internalType": "address", "name": "distributor", "type": "address" } ], "name": "RewardMetadata", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": false, "internalType": "bool", "name": "enable", "type": "bool" } ], "name": "RewardsPoolBalanceEnabled", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "availableFunds", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "rewardsPoolBalance", "type": "uint256" } ], "name": "RewardsPoolBalanceUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "teamWallet", "type": "address" }, { "indexed": false, "internalType": "address", "name": "withdrawer", "type": "address" }, { "indexed": false, "internalType": "string", "name": "reason", "type": "string" } ], "name": "TeamWithdrawal", "type": "event" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "availableFunds", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string[]", "name": "proofTypes", "type": "string[]" }, { "internalType": "string[]", "name": "proofValues", "type": "string[]" }, { "internalType": "string[]", "name": "impactCodes", "type": "string[]" }, { "internalType": "uint256[]", "name": "impactValues", "type": "uint256[]" }, { "internalType": "string", "name": "description", "type": "string" } ], "name": "buildProof", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "deposit", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "string", "name": "proof", "type": "string" } ], "name": "distributeReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "string", "name": "proof", "type": "string" } ], "name": "distributeRewardDeprecated", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "string[]", "name": "proofTypes", "type": "string[]" }, { "internalType": "string[]", "name": "proofValues", "type": "string[]" }, { "internalType": "string[]", "name": "impactCodes", "type": "string[]" }, { "internalType": "uint256[]", "name": "impactValues", "type": "uint256[]" }, { "internalType": "string", "name": "description", "type": "string" } ], "name": "distributeRewardWithProof", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "string[]", "name": "proofTypes", "type": "string[]" }, { "internalType": "string[]", "name": "proofValues", "type": "string[]" }, { "internalType": "string[]", "name": "impactCodes", "type": "string[]" }, { "internalType": "uint256[]", "name": "impactValues", "type": "uint256[]" }, { "internalType": "string", "name": "description", "type": "string" }, { "internalType": "string", "name": "metadata", "type": "string" } ], "name": "distributeRewardWithProofAndMetadata", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "enableRewardsPoolForNewApp", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "isDistributionPaused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "isRewardsPoolEnabled", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "rewardsPoolBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "appId", "type": "bytes32" } ], "name": "totalBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes32", "name": "appId", "type": "bytes32" }, { "internalType": "string", "name": "reason", "type": "string" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }