UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

210 lines 5.38 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SystemBalanceMock__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { inputs: [], name: "getBalance", outputs: [ { internalType: "int256", name: "", type: "int256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getBalanceDetails", outputs: [ { components: [ { internalType: "bool", name: "isDebtAuctionPossible", type: "bool", }, { internalType: "bool", name: "isSurplusAuctionPossible", type: "bool", }, { internalType: "uint256", name: "currentDebt", type: "uint256", }, { internalType: "uint256", name: "debtThreshold", type: "uint256", }, { internalType: "uint256", name: "currentSurplus", type: "uint256", }, { internalType: "uint256", name: "surplusThreshold", type: "uint256", }, ], internalType: "struct SystemBalance.SystemBalanceDetails", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getDebt", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getSurplus", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_debtAmount", type: "uint256", }, ], name: "increaseDebt", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_registry", type: "address", }, { internalType: "string", name: "_stc", type: "string", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "performNetting", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "transferAccruedInterestAmount", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_lot", type: "uint256", }, ], name: "transferSurplusAuctionAmount", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_debt", type: "uint256", }, ], name: "setDebt", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class SystemBalanceMock__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.SystemBalanceMock__factory = SystemBalanceMock__factory; SystemBalanceMock__factory.abi = _abi; //# sourceMappingURL=SystemBalanceMock__factory.js.map