@augumented-finance/protocol-v1
Version:
Augmented Protocol smart contracts
265 lines • 6.31 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IManagedStakeTokenFactory = void 0;
const ethers_1 = require("ethers");
class IManagedStakeTokenFactory {
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IManagedStakeTokenFactory = IManagedStakeTokenFactory;
const _abi = [
{
inputs: [],
name: "UNDERLYING_ASSET_ADDRESS",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "cooldown",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "exchangeRate",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "getCooldown",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "getMaxSlashablePercentage",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isPaused",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isRedeemable",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "maxStakeAmount",
type: "uint256",
},
],
name: "redeem",
outputs: [
{
internalType: "uint256",
name: "stakeAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "maxUnderlyingAmount",
type: "uint256",
},
],
name: "redeemUnderlying",
outputs: [
{
internalType: "uint256",
name: "underlyingAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint32",
name: "cooldownBlocks",
type: "uint32",
},
{
internalType: "uint32",
name: "unstakeBlocks",
type: "uint32",
},
],
name: "setCooldown",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "percentage",
type: "uint256",
},
],
name: "setMaxSlashablePercentage",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "paused",
type: "bool",
},
],
name: "setPaused",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "redeemable",
type: "bool",
},
],
name: "setRedeemable",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "destination",
type: "address",
},
{
internalType: "uint256",
name: "minAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "maxAmount",
type: "uint256",
},
],
name: "slashUnderlying",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "underlyingAmount",
type: "uint256",
},
],
name: "stake",
outputs: [
{
internalType: "uint256",
name: "stakeAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
];
//# sourceMappingURL=IManagedStakeTokenFactory.js.map