2419 lines
66 KiB
TypeScript
2419 lines
66 KiB
TypeScript
/* Autogenerated file. Do not edit manually. */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
|
|
import {
|
|
ethers,
|
|
EventFilter,
|
|
Signer,
|
|
BigNumber,
|
|
BigNumberish,
|
|
PopulatedTransaction,
|
|
BaseContract,
|
|
ContractTransaction,
|
|
Overrides,
|
|
CallOverrides,
|
|
} from "ethers";
|
|
import { BytesLike } from "@ethersproject/bytes";
|
|
import { Listener, Provider } from "@ethersproject/providers";
|
|
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
import { TypedEventFilter, TypedEvent, TypedListener } from "./commons";
|
|
|
|
interface ForeignOmnibridgeInterface extends ethers.utils.Interface {
|
|
functions: {
|
|
"bridgeContract()": FunctionFragment;
|
|
"bridgedTokenAddress(address)": FunctionFragment;
|
|
"claimTokens(address,address)": FunctionFragment;
|
|
"claimTokensFromTokenContract(address,address,address)": FunctionFragment;
|
|
"dailyLimit(address)": FunctionFragment;
|
|
"deployAndHandleBridgedTokens(address,string,string,uint8,address,uint256)": FunctionFragment;
|
|
"deployAndHandleBridgedTokensAndCall(address,string,string,uint8,address,uint256,bytes)": FunctionFragment;
|
|
"disableInterest(address)": FunctionFragment;
|
|
"executionDailyLimit(address)": FunctionFragment;
|
|
"executionMaxPerTx(address)": FunctionFragment;
|
|
"fixFailedMessage(bytes32)": FunctionFragment;
|
|
"fixMediatorBalance(address,address)": FunctionFragment;
|
|
"getBridgeInterfacesVersion()": FunctionFragment;
|
|
"getBridgeMode()": FunctionFragment;
|
|
"getCurrentDay()": FunctionFragment;
|
|
"handleBridgedTokens(address,address,uint256)": FunctionFragment;
|
|
"handleBridgedTokensAndCall(address,address,uint256,bytes)": FunctionFragment;
|
|
"handleNativeTokens(address,address,uint256)": FunctionFragment;
|
|
"handleNativeTokensAndCall(address,address,uint256,bytes)": FunctionFragment;
|
|
"initialize(address,address,uint256[3],uint256[2],uint256,address,address)": FunctionFragment;
|
|
"initializeInterest(address,address,uint256)": FunctionFragment;
|
|
"interestImplementation(address)": FunctionFragment;
|
|
"invest(address)": FunctionFragment;
|
|
"isBridgedTokenDeployAcknowledged(address)": FunctionFragment;
|
|
"isInitialized()": FunctionFragment;
|
|
"isRegisteredAsNativeToken(address)": FunctionFragment;
|
|
"isTokenRegistered(address)": FunctionFragment;
|
|
"maxAvailablePerTx(address)": FunctionFragment;
|
|
"maxPerTx(address)": FunctionFragment;
|
|
"mediatorBalance(address)": FunctionFragment;
|
|
"mediatorContractOnOtherSide()": FunctionFragment;
|
|
"messageFixed(bytes32)": FunctionFragment;
|
|
"migrateTo_3_3_0(address,address)": FunctionFragment;
|
|
"minCashThreshold(address)": FunctionFragment;
|
|
"minPerTx(address)": FunctionFragment;
|
|
"nativeTokenAddress(address)": FunctionFragment;
|
|
"onTokenTransfer(address,uint256,bytes)": FunctionFragment;
|
|
"owner()": FunctionFragment;
|
|
"relayTokens(address,uint256)": FunctionFragment;
|
|
"relayTokensAndCall(address,address,uint256,bytes)": FunctionFragment;
|
|
"requestFailedMessageFix(bytes32)": FunctionFragment;
|
|
"requestGasLimit()": FunctionFragment;
|
|
"setBridgeContract(address)": FunctionFragment;
|
|
"setCustomTokenAddressPair(address,address)": FunctionFragment;
|
|
"setDailyLimit(address,uint256)": FunctionFragment;
|
|
"setExecutionDailyLimit(address,uint256)": FunctionFragment;
|
|
"setExecutionMaxPerTx(address,uint256)": FunctionFragment;
|
|
"setMaxPerTx(address,uint256)": FunctionFragment;
|
|
"setMediatorContractOnOtherSide(address)": FunctionFragment;
|
|
"setMinCashThreshold(address,uint256)": FunctionFragment;
|
|
"setMinPerTx(address,uint256)": FunctionFragment;
|
|
"setRequestGasLimit(uint256)": FunctionFragment;
|
|
"setTokenFactory(address)": FunctionFragment;
|
|
"tokenFactory()": FunctionFragment;
|
|
"totalExecutedPerDay(address,uint256)": FunctionFragment;
|
|
"totalSpentPerDay(address,uint256)": FunctionFragment;
|
|
"transferOwnership(address)": FunctionFragment;
|
|
"withinExecutionLimit(address,uint256)": FunctionFragment;
|
|
"withinLimit(address,uint256)": FunctionFragment;
|
|
};
|
|
|
|
encodeFunctionData(
|
|
functionFragment: "bridgeContract",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "bridgedTokenAddress",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "claimTokens",
|
|
values: [string, string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "claimTokensFromTokenContract",
|
|
values: [string, string, string]
|
|
): string;
|
|
encodeFunctionData(functionFragment: "dailyLimit", values: [string]): string;
|
|
encodeFunctionData(
|
|
functionFragment: "deployAndHandleBridgedTokens",
|
|
values: [string, string, string, BigNumberish, string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "deployAndHandleBridgedTokensAndCall",
|
|
values: [
|
|
string,
|
|
string,
|
|
string,
|
|
BigNumberish,
|
|
string,
|
|
BigNumberish,
|
|
BytesLike
|
|
]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "disableInterest",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "executionDailyLimit",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "executionMaxPerTx",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "fixFailedMessage",
|
|
values: [BytesLike]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "fixMediatorBalance",
|
|
values: [string, string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "getBridgeInterfacesVersion",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "getBridgeMode",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "getCurrentDay",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "handleBridgedTokens",
|
|
values: [string, string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "handleBridgedTokensAndCall",
|
|
values: [string, string, BigNumberish, BytesLike]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "handleNativeTokens",
|
|
values: [string, string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "handleNativeTokensAndCall",
|
|
values: [string, string, BigNumberish, BytesLike]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "initialize",
|
|
values: [
|
|
string,
|
|
string,
|
|
[BigNumberish, BigNumberish, BigNumberish],
|
|
[BigNumberish, BigNumberish],
|
|
BigNumberish,
|
|
string,
|
|
string
|
|
]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "initializeInterest",
|
|
values: [string, string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "interestImplementation",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(functionFragment: "invest", values: [string]): string;
|
|
encodeFunctionData(
|
|
functionFragment: "isBridgedTokenDeployAcknowledged",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "isInitialized",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "isRegisteredAsNativeToken",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "isTokenRegistered",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "maxAvailablePerTx",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(functionFragment: "maxPerTx", values: [string]): string;
|
|
encodeFunctionData(
|
|
functionFragment: "mediatorBalance",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "mediatorContractOnOtherSide",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "messageFixed",
|
|
values: [BytesLike]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "migrateTo_3_3_0",
|
|
values: [string, string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "minCashThreshold",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(functionFragment: "minPerTx", values: [string]): string;
|
|
encodeFunctionData(
|
|
functionFragment: "nativeTokenAddress",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "onTokenTransfer",
|
|
values: [string, BigNumberish, BytesLike]
|
|
): string;
|
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
encodeFunctionData(
|
|
functionFragment: "relayTokens",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "relayTokensAndCall",
|
|
values: [string, string, BigNumberish, BytesLike]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "requestFailedMessageFix",
|
|
values: [BytesLike]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "requestGasLimit",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setBridgeContract",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setCustomTokenAddressPair",
|
|
values: [string, string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setDailyLimit",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setExecutionDailyLimit",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setExecutionMaxPerTx",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setMaxPerTx",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setMediatorContractOnOtherSide",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setMinCashThreshold",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setMinPerTx",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setRequestGasLimit",
|
|
values: [BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "setTokenFactory",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "tokenFactory",
|
|
values?: undefined
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "totalExecutedPerDay",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "totalSpentPerDay",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "transferOwnership",
|
|
values: [string]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "withinExecutionLimit",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
encodeFunctionData(
|
|
functionFragment: "withinLimit",
|
|
values: [string, BigNumberish]
|
|
): string;
|
|
|
|
decodeFunctionResult(
|
|
functionFragment: "bridgeContract",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "bridgedTokenAddress",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "claimTokens",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "claimTokensFromTokenContract",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "dailyLimit", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "deployAndHandleBridgedTokens",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "deployAndHandleBridgedTokensAndCall",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "disableInterest",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "executionDailyLimit",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "executionMaxPerTx",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "fixFailedMessage",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "fixMediatorBalance",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "getBridgeInterfacesVersion",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "getBridgeMode",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "getCurrentDay",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "handleBridgedTokens",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "handleBridgedTokensAndCall",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "handleNativeTokens",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "handleNativeTokensAndCall",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "initializeInterest",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "interestImplementation",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "invest", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "isBridgedTokenDeployAcknowledged",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "isInitialized",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "isRegisteredAsNativeToken",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "isTokenRegistered",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "maxAvailablePerTx",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "maxPerTx", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "mediatorBalance",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "mediatorContractOnOtherSide",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "messageFixed",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "migrateTo_3_3_0",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "minCashThreshold",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "minPerTx", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "nativeTokenAddress",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "onTokenTransfer",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "relayTokens",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "relayTokensAndCall",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "requestFailedMessageFix",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "requestGasLimit",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setBridgeContract",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setCustomTokenAddressPair",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setDailyLimit",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setExecutionDailyLimit",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setExecutionMaxPerTx",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setMaxPerTx",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setMediatorContractOnOtherSide",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setMinCashThreshold",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setMinPerTx",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setRequestGasLimit",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "setTokenFactory",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "tokenFactory",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "totalExecutedPerDay",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "totalSpentPerDay",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "transferOwnership",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "withinExecutionLimit",
|
|
data: BytesLike
|
|
): Result;
|
|
decodeFunctionResult(
|
|
functionFragment: "withinLimit",
|
|
data: BytesLike
|
|
): Result;
|
|
|
|
events: {
|
|
"DailyLimitChanged(address,uint256)": EventFragment;
|
|
"ExecutionDailyLimitChanged(address,uint256)": EventFragment;
|
|
"FailedMessageFixed(bytes32,address,address,uint256)": EventFragment;
|
|
"NewTokenRegistered(address,address)": EventFragment;
|
|
"OwnershipTransferred(address,address)": EventFragment;
|
|
"TokensBridged(address,address,uint256,bytes32)": EventFragment;
|
|
"TokensBridgingInitiated(address,address,uint256,bytes32)": EventFragment;
|
|
};
|
|
|
|
getEvent(nameOrSignatureOrTopic: "DailyLimitChanged"): EventFragment;
|
|
getEvent(nameOrSignatureOrTopic: "ExecutionDailyLimitChanged"): EventFragment;
|
|
getEvent(nameOrSignatureOrTopic: "FailedMessageFixed"): EventFragment;
|
|
getEvent(nameOrSignatureOrTopic: "NewTokenRegistered"): EventFragment;
|
|
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
getEvent(nameOrSignatureOrTopic: "TokensBridged"): EventFragment;
|
|
getEvent(nameOrSignatureOrTopic: "TokensBridgingInitiated"): EventFragment;
|
|
}
|
|
|
|
export type DailyLimitChangedEvent = TypedEvent<
|
|
[string, BigNumber] & { token: string; newLimit: BigNumber }
|
|
>;
|
|
|
|
export type ExecutionDailyLimitChangedEvent = TypedEvent<
|
|
[string, BigNumber] & { token: string; newLimit: BigNumber }
|
|
>;
|
|
|
|
export type FailedMessageFixedEvent = TypedEvent<
|
|
[string, string, string, BigNumber] & {
|
|
messageId: string;
|
|
token: string;
|
|
recipient: string;
|
|
value: BigNumber;
|
|
}
|
|
>;
|
|
|
|
export type NewTokenRegisteredEvent = TypedEvent<
|
|
[string, string] & { nativeToken: string; bridgedToken: string }
|
|
>;
|
|
|
|
export type OwnershipTransferredEvent = TypedEvent<
|
|
[string, string] & { previousOwner: string; newOwner: string }
|
|
>;
|
|
|
|
export type TokensBridgedEvent = TypedEvent<
|
|
[string, string, BigNumber, string] & {
|
|
token: string;
|
|
recipient: string;
|
|
value: BigNumber;
|
|
messageId: string;
|
|
}
|
|
>;
|
|
|
|
export type TokensBridgingInitiatedEvent = TypedEvent<
|
|
[string, string, BigNumber, string] & {
|
|
token: string;
|
|
sender: string;
|
|
value: BigNumber;
|
|
messageId: string;
|
|
}
|
|
>;
|
|
|
|
export class ForeignOmnibridge extends BaseContract {
|
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
attach(addressOrName: string): this;
|
|
deployed(): Promise<this>;
|
|
|
|
listeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
): Array<TypedListener<EventArgsArray, EventArgsObject>>;
|
|
off<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
on<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
once<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
): this;
|
|
|
|
listeners(eventName?: string): Array<Listener>;
|
|
off(eventName: string, listener: Listener): this;
|
|
on(eventName: string, listener: Listener): this;
|
|
once(eventName: string, listener: Listener): this;
|
|
removeListener(eventName: string, listener: Listener): this;
|
|
removeAllListeners(eventName?: string): this;
|
|
|
|
queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
event: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
fromBlockOrBlockhash?: string | number | undefined,
|
|
toBlock?: string | number | undefined
|
|
): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;
|
|
|
|
interface: ForeignOmnibridgeInterface;
|
|
|
|
functions: {
|
|
bridgeContract(overrides?: CallOverrides): Promise<[string]>;
|
|
|
|
bridgedTokenAddress(
|
|
_nativeToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[string]>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
claimTokensFromTokenContract(
|
|
_bridgedToken: string,
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
dailyLimit(_token: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
|
|
deployAndHandleBridgedTokens(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
deployAndHandleBridgedTokensAndCall(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
disableInterest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
executionDailyLimit(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[BigNumber]>;
|
|
|
|
executionMaxPerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[BigNumber]>;
|
|
|
|
fixFailedMessage(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
fixMediatorBalance(
|
|
_token: string,
|
|
_receiver: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
getBridgeInterfacesVersion(
|
|
overrides?: CallOverrides
|
|
): Promise<
|
|
[BigNumber, BigNumber, BigNumber] & {
|
|
major: BigNumber;
|
|
minor: BigNumber;
|
|
patch: BigNumber;
|
|
}
|
|
>;
|
|
|
|
getBridgeMode(
|
|
overrides?: CallOverrides
|
|
): Promise<[string] & { _data: string }>;
|
|
|
|
getCurrentDay(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
|
|
handleBridgedTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
handleBridgedTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
handleNativeTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
handleNativeTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
initialize(
|
|
_bridgeContract: string,
|
|
_mediatorContract: string,
|
|
_dailyLimitMaxPerTxMinPerTxArray: [
|
|
BigNumberish,
|
|
BigNumberish,
|
|
BigNumberish
|
|
],
|
|
_executionDailyLimitExecutionMaxPerTxArray: [BigNumberish, BigNumberish],
|
|
_requestGasLimit: BigNumberish,
|
|
_owner: string,
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
initializeInterest(
|
|
_token: string,
|
|
_impl: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
interestImplementation(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[string]>;
|
|
|
|
invest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
isBridgedTokenDeployAcknowledged(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[boolean]>;
|
|
|
|
isInitialized(overrides?: CallOverrides): Promise<[boolean]>;
|
|
|
|
isRegisteredAsNativeToken(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[boolean]>;
|
|
|
|
isTokenRegistered(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[boolean]>;
|
|
|
|
maxAvailablePerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[BigNumber]>;
|
|
|
|
maxPerTx(_token: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
|
|
mediatorBalance(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[BigNumber]>;
|
|
|
|
mediatorContractOnOtherSide(overrides?: CallOverrides): Promise<[string]>;
|
|
|
|
messageFixed(
|
|
_messageId: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<[boolean]>;
|
|
|
|
migrateTo_3_3_0(
|
|
_tokenFactory: string,
|
|
_interestImplementation: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
minCashThreshold(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[BigNumber]>;
|
|
|
|
minPerTx(_token: string, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
|
|
nativeTokenAddress(
|
|
_bridgedToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<[string]>;
|
|
|
|
onTokenTransfer(
|
|
_from: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
|
|
"relayTokens(address,uint256)"(
|
|
token: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"relayTokens(address,address,uint256)"(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
relayTokensAndCall(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
requestFailedMessageFix(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
requestGasLimit(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
|
|
setBridgeContract(
|
|
_bridgeContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setCustomTokenAddressPair(
|
|
_nativeToken: string,
|
|
_bridgedToken: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setExecutionDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setExecutionMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMediatorContractOnOtherSide(
|
|
_mediatorContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMinCashThreshold(
|
|
_token: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMinPerTx(
|
|
_token: string,
|
|
_minPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setRequestGasLimit(
|
|
_gasLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setTokenFactory(
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
tokenFactory(overrides?: CallOverrides): Promise<[string]>;
|
|
|
|
totalExecutedPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<[BigNumber]>;
|
|
|
|
totalSpentPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<[BigNumber]>;
|
|
|
|
transferOwnership(
|
|
newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
withinExecutionLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<[boolean]>;
|
|
|
|
withinLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<[boolean]>;
|
|
};
|
|
|
|
bridgeContract(overrides?: CallOverrides): Promise<string>;
|
|
|
|
bridgedTokenAddress(
|
|
_nativeToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<string>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
claimTokensFromTokenContract(
|
|
_bridgedToken: string,
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
dailyLimit(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
deployAndHandleBridgedTokens(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
deployAndHandleBridgedTokensAndCall(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
disableInterest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
executionDailyLimit(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
executionMaxPerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
fixFailedMessage(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
fixMediatorBalance(
|
|
_token: string,
|
|
_receiver: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
getBridgeInterfacesVersion(
|
|
overrides?: CallOverrides
|
|
): Promise<
|
|
[BigNumber, BigNumber, BigNumber] & {
|
|
major: BigNumber;
|
|
minor: BigNumber;
|
|
patch: BigNumber;
|
|
}
|
|
>;
|
|
|
|
getBridgeMode(overrides?: CallOverrides): Promise<string>;
|
|
|
|
getCurrentDay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
handleBridgedTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
handleBridgedTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
handleNativeTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
handleNativeTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
initialize(
|
|
_bridgeContract: string,
|
|
_mediatorContract: string,
|
|
_dailyLimitMaxPerTxMinPerTxArray: [
|
|
BigNumberish,
|
|
BigNumberish,
|
|
BigNumberish
|
|
],
|
|
_executionDailyLimitExecutionMaxPerTxArray: [BigNumberish, BigNumberish],
|
|
_requestGasLimit: BigNumberish,
|
|
_owner: string,
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
initializeInterest(
|
|
_token: string,
|
|
_impl: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
interestImplementation(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<string>;
|
|
|
|
invest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
isBridgedTokenDeployAcknowledged(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
isInitialized(overrides?: CallOverrides): Promise<boolean>;
|
|
|
|
isRegisteredAsNativeToken(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
isTokenRegistered(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
maxAvailablePerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
maxPerTx(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
mediatorBalance(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
mediatorContractOnOtherSide(overrides?: CallOverrides): Promise<string>;
|
|
|
|
messageFixed(
|
|
_messageId: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
migrateTo_3_3_0(
|
|
_tokenFactory: string,
|
|
_interestImplementation: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
minCashThreshold(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
minPerTx(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
nativeTokenAddress(
|
|
_bridgedToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<string>;
|
|
|
|
onTokenTransfer(
|
|
_from: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<string>;
|
|
|
|
"relayTokens(address,uint256)"(
|
|
token: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
"relayTokens(address,address,uint256)"(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
relayTokensAndCall(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
requestFailedMessageFix(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
requestGasLimit(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
setBridgeContract(
|
|
_bridgeContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setCustomTokenAddressPair(
|
|
_nativeToken: string,
|
|
_bridgedToken: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setExecutionDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setExecutionMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMediatorContractOnOtherSide(
|
|
_mediatorContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMinCashThreshold(
|
|
_token: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setMinPerTx(
|
|
_token: string,
|
|
_minPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setRequestGasLimit(
|
|
_gasLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
setTokenFactory(
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
tokenFactory(overrides?: CallOverrides): Promise<string>;
|
|
|
|
totalExecutedPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
totalSpentPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
transferOwnership(
|
|
newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<ContractTransaction>;
|
|
|
|
withinExecutionLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
withinLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
callStatic: {
|
|
bridgeContract(overrides?: CallOverrides): Promise<string>;
|
|
|
|
bridgedTokenAddress(
|
|
_nativeToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<string>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
claimTokensFromTokenContract(
|
|
_bridgedToken: string,
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
dailyLimit(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
deployAndHandleBridgedTokens(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
deployAndHandleBridgedTokensAndCall(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
disableInterest(_token: string, overrides?: CallOverrides): Promise<void>;
|
|
|
|
executionDailyLimit(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
executionMaxPerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
fixFailedMessage(
|
|
_messageId: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
fixMediatorBalance(
|
|
_token: string,
|
|
_receiver: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
getBridgeInterfacesVersion(
|
|
overrides?: CallOverrides
|
|
): Promise<
|
|
[BigNumber, BigNumber, BigNumber] & {
|
|
major: BigNumber;
|
|
minor: BigNumber;
|
|
patch: BigNumber;
|
|
}
|
|
>;
|
|
|
|
getBridgeMode(overrides?: CallOverrides): Promise<string>;
|
|
|
|
getCurrentDay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
handleBridgedTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
handleBridgedTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
handleNativeTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
handleNativeTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
initialize(
|
|
_bridgeContract: string,
|
|
_mediatorContract: string,
|
|
_dailyLimitMaxPerTxMinPerTxArray: [
|
|
BigNumberish,
|
|
BigNumberish,
|
|
BigNumberish
|
|
],
|
|
_executionDailyLimitExecutionMaxPerTxArray: [BigNumberish, BigNumberish],
|
|
_requestGasLimit: BigNumberish,
|
|
_owner: string,
|
|
_tokenFactory: string,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
initializeInterest(
|
|
_token: string,
|
|
_impl: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
interestImplementation(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<string>;
|
|
|
|
invest(_token: string, overrides?: CallOverrides): Promise<void>;
|
|
|
|
isBridgedTokenDeployAcknowledged(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
isInitialized(overrides?: CallOverrides): Promise<boolean>;
|
|
|
|
isRegisteredAsNativeToken(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
isTokenRegistered(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
maxAvailablePerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
maxPerTx(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
mediatorBalance(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
mediatorContractOnOtherSide(overrides?: CallOverrides): Promise<string>;
|
|
|
|
messageFixed(
|
|
_messageId: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
migrateTo_3_3_0(
|
|
_tokenFactory: string,
|
|
_interestImplementation: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
minCashThreshold(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
minPerTx(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
nativeTokenAddress(
|
|
_bridgedToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<string>;
|
|
|
|
onTokenTransfer(
|
|
_from: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<string>;
|
|
|
|
"relayTokens(address,uint256)"(
|
|
token: string,
|
|
_value: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
"relayTokens(address,address,uint256)"(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
relayTokensAndCall(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
requestFailedMessageFix(
|
|
_messageId: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
requestGasLimit(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
setBridgeContract(
|
|
_bridgeContract: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setCustomTokenAddressPair(
|
|
_nativeToken: string,
|
|
_bridgedToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setExecutionDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setExecutionMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setMediatorContractOnOtherSide(
|
|
_mediatorContract: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setMinCashThreshold(
|
|
_token: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setMinPerTx(
|
|
_token: string,
|
|
_minPerTx: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setRequestGasLimit(
|
|
_gasLimit: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
setTokenFactory(
|
|
_tokenFactory: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
tokenFactory(overrides?: CallOverrides): Promise<string>;
|
|
|
|
totalExecutedPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
totalSpentPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
transferOwnership(
|
|
newOwner: string,
|
|
overrides?: CallOverrides
|
|
): Promise<void>;
|
|
|
|
withinExecutionLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
|
|
withinLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<boolean>;
|
|
};
|
|
|
|
filters: {
|
|
"DailyLimitChanged(address,uint256)"(
|
|
token?: string | null,
|
|
newLimit?: null
|
|
): TypedEventFilter<
|
|
[string, BigNumber],
|
|
{ token: string; newLimit: BigNumber }
|
|
>;
|
|
|
|
DailyLimitChanged(
|
|
token?: string | null,
|
|
newLimit?: null
|
|
): TypedEventFilter<
|
|
[string, BigNumber],
|
|
{ token: string; newLimit: BigNumber }
|
|
>;
|
|
|
|
"ExecutionDailyLimitChanged(address,uint256)"(
|
|
token?: string | null,
|
|
newLimit?: null
|
|
): TypedEventFilter<
|
|
[string, BigNumber],
|
|
{ token: string; newLimit: BigNumber }
|
|
>;
|
|
|
|
ExecutionDailyLimitChanged(
|
|
token?: string | null,
|
|
newLimit?: null
|
|
): TypedEventFilter<
|
|
[string, BigNumber],
|
|
{ token: string; newLimit: BigNumber }
|
|
>;
|
|
|
|
"FailedMessageFixed(bytes32,address,address,uint256)"(
|
|
messageId?: BytesLike | null,
|
|
token?: null,
|
|
recipient?: null,
|
|
value?: null
|
|
): TypedEventFilter<
|
|
[string, string, string, BigNumber],
|
|
{ messageId: string; token: string; recipient: string; value: BigNumber }
|
|
>;
|
|
|
|
FailedMessageFixed(
|
|
messageId?: BytesLike | null,
|
|
token?: null,
|
|
recipient?: null,
|
|
value?: null
|
|
): TypedEventFilter<
|
|
[string, string, string, BigNumber],
|
|
{ messageId: string; token: string; recipient: string; value: BigNumber }
|
|
>;
|
|
|
|
"NewTokenRegistered(address,address)"(
|
|
nativeToken?: string | null,
|
|
bridgedToken?: string | null
|
|
): TypedEventFilter<
|
|
[string, string],
|
|
{ nativeToken: string; bridgedToken: string }
|
|
>;
|
|
|
|
NewTokenRegistered(
|
|
nativeToken?: string | null,
|
|
bridgedToken?: string | null
|
|
): TypedEventFilter<
|
|
[string, string],
|
|
{ nativeToken: string; bridgedToken: string }
|
|
>;
|
|
|
|
"OwnershipTransferred(address,address)"(
|
|
previousOwner?: null,
|
|
newOwner?: null
|
|
): TypedEventFilter<
|
|
[string, string],
|
|
{ previousOwner: string; newOwner: string }
|
|
>;
|
|
|
|
OwnershipTransferred(
|
|
previousOwner?: null,
|
|
newOwner?: null
|
|
): TypedEventFilter<
|
|
[string, string],
|
|
{ previousOwner: string; newOwner: string }
|
|
>;
|
|
|
|
"TokensBridged(address,address,uint256,bytes32)"(
|
|
token?: string | null,
|
|
recipient?: string | null,
|
|
value?: null,
|
|
messageId?: BytesLike | null
|
|
): TypedEventFilter<
|
|
[string, string, BigNumber, string],
|
|
{ token: string; recipient: string; value: BigNumber; messageId: string }
|
|
>;
|
|
|
|
TokensBridged(
|
|
token?: string | null,
|
|
recipient?: string | null,
|
|
value?: null,
|
|
messageId?: BytesLike | null
|
|
): TypedEventFilter<
|
|
[string, string, BigNumber, string],
|
|
{ token: string; recipient: string; value: BigNumber; messageId: string }
|
|
>;
|
|
|
|
"TokensBridgingInitiated(address,address,uint256,bytes32)"(
|
|
token?: string | null,
|
|
sender?: string | null,
|
|
value?: null,
|
|
messageId?: BytesLike | null
|
|
): TypedEventFilter<
|
|
[string, string, BigNumber, string],
|
|
{ token: string; sender: string; value: BigNumber; messageId: string }
|
|
>;
|
|
|
|
TokensBridgingInitiated(
|
|
token?: string | null,
|
|
sender?: string | null,
|
|
value?: null,
|
|
messageId?: BytesLike | null
|
|
): TypedEventFilter<
|
|
[string, string, BigNumber, string],
|
|
{ token: string; sender: string; value: BigNumber; messageId: string }
|
|
>;
|
|
};
|
|
|
|
estimateGas: {
|
|
bridgeContract(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
bridgedTokenAddress(
|
|
_nativeToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
claimTokensFromTokenContract(
|
|
_bridgedToken: string,
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
dailyLimit(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
deployAndHandleBridgedTokens(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
deployAndHandleBridgedTokensAndCall(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
disableInterest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
executionDailyLimit(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
executionMaxPerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
fixFailedMessage(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
fixMediatorBalance(
|
|
_token: string,
|
|
_receiver: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
getBridgeInterfacesVersion(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
getBridgeMode(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
getCurrentDay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
handleBridgedTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
handleBridgedTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
handleNativeTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
handleNativeTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
initialize(
|
|
_bridgeContract: string,
|
|
_mediatorContract: string,
|
|
_dailyLimitMaxPerTxMinPerTxArray: [
|
|
BigNumberish,
|
|
BigNumberish,
|
|
BigNumberish
|
|
],
|
|
_executionDailyLimitExecutionMaxPerTxArray: [BigNumberish, BigNumberish],
|
|
_requestGasLimit: BigNumberish,
|
|
_owner: string,
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
initializeInterest(
|
|
_token: string,
|
|
_impl: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
interestImplementation(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
invest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
isBridgedTokenDeployAcknowledged(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
isInitialized(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
isRegisteredAsNativeToken(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
isTokenRegistered(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
maxAvailablePerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
maxPerTx(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
mediatorBalance(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
mediatorContractOnOtherSide(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
messageFixed(
|
|
_messageId: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
migrateTo_3_3_0(
|
|
_tokenFactory: string,
|
|
_interestImplementation: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
minCashThreshold(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
minPerTx(_token: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
nativeTokenAddress(
|
|
_bridgedToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
onTokenTransfer(
|
|
_from: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
"relayTokens(address,uint256)"(
|
|
token: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
"relayTokens(address,address,uint256)"(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
relayTokensAndCall(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
requestFailedMessageFix(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
requestGasLimit(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
setBridgeContract(
|
|
_bridgeContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setCustomTokenAddressPair(
|
|
_nativeToken: string,
|
|
_bridgedToken: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setExecutionDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setExecutionMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setMediatorContractOnOtherSide(
|
|
_mediatorContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setMinCashThreshold(
|
|
_token: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setMinPerTx(
|
|
_token: string,
|
|
_minPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setRequestGasLimit(
|
|
_gasLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
setTokenFactory(
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
tokenFactory(overrides?: CallOverrides): Promise<BigNumber>;
|
|
|
|
totalExecutedPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
totalSpentPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
transferOwnership(
|
|
newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<BigNumber>;
|
|
|
|
withinExecutionLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
|
|
withinLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<BigNumber>;
|
|
};
|
|
|
|
populateTransaction: {
|
|
bridgeContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
bridgedTokenAddress(
|
|
_nativeToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
claimTokens(
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
claimTokensFromTokenContract(
|
|
_bridgedToken: string,
|
|
_token: string,
|
|
_to: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
dailyLimit(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
deployAndHandleBridgedTokens(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
deployAndHandleBridgedTokensAndCall(
|
|
_token: string,
|
|
_name: string,
|
|
_symbol: string,
|
|
_decimals: BigNumberish,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
disableInterest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
executionDailyLimit(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
executionMaxPerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
fixFailedMessage(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
fixMediatorBalance(
|
|
_token: string,
|
|
_receiver: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
getBridgeInterfacesVersion(
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
getBridgeMode(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
getCurrentDay(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
handleBridgedTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
handleBridgedTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
handleNativeTokens(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
handleNativeTokensAndCall(
|
|
_token: string,
|
|
_recipient: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
initialize(
|
|
_bridgeContract: string,
|
|
_mediatorContract: string,
|
|
_dailyLimitMaxPerTxMinPerTxArray: [
|
|
BigNumberish,
|
|
BigNumberish,
|
|
BigNumberish
|
|
],
|
|
_executionDailyLimitExecutionMaxPerTxArray: [BigNumberish, BigNumberish],
|
|
_requestGasLimit: BigNumberish,
|
|
_owner: string,
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
initializeInterest(
|
|
_token: string,
|
|
_impl: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
interestImplementation(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
invest(
|
|
_token: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
isBridgedTokenDeployAcknowledged(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
isInitialized(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
isRegisteredAsNativeToken(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
isTokenRegistered(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
maxAvailablePerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
maxPerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
mediatorBalance(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
mediatorContractOnOtherSide(
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
messageFixed(
|
|
_messageId: BytesLike,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
migrateTo_3_3_0(
|
|
_tokenFactory: string,
|
|
_interestImplementation: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
minCashThreshold(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
minPerTx(
|
|
_token: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
nativeTokenAddress(
|
|
_bridgedToken: string,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
onTokenTransfer(
|
|
_from: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
"relayTokens(address,uint256)"(
|
|
token: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
"relayTokens(address,address,uint256)"(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
relayTokensAndCall(
|
|
token: string,
|
|
_receiver: string,
|
|
_value: BigNumberish,
|
|
_data: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
requestFailedMessageFix(
|
|
_messageId: BytesLike,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
requestGasLimit(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
setBridgeContract(
|
|
_bridgeContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setCustomTokenAddressPair(
|
|
_nativeToken: string,
|
|
_bridgedToken: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setExecutionDailyLimit(
|
|
_token: string,
|
|
_dailyLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setExecutionMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setMaxPerTx(
|
|
_token: string,
|
|
_maxPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setMediatorContractOnOtherSide(
|
|
_mediatorContract: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setMinCashThreshold(
|
|
_token: string,
|
|
_minCashThreshold: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setMinPerTx(
|
|
_token: string,
|
|
_minPerTx: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setRequestGasLimit(
|
|
_gasLimit: BigNumberish,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
setTokenFactory(
|
|
_tokenFactory: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
tokenFactory(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
|
|
totalExecutedPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
totalSpentPerDay(
|
|
_token: string,
|
|
_day: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
transferOwnership(
|
|
newOwner: string,
|
|
overrides?: Overrides & { from?: string | Promise<string> }
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
withinExecutionLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
withinLimit(
|
|
_token: string,
|
|
_amount: BigNumberish,
|
|
overrides?: CallOverrides
|
|
): Promise<PopulatedTransaction>;
|
|
};
|
|
}
|