UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

260 lines 8.12 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.MockBalanceProviderFactory = void 0; const contracts_1 = require("@ethersproject/contracts"); class MockBalanceProviderFactory extends contracts_1.ContractFactory { constructor(signer) { super(_abi, _bytecode, signer); } deploy(aic, overrides) { return super.deploy(aic, overrides || {}); } getDeployTransaction(aic, overrides) { return super.getDeployTransaction(aic, overrides || {}); } attach(address) { return super.attach(address); } connect(signer) { return super.connect(signer); } static connect(address, signerOrProvider) { return new contracts_1.Contract(address, _abi, signerOrProvider); } } exports.MockBalanceProviderFactory = MockBalanceProviderFactory; const _abi = [ { inputs: [ { internalType: "contract IBalanceHook", name: "aic", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "asset", type: "address", }, { indexed: false, internalType: "uint256", name: "emission", type: "uint256", }, ], name: "AssetConfigUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "asset", type: "address", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, ], name: "AssetIndexUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "user", type: "address", }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256", }, ], name: "RewardsAccrued", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "user", type: "address", }, { indexed: true, internalType: "address", name: "asset", type: "address", }, { indexed: false, internalType: "uint256", name: "index", type: "uint256", }, ], name: "UserIndexUpdated", type: "event", }, { inputs: [], name: "_aic", outputs: [ { internalType: "contract IBalanceHook", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "cleanUserState", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "getScaleIndex", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, ], name: "getScaledUserBalanceAndSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, { internalType: "uint256", name: "oldBalance", type: "uint256", }, { internalType: "uint256", name: "newBalance", type: "uint256", }, { internalType: "uint256", name: "totalSupply", type: "uint256", }, ], name: "handleActionOnAic", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "user", type: "address", }, ], name: "scaledBalanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "scaledTotalSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "userBalance", type: "uint256", }, { internalType: "uint256", name: "totalSupply", type: "uint256", }, ], name: "setUserBalanceAndSupply", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; const _bytecode = "0x608060405234801561001057600080fd5b5060405161034238038061034283398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610082565b600060208284031215610065578081fd5b81516001600160a01b038116811461007b578182fd5b9392505050565b6102b1806100916000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063b1bf962d1161005b578063b1bf962d1461010a578063b39944ba14610112578063b41c6f9814610121578063f794ca511461014c57600080fd5b80630afbcdc91461008d5780631da24f3e146100c05780639cfa7768146100e3578063a7d15629146100f5575b600080fd5b6100a661009b366004610201565b506001546002549091565b604080519283526020830191909152015b60405180910390f35b6100d56100ce366004610201565b5060015490565b6040519081526020016100b7565b6b033b2e3c9fd0803ce80000006100d5565b610108610103366004610222565b610165565b005b6002546100d5565b61010860006001819055600255565b600054610134906001600160a01b031681565b6040516001600160a01b0390911681526020016100b7565b61010861015a36600461025a565b600191909155600255565b600054604051632568149560e21b81523060048201526001600160a01b038681166024830152604482018690526064820185905260848201849052909116906395a052549060a401600060405180830381600087803b1580156101c757600080fd5b505af11580156101db573d6000803e3d6000fd5b5050505050505050565b80356001600160a01b03811681146101fc57600080fd5b919050565b600060208284031215610212578081fd5b61021b826101e5565b9392505050565b60008060008060808587031215610237578283fd5b610240856101e5565b966020860135965060408601359560600135945092505050565b6000806040838503121561026c578182fd5b5050803592602090910135915056fea264697066735822122024a5d1951575fef8ae580ef5ec6736a55a0e619f8efd1efcd72b9d4d5fce07bc64736f6c63430008040033"; //# sourceMappingURL=MockBalanceProviderFactory.js.map