@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
202 lines • 14.5 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.DelegatedStrategyCompoundEthFactory = void 0;
const contracts_1 = require("@ethersproject/contracts");
class DelegatedStrategyCompoundEthFactory extends contracts_1.ContractFactory {
constructor(signer) {
super(_abi, _bytecode, signer);
}
deploy(name, addressProvider, weth, overrides) {
return super.deploy(name, addressProvider, weth, overrides || {});
}
getDeployTransaction(name, addressProvider, weth, overrides) {
return super.getDeployTransaction(name, addressProvider, weth, 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.DelegatedStrategyCompoundEthFactory = DelegatedStrategyCompoundEthFactory;
const _abi = [
{
inputs: [
{
internalType: "string",
name: "name",
type: "string",
},
{
internalType: "address",
name: "addressProvider",
type: "address",
},
{
internalType: "address",
name: "weth",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [
{
internalType: "address",
name: "asset",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "address",
name: "to",
type: "address",
},
],
name: "delegatedWithdrawUnderlying",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "getDelegatedDepositIndex",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "asset",
type: "address",
},
{
internalType: "uint40",
name: "",
type: "uint40",
},
],
name: "getDelegatedState",
outputs: [
{
components: [
{
internalType: "uint128",
name: "liquidityIndex",
type: "uint128",
},
{
internalType: "uint128",
name: "variableBorrowIndex",
type: "uint128",
},
{
internalType: "uint128",
name: "liquidityRate",
type: "uint128",
},
{
internalType: "uint128",
name: "variableBorrowRate",
type: "uint128",
},
{
internalType: "uint128",
name: "stableBorrowRate",
type: "uint128",
},
{
internalType: "uint40",
name: "lastUpdateTimestamp",
type: "uint40",
},
],
internalType: "struct IReserveDelegatedStrategy.DelegatedState",
name: "result",
type: "tuple",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "getStrategyName",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "getUnderlying",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isDelegatedReserve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "pure",
type: "function",
},
];
const _bytecode = "0x60e06040523060601b608052600180544263ffffffff908116680100000000000000000263ffffffff60401b1943929092166401000000000291909116600160201b600160601b0319909216919091171790553480156200005f57600080fd5b506040516200117a3803806200117a833981016040819052620000829162000185565b8251839083906200009b906000906020850190620000c2565b506001600160601b0319606091821b811660a05292901b90911660c05250620002d5915050565b828054620000d09062000282565b90600052602060002090601f016020900481019282620000f457600085556200013f565b82601f106200010f57805160ff19168380011785556200013f565b828001600101855582156200013f579182015b828111156200013f57825182559160200191906001019062000122565b506200014d92915062000151565b5090565b5b808211156200014d576000815560010162000152565b80516001600160a01b03811681146200018057600080fd5b919050565b6000806000606084860312156200019a578283fd5b83516001600160401b0380821115620001b1578485fd5b818601915086601f830112620001c5578485fd5b815181811115620001da57620001da620002bf565b604051601f8201601f19908116603f01168101908382118183101715620002055762000205620002bf565b8160405282815260209350898484870101111562000221578788fd5b8791505b8282101562000244578482018401518183018501529083019062000225565b828211156200025557878484830101525b96506200026791505086820162000168565b93505050620002796040850162000168565b90509250925092565b600181811c908216806200029757607f821691505b60208210811415620002b957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160601c610e576200032360003960008181610105015281816107d001526108600152600081816106330152610664015260006104b20152610e576000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630297ec39146100675780630f20f69e1461007b5780634e89a711146100f4578063643fa94b1461013f578063e07e51d91461016c578063fb03dc891461017f575b600080fd5b604051600181526020015b60405180910390f35b61008e610089366004610c33565b610194565b6040516100729190600060c0820190506001600160801b038084511683528060208501511660208401528060408501511660408401528060608501511660608401528060808501511660808401525064ffffffffff60a08401511660a083015292915050565b610127610102366004610bba565b507f000000000000000000000000000000000000000000000000000000000000000090565b6040516001600160a01b039091168152602001610072565b61015e61014d366004610bba565b506b033b2e3c9fd0803ce800000090565b604051908152602001610072565b61015e61017a366004610bf2565b6104ae565b61018761053c565b6040516100729190610cc8565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a0810191909152826001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561020157600080fd5b505af1158015610215573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102399190610c94565b1561028b5760405162461bcd60e51b815260206004820152601d60248201527f43546f6b656e3a20616363727565496e746572657374206661696c656400000060448201526064015b60405180910390fd5b6000610306846001600160a01b031663ae9d70b06040518163ffffffff1660e01b815260040160206040518083038186803b1580156102c957600080fd5b505afa1580156102dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103019190610c94565b6105ce565b60015490915063ffffffff80821691438216640100000000909104909116101561041c5761033385610631565b60015460009061035190640100000000900463ffffffff1643610d7e565b60015463ffffffff9182169161036f91600160401b90041642610d7e565b61037b906103e8610d33565b6103859190610d13565b905063ffffffff8216156103cd5761039e826003610d52565b6103ae9063ffffffff1682610cfb565b90506103bb600482610d13565b905063ffffffff81106103cd57600080fd5b600180546bffffffffffffffff000000001916600160401b4263ffffffff9081169190910267ffffffff00000000191691909117640100000000438316021763ffffffff191690831617905590505b63ffffffff81166104336301e133806103e8610d33565b61043d9190610d13565b6104479083610d33565b91506001600160801b0382111561045d57600080fd5b506040805160c0810182526b033b2e3c9fd0803ce800000080825260208201526001600160801b03929092169082015260006060820181905260808201524263ffffffff1660a08201529392505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630141561051a5760405162461bcd60e51b815260206004820152600e60248201526d1bdb9b1e4819195b1959d85d195960921b6044820152606401610282565b6000831161052757600080fd5b610532848484610757565b90505b9392505050565b60606000805461054b90610dc1565b80601f016020809104026020016040519081016040528092919081815260200182805461057790610dc1565b80156105c45780601f10610599576101008083540402835291602001916105c4565b820191906000526020600020905b8154815290600101906020018083116105a757829003601f168201915b5050505050905090565b6000806105df633b9aca0084610d33565b9050826105f0633b9aca0083610d13565b1460405180604001604052806002815260200161068760f31b8152509061062a5760405162461bcd60e51b81526004016102829190610cc8565b5092915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316156107545760007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fca513a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156106bb57600080fd5b505afa1580156106cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f39190610bd6565b604051631000264760e11b81526001600160a01b038481166004830152919250908216906320004c8e90602401600060405180830381600087803b15801561073a57600080fd5b505af115801561074e573d6000803e3d6000fd5b50505050505b50565b6000476107648585610890565b93506107708482610cfb565b4710156107bf5760405162461bcd60e51b815260206004820152601b60248201527f43546f6b656e3a2072656465656d20696e636f6e73697374656e7400000000006044820152606401610282565b836107ce576000915050610535565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561082957600080fd5b505af115801561083d573d6000803e3d6000fd5b505050506001600160a01b03841630149050610887576108876001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001684866109dd565b50919392505050565b600060001982141561091857604051633af9e66960e01b81523060048201526001600160a01b03841690633af9e66990602401602060405180830381600087803b1580156108dd57600080fd5b505af11580156108f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109159190610c94565b91505b60405163852a12e360e01b8152600481018390526001600160a01b0384169063852a12e390602401602060405180830381600087803b15801561095a57600080fd5b505af115801561096e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109929190610c94565b156109d75760405162461bcd60e51b815260206004820152601560248201527410d51bdad95b8e881c995919595b4819985a5b1959605a1b6044820152606401610282565b50919050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a2f908490610a34565b505050565b6001600160a01b0382163b610a8b5760405162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e7472616374006044820152606401610282565b600080836001600160a01b031683604051610aa69190610cac565b6000604051808303816000865af19150503d8060008114610ae3576040519150601f19603f3d011682016040523d82523d6000602084013e610ae8565b606091505b509150915081610b3a5760405162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646044820152606401610282565b805115610bb45780806020019051810190610b559190610c74565b610bb45760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610282565b50505050565b600060208284031215610bcb578081fd5b813561053581610e0c565b600060208284031215610be7578081fd5b815161053581610e0c565b600080600060608486031215610c06578182fd5b8335610c1181610e0c565b9250602084013591506040840135610c2881610e0c565b809150509250925092565b60008060408385031215610c45578182fd5b8235610c5081610e0c565b9150602083013564ffffffffff81168114610c69578182fd5b809150509250929050565b600060208284031215610c85578081fd5b81518015158114610535578182fd5b600060208284031215610ca5578081fd5b5051919050565b60008251610cbe818460208701610d95565b9190910192915050565b6020815260008251806020840152610ce7816040850160208701610d95565b601f01601f19169190910160400192915050565b60008219821115610d0e57610d0e610df6565b500190565b600082610d2e57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610d4d57610d4d610df6565b500290565b600063ffffffff80831681851681830481118215151615610d7557610d75610df6565b02949350505050565b600082821015610d9057610d90610df6565b500390565b60005b83811015610db0578181015183820152602001610d98565b83811115610bb45750506000910152565b600181811c90821680610dd557607f821691505b602082108114156109d757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461075457600080fdfea26469706673582212207839ce9ffa8524280e6a68999a65d952fc62b5535c8863bc615aa0024baf5f9864736f6c63430008040033";
//# sourceMappingURL=DelegatedStrategyCompoundEthFactory.js.map