UNPKG

@soma-finance/core-contracts

Version:

SOMA Finance core contracts

637 lines (636 loc) 14.1 kB
{ "_format": "hh-sol-artifact-1", "contractName": "ILockdrop", "sourceName": "contracts/soma/Lockdrop/ILockdrop.sol", "abi": [ { "anonymous": false, "inputs": [ { "components": [ { "internalType": "uint48", "name": "startDate", "type": "uint48" }, { "internalType": "uint48", "name": "removeDelegationEnd", "type": "uint48" }, { "internalType": "uint48", "name": "endDate", "type": "uint48" } ], "indexed": false, "internalType": "struct ILockdrop.DateConfig", "name": "prevDateConfig", "type": "tuple" }, { "components": [ { "internalType": "uint48", "name": "startDate", "type": "uint48" }, { "internalType": "uint48", "name": "removeDelegationEnd", "type": "uint48" }, { "internalType": "uint48", "name": "endDate", "type": "uint48" } ], "indexed": false, "internalType": "struct ILockdrop.DateConfig", "name": "newDateConfig", "type": "tuple" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "DatesUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "lockDuration", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "DelegationAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "fromPoolId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "toPoolId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "DelegationMoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "DelegationRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "prevLockDuration", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "newLockDuration", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "LockDurationUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "indexed": false, "internalType": "bytes32", "name": "requiredPrivileges", "type": "bytes32" }, { "indexed": false, "internalType": "bool", "name": "enabled", "type": "bool" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "PoolUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "prevTo", "type": "address" }, { "indexed": false, "internalType": "address", "name": "newTo", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" } ], "name": "WithdrawToUpdated", "type": "event" }, { "inputs": [], "name": "GLOBAL_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "LOCAL_ADMIN_ROLE", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "asset", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "dateConfig", "outputs": [ { "components": [ { "internalType": "uint48", "name": "startDate", "type": "uint48" }, { "internalType": "uint48", "name": "removeDelegationEnd", "type": "uint48" }, { "internalType": "uint48", "name": "endDate", "type": "uint48" } ], "internalType": "struct ILockdrop.DateConfig", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "lockDuration_", "type": "uint256" } ], "name": "delegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" } ], "name": "enabled", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "id", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_id", "type": "uint256" }, { "internalType": "address", "name": "_asset", "type": "address" }, { "internalType": "address", "name": "_withdrawTo", "type": "address" }, { "components": [ { "internalType": "uint48", "name": "startDate", "type": "uint48" }, { "internalType": "uint48", "name": "removeDelegationEnd", "type": "uint48" }, { "internalType": "uint48", "name": "endDate", "type": "uint48" } ], "internalType": "struct ILockdrop.DateConfig", "name": "_initDateConfig", "type": "tuple" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "lockDuration", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "fromPoolId", "type": "bytes32" }, { "internalType": "bytes32", "name": "toPoolId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "toPoolLockDuration", "type": "uint256" } ], "name": "moveDelegation", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "removeDelegation", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" } ], "name": "requiredPrivileges", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "setWithdrawTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint48", "name": "startDate", "type": "uint48" }, { "internalType": "uint48", "name": "removeDelegationEnd", "type": "uint48" }, { "internalType": "uint48", "name": "endDate", "type": "uint48" } ], "internalType": "struct ILockdrop.DateConfig", "name": "newConfig", "type": "tuple" } ], "name": "updateDateConfig", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "uint256", "name": "newLockDuration", "type": "uint256" } ], "name": "updateLockDuration", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_poolId", "type": "bytes32" }, { "internalType": "bytes32", "name": "_requiredPrivileges", "type": "bytes32" }, { "internalType": "bool", "name": "_enabled", "type": "bool" } ], "name": "updatePool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "withdrawTo", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }