UNPKG

@soma-finance/core-contracts

Version:

SOMA Finance core contracts

649 lines 16.9 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ILockdrop__factory = void 0; const ethers_1 = require("ethers"); const _erc165InterfaceId = "0xfaf07517"; const _erc1820InterfaceId = "0x3bc2b5951fe621e4f02a749bdd9a73507330a9bacbe5c1988c1fb59c0015061e"; const _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", }, ]; class ILockdrop__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.ILockdrop__factory = ILockdrop__factory; ILockdrop__factory.erc165InterfaceId = _erc165InterfaceId; ILockdrop__factory.erc1820InterfaceId = _erc1820InterfaceId; ILockdrop__factory.abi = _abi; //# sourceMappingURL=ILockdrop__factory.js.map