@augumented-finance/protocol-v1
Version:
Augmented Protocol smart contracts
247 lines • 7.94 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.DepositTokenMockFactory = void 0;
const contracts_1 = require("@ethersproject/contracts");
class DepositTokenMockFactory 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.DepositTokenMockFactory = DepositTokenMockFactory;
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: [
{
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 = "0x608060405234801561001057600080fd5b5060405161037e38038061037e83398101604081905261002f91610054565b600080546001600160a01b0319166001600160a01b0392909216919091179055610082565b600060208284031215610065578081fd5b81516001600160a01b038116811461007b578182fd5b9392505050565b6102ed806100916000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063b1bf962d1161005b578063b1bf962d146100e1578063b39944ba146100e9578063b41c6f98146100f1578063f794ca51146101065761007d565b80630afbcdc9146100825780631da24f3e146100ac578063a7d15629146100cc575b600080fd5b6100956100903660046101c7565b610119565b6040516100a39291906102a9565b60405180910390f35b6100bf6100ba3660046101c7565b610124565b6040516100a391906102a0565b6100df6100da3660046101f5565b61012b565b005b6100bf61019b565b6100df6101a1565b6100f96101ad565b6040516100a3919061028c565b6100df61011436600461023a565b6101bc565b600154600254915091565b5060015490565b600054604051632568149560e21b81526001600160a01b03909116906395a0525490610163903090889088908890889060040161025b565b600060405180830381600087803b15801561017d57600080fd5b505af1158015610191573d6000803e3d6000fd5b5050505050505050565b60025490565b60006001819055600255565b6000546001600160a01b031681565b600191909155600255565b6000602082840312156101d8578081fd5b81356001600160a01b03811681146101ee578182fd5b9392505050565b6000806000806080858703121561020a578283fd5b84356001600160a01b0381168114610220578384fd5b966020860135965060408601359560600135945092505050565b6000806040838503121561024c578182fd5b50508035926020909101359150565b6001600160a01b03958616815293909416602084015260408301919091526060820152608081019190915260a00190565b6001600160a01b0391909116815260200190565b90815260200190565b91825260208201526040019056fea264697066735822122080ba3f0b5f19ed5ed8218c2fe2732aaa71f0d2c74a892b0265af27cac07dacc164736f6c634300060c0033";
//# sourceMappingURL=DepositTokenMockFactory.js.map