UNPKG

@soma-finance/core-contracts

Version:

SOMA Finance core contracts

61 lines 4.97 kB
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers"; import type { FunctionFragment, Result } from "@ethersproject/abi"; import type { Listener, Provider } from "@ethersproject/providers"; import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../../common"; export interface IERC20GuardPartitionInterface extends utils.Interface { functions: { "canTransferFrom(address,address,bytes32,bytes32,uint256)": FunctionFragment; "canTransferFrom(address,address,uint256)": FunctionFragment; }; getFunction(nameOrSignatureOrTopic: "canTransferFrom(address,address,bytes32,bytes32,uint256)" | "canTransferFrom(address,address,uint256)"): FunctionFragment; encodeFunctionData(functionFragment: "canTransferFrom(address,address,bytes32,bytes32,uint256)", values: [ PromiseOrValue<string>, PromiseOrValue<string>, PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>, PromiseOrValue<BigNumberish> ]): string; encodeFunctionData(functionFragment: "canTransferFrom(address,address,uint256)", values: [ PromiseOrValue<string>, PromiseOrValue<string>, PromiseOrValue<BigNumberish> ]): string; decodeFunctionResult(functionFragment: "canTransferFrom(address,address,bytes32,bytes32,uint256)", data: BytesLike): Result; decodeFunctionResult(functionFragment: "canTransferFrom(address,address,uint256)", data: BytesLike): Result; events: {}; } export interface IERC20GuardPartition extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise<this>; interface: IERC20GuardPartitionInterface; queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>; listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>; listeners(eventName?: string): Array<Listener>; removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this; removeAllListeners(eventName?: string): this; off: OnEvent<this>; on: OnEvent<this>; once: OnEvent<this>; removeListener: OnEvent<this>; functions: { "canTransferFrom(address,address,bytes32,bytes32,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, fromId: PromiseOrValue<BytesLike>, toId: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[boolean]>; "canTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[boolean]>; }; "canTransferFrom(address,address,bytes32,bytes32,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, fromId: PromiseOrValue<BytesLike>, toId: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>; "canTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>; callStatic: { "canTransferFrom(address,address,bytes32,bytes32,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, fromId: PromiseOrValue<BytesLike>, toId: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>; "canTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>; }; filters: {}; estimateGas: { "canTransferFrom(address,address,bytes32,bytes32,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, fromId: PromiseOrValue<BytesLike>, toId: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>; "canTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>; }; populateTransaction: { "canTransferFrom(address,address,bytes32,bytes32,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, fromId: PromiseOrValue<BytesLike>, toId: PromiseOrValue<BytesLike>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>; "canTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>; }; } //# sourceMappingURL=IERC20GuardPartition.d.ts.map