aave-protocol-v2/types/MockUsdFactory.ts

327 lines
12 KiB
TypeScript
Raw Normal View History

/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-07-13 08:54:08 +00:00
import {Contract, ContractFactory, Signer} from 'ethers';
import {Provider} from 'ethers/providers';
import {UnsignedTransaction} from 'ethers/utils/transaction';
2020-07-13 08:54:08 +00:00
import {TransactionOverrides} from '.';
import {MockUsd} from './MockUsd';
export class MockUsdFactory extends ContractFactory {
constructor(signer?: Signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides?: TransactionOverrides): Promise<MockUsd> {
return super.deploy(overrides) as Promise<MockUsd>;
}
getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction {
return super.getDeployTransaction(overrides);
}
attach(address: string): MockUsd {
return super.attach(address) as MockUsd;
}
connect(signer: Signer): MockUsdFactory {
return super.connect(signer) as MockUsdFactory;
}
2020-07-13 08:54:08 +00:00
static connect(address: string, signerOrProvider: Signer | Provider): MockUsd {
return new Contract(address, _abi, signerOrProvider) as MockUsd;
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
},
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
{
indexed: false,
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'Approval',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'from',
type: 'address',
},
{
indexed: true,
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'to',
type: 'address',
},
{
indexed: false,
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'Transfer',
type: 'event',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'owner',
type: 'address',
},
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
],
2020-07-13 08:54:08 +00:00
name: 'allowance',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'approve',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'account',
type: 'address',
},
],
2020-07-13 08:54:08 +00:00
name: 'balanceOf',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'decimals',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint8',
name: '',
type: 'uint8',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'subtractedValue',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'decreaseAllowance',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'spender',
type: 'address',
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'addedValue',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'increaseAllowance',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'value',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'mint',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'name',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'symbol',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'string',
name: '',
type: 'string',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
2020-07-13 08:54:08 +00:00
name: 'totalSupply',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'transfer',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'sender',
type: 'address',
},
{
2020-07-13 08:54:08 +00:00
internalType: 'address',
name: 'recipient',
type: 'address',
},
{
2020-07-13 08:54:08 +00:00
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
2020-07-13 08:54:08 +00:00
name: 'transferFrom',
outputs: [
{
2020-07-13 08:54:08 +00:00
internalType: 'bool',
name: '',
type: 'bool',
},
],
2020-07-13 08:54:08 +00:00
stateMutability: 'nonpayable',
type: 'function',
},
];
const _bytecode =
2020-07-13 08:54:08 +00:00
'0x608060405234801561001057600080fd5b50604051806040016040528060038152602001621554d160ea1b815250604051806040016040528060038152602001621554d160ea1b8152506012828281600390805190602001906100639291906100b7565b5080516100779060049060208401906100b7565b50506005805460ff1916601217905550610099816001600160e01b036100a116565b505050610152565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100f857805160ff1916838001178555610125565b82800160010185558215610125579182015b8281111561012557825182559160200191906001019061010a565b50610131929150610135565b5090565b61014f91905b80821115610131576000815560010161013b565b90565b610b48806101616000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806370a082311161007157806370a082311461021057806395d89b4114610236578063a0712d681461023e578063a457c2d71461025b578063a9059cbb14610287578063dd62ed3e146102b3576100b4565b806306fdde03146100b9578063095ea7b31461013657806318160ddd1461017657806323b872dd14610190578063313ce567146101c657806339509351146101e4575b600080fd5b6100c16102e1565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100fb5781810151838201526020016100e3565b50505050905090810190601f1680156101285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101626004803603604081101561014c57600080fd5b506001600160a01b038135169060200135610377565b604080519115158252519081900360200190f35b61017e610394565b60408051918252519081900360200190f35b610162600480360360608110156101a657600080fd5b506001600160a01b0381358116916020810135909116906040013561039a565b6101ce610427565b6040805160ff9092168252519081900360200190f35b610162600480360360408110156101fa57600080fd5b506001600160a01b038135169060200135610430565b61017e6004803603602081101561022657600080fd5b50356001600160a01b0316610484565b6100c161049f565b6101626004803603602081101561025457600080fd5b5035610500565b6101626004803603604081101561027157600080fd5b506001600160a01b038135169060200135610514565b6101626004803603604081101561029d57600080fd5b506001600160a01b038135169060200135610582565b61017e600480360360408110156102c957600080fd5b506001600160a01b0381358116916020013516610596565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b5050505050905090565b600061038b6103846105c1565b84846105c5565b50600192915050565b60025490565b60006103a78484846106b1565b61041d846103b36105c1565b61041885604051806060016040528060288152602001610a7d602891396001600160a01b038a166000908152600160205260408120906103f16105c1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61081816565b6105c5565b5060019392505050565b60055460ff1690565b600061038b61043d6105c1565b84610418856001600061044e6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff6108af16565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561036d5780601f106103425761010080835404028352916020019161036d565b600061050c3383610910565b506001919050565b600061038b6105216105c1565b8461041885604051806060016040528060258152602001610aee602591396001600061054b6105c1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61081816565b600061038b61058f6105c1565b84846106b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b03831661060a5760405162461bcd60e51b8152600401808060200182810382526024815260200180610aca6024913960400191505060405180910390fd5b6001600160a01b03821661064f5760405162461bcd60e51b8152600401808060200182810382526022815260200180610a356022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e