aave-protocol-v2/types/IUniswapExchangeFactory.ts

120 lines
2.3 KiB
TypeScript
Raw Normal View History

2020-06-03 10:23:21 +00:00
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
2020-08-07 17:29:13 +00:00
import { Contract, Signer } from "ethers";
import { Provider } from "ethers/providers";
2020-06-03 10:23:21 +00:00
2020-08-07 17:29:13 +00:00
import { IUniswapExchange } from "./IUniswapExchange";
2020-06-03 10:23:21 +00:00
export class IUniswapExchangeFactory {
2020-08-07 17:29:13 +00:00
static connect(
address: string,
signerOrProvider: Signer | Provider
): IUniswapExchange {
2020-06-03 10:23:21 +00:00
return new Contract(address, _abi, signerOrProvider) as IUniswapExchange;
}
}
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "provider",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "eth_amount",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "token_amount",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-07 17:29:13 +00:00
name: "AddLiquidity",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "buyer",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "tokens_sold",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "eth_bought",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-07 17:29:13 +00:00
name: "EthPurchase",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "provider",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "eth_amount",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "token_amount",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-07 17:29:13 +00:00
name: "RemoveLiquidity",
type: "event"
2020-06-03 10:23:21 +00:00
},
{
anonymous: false,
inputs: [
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "address",
name: "buyer",
type: "address"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "eth_sold",
type: "uint256"
2020-06-03 10:23:21 +00:00
},
{
indexed: true,
2020-08-07 17:29:13 +00:00
internalType: "uint256",
name: "tokens_bought",
type: "uint256"
}
2020-06-03 10:23:21 +00:00
],
2020-08-07 17:29:13 +00:00
name: "TokenPurchase",
type: "event"
}
2020-06-03 10:23:21 +00:00
];