/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import { Contract, ContractTransaction, EventFilter, Signer } from "ethers"; import { Listener, Provider } from "ethers/providers"; import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils"; import { TransactionOverrides, TypedEventDescription, TypedFunctionDescription } from "."; interface EthereumGatewayV2Interface extends Interface { functions: { depositERC20: TypedFunctionDescription<{ encode([amount, contractAddress]: [BigNumberish, string]): string; }>; enableGateway: TypedFunctionDescription<{ encode([enable]: [boolean]): string; }>; withdrawERC20: TypedFunctionDescription<{ encode([amount, contractAddress, _signersIndexes, _v, _r, _s]: [ BigNumberish, string, BigNumberish[], BigNumberish[], Arrayish[], Arrayish[] ]): string; }>; toggleAllowToken: TypedFunctionDescription<{ encode([tokenAddress, allow]: [string, boolean]): string; }>; toggleAllowAnyToken: TypedFunctionDescription<{ encode([allow]: [boolean]): string; }>; withdrawERC721X: TypedFunctionDescription<{ encode([tokenId, amount, contractAddress, _signersIndexes, _v, _r, _s]: [ BigNumberish, BigNumberish, string, BigNumberish[], BigNumberish[], Arrayish[], Arrayish[] ]): string; }>; withdrawERC721: TypedFunctionDescription<{ encode([uid, contractAddress, _signersIndexes, _v, _r, _s]: [ BigNumberish, string, BigNumberish[], BigNumberish[], Arrayish[], Arrayish[] ]): string; }>; withdrawETH: TypedFunctionDescription<{ encode([amount, _signersIndexes, _v, _r, _s]: [ BigNumberish, BigNumberish[], BigNumberish[], Arrayish[], Arrayish[] ]): string; }>; onERC721XReceived: TypedFunctionDescription<{ encode([_operator, _from, _tokenId, _amount, _data]: [ string, string, BigNumberish, BigNumberish, Arrayish ]): string; }>; onERC721XBatchReceived: TypedFunctionDescription<{ encode([_operator, _from, _types, _amounts, _data]: [ string, string, BigNumberish[], BigNumberish[], Arrayish ]): string; }>; onERC721Received: TypedFunctionDescription<{ encode([_operator, _from, _uid, _data]: [ string, string, BigNumberish, Arrayish ]): string; }>; }; events: { ETHReceived: TypedEventDescription<{ encodeTopics([from, amount]: [null, null]): string[]; }>; ERC721Received: TypedEventDescription<{ encodeTopics([operator, from, tokenId, contractAddress, data]: [ null, null, null, null, null ]): string[]; }>; ERC721XReceived: TypedEventDescription<{ encodeTopics([operator, from, tokenId, amount, contractAddress, data]: [ null, null, null, null, null, null ]): string[]; }>; ERC721XBatchReceived: TypedEventDescription<{ encodeTopics([operator, to, tokenTypes, amounts, contractAddress, data]: [ null, null, null, null, null, null ]): string[]; }>; TokenWithdrawn: TypedEventDescription<{ encodeTopics([owner, kind, contractAddress, value]: [ string | null, null, null, null ]): string[]; }>; LoomCoinReceived: TypedEventDescription<{ encodeTopics([from, amount, loomCoinAddress]: [ string | null, null, null ]): string[]; }>; ERC20Received: TypedEventDescription<{ encodeTopics([from, amount, contractAddress]: [ null, null, null ]): string[]; }>; }; } export class EthereumGatewayV2 extends Contract { connect(signerOrProvider: Signer | Provider | string): EthereumGatewayV2; attach(addressOrName: string): EthereumGatewayV2; deployed(): Promise; on(event: EventFilter | string, listener: Listener): EthereumGatewayV2; once(event: EventFilter | string, listener: Listener): EthereumGatewayV2; addListener( eventName: EventFilter | string, listener: Listener ): EthereumGatewayV2; removeAllListeners(eventName: EventFilter | string): EthereumGatewayV2; removeListener(eventName: any, listener: Listener): EthereumGatewayV2; interface: EthereumGatewayV2Interface; functions: { getERC20(contractAddress: string): Promise; nonces(arg0: string): Promise; allowedTokens(arg0: string): Promise; isTokenAllowed(tokenAddress: string): Promise; getERC721(uid: BigNumberish, contractAddress: string): Promise; getERC721X( tokenId: BigNumberish, contractAddress: string ): Promise; depositERC20( amount: BigNumberish, contractAddress: string, overrides?: TransactionOverrides ): Promise; enableGateway( enable: boolean, overrides?: TransactionOverrides ): Promise; withdrawERC20( amount: BigNumberish, contractAddress: string, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[], overrides?: TransactionOverrides ): Promise; toggleAllowToken( tokenAddress: string, allow: boolean, overrides?: TransactionOverrides ): Promise; toggleAllowAnyToken( allow: boolean, overrides?: TransactionOverrides ): Promise; withdrawERC721X( tokenId: BigNumberish, amount: BigNumberish, contractAddress: string, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[], overrides?: TransactionOverrides ): Promise; withdrawERC721( uid: BigNumberish, contractAddress: string, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[], overrides?: TransactionOverrides ): Promise; withdrawETH( amount: BigNumberish, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[], overrides?: TransactionOverrides ): Promise; onERC721XReceived( _operator: string, _from: string, _tokenId: BigNumberish, _amount: BigNumberish, _data: Arrayish, overrides?: TransactionOverrides ): Promise; onERC721XBatchReceived( _operator: string, _from: string, _types: BigNumberish[], _amounts: BigNumberish[], _data: Arrayish, overrides?: TransactionOverrides ): Promise; onERC721Received( _operator: string, _from: string, _uid: BigNumberish, _data: Arrayish, overrides?: TransactionOverrides ): Promise; vmc(): Promise; getAllowAnyToken(): Promise; loomAddress(): Promise; getOwner(): Promise; owner(): Promise; getGatewayEnabled(): Promise; getETH(): Promise; }; filters: { ETHReceived(from: null, amount: null): EventFilter; ERC721Received( operator: null, from: null, tokenId: null, contractAddress: null, data: null ): EventFilter; ERC721XReceived( operator: null, from: null, tokenId: null, amount: null, contractAddress: null, data: null ): EventFilter; ERC721XBatchReceived( operator: null, to: null, tokenTypes: null, amounts: null, contractAddress: null, data: null ): EventFilter; TokenWithdrawn( owner: string | null, kind: null, contractAddress: null, value: null ): EventFilter; LoomCoinReceived( from: string | null, amount: null, loomCoinAddress: null ): EventFilter; ERC20Received(from: null, amount: null, contractAddress: null): EventFilter; }; estimate: { depositERC20( amount: BigNumberish, contractAddress: string ): Promise; enableGateway(enable: boolean): Promise; withdrawERC20( amount: BigNumberish, contractAddress: string, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[] ): Promise; toggleAllowToken(tokenAddress: string, allow: boolean): Promise; toggleAllowAnyToken(allow: boolean): Promise; withdrawERC721X( tokenId: BigNumberish, amount: BigNumberish, contractAddress: string, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[] ): Promise; withdrawERC721( uid: BigNumberish, contractAddress: string, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[] ): Promise; withdrawETH( amount: BigNumberish, _signersIndexes: BigNumberish[], _v: BigNumberish[], _r: Arrayish[], _s: Arrayish[] ): Promise; onERC721XReceived( _operator: string, _from: string, _tokenId: BigNumberish, _amount: BigNumberish, _data: Arrayish ): Promise; onERC721XBatchReceived( _operator: string, _from: string, _types: BigNumberish[], _amounts: BigNumberish[], _data: Arrayish ): Promise; onERC721Received( _operator: string, _from: string, _uid: BigNumberish, _data: Arrayish ): Promise; }; }