UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

230 lines 5.78 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Saving__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_user", type: "address", }, { indexed: false, internalType: "uint256", name: "_depositAmount", type: "uint256", }, ], name: "UserDeposited", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_user", type: "address", }, { indexed: false, internalType: "uint256", name: "_withdrawAmount", type: "uint256", }, ], name: "UserWithdrawn", type: "event", }, { inputs: [], name: "aggregatedNormalizedCapital", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "compoundRateKeeper", outputs: [ { internalType: "contract CompoundRateKeeper", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "normalizedCapitals", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_registry", type: "address", }, { internalType: "string", name: "_stc", type: "string", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "deposit", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "withdraw", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "updateCompoundRate", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "getBalanceDetails", outputs: [ { components: [ { internalType: "uint256", name: "currentBalance", type: "uint256", }, { internalType: "uint256", name: "normalizedBalance", type: "uint256", }, { internalType: "uint256", name: "compoundRate", type: "uint256", }, { internalType: "uint256", name: "lastUpdateOfCompoundRate", type: "uint256", }, { internalType: "uint256", name: "interestRate", type: "uint256", }, ], internalType: "struct Saving.BalanceDetails", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getBalance", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, ]; class Saving__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.Saving__factory = Saving__factory; Saving__factory.abi = _abi; //# sourceMappingURL=Saving__factory.js.map