mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
127 lines
8.0 KiB
TypeScript
127 lines
8.0 KiB
TypeScript
/* Generated by ts-generator ver. 0.0.8 */
|
|
/* tslint:disable */
|
|
|
|
import { Contract, ContractFactory, Signer } from "ethers";
|
|
import { Provider } from "ethers/providers";
|
|
import { UnsignedTransaction } from "ethers/utils/transaction";
|
|
|
|
import { TransactionOverrides } from ".";
|
|
import { AaveProtocolTestHelpers } from "./AaveProtocolTestHelpers";
|
|
|
|
export class AaveProtocolTestHelpersFactory extends ContractFactory {
|
|
constructor(signer?: Signer) {
|
|
super(_abi, _bytecode, signer);
|
|
}
|
|
|
|
deploy(
|
|
addressesProvider: string,
|
|
overrides?: TransactionOverrides
|
|
): Promise<AaveProtocolTestHelpers> {
|
|
return super.deploy(addressesProvider, overrides) as Promise<
|
|
AaveProtocolTestHelpers
|
|
>;
|
|
}
|
|
getDeployTransaction(
|
|
addressesProvider: string,
|
|
overrides?: TransactionOverrides
|
|
): UnsignedTransaction {
|
|
return super.getDeployTransaction(addressesProvider, overrides);
|
|
}
|
|
attach(address: string): AaveProtocolTestHelpers {
|
|
return super.attach(address) as AaveProtocolTestHelpers;
|
|
}
|
|
connect(signer: Signer): AaveProtocolTestHelpersFactory {
|
|
return super.connect(signer) as AaveProtocolTestHelpersFactory;
|
|
}
|
|
static connect(
|
|
address: string,
|
|
signerOrProvider: Signer | Provider
|
|
): AaveProtocolTestHelpers {
|
|
return new Contract(
|
|
address,
|
|
_abi,
|
|
signerOrProvider
|
|
) as AaveProtocolTestHelpers;
|
|
}
|
|
}
|
|
|
|
const _abi = [
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "contract ILendingPoolAddressesProvider",
|
|
name: "addressesProvider",
|
|
type: "address"
|
|
}
|
|
],
|
|
stateMutability: "nonpayable",
|
|
type: "constructor"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "ADDRESSES_PROVIDER",
|
|
outputs: [
|
|
{
|
|
internalType: "contract ILendingPoolAddressesProvider",
|
|
name: "",
|
|
type: "address"
|
|
}
|
|
],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getAllATokens",
|
|
outputs: [
|
|
{
|
|
components: [
|
|
{
|
|
internalType: "string",
|
|
name: "symbol",
|
|
type: "string"
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "tokenAddress",
|
|
type: "address"
|
|
}
|
|
],
|
|
internalType: "struct AaveProtocolTestHelpers.TokenData[]",
|
|
name: "",
|
|
type: "tuple[]"
|
|
}
|
|
],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getAllReservesTokens",
|
|
outputs: [
|
|
{
|
|
components: [
|
|
{
|
|
internalType: "string",
|
|
name: "symbol",
|
|
type: "string"
|
|
},
|
|
{
|
|
internalType: "address",
|
|
name: "tokenAddress",
|
|
type: "address"
|
|
}
|
|
],
|
|
internalType: "struct AaveProtocolTestHelpers.TokenData[]",
|
|
name: "",
|
|
type: "tuple[]"
|
|
}
|
|
],
|
|
stateMutability: "view",
|
|
type: "function"
|
|
}
|
|
];
|
|
|
|
const _bytecode =
|
|
"0x60a060405234801561001057600080fd5b50604051610a38380380610a3883398101604081905261002f91610044565b60601b6001600160601b031916608052610072565b600060208284031215610055578081fd5b81516001600160a01b038116811461006b578182fd5b9392505050565b60805160601c6109a1610097600039806083528060ab528061035f52506109a16000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630542975c14610046578063b316ff8914610064578063f561ae4114610079575b600080fd5b61004e610081565b60405161005b919061085f565b60405180910390f35b61006c6100a5565b60405161005b9190610873565b61006c610359565b7f000000000000000000000000000000000000000000000000000000000000000081565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561010257600080fd5b505afa158015610116573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013a9190610650565b90506060816001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160006040518083038186803b15801561017757600080fd5b505afa15801561018b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101b39190810190610672565b90506060815167ffffffffffffffff811180156101cf57600080fd5b5060405190808252806020026020018201604052801561020957816020015b6101f661061b565b8152602001906001900390816101ee5790505b50905060005b825181101561035157604051806040016040528084838151811061022f57fe5b60200260200101516001600160a01b031673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316146102f05784838151811061026f57fe5b60200260200101516001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156102af57600080fd5b505afa1580156102c3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526102eb919081019061071d565b61030d565b6040518060400160405280600381526020016208aa8960eb1b8152505b815260200184838151811061031e57fe5b60200260200101516001600160a01b031681525082828151811061033e57fe5b602090810291909101015260010161020f565b509250505090565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156103b657600080fd5b505afa1580156103ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ee9190610650565b90506060816001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160006040518083038186803b15801561042b57600080fd5b505afa15801561043f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104679190810190610672565b90506060815167ffffffffffffffff8111801561048357600080fd5b506040519080825280602002602001820160405280156104bd57816020015b6104aa61061b565b8152602001906001900390816104a25790505b50905060005b8251811015610351576000846001600160a01b0316633e1501418584815181106104e957fe5b60200260200101516040518263ffffffff1660e01b815260040161050d919061085f565b6101406040518083038186803b15801561052657600080fd5b505afa15801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e91906107a9565b50505050509450505050506040518060400160405280826001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156105ad57600080fd5b505afa1580156105c1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526105e9919081019061071d565b8152602001826001600160a01b031681525083838151811061060757fe5b6020908102919091010152506001016104c3565b60408051808201909152606081526000602082015290565b80516001600160a01b038116811461064a57600080fd5b92915050565b600060208284031215610661578081fd5b61066b8383610633565b9392505050565b60006020808385031215610684578182fd5b825167ffffffffffffffff8082111561069b578384fd5b81850186601f8201126106ac578485fd5b80519250818311156106bc578485fd5b83830291506106cc848301610903565b8381528481019082860184840187018a10156106e6578788fd5b8794505b85851015610710576106fc8a82610633565b8352600194909401939186019186016106ea565b5098975050505050505050565b60006020828403121561072e578081fd5b815167ffffffffffffffff80821115610745578283fd5b81840185601f820112610756578384fd5b8051925081831115610766578384fd5b610779601f8401601f1916602001610903565b915082825285602084830101111561078f578384fd5b6107a083602084016020840161092a565b50949350505050565b6000806000806000806000806000806101408b8d0312156107c8578586fd5b8a51995060208b0151985060408b015197506107e78c60608d01610633565b96506107f68c60808d01610633565b955060a08b01516108068161095a565b60c08c01519095506108178161095a565b60e08c01519094506108288161095a565b6101008c015190935061083a8161095a565b6101208c015190925061084c8161095a565b809150509295989b9194979a5092959850565b6001600160a01b0391909116815260200190565b60208082528251828201819052600091906040908185019080840286018301878501865b838110156108f557603f19898403018552815180518785528051808987015260606108c7828289018d860161092a565b928a01516001600160a01b0316868b015296890196601f01601f191690940101925090860190600101610897565b509098975050505050505050565b60405181810167ffffffffffffffff8111828210171561092257600080fd5b604052919050565b60005b8381101561094557818101518382015260200161092d565b83811115610954576000848401525b50505050565b801515811461096857600080fd5b5056fea26469706673582212202ae87134413bfec30c3479b12be41342f1714703aa97432447282e26ddf84a0c64736f6c63430006080033";
|