UNPKG

@flarenetwork/flare-periphery-contract-artifacts

Version:

Smart contract artifacts for all Flare chains

931 lines (930 loc) 18.3 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256[]", "name": "projectIds", "type": "uint256[]" }, { "indexed": false, "internalType": "bool", "name": "disabled", "type": "bool" } ], "name": "ClaimingPermissionUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256[]", "name": "projectIds", "type": "uint256[]" }, { "indexed": false, "internalType": "bool", "name": "disabled", "type": "bool" } ], "name": "DistributionPermissionUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "name", "type": "string" }, { "indexed": false, "internalType": "address", "name": "distributor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "currentMonthDistributionEnabled", "type": "bool" } ], "name": "ProjectAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "name", "type": "string" }, { "indexed": false, "internalType": "address", "name": "distributor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "currentMonthDistributionEnabled", "type": "bool" } ], "name": "ProjectUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "contract IRNatAccount", "name": "rNatAccount", "type": "address" } ], "name": "RNatAccountCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "projectId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "month", "type": "uint256" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "RewardsAssigned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "projectId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "month", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "RewardsClaimed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "projectId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "month", "type": "uint256" }, { "indexed": false, "internalType": "address[]", "name": "recipients", "type": "address[]" }, { "indexed": false, "internalType": "uint128[]", "name": "amounts", "type": "uint128[]" } ], "name": "RewardsDistributed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "projectId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "month", "type": "uint256" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "RewardsUnassigned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "UnassignedRewardsWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "projectId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "month", "type": "uint256" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "UnclaimedRewardsUnassigned", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "_projectIds", "type": "uint256[]" }, { "internalType": "uint256", "name": "_month", "type": "uint256" } ], "name": "claimRewards", "outputs": [ { "internalType": "uint128", "name": "_claimedRewardsWei", "type": "uint128" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_projectId", "type": "uint256" }, { "internalType": "uint256", "name": "_month", "type": "uint256" }, { "internalType": "address[]", "name": "_recipients", "type": "address[]" }, { "internalType": "uint128[]", "name": "_amountsWei", "type": "uint128[]" } ], "name": "distributeRewards", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "firstMonthStartTs", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "getBalancesOf", "outputs": [ { "internalType": "uint256", "name": "_wNatBalance", "type": "uint256" }, { "internalType": "uint256", "name": "_rNatBalance", "type": "uint256" }, { "internalType": "uint256", "name": "_lockedBalance", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_projectId", "type": "uint256" }, { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "getClaimableRewards", "outputs": [ { "internalType": "uint128", "name": "", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getCurrentMonth", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_projectId", "type": "uint256" }, { "internalType": "uint256", "name": "_month", "type": "uint256" }, { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "getOwnerRewardsInfo", "outputs": [ { "internalType": "uint128", "name": "_assignedRewards", "type": "uint128" }, { "internalType": "uint128", "name": "_claimedRewards", "type": "uint128" }, { "internalType": "bool", "name": "_claimable", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_projectId", "type": "uint256" } ], "name": "getProjectInfo", "outputs": [ { "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "address", "name": "_distributor", "type": "address" }, { "internalType": "bool", "name": "_currentMonthDistributionEnabled", "type": "bool" }, { "internalType": "bool", "name": "_distributionDisabled", "type": "bool" }, { "internalType": "bool", "name": "_claimingDisabled", "type": "bool" }, { "internalType": "uint128", "name": "_totalAssignedRewards", "type": "uint128" }, { "internalType": "uint128", "name": "_totalDistributedRewards", "type": "uint128" }, { "internalType": "uint128", "name": "_totalClaimedRewards", "type": "uint128" }, { "internalType": "uint128", "name": "_totalUnassignedUnclaimedRewards", "type": "uint128" }, { "internalType": "uint256[]", "name": "_monthsWithRewards", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_projectId", "type": "uint256" }, { "internalType": "uint256", "name": "_month", "type": "uint256" } ], "name": "getProjectRewardsInfo", "outputs": [ { "internalType": "uint128", "name": "_assignedRewards", "type": "uint128" }, { "internalType": "uint128", "name": "_distributedRewards", "type": "uint128" }, { "internalType": "uint128", "name": "_claimedRewards", "type": "uint128" }, { "internalType": "uint128", "name": "_unassignedUnclaimedRewards", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getProjectsBasicInfo", "outputs": [ { "internalType": "string[]", "name": "_names", "type": "string[]" }, { "internalType": "bool[]", "name": "_claimingDisabled", "type": "bool[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getProjectsCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "getRNatAccount", "outputs": [ { "internalType": "contract IRNatAccount", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getRewardsInfo", "outputs": [ { "internalType": "uint256", "name": "_totalAssignableRewards", "type": "uint256" }, { "internalType": "uint256", "name": "_totalAssignedRewards", "type": "uint256" }, { "internalType": "uint256", "name": "_totalClaimedRewards", "type": "uint256" }, { "internalType": "uint256", "name": "_totalWithdrawnRewards", "type": "uint256" }, { "internalType": "uint256", "name": "_totalWithdrawnAssignableRewards", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_executors", "type": "address[]" } ], "name": "setClaimExecutors", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IERC20", "name": "_token", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "transferExternalToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "wNat", "outputs": [ { "internalType": "contract IWNat", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint128", "name": "_amount", "type": "uint128" }, { "internalType": "bool", "name": "_wrap", "type": "bool" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_wrap", "type": "bool" } ], "name": "withdrawAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]