UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

312 lines 9.54 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.IStakeConfiguratorFactory = void 0; const ethers_1 = require("ethers"); class IStakeConfiguratorFactory { static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.IStakeConfiguratorFactory = IStakeConfiguratorFactory; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "token", type: "address", }, { indexed: true, internalType: "address", name: "underlying", type: "address", }, ], name: "StakeTokenAdded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "token", type: "address", }, { components: [ { internalType: "address", name: "stakeTokenImpl", type: "address", }, { internalType: "address", name: "stakedToken", type: "address", }, { internalType: "address", name: "strategy", type: "address", }, { internalType: "string", name: "stkTokenName", type: "string", }, { internalType: "string", name: "stkTokenSymbol", type: "string", }, { internalType: "uint32", name: "cooldownPeriod", type: "uint32", }, { internalType: "uint32", name: "unstakePeriod", type: "uint32", }, { internalType: "uint16", name: "maxSlashable", type: "uint16", }, { internalType: "uint8", name: "stkTokenDecimals", type: "uint8", }, { internalType: "bool", name: "depositStake", type: "bool", }, ], indexed: false, internalType: "struct IStakeConfigurator.InitStakeTokenData", name: "data", type: "tuple", }, ], name: "StakeTokenInitialized", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "token", type: "address", }, { indexed: true, internalType: "address", name: "underlying", type: "address", }, ], name: "StakeTokenRemoved", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "token", type: "address", }, { components: [ { internalType: "address", name: "token", type: "address", }, { internalType: "address", name: "stakeTokenImpl", type: "address", }, { internalType: "string", name: "stkTokenName", type: "string", }, { internalType: "string", name: "stkTokenSymbol", type: "string", }, ], indexed: false, internalType: "struct IStakeConfigurator.UpdateStakeTokenData", name: "data", type: "tuple", }, ], name: "StakeTokenUpgraded", type: "event", }, { inputs: [ { internalType: "address", name: "stakeToken", type: "address", }, ], name: "dataOf", outputs: [ { components: [ { internalType: "address", name: "token", type: "address", }, { internalType: "string", name: "stkTokenName", type: "string", }, { internalType: "string", name: "stkTokenSymbol", type: "string", }, { components: [ { internalType: "contract IMarketAccessController", name: "stakeController", type: "address", }, { internalType: "contract IERC20", name: "stakedToken", type: "address", }, { internalType: "contract IUnderlyingStrategy", name: "strategy", type: "address", }, { internalType: "uint32", name: "cooldownPeriod", type: "uint32", }, { internalType: "uint32", name: "unstakePeriod", type: "uint32", }, { internalType: "uint16", name: "maxSlashable", type: "uint16", }, { internalType: "uint8", name: "stakedTokenDecimals", type: "uint8", }, ], internalType: "struct StakeTokenConfig", name: "config", type: "tuple", }, ], internalType: "struct IStakeConfigurator.StakeTokenData", name: "data", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "list", outputs: [ { internalType: "address[]", name: "tokens", type: "address[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "listAll", outputs: [ { internalType: "address[]", name: "tokens", type: "address[]", }, { internalType: "uint256", name: "genCount", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint32", name: "cooldownPeriod", type: "uint32", }, { internalType: "uint32", name: "unstakePeriod", type: "uint32", }, ], name: "setCooldownForAll", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "underlying", type: "address", }, ], name: "stakeTokenOf", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, ]; //# sourceMappingURL=IStakeConfiguratorFactory.js.map